kwinmodule.h00001
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
00052 class KDECORE_EXPORT KWinModule : public QObject
00053 {
00054 Q_OBJECT
00055
00056 public:
00057
00058 enum { INFO_DESKTOP=1,
00059 INFO_WINDOWS=2,
00060 INFO_ALL=32767 };
00088 KWinModule( QObject* parent, int what );
00094 KWinModule( QObject* parent = 0 );
00095
00099 ~KWinModule();
00100
00119 const QValueList<WId>& windows() const;
00120
00127 const QValueList<WId>& stackingOrder() const;
00128
00134 bool hasWId(WId id) const;
00135
00140 const QValueList<WId>& systemTrayWindows() const;
00141
00146 int currentDesktop() const;
00147
00152 int numberOfDesktops() const;
00153
00159 WId activeWindow() const;
00160
00168 QRect workArea( int desktop = - 1 ) const;
00169
00170
00181 QRect workArea( const QValueList<WId> &excludes, int desktop = -1) const;
00182
00188 QString desktopName( int desktop ) const;
00189
00195 void setDesktopName( int desktop, const QString& name );
00196
00201 bool showingDesktop() const;
00202
00212 void doNotManage( const QString& title );
00213
00214
00215 signals:
00216
00221 void currentDesktopChanged( int desktop);
00222
00227 void windowAdded(WId id);
00228
00233 void windowRemoved(WId id);
00234
00239 void activeWindowChanged(WId id);
00240
00244 void desktopNamesChanged();
00245
00250 void numberOfDesktopsChanged(int num);
00251
00256 void systemTrayWindowAdded(WId id);
00257
00262 void systemTrayWindowRemoved(WId id);
00263
00267 void workAreaChanged();
00268
00274 void strutChanged();
00275
00280 void stackingOrderChanged();
00281
00282
00293 void windowChanged(WId id, const unsigned long* properties );
00294
00304 void windowChanged(WId id, unsigned int properties);
00305
00310 void windowChanged(WId id);
00311
00316 void showingDesktopChanged( bool showing );
00317
00318 protected:
00319 virtual void connectNotify( const char* signal );
00320
00321 private:
00322 void init(int);
00323
00324 KWinModulePrivate* d;
00325
00326 friend class KWinModulePrivate;
00327 };
00328
00329 #endif //Q_OS_UNIX
00330
00331 #endif
|