Changeset View
Changeset View
Standalone View
Standalone View
plugins/kdecorations/aurorae/src/lib/auroraetheme.h
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Line(s) | 117 | public: | |||
---|---|---|---|---|---|
170 | QString helpButtonPath() const; | 170 | QString helpButtonPath() const; | ||
171 | QColor activeTextColor() const; | 171 | QColor activeTextColor() const; | ||
172 | QColor inactiveTextColor() const; | 172 | QColor inactiveTextColor() const; | ||
173 | Qt::Alignment alignment() const; | 173 | Qt::Alignment alignment() const; | ||
174 | Qt::Alignment verticalAlignment() const; | 174 | Qt::Alignment verticalAlignment() const; | ||
175 | /** | 175 | /** | ||
176 | * Sets the title edges according to maximized state. | 176 | * Sets the title edges according to maximized state. | ||
177 | * Title edges are global to all windows. | 177 | * Title edges are global to all windows. | ||
178 | */ | 178 | **/ | ||
179 | void titleEdges(int &left, int &top, int &right, int &bottom, bool maximized) const; | 179 | void titleEdges(int &left, int &top, int &right, int &bottom, bool maximized) const; | ||
180 | void setCompositingActive(bool active); | 180 | void setCompositingActive(bool active); | ||
181 | bool isCompositingActive() const; | 181 | bool isCompositingActive() const; | ||
182 | 182 | | |||
183 | /** | 183 | /** | ||
184 | * @returns true if the theme contains a FrameSvg for specified button. | 184 | * @returns true if the theme contains a FrameSvg for specified button. | ||
185 | */ | 185 | **/ | ||
186 | bool hasButton(AuroraeButtonType button) const; | 186 | bool hasButton(AuroraeButtonType button) const; | ||
187 | void setBorderSize(KDecoration2::BorderSize size); | 187 | void setBorderSize(KDecoration2::BorderSize size); | ||
188 | /** | 188 | /** | ||
189 | * Sets the size of the buttons. | 189 | * Sets the size of the buttons. | ||
190 | * The available sizes are identical to border sizes, therefore BorderSize is used. | 190 | * The available sizes are identical to border sizes, therefore BorderSize is used. | ||
191 | * @param size The buttons size | 191 | * @param size The buttons size | ||
192 | */ | 192 | **/ | ||
193 | void setButtonSize(KDecoration2::BorderSize size); | 193 | void setButtonSize(KDecoration2::BorderSize size); | ||
194 | qreal buttonSizeFactor() const; | 194 | qreal buttonSizeFactor() const; | ||
195 | 195 | | |||
196 | DecorationPosition decorationPosition() const; | 196 | DecorationPosition decorationPosition() const; | ||
197 | 197 | | |||
198 | void setTabDragMimeType(const QString &mime); | 198 | void setTabDragMimeType(const QString &mime); | ||
199 | const QString &tabDragMimeType() const; | 199 | const QString &tabDragMimeType() const; | ||
200 | 200 | | |||
201 | // TODO: move to namespace | 201 | // TODO: move to namespace | ||
202 | static QLatin1String mapButtonToName(AuroraeButtonType type); | 202 | static QLatin1String mapButtonToName(AuroraeButtonType type); | ||
203 | 203 | | |||
204 | public Q_SLOTS: | 204 | public Q_SLOTS: | ||
205 | void loadTheme(const QString &name); | 205 | void loadTheme(const QString &name); | ||
206 | 206 | | |||
207 | Q_SIGNALS: | 207 | Q_SIGNALS: | ||
208 | void themeChanged(); | 208 | void themeChanged(); | ||
209 | void buttonSizesChanged(); | 209 | void buttonSizesChanged(); | ||
210 | void borderSizesChanged(); | 210 | void borderSizesChanged(); | ||
211 | 211 | | |||
212 | private: | 212 | private: | ||
213 | /** | 213 | /** | ||
214 | * Sets the borders according to maximized state. | 214 | * Sets the borders according to maximized state. | ||
215 | * Borders are global to all windows. | 215 | * Borders are global to all windows. | ||
216 | */ | 216 | **/ | ||
217 | void borders(int &left, int &top, int &right, int &bottom, bool maximized) const; | 217 | void borders(int &left, int &top, int &right, int &bottom, bool maximized) const; | ||
218 | /** | 218 | /** | ||
219 | * Sets the padding according. | 219 | * Sets the padding according. | ||
220 | * Padding is global to all windows. | 220 | * Padding is global to all windows. | ||
221 | */ | 221 | **/ | ||
222 | void padding(int &left, int &top, int &right, int &bottom) const; | 222 | void padding(int &left, int &top, int &right, int &bottom) const; | ||
223 | 223 | | |||
224 | AuroraeThemePrivate* const d; | 224 | AuroraeThemePrivate* const d; | ||
225 | }; | 225 | }; | ||
226 | 226 | | |||
227 | } // namespace | 227 | } // namespace | ||
228 | 228 | | |||
229 | #endif // AURORAETHEME_H | 229 | #endif // AURORAETHEME_H |