diff options
Diffstat (limited to 'kbstateapplet/kbstate.h')
-rw-r--r-- | kbstateapplet/kbstate.h | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/kbstateapplet/kbstate.h b/kbstateapplet/kbstate.h index edcd3dc..5cf74ca 100644 --- a/kbstateapplet/kbstate.h +++ b/kbstateapplet/kbstate.h @@ -19,9 +19,9 @@ #define __kbstate_h__ #include <kpanelapplet.h> -#include <qpushbutton.h> -#include <qptrlist.h> -#include <qtimer.h> +#include <tqpushbutton.h> +#include <tqptrlist.h> +#include <tqtimer.h> extern "C" { @@ -33,37 +33,37 @@ class QLabel; class QGridLayout; class KPopupMenu; -class StatusIcon : public QPushButton { +class StatusIcon : public TQPushButton { Q_OBJECT public: - StatusIcon (const QString &text, QWidget *parent, const char *name=0); + StatusIcon (const TQString &text, TQWidget *parent, const char *name=0); ~StatusIcon (); - QSize minimumSizeHint () const; + TQSize minimumSizeHint () const; }; -typedef QPtrList<StatusIcon> IconList; +typedef TQPtrList<StatusIcon> IconList; class TimeoutIcon : public StatusIcon { Q_OBJECT public: - TimeoutIcon (KInstance *instance, const QString &text, - const QString &featurename, - QWidget *parent, const char *name=0); + TimeoutIcon (KInstance *instance, const TQString &text, + const TQString &featurename, + TQWidget *parent, const char *name=0); ~TimeoutIcon (); void update (); - void setGlyth (const QString &glyth); - void setImage (const QString &name, int timeout = 0); + void setGlyth (const TQString &glyth); + void setImage (const TQString &name, int timeout = 0); - void drawButton (QPainter *p); + void drawButton (TQPainter *p); private: - QString glyth; - QString iconname; - QString featurename; - QPixmap pixmap; - QPixmap image; - QTimer timer; + TQString glyth; + TQString iconname; + TQString featurename; + TQPixmap pixmap; + TQPixmap image; + TQTimer timer; KInstance *instance; private slots: @@ -74,25 +74,25 @@ class KeyIcon : public StatusIcon { Q_OBJECT public: KeyIcon (int keyId, KInstance *instance, - QWidget *parent, const char *name=0); + TQWidget *parent, const char *name=0); ~KeyIcon (); void setState (bool latched, bool locked); - void drawButton (QPainter *p); + void drawButton (TQPainter *p); void updateImages (); signals: void stateChangeRequest (KeyIcon *source, bool latched, bool locked); protected: - void resizeEvent(QResizeEvent*); + void resizeEvent(TQResizeEvent*); private slots: void clickedSlot(); private: - QPixmap locked; - QPixmap latched; - QPixmap unlatched; + TQPixmap locked; + TQPixmap latched; + TQPixmap unlatched; bool isLatched; bool isLocked; bool tristate; @@ -103,27 +103,27 @@ private: class MouseIcon : public StatusIcon { Q_OBJECT public: - MouseIcon (KInstance *instance, QWidget *parent, const char *name=0); + MouseIcon (KInstance *instance, TQWidget *parent, const char *name=0); ~MouseIcon (); void setState (int state); void setActiveKey (int activekey); - void drawButton (QPainter *p); + void drawButton (TQPainter *p); void updateImages (); protected: - void resizeEvent(QResizeEvent*); + void resizeEvent(TQResizeEvent*); private: - QPixmap mouse; - QPixmap leftSelected; - QPixmap middleSelected; - QPixmap rightSelected; - QPixmap leftDot; - QPixmap middleDot; - QPixmap rightDot; - QPixmap leftDotSelected; - QPixmap middleDotSelected; - QPixmap rightDotSelected; + TQPixmap mouse; + TQPixmap leftSelected; + TQPixmap middleSelected; + TQPixmap rightSelected; + TQPixmap leftDot; + TQPixmap middleDot; + TQPixmap rightDot; + TQPixmap leftDotSelected; + TQPixmap middleDotSelected; + TQPixmap rightDotSelected; int state, activekey; KInstance *instance; }; @@ -132,17 +132,17 @@ class KbStateApplet : public KPanelApplet { Q_OBJECT public: - KbStateApplet(const QString& configFile, Type t = Normal, int actions = 0, - QWidget *parent = 0, const char *name = 0); + KbStateApplet(const TQString& configFile, Type t = Normal, int actions = 0, + TQWidget *parent = 0, const char *name = 0); ~KbStateApplet(); int widthForHeight(int height) const; int heightForWidth(int width) const; protected: - void mousePressEvent(QMouseEvent *e); - void timerEvent(QTimerEvent*); - void resizeEvent(QResizeEvent*); + void mousePressEvent(TQMouseEvent *e); + void timerEvent(TQTimerEvent*); + void resizeEvent(TQResizeEvent*); bool x11Event (XEvent *); public slots: |