#include <taskmanager.h>
Inherits TQObject.
Public Slots | |
| void | maximize () |
| void | restore () |
| void | iconify () |
| void | close () |
| void | raise () |
| void | lower () |
| void | activate () |
| void | activateRaiseOrIconify () |
| void | setAlwaysOnTop (bool) |
| void | toggleAlwaysOnTop () |
| void | setShaded (bool) |
| void | toggleShaded () |
| void | toDesktop (int) |
| void | toCurrentDesktop () |
| void | publishIconGeometry (TQRect) |
| void | updateThumbnail () |
Signals | |
| void | changed () |
| void | iconChanged () |
| void | activated () |
| void | deactivated () |
| void | thumbnailChanged () |
Public Member Functions | |
| Task (WId win, TaskManager *parent, const char *name=0) | |
| TaskManager * | taskManager () const |
| WId | window () const |
| TQString | name () const |
| TQString | visibleName () const |
| int | desktop () const |
| TQString | visibleNameWithState () const |
| TQString | iconName () const |
| TQString | visibleIconName () const |
| TQString | className () |
| TQString | classClass () |
| TQValueList< WId > | transients () const |
| TQPixmap | pixmap () const |
| TQPixmap | bestIcon (int size, bool &isStaticIcon) |
| TQPixmap | icon (int width, int height, bool allowResize=false) |
| bool | isMaximized () const |
| bool | isIconified () const |
| bool | isShaded () const |
| bool | isActive () const |
| bool | isOnTop () const |
| bool | isOnCurrentDesktop () const |
| bool | isOnAllDesktops () const |
| bool | isAlwaysOnTop () const |
| bool | isModified () const |
| void | refresh (bool icon=false) |
| void | addTransient (WId w) |
| void | removeTransient (WId w) |
| bool | hasTransient (WId w) const |
| void | setActive (bool a) |
| double | thumbnailSize () const |
| void | setThumbnailSize (double size) |
| bool | hasThumbnail () const |
| const TQPixmap & | thumbnail () const |
Static Public Member Functions | |
| static bool | idMatch (const TQString &, const TQString &) |
Protected Slots | |
| void | generateThumbnail () |
Detailed Description
A dynamic interface to a task (main window).
- See also
- TaskManager
- TWinModule
Definition at line 49 of file taskmanager.h.
Member Function Documentation
◆ activate
|
slot |
Activate the task's window.
Definition at line 615 of file taskmanager.cpp.
◆ activated
|
signal |
Indicates that this task is now the active task.
◆ activateRaiseOrIconify
|
slot |
Perform the action that is most appropriate for this task.
If it is not active, activate it. Else if it is not the top window, raise it. Otherwise, iconify it.
Definition at line 622 of file taskmanager.cpp.
◆ bestIcon()
| TQPixmap Task::bestIcon | ( | int | size, |
| bool & | isStaticIcon | ||
| ) |
Returns the best icon for any of the TDEIcon::StdSizes.
If there is no icon of the specified size specified in the WM hints, it will try to get one using TDEIconLoader.
bool gotStaticIcon; TQPixmap icon = myTask->icon( TDEIcon::SizeMedium, gotStaticIcon );
- Parameters
-
size Any of the constants in TDEIcon::StdSizes. isStaticIcon Set to true if TDEIconLoader was used, false otherwise.
- See also
- TDEIcon
Definition at line 483 of file taskmanager.cpp.
◆ changed
|
signal |
Indicates that this task has changed in some way.
◆ close
|
slot |
Activate the task's window.
Definition at line 597 of file taskmanager.cpp.
◆ deactivated
|
signal |
Indicates that this task is no longer the active task.
◆ desktop()
|
inline |
Returns the desktop on which this task's window resides.
Definition at line 84 of file taskmanager.h.
◆ hasThumbnail()
|
inline |
Returns true if this task has a thumbnail.
Note that this method can only ever return true after a call to updateThumbnail().
Definition at line 220 of file taskmanager.h.
◆ icon()
| TQPixmap Task::icon | ( | int | width, |
| int | height, | ||
| bool | allowResize = false |
||
| ) |
Tries to find an icon for the task with the specified size.
If there is no icon that matches then it will either resize the closest available icon or return a null pixmap depending on the value of allowResize.
Note that the last icon is cached, so a sequence of calls with the same parameters will only query the NET properties if the icon has changed or none was found.
Definition at line 464 of file taskmanager.cpp.
◆ iconChanged
|
signal |
Indicates that the icon for this task has changed.
◆ iconify
|
slot |
Iconify the task.
Definition at line 592 of file taskmanager.cpp.
◆ idMatch()
|
static |
Returns true iff the windows with the specified ids should be grouped together in the task list.
Definition at line 560 of file taskmanager.cpp.
◆ isActive()
| bool Task::isActive | ( | ) | const |
Returns true if the task's window is the active window.
Definition at line 411 of file taskmanager.cpp.
◆ isAlwaysOnTop()
| bool Task::isAlwaysOnTop | ( | ) | const |
Returns true if the task's window will remain at the top of the stacking order.
Definition at line 391 of file taskmanager.cpp.
◆ isIconified()
| bool Task::isIconified | ( | ) | const |
Returns true if the task's window is iconified.
Definition at line 386 of file taskmanager.cpp.
◆ isMaximized()
| bool Task::isMaximized | ( | ) | const |
Returns true if the task's window is maximized.
Definition at line 381 of file taskmanager.cpp.
◆ isModified()
| bool Task::isModified | ( | ) | const |
Returns true if the document the task is editing has been modified.
This is currently handled heuristically by looking for the string '[i18n_modified]' in the window title where i18n_modified is the word 'modified' in the current language.
Definition at line 421 of file taskmanager.cpp.
◆ isOnAllDesktops()
| bool Task::isOnAllDesktops | ( | ) | const |
Returns true if the task's window is on all virtual desktops.
Definition at line 406 of file taskmanager.cpp.
◆ isOnCurrentDesktop()
| bool Task::isOnCurrentDesktop | ( | ) | const |
Returns true if the task's window is on the current virtual desktop.
Definition at line 401 of file taskmanager.cpp.
◆ isOnTop()
| bool Task::isOnTop | ( | ) | const |
Returns true if the task's window is the topmost non-iconified, non-always-on-top window.
Definition at line 416 of file taskmanager.cpp.
◆ isShaded()
| bool Task::isShaded | ( | ) | const |
Returns true if the task's window is shaded.
Definition at line 396 of file taskmanager.cpp.
◆ lower
|
slot |
Lower the task's window.
Definition at line 609 of file taskmanager.cpp.
◆ maximize
|
slot |
Maximise the main window of this task.
Definition at line 575 of file taskmanager.cpp.
◆ pixmap()
|
inline |
Returns a 16x16 (TDEIcon::Small) icon for the task.
This method will only fall back to a static icon if there is no icon of any size in the WM hints.
Definition at line 102 of file taskmanager.h.
◆ publishIconGeometry
|
slot |
This method informs the window manager of the location at which this task will be displayed when iconised.
It is used, for example by the KWin inconify animation.
Definition at line 685 of file taskmanager.cpp.
◆ raise
|
slot |
Raise the task's window.
Definition at line 603 of file taskmanager.cpp.
◆ restore
|
slot |
Restore the main window of the task (if it was iconified).
Definition at line 584 of file taskmanager.cpp.
◆ setAlwaysOnTop
|
slot |
If true, the task's window will remain at the top of the stacking order.
Definition at line 657 of file taskmanager.cpp.
◆ setShaded
|
slot |
If true then the task's window will be shaded.
Most window managers represent this state by displaying on the window's title bar.
Definition at line 671 of file taskmanager.cpp.
◆ setThumbnailSize()
|
inline |
Sets the size for the window thumbnail.
For example a size of 0.2 indicates the thumbnail will be 20% of the original window size.
Definition at line 214 of file taskmanager.h.
◆ thumbnail()
|
inline |
Returns the thumbnail for this task (or a null image if there is none).
Definition at line 226 of file taskmanager.h.
◆ thumbnailChanged
|
signal |
Indicates that the thumbnail for this task has changed.
◆ thumbnailSize()
|
inline |
Returns the current thumbnail size.
Definition at line 207 of file taskmanager.h.
◆ toCurrentDesktop
|
slot |
Moves the task's window to the current virtual desktop.
Definition at line 652 of file taskmanager.cpp.
◆ toDesktop
|
slot |
Moves the task's window to the specified virtual desktop.
Definition at line 633 of file taskmanager.cpp.
◆ transients()
|
inline |
A list of the window ids of all transient windows (dialogs) associated with this task.
Definition at line 95 of file taskmanager.h.
◆ updateThumbnail
|
slot |
Tells the task to generate a new thumbnail.
When the thumbnail is ready the thumbnailChanged() signal will be emitted.
Definition at line 696 of file taskmanager.cpp.
The documentation for this class was generated from the following files:
Trinity API Reference