summaryrefslogtreecommitdiffstats
path: root/src/qtraylabel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qtraylabel.h')
-rw-r--r--src/qtraylabel.h35
1 files changed, 19 insertions, 16 deletions
diff --git a/src/qtraylabel.h b/src/qtraylabel.h
index 7fb645c..c0a9e72 100644
--- a/src/qtraylabel.h
+++ b/src/qtraylabel.h
@@ -42,6 +42,7 @@
class TQMouseEvent;
class TQDragEnterEvent;
class TQPoint;
+class TDEConfig;
class TQTrayLabel : public TQLabel
{
@@ -69,8 +70,8 @@ public:
bool x11EventFilter(XEvent * event);
// Session Management
- virtual bool saveState(TQSettings& settings);
- virtual bool restoreState(TQSettings& settings);
+ virtual void saveState(TDEConfig *config);
+ virtual bool restoreState(TDEConfig *config);
public slots:
void dock(void); // puts us in the system tray
@@ -89,7 +90,7 @@ public slots:
protected slots:
void scanClients(void); // scans existing client connections
-
+
signals:
void clicked(const ButtonState&, const TQPoint&);
void docked(TQTrayLabel *); // emitted when we get docked
@@ -103,18 +104,18 @@ protected:
// reimplement these event handlers in subclass as needed
virtual void mouseReleaseEvent(TQMouseEvent *event);
virtual void dragEnterEvent(TQDragEnterEvent *event);
-
+
// the events that follow are events of the docked window (NOT TQTrayLabel)
virtual void updateIcon(void); // updates the icon
virtual void updateTitle(void); // sets the tooltip
virtual void balloonText(void); // balloons text
virtual void obscureEvent(void) { }
virtual void mapEvent(void) { }
- virtual void focusLostEvent(void) { }
+ virtual void focusLostEvent(void) { }
virtual void unmapEvent(void) { }
virtual void minimizeEvent(void);
virtual void destroyEvent(void);
-
+
// needs to return if we can unsubscribe for root
virtual bool canUnsubscribeFromRoot(void) { return true; }
// needs to return if we can dock a candidate window
@@ -136,26 +137,28 @@ private:
void initialize(void);
void handleTitleChange(void);
void handleIconChange(void);
+public:
const char *me(void) const;
+private:
// Member variables
- long mDesktop; // desktop on which the window is being shown
- TQLabel *mBalloon; // tooltip text simulator
- TQString mCustomIcon; // CustomIcon of the docked application
- Window mDockedWindow; // the window which is being docked
- int mBalloonTimeout;
+ long mDesktop; // desktop on which the window is being shown
+ TQLabel *mBalloon; // tooltip text simulator
+ TQString mCustomIcon; // CustomIcon of the docked application
+ Window mDockedWindow; // the window which is being docked
+ int mBalloonTimeout;
bool mDocked, mWithdrawn, mSkippingTaskbar;
bool mDockWhenMinimized;
- TQString mTitle, mClass; // Title and hint of mDockedWindow
+ TQString mTitle, mClass; // Title and hint of mDockedWindow
TQPixmap mAppIcon; // The current app icon (may not be same as pixmap())
- XSizeHints mSizeHint; // SizeHint of mDockedWindow
+ XSizeHints mSizeHint; // SizeHint of mDockedWindow
- TQTimer mRealityMonitor; // Helps us sync up with reality
- TQStringList mProgName; // The program whose window we are docking
+ TQTimer mRealityMonitor; // Helps us sync up with reality
+ TQStringList mProgName; // The program whose window we are docking
pid_t mPid; // The PID of program whose window we are docking
- Window mSysTray; // System tray window id
+ Window mSysTray; // System tray window id
};
#endif // _QTRAYLABEL_H