1 //=============================================================================
2 //  MuseScore
3 //  Music Composition & Notation
4 //
5 //  Copyright (C) 2011-2017 Werner Schweer
6 //
7 //  This program is free software; you can redistribute it and/or modify
8 //  it under the terms of the GNU General Public License version 2
9 //  as published by the Free Software Foundation and appearing in
10 //  the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __ALBUMMANAGER_H__
14 #define __ALBUMMANAGER_H__
15 
16 #include "ui_albummanager.h"
17 #include "abstractdialog.h"
18 
19 namespace Ms {
20 
21 class Movements;
22 
23 //---------------------------------------------------------
24 //   AlbumManager
25 //---------------------------------------------------------
26 
27 class AlbumManager : public AbstractDialog, public Ui::AlbumManager {
28       Q_OBJECT
29       Movements* album;
30 
31       virtual void hideEvent(QHideEvent*);
32 
33    private slots:
34       void addClicked();
35       void addNewClicked();
36       void upClicked();
37       void downClicked();
38       void removeClicked();
39       void currentScoreChanged(int);
40       void itemChanged(QListWidgetItem*);   // score name in list is edited
41       void buttonBoxClicked(QAbstractButton*);
42 
43    protected:
retranslate()44       virtual void retranslate() { retranslateUi(this); }
45 
46    public:
47       AlbumManager(QWidget* parent = 0);
48       void setAlbum(Movements*);
49       };
50 }
51 
52 #endif
53 
54