Diffstat (limited to 'noncore/settings/appearance2/appearance.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/appearance2/appearance.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/noncore/settings/appearance2/appearance.h b/noncore/settings/appearance2/appearance.h index ce0d4b0..4a86e57 100644 --- a/noncore/settings/appearance2/appearance.h +++ b/noncore/settings/appearance2/appearance.h | |||
@@ -1,116 +1,109 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of the Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | *********************************************************************** | 19 | *********************************************************************** |
20 | ** | 20 | ** |
21 | ** Enhancements by: Dan Williams, <williamsdr@acm.org> | 21 | ** Enhancements by: Dan Williams, <williamsdr@acm.org> |
22 | ** | 22 | ** |
23 | **********************************************************************/ | 23 | **********************************************************************/ |
24 | 24 | ||
25 | #ifndef APPEARANCESETTINGS_H | 25 | #ifndef APPEARANCESETTINGS_H |
26 | #define APPEARANCESETTINGS_H | 26 | #define APPEARANCESETTINGS_H |
27 | 27 | ||
28 | #include <qpe/fontdatabase.h> | 28 | #include <qpe/fontdatabase.h> |
29 | 29 | ||
30 | #include <qmainwindow.h> | 30 | #include <qmainwindow.h> |
31 | #include <qdialog.h> | 31 | #include <qdialog.h> |
32 | 32 | ||
33 | class QCheckBox; | 33 | class QCheckBox; |
34 | class QComboBox; | 34 | class QComboBox; |
35 | class QLabel; | 35 | class QLabel; |
36 | class QLineEdit; | 36 | class QLineEdit; |
37 | class QListBox; | 37 | class QListBox; |
38 | class QMultiLineEdit; | 38 | class QMultiLineEdit; |
39 | class QPushButton; | 39 | class QPushButton; |
40 | class QRadioButton; | 40 | class QRadioButton; |
41 | class QToolButton; | 41 | class QToolButton; |
42 | class SampleWindow; | 42 | class SampleWindow; |
43 | class OFontSelector; | ||
43 | 44 | ||
44 | class Appearance : public QDialog | 45 | class Appearance : public QDialog |
45 | { | 46 | { |
46 | Q_OBJECT | 47 | Q_OBJECT |
47 | 48 | ||
48 | public: | 49 | public: |
49 | Appearance( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 50 | Appearance( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
50 | ~Appearance(); | 51 | ~Appearance(); |
51 | 52 | ||
52 | protected: | 53 | protected: |
53 | virtual void accept ( ); | 54 | virtual void accept ( ); |
54 | virtual void done ( int r ); | 55 | virtual void done ( int r ); |
55 | 56 | ||
56 | protected slots: | 57 | protected slots: |
57 | void styleClicked ( int ); | 58 | void styleClicked ( int ); |
58 | void styleSettingsClicked ( ); | 59 | void styleSettingsClicked ( ); |
59 | void decoClicked ( int ); | 60 | void decoClicked ( int ); |
60 | void fontFamilyClicked ( int ); | 61 | void fontClicked ( const QFont & ); |
61 | void fontStyleClicked ( int ); | ||
62 | void fontSizeClicked ( int ); | ||
63 | void colorClicked ( int ); | 62 | void colorClicked ( int ); |
64 | // void tabStyleClicked ( int ); | ||
65 | 63 | ||
66 | void editSchemeClicked(); | 64 | void editSchemeClicked(); |
67 | void saveSchemeClicked(); | 65 | void saveSchemeClicked(); |
68 | void deleteSchemeClicked(); | 66 | void deleteSchemeClicked(); |
69 | 67 | ||
70 | private: | 68 | private: |
71 | void loadStyles ( QListBox * ); | 69 | void loadStyles ( QListBox * ); |
72 | void loadDecos ( QListBox * ); | 70 | void loadDecos ( QListBox * ); |
73 | void loadFonts ( QListBox * ); | ||
74 | void loadColors ( QListBox * ); | 71 | void loadColors ( QListBox * ); |
75 | 72 | ||
76 | void changeText(); | 73 | void changeText(); |
77 | 74 | ||
78 | QWidget *createStyleTab ( QWidget *parent ); | 75 | QWidget *createStyleTab ( QWidget *parent ); |
79 | QWidget *createDecoTab ( QWidget *parent ); | 76 | QWidget *createDecoTab ( QWidget *parent ); |
80 | QWidget *createFontTab ( QWidget *parent ); | 77 | QWidget *createFontTab ( QWidget *parent ); |
81 | QWidget *createColorTab ( QWidget *parent ); | 78 | QWidget *createColorTab ( QWidget *parent ); |
82 | QWidget *createGuiTab ( QWidget *parent ); | 79 | QWidget *createGuiTab ( QWidget *parent ); |
83 | 80 | ||
84 | private: | 81 | private: |
85 | bool m_style_changed; | 82 | bool m_style_changed; |
86 | bool m_font_changed; | 83 | bool m_font_changed; |
87 | bool m_scheme_changed; | 84 | bool m_scheme_changed; |
88 | bool m_deco_changed; | 85 | bool m_deco_changed; |
89 | bool m_color_changed; | 86 | bool m_color_changed; |
90 | 87 | ||
91 | int m_original_style; | 88 | int m_original_style; |
92 | int m_original_deco; | 89 | int m_original_deco; |
93 | int m_original_fontfamily; | ||
94 | int m_original_fontstyle; | ||
95 | int m_original_fontsize; | ||
96 | int m_original_tabstyle; | 90 | int m_original_tabstyle; |
91 | bool m_original_tabpos; | ||
97 | 92 | ||
98 | QListBox * m_style_list; | 93 | QListBox * m_style_list; |
99 | QPushButton * m_style_settings; | 94 | QPushButton * m_style_settings; |
100 | 95 | ||
101 | QListBox * m_deco_list; | 96 | QListBox * m_deco_list; |
102 | 97 | ||
103 | QListBox * m_color_list; | 98 | QListBox * m_color_list; |
104 | 99 | ||
105 | QListBox * m_font_family_list; | 100 | OFontSelector *m_fontselect; |
106 | QComboBox * m_font_style_list; | ||
107 | QComboBox * m_font_size_list; | ||
108 | 101 | ||
109 | SampleWindow *m_sample; | 102 | SampleWindow *m_sample; |
110 | 103 | ||
111 | QComboBox * m_tabstyle_list; | 104 | QComboBox * m_tabstyle_list; |
112 | QRadioButton *m_tabstyle_top; | 105 | QRadioButton *m_tabstyle_top; |
113 | QRadioButton *m_tabstyle_bottom; | 106 | QRadioButton *m_tabstyle_bottom; |
114 | }; | 107 | }; |
115 | 108 | ||
116 | #endif // APPEARANCESETTINGS_H | 109 | #endif |