MuseScore  3.4
Music composition and notation
drumtools.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Linux Music Score Editor
4 //
5 // Copyright (C) 2010-2016 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 __DRUMTOOLS_H__
21 #define __DRUMTOOLS_H__
22 
23 namespace Ms {
24 
25 class Score;
26 class Drumset;
27 class Palette;
28 class Staff;
29 
30 //---------------------------------------------------------
31 // DrumTools
32 //---------------------------------------------------------
33 
34 class DrumTools : public QDockWidget {
35  Q_OBJECT
36 
40  QToolButton* editButton;
41  QLabel* pitchName;
42  const Drumset* drumset;
43 
44  private slots:
45  void drumNoteSelected(int val);
46  void editDrumset();
47 
48  protected:
49  virtual void changeEvent(QEvent *event);
50  void retranslate();
51 
52  public:
53  DrumTools(QWidget* parent = 0);
54  void setDrumset(Score*, Staff*, const Drumset*);
55  void updateDrumset(const Drumset* ds);
56  int selectedDrumNote();
57  };
58 
59 
60 
61 } // namespace Ms
62 #endif
63 
DrumTools(QWidget *parent=0)
Definition: drumtools.cpp:42
Global staff data not directly related to drawing.
Definition: staff.h:62
Definition: drumtools.h:34
void updateDrumset(const Drumset *ds)
Definition: drumtools.cpp:107
Definition: score.h:391
void drumNoteSelected(int val)
Definition: drumtools.cpp:198
Definition: drumset.h:68
virtual void changeEvent(QEvent *event)
Definition: drumtools.cpp:240
Score * _score
Definition: drumtools.h:37
int selectedDrumNote()
Definition: drumtools.cpp:222
const Drumset * drumset
Definition: drumtools.h:42
Definition: aeolus.cpp:26
void setDrumset(Score *, Staff *, const Drumset *)
Definition: drumtools.cpp:166
Definition: palette.h:72
Staff * staff
Definition: drumtools.h:38
Palette * drumPalette
Definition: drumtools.h:39
void editDrumset()
Definition: drumtools.cpp:180
QToolButton * editButton
Definition: drumtools.h:40
void retranslate()
Definition: drumtools.cpp:96
QLabel * pitchName
Definition: drumtools.h:41