Changeset View
Changeset View
Standalone View
Standalone View
kcm/src/widget.h
Show All 19 Lines | |||||
20 | #ifndef WIDGET_H | 20 | #ifndef WIDGET_H | ||
21 | #define WIDGET_H | 21 | #define WIDGET_H | ||
22 | 22 | | |||
23 | #include <QWidget> | 23 | #include <QWidget> | ||
24 | #include <QVariantMap> | 24 | #include <QVariantMap> | ||
25 | 25 | | |||
26 | #include <kscreen/config.h> | 26 | #include <kscreen/config.h> | ||
27 | 27 | | |||
28 | class ProfilesModel; | | |||
29 | class QLabel; | 28 | class QLabel; | ||
30 | class QMLOutput; | 29 | class QMLOutput; | ||
31 | class QMLScreen; | 30 | class QMLScreen; | ||
32 | class ControlPanel; | 31 | class ControlPanel; | ||
33 | class PrimaryOutputCombo; | 32 | class PrimaryOutputCombo; | ||
34 | 33 | | |||
35 | class QPushButton; | 34 | class QPushButton; | ||
36 | class QComboBox; | 35 | class QComboBox; | ||
Show All 30 Lines | 51 | { | |||
67 | 66 | | |||
68 | private Q_SLOTS: | 67 | private Q_SLOTS: | ||
69 | void slotFocusedOutputChanged(QMLOutput *output); | 68 | void slotFocusedOutputChanged(QMLOutput *output); | ||
70 | 69 | | |||
71 | void slotOutputEnabledChanged(); | 70 | void slotOutputEnabledChanged(); | ||
72 | void slotOutputConnectedChanged(); | 71 | void slotOutputConnectedChanged(); | ||
73 | 72 | | |||
74 | void slotUnifyOutputs(); | 73 | void slotUnifyOutputs(); | ||
75 | void slotProfileChanged(int index); | | |||
76 | | ||||
77 | void slotProfilesAboutToUpdate(); | | |||
78 | void slotProfilesUpdated(); | | |||
79 | 74 | | |||
80 | void slotIdentifyButtonClicked(bool checked = true); | 75 | void slotIdentifyButtonClicked(bool checked = true); | ||
81 | void slotIdentifyOutputs(KScreen::ConfigOperation *op); | 76 | void slotIdentifyOutputs(KScreen::ConfigOperation *op); | ||
82 | void clearOutputIdentifiers(); | 77 | void clearOutputIdentifiers(); | ||
83 | 78 | | |||
84 | void outputAdded(const KScreen::OutputPtr &output); | 79 | void outputAdded(const KScreen::OutputPtr &output); | ||
85 | void outputRemoved(int outputId); | 80 | void outputRemoved(int outputId); | ||
86 | void primaryOutputSelected(int index); | 81 | void primaryOutputSelected(int index); | ||
Show All 9 Lines | |||||
96 | private: | 91 | private: | ||
97 | Ui::KScreenWidget *ui; | 92 | Ui::KScreenWidget *ui; | ||
98 | QMLScreen *mScreen = nullptr; | 93 | QMLScreen *mScreen = nullptr; | ||
99 | KScreen::ConfigPtr mConfig = nullptr; | 94 | KScreen::ConfigPtr mConfig = nullptr; | ||
100 | KScreen::ConfigPtr mPrevConfig = nullptr; | 95 | KScreen::ConfigPtr mPrevConfig = nullptr; | ||
101 | 96 | | |||
102 | ControlPanel *mControlPanel = nullptr; | 97 | ControlPanel *mControlPanel = nullptr; | ||
103 | 98 | | |||
104 | ProfilesModel *mProfilesModel = nullptr; | | |||
105 | QComboBox *mProfilesCombo = nullptr; | | |||
106 | QPushButton *mSaveProfileButton = nullptr; | | |||
107 | | ||||
108 | QList<QQuickView*> mOutputIdentifiers; | 99 | QList<QQuickView*> mOutputIdentifiers; | ||
109 | QTimer *mOutputTimer = nullptr; | 100 | QTimer *mOutputTimer = nullptr; | ||
110 | }; | 101 | }; | ||
111 | 102 | | |||
112 | #endif // WIDGET_H | 103 | #endif // WIDGET_H |