Changeset View
Changeset View
Standalone View
Standalone View
options.h
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Line(s) | 49 | { | |||
---|---|---|---|---|---|
145 | * Whether a window gets maximized when it reaches top screen edge while being moved. | 145 | * Whether a window gets maximized when it reaches top screen edge while being moved. | ||
146 | **/ | 146 | **/ | ||
147 | Q_PROPERTY(bool electricBorderMaximize READ electricBorderMaximize WRITE setElectricBorderMaximize NOTIFY electricBorderMaximizeChanged) | 147 | Q_PROPERTY(bool electricBorderMaximize READ electricBorderMaximize WRITE setElectricBorderMaximize NOTIFY electricBorderMaximizeChanged) | ||
148 | /** | 148 | /** | ||
149 | * Whether a window is tiled to half screen when reaching left or right screen edge while been moved. | 149 | * Whether a window is tiled to half screen when reaching left or right screen edge while been moved. | ||
150 | **/ | 150 | **/ | ||
151 | Q_PROPERTY(bool electricBorderTiling READ electricBorderTiling WRITE setElectricBorderTiling NOTIFY electricBorderTilingChanged) | 151 | Q_PROPERTY(bool electricBorderTiling READ electricBorderTiling WRITE setElectricBorderTiling NOTIFY electricBorderTilingChanged) | ||
152 | /** | 152 | /** | ||
153 | * Whether a window is tiled to half screen when reaching left or right screen edge while been moved. | 153 | * Whether a window is tiled to quarter screen when reaching top-left, top-right, bottom-left or bottom-right border zones of the screen while been moved. | ||
154 | **/ | ||||
155 | Q_PROPERTY(bool electricBorderCornerTiling READ electricBorderCornerTiling WRITE setElectricBorderCornerTiling NOTIFY electricBorderCornerTilingChanged) | ||||
156 | /** | ||||
157 | * The ratio of the corner tiling zone height to the current screen height. | ||||
154 | **/ | 158 | **/ | ||
155 | Q_PROPERTY(float electricBorderCornerRatio READ electricBorderCornerRatio WRITE setElectricBorderCornerRatio NOTIFY electricBorderCornerRatioChanged) | 159 | Q_PROPERTY(float electricBorderCornerRatio READ electricBorderCornerRatio WRITE setElectricBorderCornerRatio NOTIFY electricBorderCornerRatioChanged) | ||
156 | Q_PROPERTY(bool borderlessMaximizedWindows READ borderlessMaximizedWindows WRITE setBorderlessMaximizedWindows NOTIFY borderlessMaximizedWindowsChanged) | 160 | Q_PROPERTY(bool borderlessMaximizedWindows READ borderlessMaximizedWindows WRITE setBorderlessMaximizedWindows NOTIFY borderlessMaximizedWindowsChanged) | ||
157 | /** | 161 | /** | ||
158 | * timeout before non-responding application will be killed after attempt to close. | 162 | * timeout before non-responding application will be killed after attempt to close. | ||
159 | **/ | 163 | **/ | ||
160 | Q_PROPERTY(int killPingTimeout READ killPingTimeout WRITE setKillPingTimeout NOTIFY killPingTimeoutChanged) | 164 | Q_PROPERTY(int killPingTimeout READ killPingTimeout WRITE setKillPingTimeout NOTIFY killPingTimeoutChanged) | ||
161 | /** | 165 | /** | ||
▲ Show 20 Lines • Show All 341 Lines • ▼ Show 20 Line(s) | 197 | public: | |||
503 | /** | 507 | /** | ||
504 | * @returns true if window is tiled to half screen when reaching left or | 508 | * @returns true if window is tiled to half screen when reaching left or | ||
505 | * right screen edge while been moved. | 509 | * right screen edge while been moved. | ||
506 | **/ | 510 | **/ | ||
507 | bool electricBorderTiling() const { | 511 | bool electricBorderTiling() const { | ||
508 | return electric_border_tiling; | 512 | return electric_border_tiling; | ||
509 | } | 513 | } | ||
510 | /** | 514 | /** | ||
515 | * @returns true if window is tiled to quarter screen when reaching | ||||
516 | * top-left, top-right, bottom-left or bottom-right border zones of the screen while been moved. | ||||
517 | **/ | ||||
518 | bool electricBorderCornerTiling() const { | ||||
519 | return electric_border_corner_tiling; | ||||
520 | } | ||||
521 | /** | ||||
511 | * @returns the factor that determines the corner part of the edge (ie. 0.1 means tiny corner) | 522 | * @returns the factor that determines the corner part of the edge (ie. 0.1 means tiny corner) | ||
512 | **/ | 523 | **/ | ||
513 | float electricBorderCornerRatio() const { | 524 | float electricBorderCornerRatio() const { | ||
514 | return electric_border_corner_ratio; | 525 | return electric_border_corner_ratio; | ||
515 | } | 526 | } | ||
516 | 527 | | |||
517 | bool borderlessMaximizedWindows() const { | 528 | bool borderlessMaximizedWindows() const { | ||
518 | return borderless_maximized_windows; | 529 | return borderless_maximized_windows; | ||
▲ Show 20 Lines • Show All 129 Lines • ▼ Show 20 Line(s) | |||||
648 | void setCommandAll1(MouseCommand commandAll1); | 659 | void setCommandAll1(MouseCommand commandAll1); | ||
649 | void setCommandAll2(MouseCommand commandAll2); | 660 | void setCommandAll2(MouseCommand commandAll2); | ||
650 | void setCommandAll3(MouseCommand commandAll3); | 661 | void setCommandAll3(MouseCommand commandAll3); | ||
651 | void setKeyCmdAllModKey(uint keyCmdAllModKey); | 662 | void setKeyCmdAllModKey(uint keyCmdAllModKey); | ||
652 | void setShowGeometryTip(bool showGeometryTip); | 663 | void setShowGeometryTip(bool showGeometryTip); | ||
653 | void setCondensedTitle(bool condensedTitle); | 664 | void setCondensedTitle(bool condensedTitle); | ||
654 | void setElectricBorderMaximize(bool electricBorderMaximize); | 665 | void setElectricBorderMaximize(bool electricBorderMaximize); | ||
655 | void setElectricBorderTiling(bool electricBorderTiling); | 666 | void setElectricBorderTiling(bool electricBorderTiling); | ||
667 | void setElectricBorderCornerTiling(bool electricBorderCornerTiling); | ||||
656 | void setElectricBorderCornerRatio(float electricBorderCornerRatio); | 668 | void setElectricBorderCornerRatio(float electricBorderCornerRatio); | ||
657 | void setBorderlessMaximizedWindows(bool borderlessMaximizedWindows); | 669 | void setBorderlessMaximizedWindows(bool borderlessMaximizedWindows); | ||
658 | void setKillPingTimeout(int killPingTimeout); | 670 | void setKillPingTimeout(int killPingTimeout); | ||
659 | void setHideUtilityWindowsForInactive(bool hideUtilityWindowsForInactive); | 671 | void setHideUtilityWindowsForInactive(bool hideUtilityWindowsForInactive); | ||
660 | void setInactiveTabsSkipTaskbar(bool inactiveTabsSkipTaskbar); | 672 | void setInactiveTabsSkipTaskbar(bool inactiveTabsSkipTaskbar); | ||
661 | void setAutogroupSimilarWindows(bool autogroupSimilarWindows); | 673 | void setAutogroupSimilarWindows(bool autogroupSimilarWindows); | ||
662 | void setAutogroupInForeground(bool autogroupInForeground); | 674 | void setAutogroupInForeground(bool autogroupInForeground); | ||
663 | void setCompositingMode(int compositingMode); | 675 | void setCompositingMode(int compositingMode); | ||
▲ Show 20 Lines • Show All 175 Lines • ▼ Show 20 Line(s) | 817 | Q_SIGNALS: | |||
839 | void commandAll1Changed(); | 851 | void commandAll1Changed(); | ||
840 | void commandAll2Changed(); | 852 | void commandAll2Changed(); | ||
841 | void commandAll3Changed(); | 853 | void commandAll3Changed(); | ||
842 | void keyCmdAllModKeyChanged(); | 854 | void keyCmdAllModKeyChanged(); | ||
843 | void showGeometryTipChanged(); | 855 | void showGeometryTipChanged(); | ||
844 | void condensedTitleChanged(); | 856 | void condensedTitleChanged(); | ||
845 | void electricBorderMaximizeChanged(); | 857 | void electricBorderMaximizeChanged(); | ||
846 | void electricBorderTilingChanged(); | 858 | void electricBorderTilingChanged(); | ||
859 | void electricBorderCornerTilingChanged(); | ||||
847 | void electricBorderCornerRatioChanged(); | 860 | void electricBorderCornerRatioChanged(); | ||
848 | void borderlessMaximizedWindowsChanged(); | 861 | void borderlessMaximizedWindowsChanged(); | ||
849 | void killPingTimeoutChanged(); | 862 | void killPingTimeoutChanged(); | ||
850 | void hideUtilityWindowsForInactiveChanged(); | 863 | void hideUtilityWindowsForInactiveChanged(); | ||
851 | void inactiveTabsSkipTaskbarChanged(); | 864 | void inactiveTabsSkipTaskbarChanged(); | ||
852 | void autogroupSimilarWindowsChanged(); | 865 | void autogroupSimilarWindowsChanged(); | ||
853 | void autogroupInForegroundChanged(); | 866 | void autogroupInForegroundChanged(); | ||
854 | void compositingModeChanged(); | 867 | void compositingModeChanged(); | ||
▲ Show 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 885 | private: | |||
933 | MouseCommand CmdAll1; | 946 | MouseCommand CmdAll1; | ||
934 | MouseCommand CmdAll2; | 947 | MouseCommand CmdAll2; | ||
935 | MouseCommand CmdAll3; | 948 | MouseCommand CmdAll3; | ||
936 | MouseWheelCommand CmdAllWheel; | 949 | MouseWheelCommand CmdAllWheel; | ||
937 | uint CmdAllModKey; | 950 | uint CmdAllModKey; | ||
938 | 951 | | |||
939 | bool electric_border_maximize; | 952 | bool electric_border_maximize; | ||
940 | bool electric_border_tiling; | 953 | bool electric_border_tiling; | ||
954 | bool electric_border_corner_tiling; | ||||
941 | float electric_border_corner_ratio; | 955 | float electric_border_corner_ratio; | ||
942 | bool borderless_maximized_windows; | 956 | bool borderless_maximized_windows; | ||
943 | bool show_geometry_tip; | 957 | bool show_geometry_tip; | ||
944 | bool condensed_title; | 958 | bool condensed_title; | ||
945 | int animationSpeed; // 0 - instant, 5 - very slow | 959 | int animationSpeed; // 0 - instant, 5 - very slow | ||
946 | 960 | | |||
947 | QHash<Qt::KeyboardModifier, QStringList> m_modifierOnlyShortcuts; | 961 | QHash<Qt::KeyboardModifier, QStringList> m_modifierOnlyShortcuts; | ||
948 | 962 | | |||
Show All 11 Lines |