popupinfo.h
00001 /***************************************************************** 00002 KWin - the KDE window manager 00003 This file is part of the KDE project. 00004 00005 Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org> 00006 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org> 00007 00008 You can Freely distribute this program under the GNU General Public 00009 License. See the file "COPYING" for the exact licensing terms. 00010 ******************************************************************/ 00011 00012 #ifndef KWIN_POPUPINFO_H 00013 #define KWIN_POPUPINFO_H 00014 #include <tqwidget.h> 00015 #include <tqtimer.h> 00016 #include <tqvaluelist.h> 00017 00018 namespace KWinInternal 00019 { 00020 00021 class Workspace; 00022 00023 class PopupInfo : public TQWidget 00024 { 00025 Q_OBJECT 00026 public: 00027 PopupInfo( Workspace* ws, const char *name=0 ); 00028 ~PopupInfo(); 00029 00030 void reset(); 00031 void hide(); 00032 void showInfo(TQString infoString); 00033 00034 void reconfigure(); 00035 00036 protected: 00037 void paintEvent( TQPaintEvent* ); 00038 void paintContents(); 00039 00040 private: 00041 TQTimer m_delayedHideTimer; 00042 int m_delayTime; 00043 bool m_show; 00044 bool m_shown; 00045 TQString m_infoString; 00046 Workspace* workspace; 00047 }; 00048 00049 } // namespace 00050 00051 #endif