2002-04-05 19:54:21 +00:00
|
|
|
/*****************************************************************
|
2003-09-16 19:28:03 +00:00
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
2002-04-05 19:54:21 +00:00
|
|
|
Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
|
2003-09-16 19:28:03 +00:00
|
|
|
Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
|
|
|
|
|
|
|
|
You can Freely distribute this program under the GNU General Public
|
|
|
|
License. See the file "COPYING" for the exact licensing terms.
|
2002-04-05 19:54:21 +00:00
|
|
|
******************************************************************/
|
2003-09-16 19:28:03 +00:00
|
|
|
|
2002-07-26 20:30:36 +00:00
|
|
|
#ifndef KWIN_POPUPINFO_H
|
|
|
|
#define KWIN_POPUPINFO_H
|
2006-05-11 08:04:23 +00:00
|
|
|
#include <QWidget>
|
|
|
|
#include <QTimer>
|
2002-04-05 19:54:21 +00:00
|
|
|
|
2007-04-05 12:07:35 +00:00
|
|
|
namespace KWin
|
2003-09-16 19:28:03 +00:00
|
|
|
{
|
2002-04-05 19:54:21 +00:00
|
|
|
|
|
|
|
class Workspace;
|
|
|
|
|
|
|
|
class PopupInfo : public QWidget
|
2003-09-16 19:28:03 +00:00
|
|
|
{
|
2002-04-05 19:54:21 +00:00
|
|
|
Q_OBJECT
|
2003-09-16 19:28:03 +00:00
|
|
|
public:
|
|
|
|
PopupInfo( const char *name=0 );
|
|
|
|
~PopupInfo();
|
2002-04-05 19:54:21 +00:00
|
|
|
|
2003-09-16 19:28:03 +00:00
|
|
|
void reset();
|
|
|
|
void hide();
|
|
|
|
void showInfo(QString infoString);
|
2002-04-05 19:54:21 +00:00
|
|
|
|
2003-09-16 19:28:03 +00:00
|
|
|
void reconfigure();
|
2002-04-05 19:54:21 +00:00
|
|
|
|
2003-09-16 19:28:03 +00:00
|
|
|
protected:
|
|
|
|
void paintEvent( QPaintEvent* );
|
|
|
|
void paintContents();
|
2002-04-05 19:54:21 +00:00
|
|
|
|
2003-09-16 19:28:03 +00:00
|
|
|
private:
|
|
|
|
QTimer m_delayedHideTimer;
|
|
|
|
int m_delayTime;
|
|
|
|
bool m_show;
|
|
|
|
bool m_shown;
|
|
|
|
QString m_infoString;
|
|
|
|
};
|
2002-04-05 19:54:21 +00:00
|
|
|
|
2003-09-16 19:28:03 +00:00
|
|
|
} // namespace
|
2002-04-05 19:54:21 +00:00
|
|
|
|
|
|
|
#endif
|