Changeset View
Changeset View
Standalone View
Standalone View
kcm/config_handler.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 30 | public: | |||
---|---|---|---|---|---|
42 | 42 | | |||
43 | KScreen::ConfigPtr config() const { | 43 | KScreen::ConfigPtr config() const { | ||
44 | return m_config; | 44 | return m_config; | ||
45 | } | 45 | } | ||
46 | 46 | | |||
47 | int retention() const; | 47 | int retention() const; | ||
48 | void setRetention(int retention); | 48 | void setRetention(int retention); | ||
49 | 49 | | |||
50 | qreal scale(const KScreen::OutputPtr &output) const; | ||||
51 | void setScale(KScreen::OutputPtr &output, qreal scale); | ||||
52 | | ||||
50 | KScreen::OutputPtr replicationSource(const KScreen::OutputPtr &output) const; | 53 | KScreen::OutputPtr replicationSource(const KScreen::OutputPtr &output) const; | ||
51 | void setReplicationSource(KScreen::OutputPtr &output, const KScreen::OutputPtr &source); | 54 | void setReplicationSource(KScreen::OutputPtr &output, const KScreen::OutputPtr &source); | ||
52 | 55 | | |||
53 | void writeControl(); | 56 | void writeControl(); | ||
54 | 57 | | |||
55 | void checkNeedsSave(); | 58 | void checkNeedsSave(); | ||
56 | 59 | | |||
57 | Q_SIGNALS: | 60 | Q_SIGNALS: | ||
58 | void outputModelChanged(); | 61 | void outputModelChanged(); | ||
59 | void changed(); | 62 | void changed(); | ||
60 | void screenNormalizationUpdate(bool normalized); | 63 | void screenNormalizationUpdate(bool normalized); | ||
61 | void needsSaveChecked(bool need); | 64 | void needsSaveChecked(bool need); | ||
62 | void retentionChanged(); | 65 | void retentionChanged(); | ||
63 | void outputConnect(bool connected); | 66 | void outputConnect(bool connected); | ||
64 | 67 | | |||
65 | private: | 68 | private: | ||
66 | void checkScreenNormalization(); | 69 | void checkScreenNormalization(); | ||
67 | QSize screenSize() const; | 70 | QSize screenSize() const; | ||
68 | Control::OutputRetention getRetention() const; | 71 | Control::OutputRetention getRetention() const; | ||
69 | void primaryOutputSelected(int index); | 72 | void primaryOutputSelected(int index); | ||
70 | void primaryOutputChanged(const KScreen::OutputPtr &output); | 73 | void primaryOutputChanged(const KScreen::OutputPtr &output); | ||
71 | void initOutput(const KScreen::OutputPtr &output); | 74 | void initOutput(const KScreen::OutputPtr &output); | ||
75 | void resetScale(const KScreen::OutputPtr &output); | ||||
72 | 76 | | |||
73 | KScreen::ConfigPtr m_config = nullptr; | 77 | KScreen::ConfigPtr m_config = nullptr; | ||
74 | KScreen::ConfigPtr m_initialConfig; | 78 | KScreen::ConfigPtr m_initialConfig; | ||
75 | OutputModel *m_outputs = nullptr; | 79 | OutputModel *m_outputs = nullptr; | ||
76 | 80 | | |||
77 | std::unique_ptr<ControlConfig> m_control; | 81 | std::unique_ptr<ControlConfig> m_control; | ||
78 | Control::OutputRetention m_initialRetention = Control::OutputRetention:: | 82 | Control::OutputRetention m_initialRetention = Control::OutputRetention:: | ||
79 | Undefined; | 83 | Undefined; | ||
80 | QSize m_lastNormalizedScreenSize; | 84 | QSize m_lastNormalizedScreenSize; | ||
81 | }; | 85 | }; |