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