kwindowinfo.h
00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef KWINDOWINFO_H
00010 #define KWINDOWINFO_H
00011
00012 #include <qobject.h>
00013 #include <qpixmap.h>
00014 #include <qstring.h>
00015
00039 class KWindowInfo : public QObject
00040 {
00041 Q_OBJECT
00042
00043 public:
00047 KWindowInfo( QWidget *parent, const char *name=0 );
00048
00052 virtual ~KWindowInfo();
00053
00057 bool autoDelete() const { return autoDel; }
00058
00063 void setAutoDelete( bool enable ) { autoDel = enable; }
00064
00069 static void showMessage( QWidget *window, const QString &text, int timeout = -1 );
00070
00075 static void showMessage( QWidget *window, const QString &text,
00076 const QPixmap &pix, int timeout = -1 );
00077
00078 public slots:
00082 void message( const QString &text );
00083
00087 void message( const QString &text, const QPixmap &pix );
00088
00092 void message( const QString &text, int timeout );
00093
00101 void message( const QString &text, const QPixmap &pix, int timeout );
00102
00106 void permanent( const QString &text );
00107
00111 void permanent( const QString &text, const QPixmap &pix );
00112
00113 protected:
00117 virtual void display( const QString &text, const QPixmap &pix );
00118
00119 protected slots:
00123 virtual void save();
00124
00129 virtual void restore();
00130
00131 private:
00132 QWidget *win;
00133 QPixmap oldIcon;
00134 QPixmap oldMiniIcon;
00135 QString oldText;
00136 bool autoDel;
00137
00138
00139 class Private *d;
00140 };
00141
00142 #endif // KWINDOWINFO_H
00143
This file is part of the documentation for kdeui Library Version 3.3.1.