Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.h
Show First 20 Lines • Show All 698 Lines • ▼ Show 20 Line(s) | 294 | public: | |||
---|---|---|---|---|---|
699 | * | 699 | * | ||
700 | * @see providesContextHelp() | 700 | * @see providesContextHelp() | ||
701 | */ | 701 | */ | ||
702 | virtual void showContextHelp(); | 702 | virtual void showContextHelp(); | ||
703 | 703 | | |||
704 | QRect inputGeometry() const override; | 704 | QRect inputGeometry() const override; | ||
705 | 705 | | |||
706 | /** | 706 | /** | ||
707 | * Restores the AbstractClient after it had been hidden due to show on screen edge functionality. | 707 | * Restores the AbstractClient after it had been hidden due to show on screen edge functionality. | ||
davidedmundson: Please add a comment to say geo is relative to the global space, not the client
| |||||
708 | * The AbstractClient also gets raised (e.g. Panel mode windows can cover) and the AbstractClient | 708 | * The AbstractClient also gets raised (e.g. Panel mode windows can cover) and the AbstractClient | ||
709 | * gets informed in a window specific way that it is shown and raised again. | 709 | * gets informed in a window specific way that it is shown and raised again. | ||
710 | **/ | 710 | **/ | ||
711 | virtual void showOnScreenEdge() = 0; | 711 | virtual void showOnScreenEdge() = 0; | ||
712 | 712 | | |||
713 | QByteArray desktopFileName() const { | 713 | QByteArray desktopFileName() const { | ||
714 | return m_desktopFileName; | 714 | return m_desktopFileName; | ||
715 | } | 715 | } | ||
▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 762 | Q_SIGNALS: | |||
801 | void applicationMenuActiveChanged(bool); | 801 | void applicationMenuActiveChanged(bool); | ||
802 | void unresponsiveChanged(bool); | 802 | void unresponsiveChanged(bool); | ||
803 | /** | 803 | /** | ||
804 | * Emitted whenever the Client's TabGroup changed. That is whenever the Client is moved to | 804 | * Emitted whenever the Client's TabGroup changed. That is whenever the Client is moved to | ||
805 | * another group, but not when a Client gets added or removed to the Client's ClientGroup. | 805 | * another group, but not when a Client gets added or removed to the Client's ClientGroup. | ||
806 | **/ | 806 | **/ | ||
807 | void tabGroupChanged(); | 807 | void tabGroupChanged(); | ||
808 | 808 | | |||
809 | virtual void setGeometryRestore(const QRect &geo) = 0; | ||||
810 | | ||||
809 | protected: | 811 | protected: | ||
810 | AbstractClient(); | 812 | AbstractClient(); | ||
811 | void setFirstInTabBox(bool enable) { | 813 | void setFirstInTabBox(bool enable) { | ||
812 | m_firstInTabBox = enable; | 814 | m_firstInTabBox = enable; | ||
813 | } | 815 | } | ||
814 | void setIcon(const QIcon &icon); | 816 | void setIcon(const QIcon &icon); | ||
815 | void startAutoRaise(); | 817 | void startAutoRaise(); | ||
816 | void autoRaise(); | 818 | void autoRaise(); | ||
▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | |||||
902 | 904 | | |||
903 | // geometry handling | 905 | // geometry handling | ||
904 | void checkOffscreenPosition(QRect *geom, const QRect &screenArea); | 906 | void checkOffscreenPosition(QRect *geom, const QRect &screenArea); | ||
905 | int borderLeft() const; | 907 | int borderLeft() const; | ||
906 | int borderRight() const; | 908 | int borderRight() const; | ||
907 | int borderTop() const; | 909 | int borderTop() const; | ||
908 | int borderBottom() const; | 910 | int borderBottom() const; | ||
909 | virtual void changeMaximize(bool horizontal, bool vertical, bool adjust) = 0; | 911 | virtual void changeMaximize(bool horizontal, bool vertical, bool adjust) = 0; | ||
910 | virtual void setGeometryRestore(const QRect &geo) = 0; | 912 | | ||
911 | /** | 913 | /** | ||
912 | * Called from move after updating the geometry. Can be reimplemented to perform specific tasks. | 914 | * Called from move after updating the geometry. Can be reimplemented to perform specific tasks. | ||
913 | * The base implementation does nothing. | 915 | * The base implementation does nothing. | ||
914 | **/ | 916 | **/ | ||
915 | virtual void doMove(int x, int y); | 917 | virtual void doMove(int x, int y); | ||
916 | void blockGeometryUpdates(bool block); | 918 | void blockGeometryUpdates(bool block); | ||
917 | void blockGeometryUpdates(); | 919 | void blockGeometryUpdates(); | ||
918 | void unblockGeometryUpdates(); | 920 | void unblockGeometryUpdates(); | ||
▲ Show 20 Lines • Show All 348 Lines • Show Last 20 Lines |
Please add a comment to say geo is relative to the global space, not the client