superkaramba
#include <taskmanager.h>

Signals | |
void | activeTaskChanged (Task::TaskPtr) |
void | desktopChanged (int desktop) |
void | startupAdded (Startup::StartupPtr) |
void | startupRemoved (Startup::StartupPtr) |
void | taskAdded (Task::TaskPtr) |
void | taskRemoved (Task::TaskPtr) |
void | windowChanged (Task::TaskPtr) |
void | windowChangedGeometry (Task::TaskPtr) |
Public Member Functions | |
~TaskManager () | |
int | currentDesktop () const |
QString | desktopName (int n) const |
Task::TaskPtr | findTask (WId w) |
Task::TaskPtr | findTask (int desktop, const QPoint &p) |
bool | isOnTop (const Task *) |
int | numberOfDesktops () const |
void | setXCompositeEnabled (bool state) |
Startup::List | startups () const |
Task::Dict | tasks () const |
void | trackGeometry () |
KWindowSystem * | winModule () const |
Static Public Member Functions | |
static bool | isOnScreen (int screen, const WId wid) |
static TaskManager * | self () |
static bool | xCompositeEnabled () |
Protected Slots | |
void | activeWindowChanged (WId) |
void | currentDesktopChanged (int) |
void | gotNewStartup (const KStartupInfoId &, const KStartupInfoData &) |
void | gotStartupChange (const KStartupInfoId &, const KStartupInfoData &) |
void | killStartup (const KStartupInfoId &) |
void | killStartup (Startup::StartupPtr) |
void | windowAdded (WId) |
void | windowChanged (WId, unsigned int) |
void | windowRemoved (WId) |
Protected Member Functions | |
void | configure_startup () |
void | updateWindowPixmap (WId) |
Properties | |
int | currentDesktop |
int | numberOfDesktops |
Detailed Description
A generic API for task managers.
This class provides an easy way to build NET compliant task managers. It provides support for startup notification, virtual desktops and the full range of WM properties.
Definition at line 613 of file taskmanager.h.
Constructor & Destructor Documentation
TaskManager::~TaskManager | ( | ) |
Definition at line 89 of file taskmanager.cpp.
Member Function Documentation
|
signal |
Emitted when the active window changed.
|
protectedslot |
Definition at line 408 of file taskmanager.cpp.
|
protected |
Definition at line 94 of file taskmanager.cpp.
int TaskManager::currentDesktop | ( | ) | const |
Returns the number of the current desktop.
|
protectedslot |
Definition at line 432 of file taskmanager.cpp.
|
signal |
Emitted when the current desktop changes.
QString TaskManager::desktopName | ( | int | n | ) | const |
Returns the name of the nth desktop.
Definition at line 494 of file taskmanager.cpp.
Task::TaskPtr TaskManager::findTask | ( | WId | w | ) |
Returns the task for a given WId, or 0 if there is no such task.
Definition at line 197 of file taskmanager.cpp.
Task::TaskPtr TaskManager::findTask | ( | int | desktop, |
const QPoint & | p | ||
) |
Returns the task for a given location, or 0 if there is no such task.
Definition at line 215 of file taskmanager.cpp.
|
protectedslot |
Definition at line 437 of file taskmanager.cpp.
|
protectedslot |
Definition at line 445 of file taskmanager.cpp.
|
static |
Returns whether the Window with WId wid is on the screen screen.
Definition at line 536 of file taskmanager.cpp.
bool TaskManager::isOnTop | ( | const Task * | task | ) |
Returns true if the specified task is on top.
Definition at line 504 of file taskmanager.cpp.
|
protectedslot |
Definition at line 456 of file taskmanager.cpp.
|
protectedslot |
Definition at line 476 of file taskmanager.cpp.
int TaskManager::numberOfDesktops | ( | ) | const |
Returns the number of virtual desktops.
|
static |
Definition at line 49 of file taskmanager.cpp.
void TaskManager::setXCompositeEnabled | ( | bool | state | ) |
Definition at line 193 of file taskmanager.cpp.
|
signal |
Emitted when a new task is expected.
|
signal |
Emitted when a startup item should be removed.
This could be because the task has started, because it is known to have died, or simply as a result of a timeout.
|
inline |
Returns a list of all current startups.
Definition at line 644 of file taskmanager.h.
|
signal |
Emitted when a new task has started.
|
signal |
Emitted when a task has terminated.
|
inline |
Returns a list of all current tasks.
Definition at line 636 of file taskmanager.h.
|
inline |
Tells the task manager whether or not we care about geometry updates.
This generates a lot of activity so should only be used when necessary.
Definition at line 674 of file taskmanager.h.
|
protected |
Definition at line 396 of file taskmanager.cpp.
|
protectedslot |
Definition at line 244 of file taskmanager.cpp.
|
signal |
Emitted when a window changes desktop.
|
protectedslot |
Definition at line 326 of file taskmanager.cpp.
|
signal |
|
protectedslot |
Definition at line 301 of file taskmanager.cpp.
|
inline |
Definition at line 684 of file taskmanager.h.
|
inlinestatic |
Definition at line 690 of file taskmanager.h.
Property Documentation
|
read |
Definition at line 616 of file taskmanager.h.
|
read |
Definition at line 617 of file taskmanager.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.