kwinmodule.h
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 1999 Matthias Ettrich (ettrich@kde.org) 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00017 Boston, MA 02111-1307, USA. 00018 */ 00019 /* 00020 * kwinmodule.h. Part of the KDE project. 00021 */ 00022 00023 #ifndef KWINMODULE_H 00024 #define KWINMODULE_H 00025 00026 #include <qobject.h> 00027 #include <qvaluelist.h> 00028 00029 class KWinModulePrivate; 00030 00050 class KWinModule : public QObject 00051 { 00052 Q_OBJECT 00053 00054 public: 00055 00061 KWinModule( QObject* parent = 0 ); 00062 00066 ~KWinModule(); 00067 00086 const QValueList<WId>& windows() const; 00087 00094 const QValueList<WId>& stackingOrder() const; 00095 00101 bool hasWId(WId id) const; 00102 00107 const QValueList<WId>& systemTrayWindows() const; 00108 00113 int currentDesktop() const; 00114 00119 int numberOfDesktops() const; 00120 00126 WId activeWindow() const; 00127 00135 QRect workArea( int desktop = - 1 ) const; 00136 00137 00148 QRect workArea( const QValueList<WId> &excludes, int desktop = -1) const; 00149 00155 QString desktopName( int desktop ) const; 00156 00162 void setDesktopName( int desktop, const QString& name ); 00163 00173 void doNotManage( const QString& title ); 00174 00175 00176 signals: 00177 00182 void currentDesktopChanged( int desktop); 00183 00188 void windowAdded(WId id); 00189 00194 void windowRemoved(WId id); 00195 00200 void activeWindowChanged(WId); 00201 00205 void desktopNamesChanged(); 00206 00211 void numberOfDesktopsChanged(int num); 00212 00217 void systemTrayWindowAdded(WId id); 00218 00223 void systemTrayWindowRemoved(WId id); 00224 00228 void workAreaChanged(); 00229 00234 void strutChanged(); 00235 00240 void stackingOrderChanged(); 00241 00242 00251 void windowChanged(WId id, unsigned int properties); 00252 00257 void windowChanged(WId id); 00258 00259 private: 00260 KWinModulePrivate* d; 00261 00262 friend class KWinModulePrivate; 00263 }; 00264 00265 #endif