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
00040 class KWindowInfo : public QObject
00041 {
00042 Q_OBJECT
00043
00044 public:
00048 KWindowInfo( QWidget *parent, const char *name=0 );
00049
00053 virtual ~KWindowInfo();
00054
00058 bool autoDelete() const { return autoDel; }
00059
00064 void setAutoDelete( bool enable ) { autoDel = enable; }
00065
00070 static void showMessage( QWidget *window, const QString &text, int timeout = -1 );
00071
00076 static void showMessage( QWidget *window, const QString &text,
00077 const QPixmap &pix, int timeout = -1 );
00078
00079 public slots:
00083 void message( const QString &text );
00084
00088 void message( const QString &text, const QPixmap &pix );
00089
00093 void message( const QString &text, int timeout );
00094
00102 void message( const QString &text, const QPixmap &pix, int timeout );
00103
00107 void permanent( const QString &text );
00108
00112 void permanent( const QString &text, const QPixmap &pix );
00113
00114 protected:
00118 virtual void display( const QString &text, const QPixmap &pix );
00119
00120 protected slots:
00124 virtual void save();
00125
00130 virtual void restore();
00131
00132 private:
00133 QWidget *win;
00134 QPixmap oldIcon;
00135 QPixmap oldMiniIcon;
00136 QString oldText;
00137 bool autoDel;
00138
00139
00140 class Private *d;
00141 };
00142
00143 #endif // KWINDOWINFO_H
00144
This file is part of the documentation for kdelibs Version 3.1.5.