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 @@ -9,46 +9,48 @@ #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 |