Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The WindowManagement class allows you to monitor and control the application windows in the system. More...
#include <WindowManagement>
Inherits QObject.
The WindowManagement class allows you to monitor and control the application windows in the system.
The WindowManagement class allows server windows to be protected, preventing other windows from obscuring them, and docked to the edge of the screen.
The WindowManagement class also updates the value space with the following keys that can be used to track window status:
Key | Description |
---|---|
/UI/ActiveWindow/Title | The title of the currently active window |
/UI/ActiveWindow/Rect | The rectangle of the currently active window |
/UI/ActiveWindow/Caption | The caption of the currently active window. The caption is the same as the title except that it isn't changed for popup windows that only consume a small part of the screen. |
These value space keys are updated if either the WindowManagement task is running, or at least one instance of the WindowManagement class has been instantiated.
This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.
The DockArea enum type defines the areas where widgets can be docked:
Constant | Value | Description |
---|---|---|
WindowManagement::Top | 0 | - the top of the screen. |
WindowManagement::Bottom | 1 | - the Bottom of the screen. |
WindowManagement::Left | 2 | - the Left of the screen. |
WindowManagement::Right | 3 | - the Right of the screen. |
Construct a new WindowManagement instance with the specified parent.
Returns a reference to the name of the active application, ie the one that is visible. If there is no active application, the string is returned empty.
Sends a close message to the window winId. This is used for applications that do not support the Qt Extended soft menu bar.
See also supportsSoftMenus().
Docks a top-level widget window on a side of the screen specified by placement. The widget is placed according to the order that it was docked, its sizeHint() and whether previously docked widgets are visible. The desktop area available to QWidget::showMaximized() will exclude any visible docked widgets.
For example, if a widget is docked at the bottom of the screen, its sizeHint() will define its height and it will use the full width of the screen. If a widget is then docked to the right, its sizeHint() will define its width and it will be as high as possible without covering the widget docked at the bottom.
This function is useful for reserving system areas such as taskbars and input methods that should not be covered by applications. Even after calling this method, an application can manually position itself over the docked window. To prevent this, also call WindowManagement::protectWindow() on the window.
This is an overloaded member function, provided for convenience.
Normally the QWidget::sizeHint() of the docked widget is used to determine its docked size. If the sizeHint() is not correct, the size parameter can be used to override it. The window, placement and screen parameters are used as above.
Hides the docked window. While you can call QWidget::hide() on the docked window, using this function will result in smoother screen updates.
Prevent application windows from being raised above the provided toplevel window. If an application window attempts to obscure any of the protected region, the protected window will immediately be raised above it.
Sets window as the lowest in the screen stacking order, below all normal and docked windows. This is normally used only for the QAbstractServerInterface widget.
Shows the docked window. While you can call QWidget::show() on the docked window, using this function may result in smoother screen updates.
Returns true if winId supports the Qt Extended soft menu bar via the QSoftMenuBar class; false otherwise.
Under QWS, this function always returns true. Under X11, it will return false if the application uses a widget toolkit other than that of Qtopia. The soft menu bar changes its behavior so that the "back" button will send a close message to the foreign application using closeWindow().
See also closeWindow().
Emitted whenever a window becomes active or the active window's caption changes. rect is the rectangle covered by the window.
Emitted whenever the active window caption changes.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |