libtaskmanager
TaskManager::ManualGroupingStrategy Class Reference
Remembers manually grouped tasks To do this it keeps an exact copy of the rootGroup and all subgroups for each desktop/screen. More...
#include <manualgroupingstrategy.h>

Public Member Functions | |
void | desktopChanged (int newDesktop) |
EditableGroupProperties | editableGroupProperties () |
bool | groupItems (ItemList items) |
void | handleItem (AbstractItemPtr) |
ManualGroupingStrategy (GroupManager *groupingStrategy) | |
QList< QAction * > | strategyActions (QObject *parent, AbstractGroupableItem *item) |
~ManualGroupingStrategy () | |
Protected Member Functions | |
void | closeGroup (TaskGroup *) |
Detailed Description
Remembers manually grouped tasks To do this it keeps an exact copy of the rootGroup and all subgroups for each desktop/screen.Definition at line 151 of file manualgroupingstrategy.h.
Constructor & Destructor Documentation
TaskManager::ManualGroupingStrategy::ManualGroupingStrategy | ( | GroupManager * | groupingStrategy | ) |
Definition at line 63 of file manualgroupingstrategy.cpp.
TaskManager::ManualGroupingStrategy::~ManualGroupingStrategy | ( | ) |
Definition at line 71 of file manualgroupingstrategy.cpp.
Member Function Documentation
void TaskManager::ManualGroupingStrategy::closeGroup | ( | TaskGroup * | group | ) | [protected, virtual] |
Adds all group members to the parentgroup of group and removes the group.
Reimplemented from TaskManager::AbstractGroupingStrategy.
Definition at line 272 of file manualgroupingstrategy.cpp.
void TaskManager::ManualGroupingStrategy::desktopChanged | ( | int | newDesktop | ) | [virtual] |
DesktopChanges time to backup any needed data.
Reimplemented from TaskManager::AbstractGroupingStrategy.
Definition at line 184 of file manualgroupingstrategy.cpp.
AbstractGroupingStrategy::EditableGroupProperties TaskManager::ManualGroupingStrategy::editableGroupProperties | ( | ) | [virtual] |
Returns which group properties are editable by the user and which are handled solely by the strategy.
The visualization should create a configuration interface based on this.
Implements TaskManager::AbstractGroupingStrategy.
Definition at line 76 of file manualgroupingstrategy.cpp.
bool TaskManager::ManualGroupingStrategy::groupItems | ( | ItemList | items | ) |
Should be called if the user wants to manually add an item to a group.
Should be called if the user wants to group items manually
Definition at line 261 of file manualgroupingstrategy.cpp.
void TaskManager::ManualGroupingStrategy::handleItem | ( | AbstractItemPtr | item | ) | [virtual] |
looks up if this item has been grouped before and groups it accordingly.
otherwise the item goes to the rootGroup
Implements TaskManager::AbstractGroupingStrategy.
Definition at line 139 of file manualgroupingstrategy.cpp.
QList< QAction * > TaskManager::ManualGroupingStrategy::strategyActions | ( | QObject * | parent, | |
AbstractGroupableItem * | item | |||
) | [virtual] |
Returns list of actions that a task can do in this groupingStrategy fore example: remove this Task from this group.
Reimplemented from TaskManager::AbstractGroupingStrategy.
Definition at line 81 of file manualgroupingstrategy.cpp.
The documentation for this class was generated from the following files: