class KWMModuleApplication
|
Base class for KDE Window Manager modules.
More... |
|
|
Public Members
- KWMModuleApplication ( int &argc, char *argv[])
- KWMModuleApplication ( int &argc, char *argv[], const QString& rAppName)
- virtual ~KWMModuleApplication ()
- void connectToKWM (bool dock_module = false)
- virtual bool x11EventFilter ( XEvent * )
- QList <Window> windows
- QList <Window> windows_sorted
- bool hasWindow (Window)
- QList <Window> dock_windows
Signals
Detailed Description
The class KWMModuleApplication is the base class for KDE
windowmanager modules. It mainly informs a module about all
currently managed windows and changes to them (via Qt
signals). There are no methods to manipulate windows. These are
defined in the class KWM (see kwm.h).
void connectToKWM (bool dock_module = false)
|
Connect to KWM. This cannot be done in the constructor, since your
application probably is not ready to recieve messages at this state.
bool x11EventFilter ( XEvent * )
|
[virtual]
if you inherit KWMModuleApplication and overload x11EventFilter,
be sure to call its x11EventFilter in your x11EventFilter:
if (KWMModuleApplication::x11EventFilter(XEvent *))
return True;
A list of all toplevel windows currently managed by the
windowmanger in the order of creation. Please do not rely on
indexes of this list: Whenever you enter Qt's eventloop in your
application it may happen, that entries are removed or added! So
your module should perhaps work on a copy of this list and verify a
window with hasWindow() before any operations.
A list of all toplevel windows currently managed by the
windowmanger in the current stacking order (from lower to
higher). May be useful for pagers.
Is <Window> still managed at present?
The dock windows. Only valid if you are succesfully connected as
docking module
[signal]
Note that an init() may also be emitted if the window manager is
restarted. So your module MUST react on it by clearing all internal
data structures.
[signal]
This signal is emitted when a connect is complete, i.e. when
all existing windows or soundevents have been transfered to
the module
[signal]
Switch to another virtual desktop
[signal]
Add a window
[signal]
Add a dialog window. Note that dialog windows are also included
in the set of windows you recieve with windowAdd (see above).
The dialogs are reported extra (before the windowAdd) to allow a
taskbar to exclude them. The dialogWindowAdd signal is guaranteed
to be emitted before the correspondinging windowAdd signal.
[signal]
Remove a window
[signal]
A window has been changed (size, title, etc.)
[signal]
Raise a window
[signal]
Lower a window
[signal]
Hint that <Window> is active (= has focus) now.
[signal]
A command kwm did not understand. Maybe it is for
your module.
void windowIconChanged (Window)
|
[signal]
This is not integrated into windowChange since reading
icons is somewhat expensive via the KWM class.
void desktopNameChange (int, QString)
|
[signal]
The specified desktop got a new name
void desktopNumberChange (int)
|
[signal]
The number of desktops changed
[signal]
Add a dock window
void dockWindowRemove (Window)
|
[signal]
Remove a dock window
[signal]
Play/register/unregister a sound
- Version: $Id: kwmmapp.h,v 1.12 1999/01/12 12:45:31 ettrich Exp $
- Author: Matthias Ettrich (ettrich@kde.org)
- Generated: prospector@porky.devel.redhat.com on Fri Feb 23 19:52:59 200.