Changeset View
Changeset View
Standalone View
Standalone View
options.h
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Line(s) | 49 | { | |||
---|---|---|---|---|---|
164 | Q_PROPERTY(bool hideUtilityWindowsForInactive READ isHideUtilityWindowsForInactive WRITE setHideUtilityWindowsForInactive NOTIFY hideUtilityWindowsForInactiveChanged) | 164 | Q_PROPERTY(bool hideUtilityWindowsForInactive READ isHideUtilityWindowsForInactive WRITE setHideUtilityWindowsForInactive NOTIFY hideUtilityWindowsForInactiveChanged) | ||
165 | Q_PROPERTY(bool inactiveTabsSkipTaskbar READ isInactiveTabsSkipTaskbar WRITE setInactiveTabsSkipTaskbar NOTIFY inactiveTabsSkipTaskbarChanged) | 165 | Q_PROPERTY(bool inactiveTabsSkipTaskbar READ isInactiveTabsSkipTaskbar WRITE setInactiveTabsSkipTaskbar NOTIFY inactiveTabsSkipTaskbarChanged) | ||
166 | Q_PROPERTY(bool autogroupSimilarWindows READ isAutogroupSimilarWindows WRITE setAutogroupSimilarWindows NOTIFY autogroupSimilarWindowsChanged) | 166 | Q_PROPERTY(bool autogroupSimilarWindows READ isAutogroupSimilarWindows WRITE setAutogroupSimilarWindows NOTIFY autogroupSimilarWindowsChanged) | ||
167 | Q_PROPERTY(bool autogroupInForeground READ isAutogroupInForeground WRITE setAutogroupInForeground NOTIFY autogroupInForegroundChanged) | 167 | Q_PROPERTY(bool autogroupInForeground READ isAutogroupInForeground WRITE setAutogroupInForeground NOTIFY autogroupInForegroundChanged) | ||
168 | Q_PROPERTY(int compositingMode READ compositingMode WRITE setCompositingMode NOTIFY compositingModeChanged) | 168 | Q_PROPERTY(int compositingMode READ compositingMode WRITE setCompositingMode NOTIFY compositingModeChanged) | ||
169 | Q_PROPERTY(bool useCompositing READ isUseCompositing WRITE setUseCompositing NOTIFY useCompositingChanged) | 169 | Q_PROPERTY(bool useCompositing READ isUseCompositing WRITE setUseCompositing NOTIFY useCompositingChanged) | ||
170 | Q_PROPERTY(bool compositingInitialized READ isCompositingInitialized WRITE setCompositingInitialized NOTIFY compositingInitializedChanged) | 170 | Q_PROPERTY(bool compositingInitialized READ isCompositingInitialized WRITE setCompositingInitialized NOTIFY compositingInitializedChanged) | ||
171 | Q_PROPERTY(int hiddenPreviews READ hiddenPreviews WRITE setHiddenPreviews NOTIFY hiddenPreviewsChanged) | 171 | Q_PROPERTY(int hiddenPreviews READ hiddenPreviews WRITE setHiddenPreviews NOTIFY hiddenPreviewsChanged) | ||
172 | Q_PROPERTY(bool unredirectFullscreen READ isUnredirectFullscreen WRITE setUnredirectFullscreen NOTIFY unredirectFullscreenChanged) | | |||
173 | /** | 172 | /** | ||
174 | * 0 = no, 1 = yes when transformed, | 173 | * 0 = no, 1 = yes when transformed, | ||
175 | * 2 = try trilinear when transformed; else 1, | 174 | * 2 = try trilinear when transformed; else 1, | ||
176 | * -1 = auto | 175 | * -1 = auto | ||
177 | **/ | 176 | **/ | ||
178 | Q_PROPERTY(int glSmoothScale READ glSmoothScale WRITE setGlSmoothScale NOTIFY glSmoothScaleChanged) | 177 | Q_PROPERTY(int glSmoothScale READ glSmoothScale WRITE setGlSmoothScale NOTIFY glSmoothScaleChanged) | ||
179 | Q_PROPERTY(bool colorCorrected READ isColorCorrected WRITE setColorCorrected NOTIFY colorCorrectedChanged) | 178 | Q_PROPERTY(bool colorCorrected READ isColorCorrected WRITE setColorCorrected NOTIFY colorCorrectedChanged) | ||
180 | Q_PROPERTY(bool xrenderSmoothScale READ isXrenderSmoothScale WRITE setXrenderSmoothScale NOTIFY xrenderSmoothScaleChanged) | 179 | Q_PROPERTY(bool xrenderSmoothScale READ isXrenderSmoothScale WRITE setXrenderSmoothScale NOTIFY xrenderSmoothScaleChanged) | ||
▲ Show 20 Lines • Show All 365 Lines • ▼ Show 20 Line(s) | 193 | public: | |||
546 | bool isCompositingInitialized() const { | 545 | bool isCompositingInitialized() const { | ||
547 | return m_compositingInitialized; | 546 | return m_compositingInitialized; | ||
548 | } | 547 | } | ||
549 | 548 | | |||
550 | // General preferences | 549 | // General preferences | ||
551 | HiddenPreviews hiddenPreviews() const { | 550 | HiddenPreviews hiddenPreviews() const { | ||
552 | return m_hiddenPreviews; | 551 | return m_hiddenPreviews; | ||
553 | } | 552 | } | ||
554 | bool isUnredirectFullscreen() const; | | |||
555 | // OpenGL | 553 | // OpenGL | ||
556 | // 0 = no, 1 = yes when transformed, | 554 | // 0 = no, 1 = yes when transformed, | ||
557 | // 2 = try trilinear when transformed; else 1, | 555 | // 2 = try trilinear when transformed; else 1, | ||
558 | // -1 = auto | 556 | // -1 = auto | ||
559 | int glSmoothScale() const { | 557 | int glSmoothScale() const { | ||
560 | return m_glSmoothScale; | 558 | return m_glSmoothScale; | ||
561 | } | 559 | } | ||
562 | bool isColorCorrected() const { | 560 | bool isColorCorrected() const { | ||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | |||||
643 | void setHideUtilityWindowsForInactive(bool hideUtilityWindowsForInactive); | 641 | void setHideUtilityWindowsForInactive(bool hideUtilityWindowsForInactive); | ||
644 | void setInactiveTabsSkipTaskbar(bool inactiveTabsSkipTaskbar); | 642 | void setInactiveTabsSkipTaskbar(bool inactiveTabsSkipTaskbar); | ||
645 | void setAutogroupSimilarWindows(bool autogroupSimilarWindows); | 643 | void setAutogroupSimilarWindows(bool autogroupSimilarWindows); | ||
646 | void setAutogroupInForeground(bool autogroupInForeground); | 644 | void setAutogroupInForeground(bool autogroupInForeground); | ||
647 | void setCompositingMode(int compositingMode); | 645 | void setCompositingMode(int compositingMode); | ||
648 | void setUseCompositing(bool useCompositing); | 646 | void setUseCompositing(bool useCompositing); | ||
649 | void setCompositingInitialized(bool compositingInitialized); | 647 | void setCompositingInitialized(bool compositingInitialized); | ||
650 | void setHiddenPreviews(int hiddenPreviews); | 648 | void setHiddenPreviews(int hiddenPreviews); | ||
651 | void setUnredirectFullscreen(bool unredirectFullscreen); | | |||
652 | void setGlSmoothScale(int glSmoothScale); | 649 | void setGlSmoothScale(int glSmoothScale); | ||
653 | void setXrenderSmoothScale(bool xrenderSmoothScale); | 650 | void setXrenderSmoothScale(bool xrenderSmoothScale); | ||
654 | void setMaxFpsInterval(qint64 maxFpsInterval); | 651 | void setMaxFpsInterval(qint64 maxFpsInterval); | ||
655 | void setRefreshRate(uint refreshRate); | 652 | void setRefreshRate(uint refreshRate); | ||
656 | void setVBlankTime(qint64 vBlankTime); | 653 | void setVBlankTime(qint64 vBlankTime); | ||
657 | void setGlStrictBinding(bool glStrictBinding); | 654 | void setGlStrictBinding(bool glStrictBinding); | ||
658 | void setGlStrictBindingFollowsDriver(bool glStrictBindingFollowsDriver); | 655 | void setGlStrictBindingFollowsDriver(bool glStrictBindingFollowsDriver); | ||
659 | void setGLCoreProfile(bool glCoreProfile); | 656 | void setGLCoreProfile(bool glCoreProfile); | ||
▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | 727 | static bool defaultUseCompositing() { | |||
731 | return true; | 728 | return true; | ||
732 | } | 729 | } | ||
733 | static bool defaultCompositingInitialized() { | 730 | static bool defaultCompositingInitialized() { | ||
734 | return false; | 731 | return false; | ||
735 | } | 732 | } | ||
736 | static HiddenPreviews defaultHiddenPreviews() { | 733 | static HiddenPreviews defaultHiddenPreviews() { | ||
737 | return HiddenPreviewsShown; | 734 | return HiddenPreviewsShown; | ||
738 | } | 735 | } | ||
739 | static bool defaultUnredirectFullscreen() { | | |||
740 | return false; | | |||
741 | } | | |||
742 | static int defaultGlSmoothScale() { | 736 | static int defaultGlSmoothScale() { | ||
743 | return 2; | 737 | return 2; | ||
744 | } | 738 | } | ||
745 | static bool defaultColorCorrected() { | 739 | static bool defaultColorCorrected() { | ||
746 | return false; | 740 | return false; | ||
747 | } | 741 | } | ||
748 | static bool defaultXrenderSmoothScale() { | 742 | static bool defaultXrenderSmoothScale() { | ||
749 | return false; | 743 | return false; | ||
▲ Show 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | 787 | Q_SIGNALS: | |||
838 | void hideUtilityWindowsForInactiveChanged(); | 832 | void hideUtilityWindowsForInactiveChanged(); | ||
839 | void inactiveTabsSkipTaskbarChanged(); | 833 | void inactiveTabsSkipTaskbarChanged(); | ||
840 | void autogroupSimilarWindowsChanged(); | 834 | void autogroupSimilarWindowsChanged(); | ||
841 | void autogroupInForegroundChanged(); | 835 | void autogroupInForegroundChanged(); | ||
842 | void compositingModeChanged(); | 836 | void compositingModeChanged(); | ||
843 | void useCompositingChanged(); | 837 | void useCompositingChanged(); | ||
844 | void compositingInitializedChanged(); | 838 | void compositingInitializedChanged(); | ||
845 | void hiddenPreviewsChanged(); | 839 | void hiddenPreviewsChanged(); | ||
846 | void unredirectFullscreenChanged(); | | |||
847 | void glSmoothScaleChanged(); | 840 | void glSmoothScaleChanged(); | ||
848 | void colorCorrectedChanged(); | 841 | void colorCorrectedChanged(); | ||
849 | void xrenderSmoothScaleChanged(); | 842 | void xrenderSmoothScaleChanged(); | ||
850 | void maxFpsIntervalChanged(); | 843 | void maxFpsIntervalChanged(); | ||
851 | void refreshRateChanged(); | 844 | void refreshRateChanged(); | ||
852 | void vBlankTimeChanged(); | 845 | void vBlankTimeChanged(); | ||
853 | void glStrictBindingChanged(); | 846 | void glStrictBindingChanged(); | ||
854 | void glStrictBindingFollowsDriverChanged(); | 847 | void glStrictBindingFollowsDriverChanged(); | ||
Show All 32 Lines | 857 | private: | |||
887 | bool m_inactiveTabsSkipTaskbar; | 880 | bool m_inactiveTabsSkipTaskbar; | ||
888 | bool m_autogroupSimilarWindows; | 881 | bool m_autogroupSimilarWindows; | ||
889 | bool m_autogroupInForeground; | 882 | bool m_autogroupInForeground; | ||
890 | 883 | | |||
891 | CompositingType m_compositingMode; | 884 | CompositingType m_compositingMode; | ||
892 | bool m_useCompositing; | 885 | bool m_useCompositing; | ||
893 | bool m_compositingInitialized; | 886 | bool m_compositingInitialized; | ||
894 | HiddenPreviews m_hiddenPreviews; | 887 | HiddenPreviews m_hiddenPreviews; | ||
895 | bool m_unredirectFullscreen; | | |||
896 | int m_glSmoothScale; | 888 | int m_glSmoothScale; | ||
897 | bool m_colorCorrected; | 889 | bool m_colorCorrected; | ||
898 | bool m_xrenderSmoothScale; | 890 | bool m_xrenderSmoothScale; | ||
899 | qint64 m_maxFpsInterval; | 891 | qint64 m_maxFpsInterval; | ||
900 | // Settings that should be auto-detected | 892 | // Settings that should be auto-detected | ||
901 | uint m_refreshRate; | 893 | uint m_refreshRate; | ||
902 | qint64 m_vBlankTime; | 894 | qint64 m_vBlankTime; | ||
903 | bool m_glStrictBinding; | 895 | bool m_glStrictBinding; | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |