1 //=============================================================================
2 //  MuseScore
3 //  Music Composition & Notation
4 //
5 //  Copyright (C) 2002-2014 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 __INSTRDIALOG_H__
14 #define __INSTRDIALOG_H__
15 
16 #include "ui_instrdialog.h"
17 #include "abstractdialog.h"
18 
19 namespace Ms {
20 
21 class Score;
22 
23 //---------------------------------------------------------
24 //   InstrumentsDialog
25 //---------------------------------------------------------
26 
27 class InstrumentsDialog : public AbstractDialog, public Ui::InstrumentsDialog {
28       Q_OBJECT
29 
30       void readSettings();
31       virtual void accept();
32 
33    private slots:
34       void buttonBoxClicked(QAbstractButton*);
35       void on_saveButton_clicked();
36       void on_loadButton_clicked();
37 
38    protected:
39       virtual void retranslate();
40 
41    public:
42       InstrumentsDialog(QWidget* parent = 0);
43       void init();
44       void writeSettings();
45       void genPartList(Score*);
46       void setBracketsAndBarlines(Score*);
47       QTreeWidget* partiturList();
48       void setScoreOrder(ScoreOrder* order);
49       ScoreOrder* getScoreOrder();
50       void buildInstrumentsList();
51       };
52 
53 } // namespace Ms
54 
55 
56 #endif
57 
58