Changeset View
Changeset View
Standalone View
Standalone View
liblegacytaskmanager/groupmanager.h
- This file was moved from libtaskmanager/groupmanager.h.
Show All 23 Lines | |||||
24 | #ifndef GROUPMANAGER_H | 24 | #ifndef GROUPMANAGER_H | ||
25 | #define GROUPMANAGER_H | 25 | #define GROUPMANAGER_H | ||
26 | 26 | | |||
27 | #include <QtCore/QObject> | 27 | #include <QtCore/QObject> | ||
28 | 28 | | |||
29 | #include <abstractgroupableitem.h> | 29 | #include <abstractgroupableitem.h> | ||
30 | #include <task.h> | 30 | #include <task.h> | ||
31 | #include <taskitem.h> | 31 | #include <taskitem.h> | ||
32 | #include <taskmanager_export.h> | 32 | #include <legacytaskmanager_export.h> | ||
33 | #include "launcheritem.h" | 33 | #include "launcheritem.h" | ||
34 | 34 | | |||
35 | class KConfigDialog; | 35 | class KConfigDialog; | ||
36 | 36 | | |||
37 | namespace TaskManager | 37 | namespace LegacyTaskManager | ||
38 | { | 38 | { | ||
39 | 39 | | |||
40 | class AbstractSortingStrategy; | 40 | class AbstractSortingStrategy; | ||
41 | class AbstractGroupingStrategy; | 41 | class AbstractGroupingStrategy; | ||
42 | class GroupManagerPrivate; | 42 | class GroupManagerPrivate; | ||
43 | 43 | | |||
44 | /** | 44 | /** | ||
45 | * Manages the grouping stuff. It doesn't know anything about grouping and sorting itself, this is done in the grouping and sorting strategies. | 45 | * Manages the grouping stuff. It doesn't know anything about grouping and sorting itself, this is done in the grouping and sorting strategies. | ||
46 | */ | 46 | */ | ||
47 | class TASKMANAGER_EXPORT GroupManager: public QObject | 47 | class LEGACYTASKMANAGER_EXPORT GroupManager: public QObject | ||
48 | { | 48 | { | ||
49 | 49 | | |||
50 | Q_OBJECT | 50 | Q_OBJECT | ||
51 | 51 | | |||
52 | Q_PROPERTY(QRect screenGeometry READ screenGeometry WRITE setScreenGeometry NOTIFY screenGeometryChanged) | 52 | Q_PROPERTY(QRect screenGeometry READ screenGeometry WRITE setScreenGeometry NOTIFY screenGeometryChanged) | ||
53 | Q_PROPERTY(TaskGroupingStrategy groupingStrategy READ groupingStrategy WRITE setGroupingStrategy NOTIFY groupingStrategyChanged) | 53 | Q_PROPERTY(TaskGroupingStrategy groupingStrategy READ groupingStrategy WRITE setGroupingStrategy NOTIFY groupingStrategyChanged) | ||
54 | Q_PROPERTY(bool onlyGroupWhenFull READ onlyGroupWhenFull WRITE setOnlyGroupWhenFull NOTIFY onlyGroupWhenFullChanged) | 54 | Q_PROPERTY(bool onlyGroupWhenFull READ onlyGroupWhenFull WRITE setOnlyGroupWhenFull NOTIFY onlyGroupWhenFullChanged) | ||
55 | Q_PROPERTY(bool forceGrouping READ forceGrouping WRITE setForceGrouping NOTIFY forceGroupingChanged) | 55 | Q_PROPERTY(bool forceGrouping READ forceGrouping WRITE setForceGrouping NOTIFY forceGroupingChanged) | ||
▲ Show 20 Lines • Show All 168 Lines • ▼ Show 20 Line(s) | 210 | Q_SIGNALS: | |||
224 | void showOnlyCurrentDesktopChanged(bool); | 224 | void showOnlyCurrentDesktopChanged(bool); | ||
225 | void showOnlyCurrentActivityChanged(bool); | 225 | void showOnlyCurrentActivityChanged(bool); | ||
226 | void showOnlyMinimizedChanged(bool); | 226 | void showOnlyMinimizedChanged(bool); | ||
227 | void separateLaunchersChanged(bool); | 227 | void separateLaunchersChanged(bool); | ||
228 | 228 | | |||
229 | private: | 229 | private: | ||
230 | Q_PRIVATE_SLOT(d, void currentDesktopChanged(int)) | 230 | Q_PRIVATE_SLOT(d, void currentDesktopChanged(int)) | ||
231 | Q_PRIVATE_SLOT(d, void currentActivityChanged(QString)) | 231 | Q_PRIVATE_SLOT(d, void currentActivityChanged(QString)) | ||
232 | Q_PRIVATE_SLOT(d, void taskChanged(::TaskManager::Task *, ::TaskManager::TaskChanges)) | 232 | Q_PRIVATE_SLOT(d, void taskChanged(::LegacyTaskManager::Task *, ::LegacyTaskManager::TaskChanges)) | ||
233 | Q_PRIVATE_SLOT(d, void checkScreenChange()) | 233 | Q_PRIVATE_SLOT(d, void checkScreenChange()) | ||
234 | Q_PRIVATE_SLOT(d, void startupItemDestroyed(AbstractGroupableItem *)) | 234 | Q_PRIVATE_SLOT(d, void startupItemDestroyed(AbstractGroupableItem *)) | ||
235 | Q_PRIVATE_SLOT(d, void startupDestroyed(QObject *)) | 235 | Q_PRIVATE_SLOT(d, void startupDestroyed(QObject *)) | ||
236 | Q_PRIVATE_SLOT(d, void checkIfFull()) | 236 | Q_PRIVATE_SLOT(d, void checkIfFull()) | ||
237 | Q_PRIVATE_SLOT(d, void actuallyCheckIfFull()) | 237 | Q_PRIVATE_SLOT(d, void actuallyCheckIfFull()) | ||
238 | Q_PRIVATE_SLOT(d, bool addTask(::TaskManager::Task *)) | 238 | Q_PRIVATE_SLOT(d, bool addTask(::LegacyTaskManager::Task *)) | ||
239 | Q_PRIVATE_SLOT(d, void removeTask(::TaskManager::Task *)) | 239 | Q_PRIVATE_SLOT(d, void removeTask(::LegacyTaskManager::Task *)) | ||
240 | Q_PRIVATE_SLOT(d, void addStartup(::TaskManager::Startup *)) | 240 | Q_PRIVATE_SLOT(d, void addStartup(::LegacyTaskManager::Startup *)) | ||
241 | Q_PRIVATE_SLOT(d, void removeStartup(::TaskManager::Startup *)) | 241 | Q_PRIVATE_SLOT(d, void removeStartup(::LegacyTaskManager::Startup *)) | ||
242 | Q_PRIVATE_SLOT(d, void actuallyRemoveStartup()) | 242 | Q_PRIVATE_SLOT(d, void actuallyRemoveStartup()) | ||
243 | Q_PRIVATE_SLOT(d, void actuallyReloadTasks()) | 243 | Q_PRIVATE_SLOT(d, void actuallyReloadTasks()) | ||
244 | Q_PRIVATE_SLOT(d, void taskDestroyed(QObject *)) | 244 | Q_PRIVATE_SLOT(d, void taskDestroyed(QObject *)) | ||
245 | Q_PRIVATE_SLOT(d, void sycocaChanged(const QStringList &)) | 245 | Q_PRIVATE_SLOT(d, void sycocaChanged(const QStringList &)) | ||
246 | Q_PRIVATE_SLOT(d, void launcherVisibilityChange()) | 246 | Q_PRIVATE_SLOT(d, void launcherVisibilityChange()) | ||
247 | 247 | | |||
248 | friend class GroupManagerPrivate; | 248 | friend class GroupManagerPrivate; | ||
249 | GroupManagerPrivate * const d; | 249 | GroupManagerPrivate * const d; | ||
250 | }; | 250 | }; | ||
251 | 251 | | |||
252 | } | 252 | } | ||
253 | #endif | 253 | #endif |