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 
37       Score* _score;
38       Staff* staff;
39       Palette* drumPalette;
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 
64