author | waspe <waspe> | 2003-11-20 19:34:08 (UTC) |
---|---|---|
committer | waspe <waspe> | 2003-11-20 19:34:08 (UTC) |
commit | e6a5ed6de7e821a070d571045ff063f8c41b0b79 (patch) (side-by-side diff) | |
tree | 8455d7bf537cf804337b6c03b28f891ee3f286ce /noncore/multimedia/tonleiter/fretboard.h | |
parent | f43e28fe8f226039d96ebda4e6c4d26e4f3320ba (diff) | |
download | opie-e6a5ed6de7e821a070d571045ff063f8c41b0b79.zip opie-e6a5ed6de7e821a070d571045ff063f8c41b0b79.tar.gz opie-e6a5ed6de7e821a070d571045ff063f8c41b0b79.tar.bz2 |
added preliminary edit dialogs
default config added
Diffstat (limited to 'noncore/multimedia/tonleiter/fretboard.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/tonleiter/fretboard.h | 80 |
1 files changed, 41 insertions, 39 deletions
diff --git a/noncore/multimedia/tonleiter/fretboard.h b/noncore/multimedia/tonleiter/fretboard.h index eb509b0..458c733 100644 --- a/noncore/multimedia/tonleiter/fretboard.h +++ b/noncore/multimedia/tonleiter/fretboard.h @@ -6,49 +6,51 @@ #include <qvaluelist.h> #include <qwidget.h> #include "tonleiterdata.h" -class FretBoard : public QWidget +using namespace Data; + +namespace Graph { - Q_OBJECT -private: - TonleiterData* data; - - QPen fretpen; - QBrush markerbrush; - QPen stringpen; - - Instrument inst; - - int xmargin; - int xmin; - int xmax; - int xwidth; - - int ymargin; - int ymin; - int ymax; - int yheight; - - double fretdist; - double stringdist; - -public: - FretBoard(TonleiterData* data,QWidget* parent,const char* name="FretBoard",WFlags f=0); - virtual ~FretBoard(); -private slots: - void dataChange(); -private: - void paintEvent(QPaintEvent* pe); - void resizeEvent(QResizeEvent* re); - //void mousePressEvent(QMouseEvent* mpe); - //void mouseMoveEvent(QMouseEvent* mme); - //void mouseReleaseEvent(QMouseEvent* mre); - void paintBoard(QPainter* p); - void paintFrets(QPainter* p); - void paintStrings(QPainter* p); - void paintScale(QPainter* p); + class FretBoard : public QWidget + { + Q_OBJECT + private: + TonleiterData* data; + + QPen fretpen; + QBrush markerbrush; + QPen stringpen; + + Instrument inst; + + int xmargin; + int xmin; + int xmax; + int xwidth; + + int ymargin; + int ymin; + int ymax; + int yheight; + + double fretdist; + double stringdist; + + public: + FretBoard(TonleiterData* data,QWidget* parent,const char* name="FretBoard",WFlags f=0); + virtual ~FretBoard(); + private slots: + void dataChange(); + private: + void paintEvent(QPaintEvent* pe); + void resizeEvent(QResizeEvent* re); + void paintBoard(QPainter* p); + void paintFrets(QPainter* p); + void paintStrings(QPainter* p); + void paintScale(QPainter* p); + }; }; #endif //TONLEITER_FRET_BOARD_H |