MuseScore  3.4
Music composition and notation
keyedit.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Linux Music Score Editor
4 //
5 // Copyright (C) 2009 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 __KEYEDIT_H__
21 #define __KEYEDIT_H__
22 
23 #include "ui_keyedit.h"
24 
25 namespace Ms {
26 
27 class Palette;
28 class PaletteScrollArea;
29 
30 //---------------------------------------------------------
31 // KeyEditor
32 //---------------------------------------------------------
33 
34 class KeyEditor : public QWidget, Ui::KeyEdit {
35  Q_OBJECT
36 
40  bool _dirty;
41 
42  private slots:
43  void addClicked();
44  void clearClicked();
45  void setDirty() { _dirty = true; }
46 
47  signals:
48  void keySigAdded(const KeySig*);
49 
50  public:
51  KeyEditor(QWidget* parent = 0);
52  bool dirty() const { return _dirty; }
53  void showKeyPalette(bool val);
54  void save();
55  };
56 
57 
58 } // namespace Ms
59 #endif
60 
void clearClicked()
Definition: keyedit.cpp:363
Definition: palette.h:53
void keySigAdded(const KeySig *)
PaletteScrollArea * _keyPalette
Definition: keyedit.h:37
Definition: keyedit.h:34
Palette * sp1
Definition: keyedit.h:39
void showKeyPalette(bool val)
Definition: keyedit.cpp:372
The KeySig class represents a Key Signature on a staff.
Definition: keysig.h:31
Definition: aeolus.cpp:26
void save()
Definition: keyedit.cpp:381
void addClicked()
Definition: keyedit.cpp:327
void setDirty()
Definition: keyedit.h:45
KeyEditor(QWidget *parent=0)
Definition: keyedit.cpp:267
bool _dirty
Definition: keyedit.h:40
Definition: palette.h:72
bool dirty() const
Definition: keyedit.h:52
Palette * sp
Definition: keyedit.h:38