00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef KWINDOWINFO_H
00010 #define KWINDOWINFO_H
00011
00012 #include <tqobject.h>
00013 #include <tqpixmap.h>
00014 #include <tqstring.h>
00015
00016 #include <tdelibs_export.h>
00017
00041 class TDEUI_EXPORT KWindowInfo : public TQObject
00042 {
00043 Q_OBJECT
00044
00045 public:
00049 KWindowInfo( TQWidget *parent, const char *name=0 );
00050
00054 virtual ~KWindowInfo();
00055
00059 bool autoDelete() const { return autoDel; }
00060
00065 void setAutoDelete( bool enable ) { autoDel = enable; }
00066
00071 static void showMessage( TQWidget *window, const TQString &text, int timeout = -1 );
00072
00077 static void showMessage( TQWidget *window, const TQString &text,
00078 const TQPixmap &pix, int timeout = -1 );
00079
00080 public slots:
00084 void message( const TQString &text );
00085
00089 void message( const TQString &text, const TQPixmap &pix );
00090
00094 void message( const TQString &text, int timeout );
00095
00103 void message( const TQString &text, const TQPixmap &pix, int timeout );
00104
00108 void permanent( const TQString &text );
00109
00113 void permanent( const TQString &text, const TQPixmap &pix );
00114
00115 protected:
00119 virtual void display( const TQString &text, const TQPixmap &pix );
00120
00121 protected slots:
00125 virtual void save();
00126
00131 virtual void restore();
00132
00133 private:
00134 TQWidget *win;
00135 TQPixmap oldIcon;
00136 TQPixmap oldMiniIcon;
00137 TQString oldText;
00138 bool autoDel;
00139
00140
00141 class Private *d;
00142 };
00143
00144 #endif // KWINDOWINFO_H
00145