superkaramba
systemtray.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef TESTCARDAPPLET_H
00022 #define TESTCARDAPPLET_H
00023
00024 #include <tqobject.h>
00025 #include <tqpixmap.h>
00026 #include <tqptrlist.h>
00027 #include <qxembed.h>
00028
00029 class KWinModule;
00030
00031 typedef long unsigned int Atom;
00032
00033
00034 class Systemtray : public QWidget
00035 {
00036 Q_OBJECT
00037 public:
00038 Systemtray(TQWidget* parent);
00039 ~Systemtray();
00040
00041 void updateBackgroundPixmap ( const TQPixmap & );
00042
00043 int getCurrentWindowCount();
00044
00045 virtual void initSystray( void );
00046
00047 public slots:
00048 void updateTrayWindows();
00049 int getTraySize();
00050 void systemTrayWindowAdded( WId w );
00051 void systemTrayWindowRemoved( WId w );
00052 void layoutSystray();
00053
00054 signals:
00055 void updated();
00056
00057 private:
00058 KWinModule *kwin_module;
00059 TQValueList<WId> systemTrayWindows;
00060
00061 TQPtrList<QXEmbed> m_Wins;
00062
00063 Atom net_system_tray_selection;
00064 Atom net_system_tray_opcode;
00065
00066 int no_of_systray_windows;
00067 };
00068
00069 #endif