Changeset View
Changeset View
Standalone View
Standalone View
tabbox/tabboxhandler.cpp
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | |||||
58 | { | 58 | { | ||
59 | public: | 59 | public: | ||
60 | TabBoxHandlerPrivate(TabBoxHandler *q); | 60 | TabBoxHandlerPrivate(TabBoxHandler *q); | ||
61 | 61 | | |||
62 | ~TabBoxHandlerPrivate(); | 62 | ~TabBoxHandlerPrivate(); | ||
63 | 63 | | |||
64 | /** | 64 | /** | ||
65 | * Updates the current highlight window state | 65 | * Updates the current highlight window state | ||
66 | */ | 66 | **/ | ||
67 | void updateHighlightWindows(); | 67 | void updateHighlightWindows(); | ||
68 | /** | 68 | /** | ||
69 | * Ends window highlighting | 69 | * Ends window highlighting | ||
70 | */ | 70 | **/ | ||
71 | void endHighlightWindows(bool abort = false); | 71 | void endHighlightWindows(bool abort = false); | ||
72 | 72 | | |||
73 | void show(); | 73 | void show(); | ||
74 | QQuickWindow *window() const; | 74 | QQuickWindow *window() const; | ||
75 | SwitcherItem *switcherItem() const; | 75 | SwitcherItem *switcherItem() const; | ||
76 | 76 | | |||
77 | ClientModel* clientModel() const; | 77 | ClientModel* clientModel() const; | ||
78 | DesktopModel* desktopModel() const; | 78 | DesktopModel* desktopModel() const; | ||
79 | 79 | | |||
80 | TabBoxHandler *q; // public pointer | 80 | TabBoxHandler *q; // public pointer | ||
81 | // members | 81 | // members | ||
82 | TabBoxConfig config; | 82 | TabBoxConfig config; | ||
83 | QScopedPointer<QQmlContext> m_qmlContext; | 83 | QScopedPointer<QQmlContext> m_qmlContext; | ||
84 | QScopedPointer<QQmlComponent> m_qmlComponent; | 84 | QScopedPointer<QQmlComponent> m_qmlComponent; | ||
85 | QObject *m_mainItem; | 85 | QObject *m_mainItem; | ||
86 | QMap<QString, QObject*> m_clientTabBoxes; | 86 | QMap<QString, QObject*> m_clientTabBoxes; | ||
87 | QMap<QString, QObject*> m_desktopTabBoxes; | 87 | QMap<QString, QObject*> m_desktopTabBoxes; | ||
88 | ClientModel* m_clientModel; | 88 | ClientModel* m_clientModel; | ||
89 | DesktopModel* m_desktopModel; | 89 | DesktopModel* m_desktopModel; | ||
90 | QModelIndex index; | 90 | QModelIndex index; | ||
91 | /** | 91 | /** | ||
92 | * Indicates if the tabbox is shown. | 92 | * Indicates if the tabbox is shown. | ||
93 | */ | 93 | **/ | ||
94 | bool isShown; | 94 | bool isShown; | ||
95 | TabBoxClient *lastRaisedClient, *lastRaisedClientSucc; | 95 | TabBoxClient *lastRaisedClient, *lastRaisedClientSucc; | ||
96 | int wheelAngleDelta = 0; | 96 | int wheelAngleDelta = 0; | ||
97 | 97 | | |||
98 | private: | 98 | private: | ||
99 | QObject *createSwitcherItem(bool desktopMode); | 99 | QObject *createSwitcherItem(bool desktopMode); | ||
100 | }; | 100 | }; | ||
101 | 101 | | |||
▲ Show 20 Lines • Show All 555 Lines • Show Last 20 Lines |