summaryrefslogtreecommitdiffstats
path: root/kbstateapplet
diff options
context:
space:
mode:
Diffstat (limited to 'kbstateapplet')
-rw-r--r--kbstateapplet/kbstate.cpp14
-rw-r--r--kbstateapplet/kbstate.h14
2 files changed, 14 insertions, 14 deletions
diff --git a/kbstateapplet/kbstate.cpp b/kbstateapplet/kbstate.cpp
index 43a9fc4..91bea93 100644
--- a/kbstateapplet/kbstate.cpp
+++ b/kbstateapplet/kbstate.cpp
@@ -92,7 +92,7 @@ KbStateApplet::KbStateApplet(const TQString& configFile, Type t, int actions,
for (int i = 0; i < 8; i++) {
icons[i] = 0;
}
- instance = new KInstance ("kbstateapplet");
+ instance = new TDEInstance ("kbstateapplet");
loadConfig();
initMasks();
mouse = new MouseIcon (instance, this, "mouse");
@@ -712,8 +712,8 @@ void KbStateApplet::configureMouse() {
}
void KbStateApplet::about() {
- KAboutData about("kbstateapplet", I18N_NOOP("Keyboard Status Applet"), "0.2",
- I18N_NOOP("Panel applet that shows the state of the modifier keys"), KAboutData::License_GPL_V2, "(C) 2004 Gunnar Schmi Dt");
+ TDEAboutData about("kbstateapplet", I18N_NOOP("Keyboard Status Applet"), "0.2",
+ I18N_NOOP("Panel applet that shows the state of the modifier keys"), TDEAboutData::License_GPL_V2, "(C) 2004 Gunnar Schmi Dt");
KAboutApplication a(&about, this);
a.exec();
}
@@ -746,7 +746,7 @@ void KbStateApplet::saveConfig()
/********************************************************************/
-KeyIcon::KeyIcon (int keyId, KInstance *instance,
+KeyIcon::KeyIcon (int keyId, TDEInstance *instance,
TQWidget *parent, const char *name)
: StatusIcon (modifierKeys[keyId].name, parent, name) {
this->instance = instance;
@@ -855,7 +855,7 @@ void KeyIcon::drawButton (TQPainter *p) {
/********************************************************************/
-MouseIcon::MouseIcon (KInstance *instance, TQWidget *parent, const char *name)
+MouseIcon::MouseIcon (TDEInstance *instance, TQWidget *parent, const char *name)
: StatusIcon ("", parent, name)
{
this->instance = instance;
@@ -886,7 +886,7 @@ void MouseIcon::resizeEvent( TQResizeEvent*e )
updateImages();
}
-TQPixmap loadIcon(KInstance *instance, int size, TQColor color, TQString name) {
+TQPixmap loadIcon(TDEInstance *instance, int size, TQColor color, TQString name) {
KIconLoader *loader = instance->iconLoader();
TQPixmap result = loader->loadIcon(name, KIcon::NoGroup, size);
@@ -956,7 +956,7 @@ void MouseIcon::drawButton (TQPainter *p) {
/********************************************************************/
-TimeoutIcon::TimeoutIcon (KInstance *instance, const TQString &text,
+TimeoutIcon::TimeoutIcon (TDEInstance *instance, const TQString &text,
const TQString &featurename,
TQWidget *parent, const char *name)
: StatusIcon (text, parent, name) {
diff --git a/kbstateapplet/kbstate.h b/kbstateapplet/kbstate.h
index 26aa513..e910df2 100644
--- a/kbstateapplet/kbstate.h
+++ b/kbstateapplet/kbstate.h
@@ -48,7 +48,7 @@ class TimeoutIcon : public StatusIcon {
Q_OBJECT
public:
- TimeoutIcon (KInstance *instance, const TQString &text,
+ TimeoutIcon (TDEInstance *instance, const TQString &text,
const TQString &featurename,
TQWidget *parent, const char *name=0);
~TimeoutIcon ();
@@ -66,7 +66,7 @@ private:
TQPixmap pixmap;
TQPixmap image;
TQTimer timer;
- KInstance *instance;
+ TDEInstance *instance;
private slots:
void timeout ();
@@ -76,7 +76,7 @@ class KeyIcon : public StatusIcon {
Q_OBJECT
public:
- KeyIcon (int keyId, KInstance *instance,
+ KeyIcon (int keyId, TDEInstance *instance,
TQWidget *parent, const char *name=0);
~KeyIcon ();
void setState (bool latched, bool locked);
@@ -100,14 +100,14 @@ private:
bool isLocked;
bool tristate;
int keyId;
- KInstance *instance;
+ TDEInstance *instance;
};
class MouseIcon : public StatusIcon {
Q_OBJECT
public:
- MouseIcon (KInstance *instance, TQWidget *parent, const char *name=0);
+ MouseIcon (TDEInstance *instance, TQWidget *parent, const char *name=0);
~MouseIcon ();
void setState (int state);
void setActiveKey (int activekey);
@@ -129,7 +129,7 @@ class MouseIcon : public StatusIcon {
TQPixmap middleDotSelected;
TQPixmap rightDotSelected;
int state, activekey;
- KInstance *instance;
+ TDEInstance *instance;
};
class KbStateApplet : public KPanelApplet {
@@ -198,7 +198,7 @@ private:
bool showModifiers, showLockkeys, showMouse, showAccessX;
bool fillSpace;
- KInstance *instance;
+ TDEInstance *instance;
XkbDescPtr xkb;
};