• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

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 <kuniqueapplication.h>
00026 #include <kxerrorhandler.h>
00027 #include <QtGui/QBitmap>
00028 #include <QDesktopWidget>
00029 #include <QtGui/QDialog>
00030 #include <QtDBus/QtDBus>
00031 #include <kdebug.h>
00032 
00033 class KWindowSystemStaticContainer {
00034 public:
00035     KWindowSystemStaticContainer() : d(0) {}
00036     KWindowSystem kwm;
00037     KWindowSystemPrivate* d;
00038 };
00039 
00040 K_GLOBAL_STATIC(KWindowSystemStaticContainer, g_kwmInstanceContainer)
00041 
00042 KWindowSystem* KWindowSystem::self()
00043 {
00044     return &(g_kwmInstanceContainer->kwm);
00045 }
00046 
00047 int KWindowSystem::currentDesktop()
00048 {
00049     return 1;
00050 }
00051 
00052 int KWindowSystem::numberOfDesktops()
00053 {
00054     return 1;
00055 }
00056 
00057 void KWindowSystem::setCurrentDesktop( int desktop )
00058 {
00059     kDebug() << "KWindowSystem::setCurrentDesktop( int desktop ) isn't yet implemented!";
00060     //TODO
00061 }
00062 
00063 void KWindowSystem::setOnAllDesktops( WId win, bool b )
00064 {
00065      kDebug() << "KWindowSystem::setOnAllDesktops( WId win, bool b ) isn't yet implemented!";
00066      //TODO
00067 }
00068 
00069 void KWindowSystem::setOnDesktop( WId win, int desktop )
00070 {
00071      //TODO
00072      kDebug() << "KWindowSystem::setOnDesktop( WId win, int desktop ) isn't yet implemented!";
00073 }
00074 
00075 WId KWindowSystem::activeWindow()
00076 {
00077     //return something
00078     kDebug() << "WId KWindowSystem::activeWindow()   isn't yet implemented!";
00079     return 0;
00080 }
00081 
00082 void KWindowSystem::activateWindow( WId win, long time )
00083 {
00084     //TODO
00085     kDebug() << "KWindowSystem::activateWindow( WId win, long time )isn't yet implemented!";
00086 }
00087 
00088 void KWindowSystem::forceActiveWindow( WId win, long time )
00089 {
00090     //TODO
00091     kDebug() << "KWindowSystem::forceActiveWindow( WId win, long time ) isn't yet implemented!";
00092 }
00093 
00094 void KWindowSystem::demandAttention( WId win, bool set )
00095 {
00096      //TODO
00097      kDebug() << "KWindowSystem::demandAttention( WId win, bool set ) isn't yet implemented!";
00098 }
00099 
00100 QPixmap KWindowSystem::icon( WId win, int width, int height, bool scale )
00101 {
00102     kDebug() << "QPixmap KWindowSystem::icon( WId win, int width, int height, bool scale ) isn't yet implemented!";
00103     return QPixmap();
00104 }
00105 
00106 
00107 QPixmap KWindowSystem::icon( WId win, int width, int height, bool scale, int flags )
00108 {
00109     kDebug() << "QPixmap KWindowSystem::icon( WId win, int width, int height, bool scale, int flags ) isn't yet implemented!";
00110     return QPixmap();
00111 }
00112 
00113 void KWindowSystem::setIcons( WId win, const QPixmap& icon, const QPixmap& miniIcon )
00114 {
00115     //TODO
00116     kDebug() << "KWindowSystem::setIcons( WId win, const QPixmap& icon, const QPixmap& miniIcon ) isn't yet implemented!";
00117 }
00118 
00119 
00120 void KWindowSystem::setState( WId win, unsigned long state )
00121 {
00122    //TODO
00123    kDebug() << "KWindowSystem::setState( WId win, unsigned long state ) isn't yet implemented!";
00124 }
00125 
00126 void KWindowSystem::clearState( WId win, unsigned long state )
00127 {
00128     //TODO
00129     kDebug() << "KWindowSystem::clearState( WId win, unsigned long state ) isn't yet implemented!";
00130 }
00131 
00132 void KWindowSystem::minimizeWindow( WId win, bool animation)
00133 {
00134      //TODO
00135      kDebug() << "KWindowSystem::minimizeWindow( WId win, bool animation) isn't yet implemented!";
00136 }
00137 
00138 void KWindowSystem::unminimizeWindow( WId win, bool animation )
00139 {
00140      //TODO
00141      kDebug() << "KWindowSystem::unminimizeWindow( WId win, bool animation ) isn't yet implemented!";
00142 }
00143 
00144 void KWindowSystem::raiseWindow( WId win )
00145 {
00146      //TODO
00147      kDebug() << "KWindowSystem::raiseWindow( WId win ) isn't yet implemented!";
00148 }
00149 
00150 void KWindowSystem::lowerWindow( WId win )
00151 {
00152      //TODO
00153      kDebug() << "KWindowSystem::lowerWindow( WId win ) isn't yet implemented!";
00154 }
00155 
00156 bool KWindowSystem::compositingActive()
00157 {
00158     return false;
00159 }
00160 
00161 QRect KWindowSystem::workArea( int desktop )
00162 {
00163     //TODO
00164     kDebug() << "QRect KWindowSystem::workArea( int desktop ) isn't yet implemented!";
00165     return QRect();
00166 }
00167 
00168 QRect KWindowSystem::workArea( const QList<WId>& exclude, int desktop )
00169 {
00170     //TODO
00171     kDebug() << "QRect KWindowSystem::workArea( const QList<WId>& exclude, int desktop ) isn't yet implemented!";
00172     return QRect();
00173 }
00174 
00175 QString KWindowSystem::desktopName( int desktop )
00176 {
00177     return i18n("Desktop %1",  desktop );
00178 }
00179 
00180 void KWindowSystem::setDesktopName( int desktop, const QString& name )
00181 {
00182      kDebug() << "KWindowSystem::setDesktopName( int desktop, const QString& name ) isn't yet implemented!";
00183     //TODO
00184 }
00185 
00186 bool KWindowSystem::showingDesktop()
00187 {
00188     return false;
00189 }
00190 
00191 void KWindowSystem::setUserTime( WId win, long time )
00192 {
00193     kDebug() << "KWindowSystem::setUserTime( WId win, long time ) isn't yet implemented!";
00194     //TODO
00195 }
00196 
00197 bool KWindowSystem::icccmCompliantMappingState()
00198 {
00199     return false;
00200 }
00201 
00202 void KWindowSystem::connectNotify( const char* signal )
00203 {
00204   kDebug() << "connectNotify( const char* signal )  isn't yet implemented!";
00205 //TODO
00206 }
00207 
00208 void KWindowSystem::setExtendedStrut( WId win, int left_width, int left_start, int left_end,
00209         int right_width, int right_start, int right_end, int top_width, int top_start, int top_end,
00210         int bottom_width, int bottom_start, int bottom_end )
00211 {
00212   kDebug() << "KWindowSystem::setExtendedStrut isn't yet implemented!";
00213   //TODO
00214 }
00215 void KWindowSystem::setStrut( WId win, int left, int right, int top, int bottom )
00216 {
00217   kDebug() << "KWindowSystem::setStrut isn't yet implemented!";
00218   //TODO
00219 }
00220 
00221 QString KWindowSystem::readNameProperty( WId window, unsigned long atom )
00222 {
00223   //TODO
00224   kDebug() << "QString KWindowSystem::readNameProperty( WId window, unsigned long atom ) isn't yet implemented!";
00225   return QString();
00226 }
00227 
00228 void KWindowSystem::doNotManage( const QString& title )
00229 {
00230   //TODO
00231   kDebug() << "KWindowSystem::doNotManage( const QString& title ) isn't yet implemented!";
00232 }
00233 
00234 QList<WId> KWindowSystem::stackingOrder()
00235 {
00236   //TODO
00237   QList<WId> lst;
00238   kDebug() << "QList<WId> KWindowSystem::stackingOrder() isn't yet implemented!";
00239   return lst;
00240 }
00241 
00242 const QList<WId>& KWindowSystem::windows()
00243 {
00244   //TODO
00245   static QList<WId> lst;
00246   kDebug() << "const QList<WId>& KWindowSystem::windows()  isn't yet implemented!";
00247   return lst;
00248 }
00249 
00250 void KWindowSystem::setType( WId win, NET::WindowType windowType )
00251 {
00252  //TODO
00253  kDebug() << "setType( WId win, NET::WindowType windowType ) isn't yet implemented!";
00254 }
00255 
00256 void KWindowSystem::setMainWindow( QWidget* subwindow, WId id )
00257 {
00258  //TODO
00259  kDebug(240) << "KWindowSystem::setMainWindow( QWidget*, WId ) isn't yet implemented!";
00260 }
00261 
00262 void KWindowSystem::allowExternalProcessWindowActivation( int pid )
00263 {
00264     // TODO
00265     kDebug() << "KWindowSystem::allowExternalProcessWindowActivation( int pid ) isn't yet implemented!";
00266 }
00267 
00268 #include "kwindowsystem.moc"
00269 

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal