KDEUI
kwindowsystem_qws.cpp
Go to the documentation of this file.
00001 /* 00002 This file is part of the KDE libraries 00003 Copyright (C) 2007 Laurent Montel (montel@kde.org) 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #include "kwindowsystem.h" 00022 00023 #include <kiconloader.h> 00024 #include <klocale.h> 00025 #include <kxerrorhandler.h> 00026 #include <QtGui/QBitmap> 00027 #include <QDesktopWidget> 00028 #include <QtGui/QDialog> 00029 #include <QtDBus/QtDBus> 00030 #include <kdebug.h> 00031 00032 class KWindowSystemStaticContainer { 00033 public: 00034 KWindowSystemStaticContainer() : d(0) {} 00035 KWindowSystem kwm; 00036 KWindowSystemPrivate* d; 00037 }; 00038 00039 K_GLOBAL_STATIC(KWindowSystemStaticContainer, g_kwmInstanceContainer) 00040 00041 KWindowSystem* KWindowSystem::self() 00042 { 00043 return &(g_kwmInstanceContainer->kwm); 00044 } 00045 00046 int KWindowSystem::currentDesktop() 00047 { 00048 return 1; 00049 } 00050 00051 int KWindowSystem::numberOfDesktops() 00052 { 00053 return 1; 00054 } 00055 00056 void KWindowSystem::setCurrentDesktop( int desktop ) 00057 { 00058 kDebug() << "KWindowSystem::setCurrentDesktop( int desktop ) isn't yet implemented!"; 00059 //TODO 00060 } 00061 00062 void KWindowSystem::setOnAllDesktops( WId win, bool b ) 00063 { 00064 kDebug() << "KWindowSystem::setOnAllDesktops( WId win, bool b ) isn't yet implemented!"; 00065 //TODO 00066 } 00067 00068 void KWindowSystem::setOnDesktop( WId win, int desktop ) 00069 { 00070 //TODO 00071 kDebug() << "KWindowSystem::setOnDesktop( WId win, int desktop ) isn't yet implemented!"; 00072 } 00073 00074 WId KWindowSystem::activeWindow() 00075 { 00076 //return something 00077 kDebug() << "WId KWindowSystem::activeWindow() isn't yet implemented!"; 00078 return 0; 00079 } 00080 00081 void KWindowSystem::activateWindow( WId win, long time ) 00082 { 00083 //TODO 00084 kDebug() << "KWindowSystem::activateWindow( WId win, long time )isn't yet implemented!"; 00085 } 00086 00087 void KWindowSystem::forceActiveWindow( WId win, long time ) 00088 { 00089 //TODO 00090 kDebug() << "KWindowSystem::forceActiveWindow( WId win, long time ) isn't yet implemented!"; 00091 } 00092 00093 void KWindowSystem::demandAttention( WId win, bool set ) 00094 { 00095 //TODO 00096 kDebug() << "KWindowSystem::demandAttention( WId win, bool set ) isn't yet implemented!"; 00097 } 00098 00099 QPixmap KWindowSystem::icon( WId win, int width, int height, bool scale ) 00100 { 00101 kDebug() << "QPixmap KWindowSystem::icon( WId win, int width, int height, bool scale ) isn't yet implemented!"; 00102 return QPixmap(); 00103 } 00104 00105 00106 QPixmap KWindowSystem::icon( WId win, int width, int height, bool scale, int flags ) 00107 { 00108 kDebug() << "QPixmap KWindowSystem::icon( WId win, int width, int height, bool scale, int flags ) isn't yet implemented!"; 00109 return QPixmap(); 00110 } 00111 00112 void KWindowSystem::setIcons( WId win, const QPixmap& icon, const QPixmap& miniIcon ) 00113 { 00114 //TODO 00115 kDebug() << "KWindowSystem::setIcons( WId win, const QPixmap& icon, const QPixmap& miniIcon ) isn't yet implemented!"; 00116 } 00117 00118 00119 void KWindowSystem::setState( WId win, unsigned long state ) 00120 { 00121 //TODO 00122 kDebug() << "KWindowSystem::setState( WId win, unsigned long state ) isn't yet implemented!"; 00123 } 00124 00125 void KWindowSystem::clearState( WId win, unsigned long state ) 00126 { 00127 //TODO 00128 kDebug() << "KWindowSystem::clearState( WId win, unsigned long state ) isn't yet implemented!"; 00129 } 00130 00131 void KWindowSystem::minimizeWindow( WId win, bool animation) 00132 { 00133 //TODO 00134 kDebug() << "KWindowSystem::minimizeWindow( WId win, bool animation) isn't yet implemented!"; 00135 } 00136 00137 void KWindowSystem::unminimizeWindow( WId win, bool animation ) 00138 { 00139 //TODO 00140 kDebug() << "KWindowSystem::unminimizeWindow( WId win, bool animation ) isn't yet implemented!"; 00141 } 00142 00143 void KWindowSystem::raiseWindow( WId win ) 00144 { 00145 //TODO 00146 kDebug() << "KWindowSystem::raiseWindow( WId win ) isn't yet implemented!"; 00147 } 00148 00149 void KWindowSystem::lowerWindow( WId win ) 00150 { 00151 //TODO 00152 kDebug() << "KWindowSystem::lowerWindow( WId win ) isn't yet implemented!"; 00153 } 00154 00155 bool KWindowSystem::compositingActive() 00156 { 00157 return false; 00158 } 00159 00160 QRect KWindowSystem::workArea( int desktop ) 00161 { 00162 //TODO 00163 kDebug() << "QRect KWindowSystem::workArea( int desktop ) isn't yet implemented!"; 00164 return QRect(); 00165 } 00166 00167 QRect KWindowSystem::workArea( const QList<WId>& exclude, int desktop ) 00168 { 00169 //TODO 00170 kDebug() << "QRect KWindowSystem::workArea( const QList<WId>& exclude, int desktop ) isn't yet implemented!"; 00171 return QRect(); 00172 } 00173 00174 QString KWindowSystem::desktopName( int desktop ) 00175 { 00176 return i18n("Desktop %1", desktop ); 00177 } 00178 00179 void KWindowSystem::setDesktopName( int desktop, const QString& name ) 00180 { 00181 kDebug() << "KWindowSystem::setDesktopName( int desktop, const QString& name ) isn't yet implemented!"; 00182 //TODO 00183 } 00184 00185 bool KWindowSystem::showingDesktop() 00186 { 00187 return false; 00188 } 00189 00190 void KWindowSystem::setUserTime( WId win, long time ) 00191 { 00192 kDebug() << "KWindowSystem::setUserTime( WId win, long time ) isn't yet implemented!"; 00193 //TODO 00194 } 00195 00196 bool KWindowSystem::icccmCompliantMappingState() 00197 { 00198 return false; 00199 } 00200 00201 void KWindowSystem::connectNotify( const char* signal ) 00202 { 00203 kDebug() << "connectNotify( const char* signal ) isn't yet implemented!"; 00204 //TODO 00205 } 00206 00207 void KWindowSystem::setExtendedStrut( WId win, int left_width, int left_start, int left_end, 00208 int right_width, int right_start, int right_end, int top_width, int top_start, int top_end, 00209 int bottom_width, int bottom_start, int bottom_end ) 00210 { 00211 kDebug() << "KWindowSystem::setExtendedStrut isn't yet implemented!"; 00212 //TODO 00213 } 00214 void KWindowSystem::setStrut( WId win, int left, int right, int top, int bottom ) 00215 { 00216 kDebug() << "KWindowSystem::setStrut isn't yet implemented!"; 00217 //TODO 00218 } 00219 00220 QString KWindowSystem::readNameProperty( WId window, unsigned long atom ) 00221 { 00222 //TODO 00223 kDebug() << "QString KWindowSystem::readNameProperty( WId window, unsigned long atom ) isn't yet implemented!"; 00224 return QString(); 00225 } 00226 00227 void KWindowSystem::doNotManage( const QString& title ) 00228 { 00229 //TODO 00230 kDebug() << "KWindowSystem::doNotManage( const QString& title ) isn't yet implemented!"; 00231 } 00232 00233 QList<WId> KWindowSystem::stackingOrder() 00234 { 00235 //TODO 00236 QList<WId> lst; 00237 kDebug() << "QList<WId> KWindowSystem::stackingOrder() isn't yet implemented!"; 00238 return lst; 00239 } 00240 00241 const QList<WId>& KWindowSystem::windows() 00242 { 00243 //TODO 00244 static QList<WId> lst; 00245 kDebug() << "const QList<WId>& KWindowSystem::windows() isn't yet implemented!"; 00246 return lst; 00247 } 00248 00249 void KWindowSystem::setType( WId win, NET::WindowType windowType ) 00250 { 00251 //TODO 00252 kDebug() << "setType( WId win, NET::WindowType windowType ) isn't yet implemented!"; 00253 } 00254 00255 void KWindowSystem::setMainWindow( QWidget* subwindow, WId id ) 00256 { 00257 //TODO 00258 kDebug(240) << "KWindowSystem::setMainWindow( QWidget*, WId ) isn't yet implemented!"; 00259 } 00260 00261 void KWindowSystem::allowExternalProcessWindowActivation( int pid ) 00262 { 00263 // TODO 00264 kDebug() << "KWindowSystem::allowExternalProcessWindowActivation( int pid ) isn't yet implemented!"; 00265 } 00266 00267 void KWindowSystem::setBlockingCompositing( WId window, bool active ) 00268 { 00269 //TODO 00270 kDebug() << "setBlockingCompositing( WId window, bool active ) isn't yet implemented!"; 00271 } 00272 00273 #include "kwindowsystem.moc" 00274
KDE 4.7 API Reference