author | waspe <waspe> | 2003-11-16 19:31:57 (UTC) |
---|---|---|
committer | waspe <waspe> | 2003-11-16 19:31:57 (UTC) |
commit | e7a81ed5ba0dc6b996f179d1dc40d778492218a9 (patch) (unidiff) | |
tree | 62081f88e6dad4df5a2f278050cf402c2da9ed98 /noncore/multimedia/tonleiter/fretboard.h | |
parent | 0b0c071017298ebd189420f85b5aa8d44885c50e (diff) | |
download | opie-e7a81ed5ba0dc6b996f179d1dc40d778492218a9.zip opie-e7a81ed5ba0dc6b996f179d1dc40d778492218a9.tar.gz opie-e7a81ed5ba0dc6b996f179d1dc40d778492218a9.tar.bz2 |
first commit
Diffstat (limited to 'noncore/multimedia/tonleiter/fretboard.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/tonleiter/fretboard.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/noncore/multimedia/tonleiter/fretboard.h b/noncore/multimedia/tonleiter/fretboard.h new file mode 100644 index 0000000..eb509b0 --- a/dev/null +++ b/noncore/multimedia/tonleiter/fretboard.h | |||
@@ -0,0 +1,54 @@ | |||
1 | #ifndef TONLEITER_FRET_BOARD_H | ||
2 | #define TONLEITER_FRET_BOARD_H | ||
3 | |||
4 | #include <qbrush.h> | ||
5 | #include <qpen.h> | ||
6 | #include <qvaluelist.h> | ||
7 | #include <qwidget.h> | ||
8 | |||
9 | |||
10 | #include "tonleiterdata.h" | ||
11 | |||
12 | class FretBoard : public QWidget | ||
13 | { | ||
14 | Q_OBJECT | ||
15 | private: | ||
16 | TonleiterData* data; | ||
17 | |||
18 | QPen fretpen; | ||
19 | QBrush markerbrush; | ||
20 | QPen stringpen; | ||
21 | |||
22 | Instrument inst; | ||
23 | |||
24 | int xmargin; | ||
25 | int xmin; | ||
26 | int xmax; | ||
27 | int xwidth; | ||
28 | |||
29 | int ymargin; | ||
30 | int ymin; | ||
31 | int ymax; | ||
32 | int yheight; | ||
33 | |||
34 | double fretdist; | ||
35 | double stringdist; | ||
36 | |||
37 | public: | ||
38 | FretBoard(TonleiterData* data,QWidget* parent,const char* name="FretBoard",WFlags f=0); | ||
39 | virtual ~FretBoard(); | ||
40 | private slots: | ||
41 | void dataChange(); | ||
42 | private: | ||
43 | void paintEvent(QPaintEvent* pe); | ||
44 | void resizeEvent(QResizeEvent* re); | ||
45 | //void mousePressEvent(QMouseEvent* mpe); | ||
46 | //void mouseMoveEvent(QMouseEvent* mme); | ||
47 | //void mouseReleaseEvent(QMouseEvent* mre); | ||
48 | void paintBoard(QPainter* p); | ||
49 | void paintFrets(QPainter* p); | ||
50 | void paintStrings(QPainter* p); | ||
51 | void paintScale(QPainter* p); | ||
52 | }; | ||
53 | |||
54 | #endif //TONLEITER_FRET_BOARD_H | ||