kwinmodule.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KWINMODULE_H
00024 #define KWINMODULE_H
00025
00026 #include <qobject.h>
00027 #include <qvaluelist.h>
00028 #include "kdelibs_export.h"
00029
00030 #ifdef Q_OS_UNIX
00031
00032 class KWinModulePrivate;
00033
00053 class KDECORE_EXPORT KWinModule : public QObject
00054 {
00055 Q_OBJECT
00056
00057 public:
00058
00059 enum { INFO_DESKTOP=1,
00060 INFO_WINDOWS=2,
00061 INFO_ALL=32767 };
00089 KWinModule( QObject* parent, int what );
00095 KWinModule( QObject* parent = 0 );
00096
00100 ~KWinModule();
00101
00120 const QValueList<WId>& windows() const;
00121
00128 const QValueList<WId>& stackingOrder() const;
00129
00135 bool hasWId(WId id) const;
00136
00141 const QValueList<WId>& systemTrayWindows() const;
00142
00147 int currentDesktop() const;
00148
00153 int numberOfDesktops() const;
00154
00160 WId activeWindow() const;
00161
00169 QRect workArea( int desktop = - 1 ) const;
00170
00171
00182 QRect workArea( const QValueList<WId> &excludes, int desktop = -1) const;
00183
00189 QString desktopName( int desktop ) const;
00190
00196 void setDesktopName( int desktop, const QString& name );
00197
00207 void doNotManage( const QString& title );
00208
00209
00210 signals:
00211
00216 void currentDesktopChanged( int desktop);
00217
00222 void windowAdded(WId id);
00223
00228 void windowRemoved(WId id);
00229
00234 void activeWindowChanged(WId id);
00235
00239 void desktopNamesChanged();
00240
00245 void numberOfDesktopsChanged(int num);
00246
00251 void systemTrayWindowAdded(WId id);
00252
00257 void systemTrayWindowRemoved(WId id);
00258
00262 void workAreaChanged();
00263
00269 void strutChanged();
00270
00275 void stackingOrderChanged();
00276
00277
00288 void windowChanged(WId id, const unsigned long* properties );
00289
00299 void windowChanged(WId id, unsigned int properties);
00300
00305 void windowChanged(WId id);
00306
00307 protected:
00308 virtual void connectNotify( const char* signal );
00309
00310 private:
00311 void init(int);
00312
00313 KWinModulePrivate* d;
00314
00315 friend class KWinModulePrivate;
00316 };
00317
00318 #endif //Q_OS_UNIX
00319
00320 #endif
This file is part of the documentation for kdecore Library Version 3.3.90.