author | wimpie <wimpie> | 2005-01-04 01:24:34 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2005-01-04 01:24:34 (UTC) |
commit | f7e9672b6064a7c4ac7e485c292e6192263b271a (patch) (side-by-side diff) | |
tree | 0e2955e6c9d49e9d57559ac73f07e67143c70b41 /core/applets/volumeapplet/oledbox.h | |
parent | 937acd0b191564bace4da11cbf6c912a6f2300cf (diff) | |
download | opie-f7e9672b6064a7c4ac7e485c292e6192263b271a.zip opie-f7e9672b6064a7c4ac7e485c292e6192263b271a.tar.gz opie-f7e9672b6064a7c4ac7e485c292e6192263b271a.tar.bz2 |
oledbox is now in libopie2/opieui
Diffstat (limited to 'core/applets/volumeapplet/oledbox.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/volumeapplet/oledbox.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/core/applets/volumeapplet/oledbox.h b/core/applets/volumeapplet/oledbox.h deleted file mode 100644 index 4371a22..0000000 --- a/core/applets/volumeapplet/oledbox.h +++ b/dev/null @@ -1,51 +0,0 @@ -#ifndef __OPIE_OLED_H__ -#define __OPIE_OLED_H__ - -#include <qwidget.h> -#include <qcolor.h> - -class QPixmap; - -#define _QTE_IS_TOO_DUMB_TO_DRAW_AN_ARC - -class OLedBox : public QWidget { - Q_OBJECT - -public: - OLedBox ( const QColor &col = red, QWidget *parent = 0, const char *name = 0 ); - virtual ~OLedBox ( ); - - QColor color ( ) const; - bool isOn ( ) const; - - virtual QSize sizeHint ( ) const; - -public slots: - void toggle ( ); - void setOn ( bool on ); - void setColor ( const QColor &col ); - -signals: - void toggled ( bool ); - -protected: - virtual void paintEvent ( QPaintEvent *e ); - virtual void resizeEvent ( QResizeEvent *e ); - - virtual void mousePressEvent ( QMouseEvent *e ); - -private: - void drawLed ( QPixmap *, const QColor &col ); - -private: - QPixmap *m_pix [2]; - - QColor m_color; - bool m_on; - -#ifdef _QTE_IS_TOO_DUMB_TO_DRAW_AN_ARC - static QPixmap *s_border_pix; -#endif -}; - -#endif |