00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef PANEL_LED_VIEW_H
00024 #define PANEL_LED_VIEW_H
00025
00026 #include <QObject>
00027 #include <QString>
00028
00029 class TrackPanelView;
00030
00031 class PanelLed : public QObject
00032 {
00033 Q_OBJECT
00034
00035 public:
00036 PanelLed(TrackPanelView* view, int xpos, char* on, char* off);
00037 ~PanelLed();
00038
00039 void paint(QPainter *painter);
00040
00041 void set_on_type(char* type);
00042 void set_of_type(char* type);
00043 void set_xpos(int x);
00044
00045 private:
00046 int m_xpos;
00047 bool m_isOn;
00048 QString onType;
00049 QString offType;
00050
00051
00052 public slots:
00053 void ison_changed(bool isOn);
00054 };
00055
00056
00057 #endif
00058
00059