Diffstat (limited to 'noncore/multimedia/tonleiter/pianoscale.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/tonleiter/pianoscale.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/noncore/multimedia/tonleiter/pianoscale.h b/noncore/multimedia/tonleiter/pianoscale.h new file mode 100644 index 0000000..63995b0 --- a/dev/null +++ b/noncore/multimedia/tonleiter/pianoscale.h | |||
@@ -0,0 +1,28 @@ | |||
1 | #ifndef TONLEITER_PIANO_SCALE_H | ||
2 | #define TONLEITER_PIANO_SCALE_H | ||
3 | |||
4 | #include <qwidget.h> | ||
5 | #include <qpen.h> | ||
6 | #include <qbrush.h> | ||
7 | |||
8 | namespace Menu | ||
9 | { | ||
10 | class PianoScale : public QWidget | ||
11 | { | ||
12 | Q_OBJECT | ||
13 | private: | ||
14 | QBrush blackBrush; | ||
15 | QBrush whiteBrush; | ||
16 | QBrush markBrush; | ||
17 | QPen blackPen; | ||
18 | QPen whitePen; | ||
19 | public: | ||
20 | PianoScale(QWidget* parent,const char* name="PianoScale",WFlags f=0); | ||
21 | ~PianoScale(); | ||
22 | private: | ||
23 | void paintEvent(QPaintEvent* pe); | ||
24 | void mousePressEvent(QMouseEvent* me); | ||
25 | }; | ||
26 | }; | ||
27 | |||
28 | #endif //TONLEITER_PIANO_SCALE_H | ||