• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

superkaramba

  • sources
  • kde-4.12
  • kdeutils
  • superkaramba
  • src
showdesktop.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2003-2004 Adam Geitgey <adam@rootnode.org>
3  * Copyright (c) 2005 Ryan Nickell <p0z3r@earthlink.net>
4  *
5  * This file is part of SuperKaramba.
6  *
7  * SuperKaramba is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * SuperKaramba is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with SuperKaramba; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  ****************************************************************************/
21 
22 #ifndef __showdesktop_h__
23 #define __showdesktop_h__
24 
25 #include <QObject>
26 
27 #include <netwm.h>
28 
29 class KWindowSystem;
30 
34 class ShowDesktop : public QObject
35 {
36  Q_OBJECT
37 
38 public:
39  static ShowDesktop* self();
40  bool desktopShowing()
41  {
42  return showingDesktop;
43  }
44 
45 public slots:
46  void showDesktop(bool show);
47  void toggle()
48  {
49  showDesktop(!desktopShowing());
50  }
51 
52 signals:
53  void desktopShown(bool shown);
54 
55 private slots:
56  void slotCurrentDesktopChanged(int);
57  void slotWindowChanged(WId w, unsigned int dirty);
58 
59 private:
60  ShowDesktop();
61 
62  bool showingDesktop;
63  KWindowSystem* kWinModule;
64  QList<WId> iconifiedList;
65 
66 };
67 
68 #endif
ShowDesktop::toggle
void toggle()
Definition: showdesktop.h:47
ShowDesktop::showDesktop
void showDesktop(bool show)
Definition: showdesktop.cpp:80
QObject
ShowDesktop
Singleton class that handles desktop access (minimizing all windows)
Definition: showdesktop.h:34
ShowDesktop::desktopShown
void desktopShown(bool shown)
ShowDesktop::desktopShowing
bool desktopShowing()
Definition: showdesktop.h:40
show
int show(long widget)
Definition: misc.cpp:600
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal