Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.h
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | 62 | { | |||
---|---|---|---|---|---|
89 | Q_PROPERTY(int desktop READ desktop WRITE setDesktop NOTIFY desktopChanged) | 89 | Q_PROPERTY(int desktop READ desktop WRITE setDesktop NOTIFY desktopChanged) | ||
90 | /** | 90 | /** | ||
91 | * Whether the Client is on all desktops. That is desktop is -1. | 91 | * Whether the Client is on all desktops. That is desktop is -1. | ||
92 | **/ | 92 | **/ | ||
93 | Q_PROPERTY(bool onAllDesktops READ isOnAllDesktops WRITE setOnAllDesktops NOTIFY desktopChanged) | 93 | Q_PROPERTY(bool onAllDesktops READ isOnAllDesktops WRITE setOnAllDesktops NOTIFY desktopChanged) | ||
94 | /** | 94 | /** | ||
95 | * The x11 ids for all desktops this client is in. On X11 this list will always have a length of 1 | 95 | * The x11 ids for all desktops this client is in. On X11 this list will always have a length of 1 | ||
96 | **/ | 96 | **/ | ||
97 | Q_PROPERTY(QVector<int> x11DesktopIds READ x11DesktopIds NOTIFY x11DesktopIdsChanged) | 97 | Q_PROPERTY(QVector<uint> x11DesktopIds READ x11DesktopIds NOTIFY x11DesktopIdsChanged) | ||
98 | /** | 98 | /** | ||
99 | * Indicates that the window should not be included on a taskbar. | 99 | * Indicates that the window should not be included on a taskbar. | ||
100 | **/ | 100 | **/ | ||
101 | Q_PROPERTY(bool skipTaskbar READ skipTaskbar WRITE setSkipTaskbar NOTIFY skipTaskbarChanged) | 101 | Q_PROPERTY(bool skipTaskbar READ skipTaskbar WRITE setSkipTaskbar NOTIFY skipTaskbarChanged) | ||
102 | /** | 102 | /** | ||
103 | * Indicates that the window should not be included on a Pager. | 103 | * Indicates that the window should not be included on a Pager. | ||
104 | **/ | 104 | **/ | ||
105 | Q_PROPERTY(bool skipPager READ skipPager WRITE setSkipPager NOTIFY skipPagerChanged) | 105 | Q_PROPERTY(bool skipPager READ skipPager WRITE setSkipPager NOTIFY skipPagerChanged) | ||
▲ Show 20 Lines • Show All 317 Lines • ▼ Show 20 Line(s) | 294 | public: | |||
423 | void sendToScreen(int screen); | 423 | void sendToScreen(int screen); | ||
424 | const QKeySequence &shortcut() const { | 424 | const QKeySequence &shortcut() const { | ||
425 | return _shortcut; | 425 | return _shortcut; | ||
426 | } | 426 | } | ||
427 | void setShortcut(const QString &cut); | 427 | void setShortcut(const QString &cut); | ||
428 | virtual bool performMouseCommand(Options::MouseCommand, const QPoint &globalPos); | 428 | virtual bool performMouseCommand(Options::MouseCommand, const QPoint &globalPos); | ||
429 | void setOnAllDesktops(bool set); | 429 | void setOnAllDesktops(bool set); | ||
430 | void setDesktop(int); | 430 | void setDesktop(int); | ||
431 | Q_INVOKABLE virtual void unSetDesktop(int desktop); | 431 | void enterDesktop(VirtualDesktop *desktop); | ||
432 | void leaveDesktop(VirtualDesktop *desktop); | ||||
433 | void setDesktops(QVector<VirtualDesktop *> desktops); | ||||
434 | | ||||
432 | int desktop() const override { | 435 | int desktop() const override { | ||
433 | return m_desktops.isEmpty() ? (int)NET::OnAllDesktops : m_desktops.last()->x11DesktopNumber(); | 436 | return m_desktops.isEmpty() ? (int)NET::OnAllDesktops : m_desktops.last()->x11DesktopNumber(); | ||
434 | } | 437 | } | ||
435 | virtual QVector<VirtualDesktop *> desktops() const { | 438 | virtual QVector<VirtualDesktop *> desktops() const { | ||
436 | return m_desktops; | 439 | return m_desktops; | ||
437 | } | 440 | } | ||
438 | void removeDesktop(VirtualDesktop *desktop) { | 441 | void removeDesktop(VirtualDesktop *desktop) { | ||
439 | m_desktops.removeAll(desktop); | 442 | m_desktops.removeAll(desktop); | ||
440 | } | 443 | } | ||
441 | QVector<int> x11DesktopIds() const; | 444 | QVector<uint> x11DesktopIds() const; | ||
442 | 445 | | |||
443 | void setMinimized(bool set); | 446 | void setMinimized(bool set); | ||
444 | /** | 447 | /** | ||
445 | * Minimizes this client plus its transients | 448 | * Minimizes this client plus its transients | ||
446 | */ | 449 | */ | ||
447 | void minimize(bool avoid_animation = false); | 450 | void minimize(bool avoid_animation = false); | ||
448 | void unminimize(bool avoid_animation = false); | 451 | void unminimize(bool avoid_animation = false); | ||
449 | bool isMinimized() const { | 452 | bool isMinimized() const { | ||
▲ Show 20 Lines • Show All 649 Lines • ▼ Show 20 Line(s) | 809 | protected: | |||
1099 | **/ | 1102 | **/ | ||
1100 | AbstractClient *findClientWithSameCaption() const; | 1103 | AbstractClient *findClientWithSameCaption() const; | ||
1101 | 1104 | | |||
1102 | void finishWindowRules(); | 1105 | void finishWindowRules(); | ||
1103 | void discardTemporaryRules(); | 1106 | void discardTemporaryRules(); | ||
1104 | 1107 | | |||
1105 | bool tabTo(AbstractClient *other, bool behind, bool activate); | 1108 | bool tabTo(AbstractClient *other, bool behind, bool activate); | ||
1106 | 1109 | | |||
1107 | void setDesktops(QVector<VirtualDesktop *> desktops); | | |||
1108 | | ||||
1109 | private: | 1110 | private: | ||
1110 | void handlePaletteChange(); | 1111 | void handlePaletteChange(); | ||
1111 | QSharedPointer<TabBox::TabBoxClientImpl> m_tabBoxClient; | 1112 | QSharedPointer<TabBox::TabBoxClientImpl> m_tabBoxClient; | ||
1112 | bool m_firstInTabBox = false; | 1113 | bool m_firstInTabBox = false; | ||
1113 | bool m_skipTaskbar = false; | 1114 | bool m_skipTaskbar = false; | ||
1114 | /** | 1115 | /** | ||
1115 | * Unaffected by KWin | 1116 | * Unaffected by KWin | ||
1116 | **/ | 1117 | **/ | ||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |