KWin
popupinfo.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KWIN_POPUPINFO_H
00024 #define KWIN_POPUPINFO_H
00025 #include <QWidget>
00026 #include <QTimer>
00027
00028 namespace KWin
00029 {
00030
00031 class Workspace;
00032
00033 class PopupInfo : public QWidget
00034 {
00035 Q_OBJECT
00036 public:
00037 explicit PopupInfo( Workspace* ws, const char *name=0 );
00038 ~PopupInfo();
00039
00040 void reset();
00041 void showInfo(const QString &infoString);
00042
00043 void reconfigure();
00044
00045 public slots:
00046 void hide();
00047
00048 protected:
00049 void paintEvent( QPaintEvent* );
00050 void paintContents();
00051
00052 private:
00053 QTimer m_delayedHideTimer;
00054 int m_delayTime;
00055 bool m_show;
00056 bool m_shown;
00057 QString m_infoString;
00058 Workspace* workspace;
00059 };
00060
00061 }
00062
00063 #endif