Changeset View
Changeset View
Standalone View
Standalone View
containmentactions/switchwindow/switch.h
Show All 17 Lines | |||||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef SWITCHWINDOW_HEADER | 20 | #ifndef SWITCHWINDOW_HEADER | ||
21 | #define SWITCHWINDOW_HEADER | 21 | #define SWITCHWINDOW_HEADER | ||
22 | 22 | | |||
23 | #include "ui_config.h" | 23 | #include "ui_config.h" | ||
24 | #include <plasma/containmentactions.h> | 24 | #include <plasma/containmentactions.h> | ||
25 | 25 | | |||
26 | // libtaskmanager | 26 | // liblegacytaskmanager | ||
27 | #include <taskmanager.h> | 27 | #include <legacytaskmanager.h> | ||
28 | #include <tasksmodel.h> | 28 | #include <tasksmodel.h> | ||
29 | #include <groupmanager.h> | 29 | #include <groupmanager.h> | ||
30 | 30 | | |||
31 | class QAction; | 31 | class QAction; | ||
32 | class QTimer; | 32 | class QTimer; | ||
33 | 33 | | |||
34 | namespace TaskManager | 34 | namespace LegacyTaskManager | ||
35 | { | 35 | { | ||
36 | class Task; | 36 | class Task; | ||
37 | } // namespace TaskManager | 37 | } // namespace LegacyTaskManager | ||
38 | 38 | | |||
39 | class SwitchWindow : public Plasma::ContainmentActions | 39 | class SwitchWindow : public Plasma::ContainmentActions | ||
40 | { | 40 | { | ||
41 | Q_OBJECT | 41 | Q_OBJECT | ||
42 | public: | 42 | public: | ||
43 | SwitchWindow(QObject* parent, const QVariantList& args); | 43 | SwitchWindow(QObject* parent, const QVariantList& args); | ||
44 | ~SwitchWindow() override; | 44 | ~SwitchWindow() override; | ||
45 | 45 | | |||
Show All 17 Lines | |||||
63 | private: | 63 | private: | ||
64 | enum MenuMode { | 64 | enum MenuMode { | ||
65 | AllFlat = 0, | 65 | AllFlat = 0, | ||
66 | DesktopSubmenus, | 66 | DesktopSubmenus, | ||
67 | CurrentDesktop | 67 | CurrentDesktop | ||
68 | }; | 68 | }; | ||
69 | 69 | | |||
70 | QList <QAction *> m_actions; | 70 | QList <QAction *> m_actions; | ||
71 | TaskManager::GroupManager *m_groupManager; | 71 | LegacyTaskManager::GroupManager *m_groupManager; | ||
72 | TaskManager::TasksModel *m_tasksModel; | 72 | LegacyTaskManager::TasksModel *m_tasksModel; | ||
73 | Ui::Config m_ui; | 73 | Ui::Config m_ui; | ||
74 | MenuMode m_mode; | 74 | MenuMode m_mode; | ||
75 | QTimer *m_clearOrderTimer; | 75 | QTimer *m_clearOrderTimer; | ||
76 | QList<WId> m_windowsOrder; | 76 | QList<WId> m_windowsOrder; | ||
77 | }; | 77 | }; | ||
78 | 78 | | |||
79 | #endif | 79 | #endif |