MuseScore  3.4
Music composition and notation
harmonyedit.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Linux Music Score Editor
4 //
5 // Copyright (C) 2009-2011 Werner Schweer and others
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 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 //=============================================================================
19 
20 #ifndef __HARMONYEDIT_H__
21 #define __HARMONYEDIT_H__
22 
23 #include "ui_harmonyedit.h"
24 
25 namespace Ms {
26 
27 class Palette;
28 class ChordList;
29 
30 //---------------------------------------------------------
31 // ChordStyleEditor
32 //---------------------------------------------------------
33 
34 class ChordStyleEditor : public QDialog, Ui::ChordStyleEditor {
35  Q_OBJECT
36 
37  bool _dirty;
41 
42  void loadChordDescriptionFile(const QString&);
43  void setChordList(ChordList* cl);
44 
45  private slots:
46  void fileButtonClicked();
47  void saveButtonClicked();
48  void harmonyChanged(QTreeWidgetItem*, QTreeWidgetItem*);
49 
50  public slots:
51  virtual void accept();
52 
53  public:
54  ChordStyleEditor(QWidget* parent = 0);
55  void setScore(Score*);
56  bool dirty() const { return _dirty; }
57  void save();
58  void restore();
59  };
60 
61 
62 } // namespace Ms
63 #endif
64 
void setScore(Score *)
Definition: harmonyedit.cpp:62
void fileButtonClicked()
Definition: harmonyedit.cpp:87
Definition: chordlist.h:230
Definition: score.h:391
Score * score
Definition: harmonyedit.h:39
void setChordList(ChordList *cl)
Definition: harmonyedit.cpp:133
Palette * sp1
Definition: harmonyedit.h:38
Definition: harmonyedit.h:34
bool _dirty
Definition: harmonyedit.h:37
Definition: aeolus.cpp:26
void restore()
Definition: harmonyedit.cpp:211
bool dirty() const
Definition: harmonyedit.h:56
void saveButtonClicked()
Definition: harmonyedit.cpp:99
void save()
Definition: harmonyedit.cpp:196
void harmonyChanged(QTreeWidgetItem *, QTreeWidgetItem *)
Definition: harmonyedit.cpp:180
virtual void accept()
Definition: harmonyedit.cpp:577
ChordStyleEditor(QWidget *parent=0)
Definition: harmonyedit.cpp:41
Definition: palette.h:72
void loadChordDescriptionFile(const QString &)
Definition: harmonyedit.cpp:115
ChordList * chordList
Definition: harmonyedit.h:40