Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwincompositing/compositing.h
Show All 22 Lines | |||||
23 | #define COMPOSITING_H | 23 | #define COMPOSITING_H | ||
24 | 24 | | |||
25 | #include <QAbstractItemModel> | 25 | #include <QAbstractItemModel> | ||
26 | #include <QObject> | 26 | #include <QObject> | ||
27 | #include <KSharedConfig> | 27 | #include <KSharedConfig> | ||
28 | 28 | | |||
29 | class OrgKdeKwinCompositingInterface; | 29 | class OrgKdeKwinCompositingInterface; | ||
30 | 30 | | |||
31 | class KWinCompositingSetting; | ||||
32 | | ||||
31 | namespace KWin { | 33 | namespace KWin { | ||
32 | namespace Compositing { | 34 | namespace Compositing { | ||
33 | 35 | | |||
34 | class OpenGLPlatformInterfaceModel; | 36 | class OpenGLPlatformInterfaceModel; | ||
35 | 37 | | |||
36 | class Compositing : public QObject | 38 | class Compositing : public QObject | ||
37 | { | 39 | { | ||
38 | 40 | | |||
Show All 38 Lines | 53 | public: | |||
77 | void setOpenGLPlatformInterface(int interface); | 79 | void setOpenGLPlatformInterface(int interface); | ||
78 | void setWindowsBlockCompositing(bool set); | 80 | void setWindowsBlockCompositing(bool set); | ||
79 | 81 | | |||
80 | void save(); | 82 | void save(); | ||
81 | 83 | | |||
82 | static bool isRunningPlasma(); | 84 | static bool isRunningPlasma(); | ||
83 | 85 | | |||
84 | public Q_SLOTS: | 86 | public Q_SLOTS: | ||
85 | void reset(); | 87 | void load(); | ||
86 | void defaults(); | 88 | void defaults(); | ||
87 | 89 | | |||
88 | Q_SIGNALS: | 90 | Q_SIGNALS: | ||
89 | void changed(); | 91 | void changed(bool changed); | ||
92 | void defaulted(bool defaulted); | ||||
90 | void animationSpeedChanged(qreal); | 93 | void animationSpeedChanged(qreal); | ||
zzag: We probably don't need this signal anymore. | |||||
91 | void windowThumbnailChanged(int); | 94 | void windowThumbnailChanged(int); | ||
92 | void glScaleFilterChanged(int); | 95 | void glScaleFilterChanged(int); | ||
93 | void xrScaleFilterChanged(int); | 96 | void xrScaleFilterChanged(int); | ||
94 | void glSwapStrategyChanged(int); | 97 | void glSwapStrategyChanged(int); | ||
95 | void compositingTypeChanged(int); | 98 | void compositingTypeChanged(int); | ||
96 | void compositingEnabledChanged(bool); | 99 | void compositingEnabledChanged(bool); | ||
97 | void openGLPlatformInterfaceChanged(int); | 100 | void openGLPlatformInterfaceChanged(int); | ||
98 | void windowsBlockCompositingChanged(bool); | 101 | void windowsBlockCompositingChanged(bool); | ||
99 | 102 | | |||
103 | private Q_SLOTS: | ||||
104 | void updateSettings(); | ||||
105 | | ||||
100 | private: | 106 | private: | ||
107 | void applyValues(); | ||||
naming nit: could you please rename these methods to something else? It's unclear what values applyValues applies. What about these? void updateSettingsFromUi(); void updateUiFromSettings(); Feel free to ignore this comment because it looks like these methods will go away in D27988 zzag: naming nit: could you please rename these methods to something else? It's unclear what values… | |||||
108 | | ||||
101 | qreal m_animationSpeed; | 109 | qreal m_animationSpeed; | ||
102 | int m_windowThumbnail; | 110 | int m_windowThumbnail; | ||
103 | int m_glScaleFilter; | 111 | int m_glScaleFilter; | ||
104 | bool m_xrScaleFilter; | 112 | bool m_xrScaleFilter; | ||
105 | int m_glSwapStrategy; | 113 | int m_glSwapStrategy; | ||
106 | int m_compositingType; | 114 | int m_compositingType; | ||
107 | bool m_compositingEnabled; | 115 | bool m_compositingEnabled; | ||
108 | bool m_changed; | | |||
109 | OpenGLPlatformInterfaceModel *m_openGLPlatformInterfaceModel; | 116 | OpenGLPlatformInterfaceModel *m_openGLPlatformInterfaceModel; | ||
110 | int m_openGLPlatformInterface; | 117 | int m_openGLPlatformInterface; | ||
111 | bool m_windowsBlockCompositing; | 118 | bool m_windowsBlockCompositing; | ||
112 | bool m_windowsBlockingCompositing; | 119 | bool m_windowsBlockingCompositing; | ||
113 | OrgKdeKwinCompositingInterface *m_compositingInterface; | 120 | OrgKdeKwinCompositingInterface *m_compositingInterface; | ||
114 | KSharedConfigPtr m_config; | 121 | KSharedConfigPtr m_config; | ||
122 | KWinCompositingSetting *m_settings; | ||||
115 | }; | 123 | }; | ||
116 | 124 | | |||
117 | 125 | | |||
118 | struct CompositingData; | 126 | struct CompositingData; | ||
119 | 127 | | |||
120 | class CompositingType : public QAbstractItemModel | 128 | class CompositingType : public QAbstractItemModel | ||
121 | { | 129 | { | ||
122 | 130 | | |||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |
We probably don't need this signal anymore.