Changeset View
Changeset View
Standalone View
Standalone View
kcms/style/kcmstyle.h
Show All 29 Lines | |||||
30 | 30 | | |||
31 | #include <QHash> | 31 | #include <QHash> | ||
32 | #include <QLayout> | 32 | #include <QLayout> | ||
33 | #include <QMap> | 33 | #include <QMap> | ||
34 | 34 | | |||
35 | #include <kcmodule.h> | 35 | #include <kcmodule.h> | ||
36 | #include <kvbox.h> | 36 | #include <kvbox.h> | ||
37 | 37 | | |||
38 | #include "ui_finetuning.h" | | |||
39 | | ||||
40 | class KComboBox; | | |||
41 | class KConfig; | 38 | class KConfig; | ||
42 | class QCheckBox; | | |||
43 | class QComboBox; | | |||
44 | class QLabel; | | |||
45 | class QPushButton; | | |||
46 | class StylePreview; | 39 | class StylePreview; | ||
47 | class QTabWidget; | 40 | class StyleConfig; | ||
48 | 41 | | |||
49 | struct StyleEntry { | 42 | struct StyleEntry { | ||
50 | QString name; | 43 | QString name; | ||
51 | QString desc; | 44 | QString desc; | ||
52 | QString configPage; | 45 | QString configPage; | ||
53 | bool hidden; | 46 | bool hidden; | ||
54 | }; | 47 | }; | ||
55 | 48 | | |||
Show All 38 Lines | 83 | private: | |||
94 | static QString menuBarStyleText(int index); | 87 | static QString menuBarStyleText(int index); | ||
95 | static int menuBarStyleIndex(const QString &text); | 88 | static int menuBarStyleIndex(const QString &text); | ||
96 | 89 | | |||
97 | bool m_bStyleDirty, m_bEffectsDirty; | 90 | bool m_bStyleDirty, m_bEffectsDirty; | ||
98 | QHash <QString,StyleEntry*> styleEntries; | 91 | QHash <QString,StyleEntry*> styleEntries; | ||
99 | QMap <QString,QString> nameToStyleKey; | 92 | QMap <QString,QString> nameToStyleKey; | ||
100 | 93 | | |||
101 | QVBoxLayout* mainLayout; | 94 | QVBoxLayout* mainLayout; | ||
102 | QTabWidget* tabWidget; | 95 | | ||
103 | QWidget *page0, *page1, *page2; | 96 | // Widgets | ||
104 | QVBoxLayout* page1Layout; | | |||
105 | | ||||
106 | // Page1 widgets | | |||
107 | QVBoxLayout* gbWidgetStyleLayout; | | |||
108 | QHBoxLayout* hbLayout; | | |||
109 | KComboBox* cbStyle; | | |||
110 | QPushButton* pbConfigStyle; | | |||
111 | QLabel* lblStyleDesc; | | |||
112 | StylePreview* stylePreview; | 97 | StylePreview* stylePreview; | ||
98 | StyleConfig* styleConfig; | ||||
113 | QStyle* appliedStyle; | 99 | QStyle* appliedStyle; | ||
114 | QPalette palette; | 100 | QPalette palette; | ||
115 | | ||||
116 | // Page2 widgets | | |||
117 | Ui::FineTuning fineTuningUi; | | |||
118 | }; | 101 | }; | ||
119 | 102 | | |||
120 | #endif // __KCMSTYLE_H | 103 | #endif // __KCMSTYLE_H | ||
121 | 104 | | |||
122 | // vim: set noet ts=4: | 105 | // vim: set noet ts=4: |