00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __RANDRPASSIVEPOPUP_H__
00020 #define __RANDRPASSIVEPOPUP_H__
00021
00022 #include <kpassivepopup.h>
00023 #include <tqvaluelist.h>
00024 #include <tqtimer.h>
00025 #include <X11/Xlib.h>
00026
00027 class KRandrPassivePopup
00028 : public KPassivePopup
00029 {
00030 Q_OBJECT
00031 public:
00032 static KRandrPassivePopup *message( const TQString &caption, const TQString &text,
00033 const TQPixmap &icon, TQWidget *parent, const char *name=0, int timeout = -1 );
00034 protected:
00035 virtual bool eventFilter( TQObject* o, TQEvent* e );
00036 virtual bool x11Event( XEvent* e );
00037 private slots:
00038 void slotPositionSelf();
00039 private:
00040 KRandrPassivePopup( TQWidget *parent=0, const char *name=0, WFlags f=0 );
00041 void startWatchingWidget( TQWidget* w );
00042 TQValueList< TQWidget* > watched_widgets;
00043 TQValueList< Window > watched_windows;
00044 TQTimer update_timer;
00045 };
00046
00047 #endif