2003-09-16 23:28:03 +04:00
|
|
|
/*****************************************************************
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
|
|
|
|
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.
|
|
|
|
******************************************************************/
|
|
|
|
|
|
|
|
#ifndef KWIN_NOTIFICATIONS_H
|
|
|
|
#define KWIN_NOTIFICATIONS_H
|
|
|
|
|
2005-05-30 17:31:33 +04:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <qstring.h>
|
|
|
|
|
2003-09-16 23:28:03 +04:00
|
|
|
namespace KWinInternal
|
|
|
|
{
|
|
|
|
|
2005-05-30 17:31:33 +04:00
|
|
|
class Client;
|
|
|
|
|
2003-09-16 23:28:03 +04:00
|
|
|
class Notify
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
enum Event
|
|
|
|
{
|
|
|
|
Activate,
|
|
|
|
Close,
|
|
|
|
Minimize,
|
|
|
|
UnMinimize,
|
|
|
|
Maximize,
|
|
|
|
UnMaximize,
|
|
|
|
OnAllDesktops,
|
|
|
|
NotOnAllDesktops,
|
|
|
|
New,
|
|
|
|
Delete,
|
|
|
|
TransNew,
|
|
|
|
TransDelete,
|
|
|
|
ShadeUp,
|
|
|
|
ShadeDown,
|
|
|
|
MoveStart,
|
|
|
|
MoveEnd,
|
|
|
|
ResizeStart,
|
|
|
|
ResizeEnd,
|
2005-05-30 17:31:33 +04:00
|
|
|
DemandAttentionCurrent,
|
|
|
|
DemandAttentionOther,
|
2003-09-16 23:28:03 +04:00
|
|
|
DesktopChange = 100
|
|
|
|
};
|
|
|
|
|
2005-05-30 17:31:33 +04:00
|
|
|
static bool raise( Event, const QString& message = QString::null, Client* c = NULL );
|
|
|
|
static bool makeDemandAttention( Event );
|
|
|
|
private:
|
|
|
|
static QString eventToName( Event );
|
2003-09-16 23:28:03 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|