00001 #ifndef TONLEITER_PIANO_SCALE_H 00002 #define TONLEITER_PIANO_SCALE_H 00003 00004 #include <qwidget.h> 00005 #include <qpen.h> 00006 #include <qbrush.h> 00007 00008 namespace Menu 00009 { 00010 class PianoScale : public QWidget 00011 { 00012 Q_OBJECT 00013 private: 00014 QBrush blackBrush; 00015 QBrush whiteBrush; 00016 QBrush markBrush; 00017 QPen blackPen; 00018 QPen whitePen; 00019 public: 00020 PianoScale(QWidget* parent,const char* name="PianoScale",WFlags f=0); 00021 ~PianoScale(); 00022 private: 00023 void paintEvent(QPaintEvent* pe); 00024 void mousePressEvent(QMouseEvent* me); 00025 }; 00026 }; 00027 00028 #endif //TONLEITER_PIANO_SCALE_H
1.4.2