Changeset View
Changeset View
Standalone View
Standalone View
shell/shellcorona.h
Show All 32 Lines | |||||
33 | 33 | | |||
34 | #include <KPackage/Package> | 34 | #include <KPackage/Package> | ||
35 | 35 | | |||
36 | class DesktopView; | 36 | class DesktopView; | ||
37 | class PanelView; | 37 | class PanelView; | ||
38 | class QMenu; | 38 | class QMenu; | ||
39 | class QScreen; | 39 | class QScreen; | ||
40 | class ScreenPool; | 40 | class ScreenPool; | ||
41 | class StrutManager; | ||||
41 | 42 | | |||
42 | namespace KActivities | 43 | namespace KActivities | ||
43 | { | 44 | { | ||
44 | class Controller; | 45 | class Controller; | ||
45 | } // namespace KActivities | 46 | } // namespace KActivities | ||
46 | 47 | | |||
47 | namespace KDeclarative | 48 | namespace KDeclarative | ||
48 | { | 49 | { | ||
Show All 35 Lines | 77 | public: | |||
84 | */ | 85 | */ | ||
85 | KSharedConfig::Ptr applicationConfig(); | 86 | KSharedConfig::Ptr applicationConfig(); | ||
86 | 87 | | |||
87 | int numScreens() const override; | 88 | int numScreens() const override; | ||
88 | Q_INVOKABLE QRect screenGeometry(int id) const override; | 89 | Q_INVOKABLE QRect screenGeometry(int id) const override; | ||
89 | Q_INVOKABLE QRegion availableScreenRegion(int id) const override; | 90 | Q_INVOKABLE QRegion availableScreenRegion(int id) const override; | ||
90 | Q_INVOKABLE QRect availableScreenRect(int id) const override; | 91 | Q_INVOKABLE QRect availableScreenRect(int id) const override; | ||
91 | 92 | | |||
93 | // plasmashellCorona's value | ||||
94 | QRegion _availableScreenRegion(int id) const; | ||||
mvourlakos: maybe concerning naming, plasmaAvailableScreenRegion would be better | |||||
95 | QRect _availableScreenRect(int id) const; | ||||
mvourlakos: maybe concerning naming, plasmaAvailableScreenRect would be better | |||||
96 | | ||||
92 | Q_INVOKABLE QStringList availableActivities() const; | 97 | Q_INVOKABLE QStringList availableActivities() const; | ||
93 | 98 | | |||
94 | PanelView *panelView(Plasma::Containment *containment) const; | 99 | PanelView *panelView(Plasma::Containment *containment) const; | ||
95 | 100 | | |||
96 | // This one is a bit of an hack but are just for desktop scripting | 101 | // This one is a bit of an hack but are just for desktop scripting | ||
97 | void insertActivity(const QString &id, const QString &plugin); | 102 | void insertActivity(const QString &id, const QString &plugin); | ||
98 | 103 | | |||
99 | Plasma::Containment *setContainmentTypeForScreen(int screen, const QString &plugin); | 104 | Plasma::Containment *setContainmentTypeForScreen(int screen, const QString &plugin); | ||
Show All 11 Lines | |||||
111 | ScreenPool *screenPool() const; | 116 | ScreenPool *screenPool() const; | ||
112 | 117 | | |||
113 | QList<int> screenIds() const; | 118 | QList<int> screenIds() const; | ||
114 | 119 | | |||
115 | QString defaultContainmentPlugin() const; | 120 | QString defaultContainmentPlugin() const; | ||
116 | 121 | | |||
117 | Q_SIGNALS: | 122 | Q_SIGNALS: | ||
118 | void glInitializationFailed(); | 123 | void glInitializationFailed(); | ||
119 | 124 | | |||
davidedmundson: why are we shadowing this? | |||||
120 | public Q_SLOTS: | 125 | public Q_SLOTS: | ||
121 | /** | 126 | /** | ||
122 | * Request saving applicationConfig on disk, it's event compressed, not immediate | 127 | * Request saving applicationConfig on disk, it's event compressed, not immediate | ||
123 | */ | 128 | */ | ||
124 | void requestApplicationConfigSync(); | 129 | void requestApplicationConfigSync(); | ||
125 | 130 | | |||
126 | /** | 131 | /** | ||
127 | * Sets the shell that the corona should display | 132 | * Sets the shell that the corona should display | ||
▲ Show 20 Lines • Show All 123 Lines • ▼ Show 20 Line(s) | 234 | #endif | |||
251 | 256 | | |||
252 | QTimer m_waitingPanelsTimer; | 257 | QTimer m_waitingPanelsTimer; | ||
253 | QTimer m_appConfigSyncTimer; | 258 | QTimer m_appConfigSyncTimer; | ||
254 | QTimer m_reconsiderOutputsTimer; | 259 | QTimer m_reconsiderOutputsTimer; | ||
255 | 260 | | |||
256 | KWayland::Client::PlasmaShell *m_waylandPlasmaShell; | 261 | KWayland::Client::PlasmaShell *m_waylandPlasmaShell; | ||
257 | bool m_closingDown : 1; | 262 | bool m_closingDown : 1; | ||
258 | QString m_testModeLayout; | 263 | QString m_testModeLayout; | ||
264 | | ||||
265 | StrutManager *m_strutManager; | ||||
259 | }; | 266 | }; | ||
260 | 267 | | |||
261 | #endif // SHELLCORONA_H | 268 | #endif // SHELLCORONA_H | ||
262 | 269 | | |||
263 | 270 | |
maybe concerning naming, plasmaAvailableScreenRegion would be better