Canorus
0.7
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
drawable
drawablekeysignature.h
Go to the documentation of this file.
1
8
#ifndef DRAWABLEKEYSIGNATURE_H_
9
#define DRAWABLEKEYSIGNATURE_H_
10
11
#include "
drawable/drawablemuselement.h
"
12
#include "
core/diatonickey.h
"
13
14
class
CADrawableStaff
;
15
class
CAKeySignature
;
16
class
CADrawableAccidental
;
17
18
class
QComboBox;
19
20
class
CADrawableKeySignature
:
public
CADrawableMusElement
{
21
public
:
22
CADrawableKeySignature
(
CAKeySignature
*keySig,
CADrawableStaff
*staff,
double
x,
double
y);
23
~CADrawableKeySignature
();
24
25
void
draw
(QPainter *p,
CADrawSettings
s);
26
CADrawableKeySignature
*
clone
(
CADrawableContext
* newContext = 0);
27
inline
CAKeySignature
*
keySignature
() {
return
(
CAKeySignature
*)
_musElement
; }
28
29
static
void
populateComboBox
( QComboBox *c );
30
static
CADiatonicKey
comboBoxRowToDiatonicKey
(
int
row );
31
static
int
diatonicKeyToRow
(
CADiatonicKey
k );
32
static
void
populateComboBoxDirection
( QComboBox *c );
33
34
private
:
35
QList<CADrawableAccidental*>
_drawableAccidentalList
;
36
};
37
38
#endif
/*DRAWABLEKEYSIGNATURE_H_*/
Generated on Fri Jan 11 2013 14:40:12 for Canorus by
1.8.3