MuseScore
3.4
Music composition and notation
mscore
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
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
Ms::DrumTools::DrumTools
DrumTools(QWidget *parent=0)
Definition:
drumtools.cpp:42
Ms::Staff
Global staff data not directly related to drawing.
Definition:
staff.h:62
Ms::DrumTools
Definition:
drumtools.h:34
Ms::DrumTools::updateDrumset
void updateDrumset(const Drumset *ds)
Definition:
drumtools.cpp:107
Ms::Score
Definition:
score.h:391
Ms::DrumTools::drumNoteSelected
void drumNoteSelected(int val)
Definition:
drumtools.cpp:198
Ms::Drumset
Definition:
drumset.h:68
Ms::DrumTools::changeEvent
virtual void changeEvent(QEvent *event)
Definition:
drumtools.cpp:240
Ms::DrumTools::_score
Score * _score
Definition:
drumtools.h:37
Ms::DrumTools::selectedDrumNote
int selectedDrumNote()
Definition:
drumtools.cpp:222
Ms::DrumTools::drumset
const Drumset * drumset
Definition:
drumtools.h:42
Ms
Definition:
aeolus.cpp:26
Ms::DrumTools::setDrumset
void setDrumset(Score *, Staff *, const Drumset *)
Definition:
drumtools.cpp:166
Ms::Palette
Definition:
palette.h:72
Ms::DrumTools::staff
Staff * staff
Definition:
drumtools.h:38
Ms::DrumTools::drumPalette
Palette * drumPalette
Definition:
drumtools.h:39
Ms::DrumTools::editDrumset
void editDrumset()
Definition:
drumtools.cpp:180
Ms::DrumTools::editButton
QToolButton * editButton
Definition:
drumtools.h:40
Ms::DrumTools::retranslate
void retranslate()
Definition:
drumtools.cpp:96
Ms::DrumTools::pitchName
QLabel * pitchName
Definition:
drumtools.h:41
Generated by
1.8.13