TaskManager::Task Class Reference
A dynamic interface to a task (main window).
More...
#include <task.h>
List of all members.
Detailed Description
A dynamic interface to a task (main window).
- See also:
- TaskManager
Definition at line 50 of file task.h.
Constructor & Destructor Documentation
TaskManager::Task::Task |
( |
WId |
win, |
|
|
QObject * |
parent, |
|
|
const char * |
name = 0 | |
|
) |
| | |
TaskManager::Task::~Task |
( |
|
) |
[virtual] |
Member Function Documentation
void TaskManager::Task::activate |
( |
|
) |
[slot] |
Activate the task's window.
Definition at line 692 of file task.cpp.
void TaskManager::Task::activated |
( |
|
) |
[signal] |
Indicates that this task is now the active task.
void TaskManager::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 705 of file task.cpp.
void TaskManager::Task::addMimeData |
( |
QMimeData * |
mimeData |
) |
const |
Adds the identifying information for this task to mime data for drags, copies, etc.
Definition at line 830 of file task.cpp.
void TaskManager::Task::addTransient |
( |
WId |
w, |
|
|
const NETWinInfo & |
info | |
|
) |
| | |
QPixmap TaskManager::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 446 of file task.cpp.
void TaskManager::Task::changed |
( |
::TaskManager::TaskChanges |
change |
) |
[signal] |
Indicates that this task has changed in some way.
QString TaskManager::Task::classClass |
( |
|
) |
const |
QString TaskManager::Task::className |
( |
|
) |
const |
void TaskManager::Task::close |
( |
|
) |
[slot] |
Close the task's window.
Definition at line 674 of file task.cpp.
void TaskManager::Task::deactivated |
( |
|
) |
[signal] |
Indicates that this task is no longer the active task.
bool TaskManager::Task::demandsAttention |
( |
|
) |
const |
Returns true if the task is not active but demands user's attention.
int TaskManager::Task::desktop |
( |
|
) |
const |
Returns the desktop on which this task's window resides.
void TaskManager::Task::findWindowFrameId |
( |
|
) |
[protected] |
QRect TaskManager::Task::geometry |
( |
|
) |
const |
Returns the geometry for this window.
Definition at line 315 of file task.cpp.
QString TaskManager::Task::groupMimetype |
( |
|
) |
[static] |
Returns the mimetype used for multiple Tasks.
Definition at line 845 of file task.cpp.
bool TaskManager::Task::hasTransient |
( |
WId |
w |
) |
const |
QIcon TaskManager::Task::icon |
( |
|
) |
|
QPixmap TaskManager::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 404 of file task.cpp.
WId TaskManager::Task::idFromMimeData |
( |
const QMimeData * |
mimeData, |
|
|
bool * |
ok = 0 | |
|
) |
| | [static] |
Given mime data, will return a WId if it can decode one from the data.
Otherwise returns 0.
Definition at line 903 of file task.cpp.
bool TaskManager::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 523 of file task.cpp.
QList< WId > TaskManager::Task::idsFromMimeData |
( |
const QMimeData * |
mimeData, |
|
|
bool * |
ok = 0 | |
|
) |
| | [static] |
Given mime data, will return a QList<WId> if it can decode WIds from the data.
Otherwise returns an empty list.
Definition at line 850 of file task.cpp.
KWindowInfo TaskManager::Task::info |
( |
|
) |
const |
bool TaskManager::Task::isActive |
( |
|
) |
const |
Returns true if the task's window is the active window.
Definition at line 269 of file task.cpp.
bool TaskManager::Task::isAlwaysOnTop |
( |
|
) |
const |
Returns true if the task's window will remain at the top of the stacking order.
Definition at line 239 of file task.cpp.
bool TaskManager::Task::isFullScreen |
( |
|
) |
const |
Returns true if the task's window is in full screen mode.
Definition at line 249 of file task.cpp.
bool TaskManager::Task::isIconified |
( |
|
) |
const |
- Deprecated:
- Returns true if the task's window is minimized(iconified).
Definition at line 234 of file task.cpp.
bool TaskManager::Task::isKeptBelowOthers |
( |
|
) |
const |
Returns true if the task's window will remain at the bottom of the stacking order.
Definition at line 244 of file task.cpp.
bool TaskManager::Task::isMaximized |
( |
|
) |
const |
Returns true if the task's window is maximized.
Definition at line 224 of file task.cpp.
bool TaskManager::Task::isMinimized |
( |
|
) |
const |
Returns true if the task's window is minimized.
Definition at line 229 of file task.cpp.
bool TaskManager::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 279 of file task.cpp.
bool TaskManager::Task::isOnAllDesktops |
( |
|
) |
const |
Returns true if the task's window is on all virtual desktops.
Definition at line 264 of file task.cpp.
bool TaskManager::Task::isOnCurrentDesktop |
( |
|
) |
const |
Returns true if the task's window is on the current virtual desktop.
Definition at line 259 of file task.cpp.
bool TaskManager::Task::isOnScreen |
( |
int |
screen |
) |
const |
Returns true if the window is on the specified screen of a multihead configuration.
Definition at line 300 of file task.cpp.
bool TaskManager::Task::isOnTop |
( |
|
) |
const |
Returns true if the task's window is the topmost non-iconified, non-always-on-top window.
Definition at line 274 of file task.cpp.
bool TaskManager::Task::isShaded |
( |
|
) |
const |
Returns true if the task's window is shaded.
Definition at line 254 of file task.cpp.
void TaskManager::Task::lower |
( |
|
) |
[slot] |
Lower the task's window.
Definition at line 686 of file task.cpp.
QString TaskManager::Task::mimetype |
( |
|
) |
[static] |
Returns the mimetype used for a Task.
Definition at line 840 of file task.cpp.
void TaskManager::Task::move |
( |
|
) |
[slot] |
Move the window of this task.
Definition at line 537 of file task.cpp.
QString TaskManager::Task::name |
( |
|
) |
const |
QPixmap TaskManager::Task::pixmap |
( |
|
) |
const |
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.
void TaskManager::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 KWin inconify animation.
Definition at line 809 of file task.cpp.
void TaskManager::Task::raise |
( |
|
) |
[slot] |
Raise the task's window.
Definition at line 680 of file task.cpp.
TaskManager::TaskChanges TaskManager::Task::refresh |
( |
unsigned int |
dirty |
) |
|
void TaskManager::Task::refreshIcon |
( |
|
) |
[protected] |
void TaskManager::Task::removeTransient |
( |
WId |
w |
) |
|
void TaskManager::Task::resize |
( |
|
) |
[slot] |
Resize the window of this task.
Definition at line 560 of file task.cpp.
void TaskManager::Task::restore |
( |
|
) |
[slot] |
Restore the main window of the task (if it was iconified).
Definition at line 620 of file task.cpp.
void TaskManager::Task::setActive |
( |
bool |
a |
) |
|
void TaskManager::Task::setAlwaysOnTop |
( |
bool |
stay |
) |
[slot] |
If true, the task's window will remain at the top of the stacking order.
Definition at line 743 of file task.cpp.
void TaskManager::Task::setFullScreen |
( |
bool |
fullscreen |
) |
[slot] |
If true, the task's window will enter full screen mode.
Definition at line 776 of file task.cpp.
void TaskManager::Task::setIconified |
( |
bool |
iconify |
) |
[slot] |
Iconify the task.
Definition at line 644 of file task.cpp.
void TaskManager::Task::setKeptBelowOthers |
( |
bool |
below |
) |
[slot] |
If true, the task's window will remain at the bottom of the stacking order.
Definition at line 757 of file task.cpp.
void TaskManager::Task::setMaximized |
( |
bool |
maximize |
) |
[slot] |
Maximise the main window of this task.
Definition at line 583 of file task.cpp.
void TaskManager::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 795 of file task.cpp.
bool TaskManager::Task::showInPager |
( |
|
) |
const |
Returns true if the task should be shown in pager-like apps.
Definition at line 310 of file task.cpp.
bool TaskManager::Task::showInTaskbar |
( |
|
) |
const |
Returns true if the task should be shown in taskbar-like apps.
Definition at line 305 of file task.cpp.
void TaskManager::Task::timerEvent |
( |
QTimerEvent * |
event |
) |
[protected] |
void TaskManager::Task::toCurrentDesktop |
( |
|
) |
[slot] |
Moves the task's window to the current virtual desktop.
Definition at line 738 of file task.cpp.
void TaskManager::Task::toDesktop |
( |
int |
desk |
) |
[slot] |
Moves the task's window to the specified virtual desktop.
Definition at line 717 of file task.cpp.
void TaskManager::Task::toggleAlwaysOnTop |
( |
|
) |
[slot] |
void TaskManager::Task::toggleFullScreen |
( |
|
) |
[slot] |
void TaskManager::Task::toggleIconified |
( |
|
) |
[slot] |
void TaskManager::Task::toggleKeptBelowOthers |
( |
|
) |
[slot] |
void TaskManager::Task::toggleMaximized |
( |
|
) |
[slot] |
void TaskManager::Task::toggleShaded |
( |
|
) |
[slot] |
WindowList TaskManager::Task::transients |
( |
|
) |
const |
A list of the window ids of all transient windows (dialogs) associated with this task.
Definition at line 436 of file task.cpp.
void TaskManager::Task::updateDemandsAttentionState |
( |
WId |
w |
) |
|
QString TaskManager::Task::visibleName |
( |
|
) |
const |
QString TaskManager::Task::visibleNameWithState |
( |
|
) |
const |
WId TaskManager::Task::window |
( |
|
) |
const |
Property Documentation
bool TaskManager::Task::active [read] |
bool TaskManager::Task::alwaysOnTop [read, write] |
QString TaskManager::Task::className [read] |
bool TaskManager::Task::demandsAttention [read] |
int TaskManager::Task::desktop [read] |
bool TaskManager::Task::iconified [read] |
bool TaskManager::Task::maximized [read] |
bool TaskManager::Task::minimized [read] |
bool TaskManager::Task::modified [read] |
QString TaskManager::Task::name [read] |
bool TaskManager::Task::onAllDesktops [read] |
bool TaskManager::Task::onCurrentDesktop [read] |
QPixmap TaskManager::Task::pixmap [read] |
bool TaskManager::Task::shaded [read, write] |
QString TaskManager::Task::visibleName [read] |
QString TaskManager::Task::visibleNameWithState [read] |
The documentation for this class was generated from the following files: