superkaramba
#include <taskmanager.h>
|
static bool | idMatch (const QString &, const QString &) |
|
A dynamic interface to a task (main window).
- See also
- TaskManager
-
KWinModule
Definition at line 73 of file taskmanager.h.
Task::Task |
( |
WId |
win, |
|
|
QObject * |
parent, |
|
|
const char * |
name = 0 |
|
) |
| |
Indicates that this task is now the active task.
void 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 1068 of file taskmanager.cpp.
void Task::addTransient |
( |
WId |
w, |
|
|
const NETWinInfo & |
info |
|
) |
| |
QPixmap Task::bestIcon |
( |
int |
size, |
|
|
bool & |
isStaticIcon |
|
) |
| |
Returns the best icon for any of the KIconLoader::StdSizes.
If there is no icon of the specified size specified in the WM hints, it will try to get one using KIconLoader.
bool gotStaticIcon;
QPixmap icon = myTask->icon( KIconLoader::SizeMedium, gotStaticIcon );
- Parameters
-
size | Any of the constants in KIconLoader::StdSizes. |
isStaticIcon | Set to true if KIconLoader was used, false otherwise. |
Definition at line 833 of file taskmanager.cpp.
Indicates that this task has changed in some way.
QString Task::classClass |
( |
| ) |
|
QString Task::className |
( |
| ) |
|
void Task::deactivated |
( |
| ) |
|
|
signal |
Indicates that this task is no longer the active task.
bool Task::demandsAttention |
( |
| ) |
const |
Returns true if the task is not active but demands user's attention.
int Task::desktop |
( |
| ) |
const |
|
inline |
Returns the desktop on which this task's window resides.
Definition at line 251 of file taskmanager.h.
void Task::findWindowFrameId |
( |
| ) |
|
|
protected |
void Task::generateThumbnail |
( |
| ) |
|
|
protectedslot |
QRect Task::geometry |
( |
| ) |
const |
|
inline |
Returns the geometry for this window.
Definition at line 286 of file taskmanager.h.
bool Task::hasThumbnail |
( |
| ) |
const |
|
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 335 of file taskmanager.h.
bool Task::hasTransient |
( |
WId |
w | ) |
const |
|
inline |
QPixmap 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 814 of file taskmanager.cpp.
void Task::iconChanged |
( |
| ) |
|
|
signal |
Indicates that the icon for this task has changed.
bool Task::idMatch |
( |
const QString & |
id1, |
|
|
const QString & |
id2 |
|
) |
| |
|
static |
Returns true iff the windows with the specified ids should be grouped together in the task list.
Definition at line 906 of file taskmanager.cpp.
KWindowInfo Task::info |
( |
| ) |
const |
|
inline |
bool Task::isActive |
( |
| ) |
const |
Returns true if the task's window is the active window.
Definition at line 729 of file taskmanager.cpp.
bool Task::isAlwaysOnTop |
( |
| ) |
const |
Returns true if the task's window will remain at the top of the stacking order.
Definition at line 699 of file taskmanager.cpp.
bool Task::isFullScreen |
( |
| ) |
const |
Returns true if the task's window is in full screen mode.
Definition at line 709 of file taskmanager.cpp.
bool Task::isIconified |
( |
| ) |
const |
bool Task::isKeptBelowOthers |
( |
| ) |
const |
Returns true if the task's window will remain at the bottom of the stacking order.
Definition at line 704 of file taskmanager.cpp.
bool Task::isMaximized |
( |
| ) |
const |
Returns true if the task's window is maximized.
Definition at line 684 of file taskmanager.cpp.
bool Task::isMinimized |
( |
| ) |
const |
Returns true if the task's window is minimized.
Definition at line 689 of file taskmanager.cpp.
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 739 of file taskmanager.cpp.
bool Task::isOnAllDesktops |
( |
| ) |
const |
Returns true if the task's window is on all virtual desktops.
Definition at line 724 of file taskmanager.cpp.
bool Task::isOnCurrentDesktop |
( |
| ) |
const |
Returns true if the task's window is on the current virtual desktop.
Definition at line 719 of file taskmanager.cpp.
bool Task::isOnScreen |
( |
int |
screen | ) |
const |
Returns true if the window is on the specified screen of a multihead configuration.
Definition at line 755 of file taskmanager.cpp.
bool Task::isOnTop |
( |
| ) |
const |
Returns true if the task's window is the topmost non-iconified, non-always-on-top window.
Definition at line 734 of file taskmanager.cpp.
bool Task::isShaded |
( |
| ) |
const |
Returns true if the task's window is shaded.
Definition at line 714 of file taskmanager.cpp.
QString Task::name |
( |
| ) |
const |
|
inline |
QPixmap Task::pixmap |
( |
| ) |
const |
|
inline |
Returns a 16x16 (KIconLoader::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 142 of file taskmanager.h.
void Task::publishIconGeometry |
( |
QRect |
rect | ) |
|
|
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 KWindowSystem inconify animation.
Definition at line 1162 of file taskmanager.cpp.
void Task::refresh |
( |
unsigned int |
dirty | ) |
|
void Task::refreshIcon |
( |
| ) |
|
void Task::removeTransient |
( |
WId |
w | ) |
|
Restore the main window of the task (if it was iconified).
Definition at line 994 of file taskmanager.cpp.
void Task::setActive |
( |
bool |
a | ) |
|
void Task::setAlwaysOnTop |
( |
bool |
stay | ) |
|
|
slot |
If true, the task's window will remain at the top of the stacking order.
Definition at line 1102 of file taskmanager.cpp.
void Task::setFullScreen |
( |
bool |
fullscreen | ) |
|
|
slot |
If true, the task's window will enter full screen mode.
Definition at line 1132 of file taskmanager.cpp.
void Task::setIconified |
( |
bool |
iconify | ) |
|
|
slot |
void Task::setKeptBelowOthers |
( |
bool |
below | ) |
|
|
slot |
If true, the task's window will remain at the bottom of the stacking order.
Definition at line 1116 of file taskmanager.cpp.
void Task::setMaximized |
( |
bool |
maximize | ) |
|
|
slot |
void Task::setShaded |
( |
bool |
shade | ) |
|
|
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 1148 of file taskmanager.cpp.
void Task::setThumbnailSize |
( |
double |
size | ) |
|
|
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 326 of file taskmanager.h.
bool Task::showInPager |
( |
| ) |
const |
|
inline |
Returns true if the task should be shown in pager-like apps.
Definition at line 278 of file taskmanager.h.
bool Task::showInTaskbar |
( |
| ) |
const |
|
inline |
Returns true if the task should be shown in taskbar-like apps.
Definition at line 270 of file taskmanager.h.
const QPixmap& Task::thumbnail |
( |
| ) |
const |
|
inline |
Returns the thumbnail for this task (or a null image if there is none).
Definition at line 344 of file taskmanager.h.
QPixmap Task::thumbnail |
( |
int |
maxDimension | ) |
|
void Task::thumbnailChanged |
( |
| ) |
|
|
signal |
Indicates that the thumbnail for this task has changed.
double Task::thumbnailSize |
( |
| ) |
const |
|
inline |
Returns the current thumbnail size.
Definition at line 316 of file taskmanager.h.
void Task::toCurrentDesktop |
( |
| ) |
|
|
slot |
Moves the task's window to the current virtual desktop.
Definition at line 1097 of file taskmanager.cpp.
void Task::toDesktop |
( |
int |
desk | ) |
|
|
slot |
Moves the task's window to the specified virtual desktop.
Definition at line 1079 of file taskmanager.cpp.
void Task::toggleAlwaysOnTop |
( |
| ) |
|
|
slot |
void Task::toggleFullScreen |
( |
| ) |
|
|
slot |
void Task::toggleIconified |
( |
| ) |
|
|
slot |
void Task::toggleKeptBelowOthers |
( |
| ) |
|
|
slot |
void Task::toggleMaximized |
( |
| ) |
|
|
slot |
void Task::toggleShaded |
( |
| ) |
|
|
slot |
A list of the window ids of all transient windows (dialogs) associated with this task.
Definition at line 132 of file taskmanager.h.
void Task::updateDemandsAttentionState |
( |
WId |
w | ) |
|
void Task::updateThumbnail |
( |
| ) |
|
|
slot |
void Task::updateWindowPixmap |
( |
| ) |
|
QString Task::visibleName |
( |
| ) |
const |
|
inline |
QString Task::visibleNameWithState |
( |
| ) |
const |
|
inline |
WId Task::window |
( |
| ) |
const |
|
inline |
bool Task::demandsAttention |
|
read |
bool Task::onCurrentDesktop |
|
read |
double Task::thumbnailSize |
|
readwrite |
QString Task::visibleName |
|
read |
QString Task::visibleNameWithState |
|
read |
The documentation for this class was generated from the following files:
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.