Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwinoptions/mouse.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
48 | }; | 48 | }; | ||
49 | 49 | | |||
50 | class KTitleBarActionsConfig : public KCModule | 50 | class KTitleBarActionsConfig : public KCModule | ||
51 | { | 51 | { | ||
52 | Q_OBJECT | 52 | Q_OBJECT | ||
53 | 53 | | |||
54 | public: | 54 | public: | ||
55 | 55 | | |||
56 | KTitleBarActionsConfig(bool _standAlone, KConfig *_config, QWidget *parent); | 56 | KTitleBarActionsConfig(bool _standAlone, QWidget *parent); | ||
57 | ~KTitleBarActionsConfig() override; | | |||
58 | 57 | | |||
59 | void load() override; | | |||
60 | void save() override; | 58 | void save() override; | ||
61 | void defaults() override; | | |||
62 | 59 | | |||
63 | protected: | 60 | protected: | ||
64 | void showEvent(QShowEvent *ev) override; | 61 | void showEvent(QShowEvent *ev) override; | ||
65 | void changeEvent(QEvent *ev) override; | 62 | void changeEvent(QEvent *ev) override; | ||
66 | 63 | | |||
67 | public Q_SLOTS: | | |||
68 | void changed() { | | |||
69 | emit KCModule::changed(true); | | |||
70 | } | | |||
71 | | ||||
72 | private: | 64 | private: | ||
73 | | ||||
74 | KConfig *config; | | |||
75 | bool standAlone; | 65 | bool standAlone; | ||
76 | 66 | | |||
77 | KWinMouseConfigForm *m_ui; | 67 | KWinMouseConfigForm *m_ui; | ||
78 | 68 | | |||
79 | const char* functionTiDbl(int); | | |||
80 | const char* functionTiAc(int); | | |||
81 | const char* functionTiWAc(int); | | |||
82 | const char* functionTiInAc(int); | | |||
83 | const char* functionMax(int); | | |||
84 | | ||||
85 | void setComboText(KComboBox* combo, const char* text); | | |||
86 | void createMaximizeButtonTooltips(KComboBox* combo); | 69 | void createMaximizeButtonTooltips(KComboBox* combo); | ||
87 | const char* fixup(const char* s); | | |||
88 | 70 | | |||
89 | private Q_SLOTS: | 71 | private Q_SLOTS: | ||
90 | void paletteChanged(); | 72 | void paletteChanged(); | ||
91 | 73 | | |||
92 | }; | 74 | }; | ||
93 | 75 | | |||
94 | class KWindowActionsConfig : public KCModule | 76 | class KWindowActionsConfig : public KCModule | ||
95 | { | 77 | { | ||
96 | Q_OBJECT | 78 | Q_OBJECT | ||
97 | 79 | | |||
98 | public: | 80 | public: | ||
99 | 81 | | |||
100 | KWindowActionsConfig(bool _standAlone, KConfig *_config, QWidget *parent); | 82 | KWindowActionsConfig(bool _standAlone, QWidget *parent); | ||
101 | ~KWindowActionsConfig() override; | | |||
102 | 83 | | |||
103 | void load() override; | | |||
104 | void save() override; | 84 | void save() override; | ||
105 | void defaults() override; | | |||
106 | 85 | | |||
107 | protected: | 86 | protected: | ||
108 | void showEvent(QShowEvent *ev) override; | 87 | void showEvent(QShowEvent *ev) override; | ||
109 | 88 | | |||
110 | public Q_SLOTS: | | |||
111 | void changed() { | | |||
112 | emit KCModule::changed(true); | | |||
113 | } | | |||
114 | | ||||
115 | private: | 89 | private: | ||
116 | KConfig *config; | | |||
117 | bool standAlone; | 90 | bool standAlone; | ||
118 | 91 | | |||
119 | KWinActionsConfigForm *m_ui; | 92 | KWinActionsConfigForm *m_ui; | ||
120 | | ||||
121 | const char* functionWin(int); | | |||
122 | const char* functionWinWheel(int); | | |||
123 | const char* functionAllKey(int); | | |||
124 | const char* functionAll(int); | | |||
125 | const char* functionAllW(int); | | |||
126 | | ||||
127 | void setComboText(KComboBox* combo, const char* text); | | |||
128 | const char* fixup(const char* s); | | |||
129 | }; | 93 | }; | ||
130 | 94 | | |||
131 | #endif | 95 | #endif | ||
132 | 96 | |