• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
twinmodule.h
1 /* This file is part of the TDE libraries
2  Copyright (C) 1999 Matthias Ettrich (ettrich@kde.org)
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 /*
20  * twinmodule.h. Part of the TDE project.
21  */
22 
23 #ifndef TWINMODULE_H
24 #define TWINMODULE_H
25 
26 #include <tqobject.h>
27 #include <tqvaluelist.h>
28 #include "tdelibs_export.h"
29 
30 #ifdef Q_OS_UNIX
31 
32 class TWinModulePrivate;
33 
51 class TDECORE_EXPORT TWinModule : public TQObject
52 {
53  TQ_OBJECT
54 
55 public:
56 
57  enum { INFO_DESKTOP=1,
58  INFO_WINDOWS=2,
59  INFO_ALL=32767 };
87  TWinModule( TQObject* parent, int what );
93  TWinModule( TQObject* parent = 0 );
94 
98  ~TWinModule();
99 
118  const TQValueList<WId>& windows() const;
119 
126  const TQValueList<WId>& stackingOrder() const;
127 
133  bool hasWId(WId id) const;
134 
139  const TQValueList<WId>& systemTrayWindows() const;
140 
145  int currentDesktop() const;
146 
151  int numberOfDesktops() const;
152 
159  TQSize numberOfViewports(int desktop) const;
160 
166  TQPoint currentViewport(int desktop) const;
167 
173  WId activeWindow() const;
174 
182  TQRect workArea( int desktop = - 1 ) const;
183 
184 
195  TQRect workArea( const TQValueList<WId> &excludes, int desktop = -1) const;
196 
202  TQString desktopName( int desktop ) const;
203 
209  void setDesktopName( int desktop, const TQString& name );
210 
215  bool showingDesktop() const;
216 
226  void doNotManage( const TQString& title );
227 
228 
229 signals:
230 
235  void currentDesktopChanged( int desktop);
236 
241  void windowAdded(WId id);
242 
247  void windowRemoved(WId id);
248 
253  void activeWindowChanged(WId id);
254 
258  void desktopNamesChanged();
259 
264  void numberOfDesktopsChanged(int num);
265 
270  void systemTrayWindowAdded(WId id);
271 
276  void systemTrayWindowRemoved(WId id);
277 
281  void workAreaChanged();
282 
288  void strutChanged();
289 
294  void stackingOrderChanged();
295 
296 
307  void windowChanged(WId id, const unsigned long* properties );
308 
318  void windowChanged(WId id, unsigned int properties);
319 
324  void windowChanged(WId id);
325 
330  void showingDesktopChanged( bool showing );
331 
336  void desktopGeometryChanged(int desktop);
337 
342  void currentDesktopViewportChanged(int desktop, const TQPoint& viewport);
343 
344 protected:
345  virtual void connectNotify( const char* signal );
346 
347 private:
348  void init(int);
349 
350  TWinModulePrivate* d;
351 
352  friend class TWinModulePrivate;
353 };
354 
355 #endif //Q_OS_UNIX
356 
357 #endif
TWinModule
The class TWinModule provides information about the state of the window manager as required by window...
Definition: twinmodule.h:52
TWinModule::currentViewport
TQPoint currentViewport(int desktop) const
Returns the current viewport on the given virtual desktop.
TWinModule::stackingOrder
const TQValueList< WId > & stackingOrder() const
Returns the list of all toplevel windows currently managed by the window manager in the current stack...
TWinModule::setDesktopName
void setDesktopName(int desktop, const TQString &name)
Sets the name of the specified desktop.
TWinModule::workAreaChanged
void workAreaChanged()
The workarea has changed.
TWinModule::workArea
TQRect workArea(int desktop=- 1) const
Returns the workarea for the specified desktop, or the current work area if no desktop has been speci...
TWinModule::~TWinModule
~TWinModule()
Destructor.
TWinModule::numberOfDesktops
int numberOfDesktops() const
Returns the number of virtual desktops.
TWinModule::strutChanged
void strutChanged()
Something changed with the struts, may or may not have changed the work area.
TWinModule::activeWindowChanged
void activeWindowChanged(WId id)
Hint that <Window> is active (= has focus) now.
TWinModule::currentDesktopChanged
void currentDesktopChanged(int desktop)
Switched to another virtual desktop.
TWinModule::currentDesktop
int currentDesktop() const
Returns the current virtual desktop.
TWinModule::numberOfDesktopsChanged
void numberOfDesktopsChanged(int num)
The number of desktops changed.
TWinModule::currentDesktopViewportChanged
void currentDesktopViewportChanged(int desktop, const TQPoint &viewport)
The viewport position has changed.
TWinModule::systemTrayWindows
const TQValueList< WId > & systemTrayWindows() const
Returns a list of the system tray windows.
TWinModule::stackingOrderChanged
void stackingOrderChanged()
Emitted when the stacking order of the window changed.
TWinModule::windowAdded
void windowAdded(WId id)
A window has been added.
TWinModule::desktopNamesChanged
void desktopNamesChanged()
Desktops have been renamed.
TWinModule::desktopGeometryChanged
void desktopGeometryChanged(int desktop)
The state of showing the desktop has changed.
TWinModule::doNotManage
void doNotManage(const TQString &title)
Informs twin via dcop to not manage a window with the specified title.
TWinModule::TWinModule
TWinModule(TQObject *parent, int what)
Creates a TWinModule object and connects to the window manager.
TWinModule::windowChanged
void windowChanged(WId id)
The window changed somehow.
TWinModule::windowChanged
void windowChanged(WId id, unsigned int properties)
TWinModule::showingDesktop
bool showingDesktop() const
Returns the state of showing the desktop.
TWinModule::desktopName
TQString desktopName(int desktop) const
Returns the name of the specified desktop.
TWinModule::workArea
TQRect workArea(const TQValueList< WId > &excludes, int desktop=-1) const
Returns the workarea for the specified desktop, or the current work area if no desktop has been speci...
TWinModule::windowRemoved
void windowRemoved(WId id)
A window has been removed.
TWinModule::TWinModule
TWinModule(TQObject *parent=0)
Creates a TWinModule object and connects to the window manager.
TWinModule::windowChanged
void windowChanged(WId id, const unsigned long *properties)
The window changed.
TWinModule::showingDesktopChanged
void showingDesktopChanged(bool showing)
The state of showing the desktop has changed.
TWinModule::numberOfViewports
TQSize numberOfViewports(int desktop) const
Returns the number of viewports in x and y direction on the virtual desktop.
TWinModule::activeWindow
WId activeWindow() const
Returns the currently active window, or 0 if no window is active.
TWinModule::systemTrayWindowRemoved
void systemTrayWindowRemoved(WId id)
Emitted when a dock window has been removed.
TWinModule::windows
const TQValueList< WId > & windows() const
Returns the list of all toplevel windows currently managed by the window manager in the order of crea...
TWinModule::systemTrayWindowAdded
void systemTrayWindowAdded(WId id)
Emitted when a dock window has been added.
TWinModule::hasWId
bool hasWId(WId id) const
Test to see if id still managed at present.

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.1
This website is maintained by Timothy Pearson.