Changeset View
Changeset View
Standalone View
Standalone View
workspace.h
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | |||||
64 | class X11Client; | 64 | class X11Client; | ||
65 | class X11EventFilter; | 65 | class X11EventFilter; | ||
66 | enum class Predicate; | 66 | enum class Predicate; | ||
67 | 67 | | |||
68 | class KWIN_EXPORT Workspace : public QObject | 68 | class KWIN_EXPORT Workspace : public QObject | ||
69 | { | 69 | { | ||
70 | Q_OBJECT | 70 | Q_OBJECT | ||
71 | public: | 71 | public: | ||
72 | explicit Workspace(const QString &sessionKey = QString()); | 72 | explicit Workspace(); | ||
73 | ~Workspace() override; | 73 | ~Workspace() override; | ||
74 | 74 | | |||
75 | static Workspace* self() { | 75 | static Workspace* self() { | ||
76 | return _self; | 76 | return _self; | ||
77 | } | 77 | } | ||
78 | 78 | | |||
79 | bool workspaceEvent(xcb_generic_event_t*); | 79 | bool workspaceEvent(xcb_generic_event_t*); | ||
80 | bool workspaceEvent(QEvent*); | 80 | bool workspaceEvent(QEvent*); | ||
▲ Show 20 Lines • Show All 223 Lines • ▼ Show 20 Line(s) | 263 | public: | |||
304 | } | 304 | } | ||
305 | 305 | | |||
306 | void showApplicationMenu(const QRect &pos, AbstractClient *c, int actionId); | 306 | void showApplicationMenu(const QRect &pos, AbstractClient *c, int actionId); | ||
307 | 307 | | |||
308 | void updateMinimizedOfTransients(AbstractClient*); | 308 | void updateMinimizedOfTransients(AbstractClient*); | ||
309 | void updateOnAllDesktopsOfTransients(AbstractClient*); | 309 | void updateOnAllDesktopsOfTransients(AbstractClient*); | ||
310 | void checkTransients(xcb_window_t w); | 310 | void checkTransients(xcb_window_t w); | ||
311 | 311 | | |||
312 | void storeSession(KConfig* config, SMSavePhase phase); | 312 | void storeSession(const QString &sessionName, SMSavePhase phase); | ||
313 | void storeClient(KConfigGroup &cg, int num, X11Client *c); | 313 | void storeClient(KConfigGroup &cg, int num, X11Client *c); | ||
314 | void storeSubSession(const QString &name, QSet<QByteArray> sessionIds); | 314 | void storeSubSession(const QString &name, QSet<QByteArray> sessionIds); | ||
315 | void loadSubSessionInfo(const QString &name); | 315 | void loadSubSessionInfo(const QString &name); | ||
316 | 316 | | |||
317 | SessionInfo* takeSessionInfo(X11Client *); | 317 | SessionInfo* takeSessionInfo(X11Client *); | ||
318 | 318 | | |||
319 | // D-Bus interface | 319 | // D-Bus interface | ||
320 | QString supportInformation() const; | 320 | QString supportInformation() const; | ||
▲ Show 20 Lines • Show All 168 Lines • ▼ Show 20 Line(s) | 486 | private Q_SLOTS: | |||
489 | void slotUpdateToolWindows(); | 489 | void slotUpdateToolWindows(); | ||
490 | void delayFocus(); | 490 | void delayFocus(); | ||
491 | void slotReloadConfig(); | 491 | void slotReloadConfig(); | ||
492 | void updateCurrentActivity(const QString &new_activity); | 492 | void updateCurrentActivity(const QString &new_activity); | ||
493 | // virtual desktop handling | 493 | // virtual desktop handling | ||
494 | void slotDesktopCountChanged(uint previousCount, uint newCount); | 494 | void slotDesktopCountChanged(uint previousCount, uint newCount); | ||
495 | void slotCurrentDesktopChanged(uint oldDesktop, uint newDesktop); | 495 | void slotCurrentDesktopChanged(uint oldDesktop, uint newDesktop); | ||
496 | 496 | | |||
497 | // session management | | |||
498 | void saveState(QSessionManager &sm); | | |||
499 | | ||||
500 | Q_SIGNALS: | 497 | Q_SIGNALS: | ||
501 | /** | 498 | /** | ||
502 | * Emitted after the Workspace has setup the complete initialization process. | 499 | * Emitted after the Workspace has setup the complete initialization process. | ||
503 | * This can be used to connect to for performing post-workspace initialization. | 500 | * This can be used to connect to for performing post-workspace initialization. | ||
504 | */ | 501 | */ | ||
505 | void workspaceInitialized(); | 502 | void workspaceInitialized(); | ||
506 | 503 | | |||
507 | //Signals required for the scripting interface | 504 | //Signals required for the scripting interface | ||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 534 | private: | |||
576 | void updateClientVisibilityOnDesktopChange(uint newDesktop); | 573 | void updateClientVisibilityOnDesktopChange(uint newDesktop); | ||
577 | void activateClientOnNewDesktop(uint desktop); | 574 | void activateClientOnNewDesktop(uint desktop); | ||
578 | AbstractClient *findClientToActivateOnDesktop(uint desktop); | 575 | AbstractClient *findClientToActivateOnDesktop(uint desktop); | ||
579 | 576 | | |||
580 | QWidget* active_popup; | 577 | QWidget* active_popup; | ||
581 | AbstractClient* active_popup_client; | 578 | AbstractClient* active_popup_client; | ||
582 | 579 | | |||
583 | int m_initialDesktop; | 580 | int m_initialDesktop; | ||
584 | void loadSessionInfo(const QString &key); | 581 | void loadSessionInfo(const QString &sessionName); | ||
585 | void addSessionInfo(KConfigGroup &cg); | 582 | void addSessionInfo(KConfigGroup &cg); | ||
586 | 583 | | |||
587 | QList<SessionInfo*> session; | 584 | QList<SessionInfo*> session; | ||
588 | 585 | | |||
589 | void updateXStackingOrder(); | 586 | void updateXStackingOrder(); | ||
590 | void updateTabbox(); | 587 | void updateTabbox(); | ||
591 | 588 | | |||
592 | AbstractClient* active_client; | 589 | AbstractClient* active_client; | ||
▲ Show 20 Lines • Show All 219 Lines • Show Last 20 Lines |