Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.h
Show First 20 Lines • Show All 721 Lines • ▼ Show 20 Line(s) | 294 | public: | |||
---|---|---|---|---|---|
722 | * Default implementation does nothing. | 722 | * Default implementation does nothing. | ||
723 | * | 723 | * | ||
724 | * @see providesContextHelp() | 724 | * @see providesContextHelp() | ||
725 | **/ | 725 | **/ | ||
726 | virtual void showContextHelp(); | 726 | virtual void showContextHelp(); | ||
727 | 727 | | |||
728 | QRect inputGeometry() const override; | 728 | QRect inputGeometry() const override; | ||
729 | 729 | | |||
730 | QRect virtualKeyboardGeometry() const; | ||||
731 | void setVirtualKeyboardGeometry(const QRect &geo); | ||||
davidedmundson: Please add a comment to say geo is relative to the global space, not the client
| |||||
732 | | ||||
730 | /** | 733 | /** | ||
731 | * Restores the AbstractClient after it had been hidden due to show on screen edge functionality. | 734 | * Restores the AbstractClient after it had been hidden due to show on screen edge functionality. | ||
732 | * The AbstractClient also gets raised (e.g. Panel mode windows can cover) and the AbstractClient | 735 | * The AbstractClient also gets raised (e.g. Panel mode windows can cover) and the AbstractClient | ||
733 | * gets informed in a window specific way that it is shown and raised again. | 736 | * gets informed in a window specific way that it is shown and raised again. | ||
734 | **/ | 737 | **/ | ||
735 | virtual void showOnScreenEdge() = 0; | 738 | virtual void showOnScreenEdge() = 0; | ||
736 | 739 | | |||
737 | QByteArray desktopFileName() const { | 740 | QByteArray desktopFileName() const { | ||
▲ Show 20 Lines • Show All 214 Lines • ▼ Show 20 Line(s) | 861 | protected: | |||
952 | // geometry handling | 955 | // geometry handling | ||
953 | void checkOffscreenPosition(QRect *geom, const QRect &screenArea); | 956 | void checkOffscreenPosition(QRect *geom, const QRect &screenArea); | ||
954 | int borderLeft() const; | 957 | int borderLeft() const; | ||
955 | int borderRight() const; | 958 | int borderRight() const; | ||
956 | int borderTop() const; | 959 | int borderTop() const; | ||
957 | int borderBottom() const; | 960 | int borderBottom() const; | ||
958 | virtual void changeMaximize(bool horizontal, bool vertical, bool adjust) = 0; | 961 | virtual void changeMaximize(bool horizontal, bool vertical, bool adjust) = 0; | ||
959 | virtual void setGeometryRestore(const QRect &geo) = 0; | 962 | virtual void setGeometryRestore(const QRect &geo) = 0; | ||
963 | | ||||
960 | /** | 964 | /** | ||
961 | * Called from move after updating the geometry. Can be reimplemented to perform specific tasks. | 965 | * Called from move after updating the geometry. Can be reimplemented to perform specific tasks. | ||
962 | * The base implementation does nothing. | 966 | * The base implementation does nothing. | ||
963 | **/ | 967 | **/ | ||
964 | virtual void doMove(int x, int y); | 968 | virtual void doMove(int x, int y); | ||
965 | void blockGeometryUpdates(bool block); | 969 | void blockGeometryUpdates(bool block); | ||
966 | void blockGeometryUpdates(); | 970 | void blockGeometryUpdates(); | ||
967 | void unblockGeometryUpdates(); | 971 | void unblockGeometryUpdates(); | ||
▲ Show 20 Lines • Show All 228 Lines • ▼ Show 20 Line(s) | 1163 | private: | |||
1196 | QTimer *m_electricMaximizingDelay = nullptr; | 1200 | QTimer *m_electricMaximizingDelay = nullptr; | ||
1197 | 1201 | | |||
1198 | // geometry | 1202 | // geometry | ||
1199 | int m_blockGeometryUpdates = 0; // > 0 = New geometry is remembered, but not actually set | 1203 | int m_blockGeometryUpdates = 0; // > 0 = New geometry is remembered, but not actually set | ||
1200 | PendingGeometry_t m_pendingGeometryUpdate = PendingGeometryNone; | 1204 | PendingGeometry_t m_pendingGeometryUpdate = PendingGeometryNone; | ||
1201 | friend class GeometryUpdatesBlocker; | 1205 | friend class GeometryUpdatesBlocker; | ||
1202 | QRect m_visibleRectBeforeGeometryUpdate; | 1206 | QRect m_visibleRectBeforeGeometryUpdate; | ||
1203 | QRect m_geometryBeforeUpdateBlocking; | 1207 | QRect m_geometryBeforeUpdateBlocking; | ||
1208 | QRect m_virtualKeyboardGeometry; | ||||
1209 | QRect m_keyboardGeometryRestore; | ||||
1204 | 1210 | | |||
1205 | struct { | 1211 | struct { | ||
1206 | bool enabled = false; | 1212 | bool enabled = false; | ||
1207 | bool unrestricted = false; | 1213 | bool unrestricted = false; | ||
1208 | QPoint offset; | 1214 | QPoint offset; | ||
1209 | QPoint invertedOffset; | 1215 | QPoint invertedOffset; | ||
1210 | QRect initialGeometry; | 1216 | QRect initialGeometry; | ||
1211 | QRect geometry; | 1217 | QRect geometry; | ||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |
Please add a comment to say geo is relative to the global space, not the client