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.h38
1 files changed, 21 insertions, 17 deletions
diff --git a/noncore/settings/appearance2/appearance.h b/noncore/settings/appearance2/appearance.h
index 51e9636..f45f549 100644
--- a/noncore/settings/appearance2/appearance.h
+++ b/noncore/settings/appearance2/appearance.h
@@ -7,41 +7,45 @@
7.> <`_,   >  .   <= redistribute it and/or modify it under 7.> <`_,   >  .   <= redistribute it and/or modify it under
8:`=1 )Y*s>-.--   : the terms of the GNU General Public 8:`=1 )Y*s>-.--   : the terms of the GNU General Public
9.="- .-=="i,     .._ License as published by the Free Software 9.="- .-=="i,     .._ License as published by the Free Software
10 - .   .-<_>     .<> Foundation; either version 2 of the License, 10 - .   .-<_>     .<> Foundation; either version 2 of the License,
11     ._= =}       : or (at your option) any later version. 11     ._= =}       : or (at your option) any later version.
12    .%`+i>       _;_. 12    .%`+i>       _;_.
13    .i_,=:_.      -<s. This file is distributed in the hope that 13    .i_,=:_.      -<s. This file is distributed in the hope that
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
15    : ..    .:,     . . . without even the implied warranty of 15    : ..    .:,     . . . without even the implied warranty of
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General 17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General
18..}^=.=       =       ; Public License for more details. 18..}^=.=       =       ; Public License for more details.
19++=   -.     .`     .: 19++=   -.     .`     .:
20 :     =  ...= . :.=- You should have received a copy of the GNU 20 :     =  ...= . :.=- You should have received a copy of the GNU
21 -.   .:....=;==+<; General Public License along with this file; 21 -.   .:....=;==+<; General Public License along with this file;
22  -_. . .   )=.  = see the file COPYING. If not, write to the 22  -_. . .   )=.  = see the file COPYING. If not, write to the
23    --        :-=` Free Software Foundation, Inc., 23    --        :-=` Free Software Foundation, Inc.,
24 59 Temple Place - Suite 330, 24 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 25 Boston, MA 02111-1307, USA.
26 26
27*/ 27*/
28 28
29#ifndef APPEARANCESETTINGS_H 29#ifndef APPEARANCESETTINGS_H
30#define APPEARANCESETTINGS_H 30#define APPEARANCESETTINGS_H
31 31
32#include <opie2/ofontselector.h>
33
32#include <qpe/fontdatabase.h> 34#include <qpe/fontdatabase.h>
33 35
34#include <qdialog.h> 36#include <qdialog.h>
35 37
38using Opie::OFontSelector;
39
36class QCheckBox; 40class QCheckBox;
37class QComboBox; 41class QComboBox;
38class QLabel; 42class QLabel;
39class QLineEdit; 43class QLineEdit;
40class QListBox; 44class QListBox;
41class QMultiLineEdit; 45class QMultiLineEdit;
42class QPushButton; 46class QPushButton;
43class QRadioButton; 47class QRadioButton;
44class QToolButton; 48class QToolButton;
45class SampleWindow; 49class SampleWindow;
46class OFontSelector; 50class OFontSelector;
47class QListView; 51class QListView;
@@ -49,80 +53,80 @@ class QListViewItem;
49class Config; 53class Config;
50 54
51class Appearance : public QDialog 55class Appearance : public QDialog
52{ 56{
53 Q_OBJECT 57 Q_OBJECT
54 58
55public: 59public:
56 Appearance( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 60 Appearance( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
57 ~Appearance(); 61 ~Appearance();
58 static QString appName() { return QString::fromLatin1("appearance"); } 62 static QString appName() { return QString::fromLatin1("appearance"); }
59 63
60protected: 64protected:
61 virtual void accept ( ); 65 virtual void accept ( );
62 virtual void done ( int r ); 66 virtual void done ( int r );
63 67
64protected slots: 68protected slots:
65 void styleClicked ( int ); 69 void styleClicked ( int );
66 void styleSettingsClicked ( ); 70 void styleSettingsClicked ( );
67 void decoClicked ( int ); 71 void decoClicked ( int );
68 void fontClicked ( const QFont & ); 72 void fontClicked ( const QFont & );
69 void colorClicked ( int ); 73 void colorClicked ( int );
70 74
71 void editSchemeClicked(); 75 void editSchemeClicked();
72 void saveSchemeClicked(); 76 void saveSchemeClicked();
73 void deleteSchemeClicked(); 77 void deleteSchemeClicked();
74 78
75 void tabChanged ( QWidget * ); 79 void tabChanged ( QWidget * );
76 80
77 void addExcept ( ); 81 void addExcept ( );
78 void delExcept ( ); 82 void delExcept ( );
79 void upExcept ( ); 83 void upExcept ( );
80 void downExcept ( ); 84 void downExcept ( );
81 void clickedExcept ( QListViewItem *, const QPoint &, int ); 85 void clickedExcept ( QListViewItem *, const QPoint &, int );
82 86
83private: 87private:
84 void changeText(); 88 void changeText();
85 89
86 QWidget *createStyleTab ( QWidget *parent, Config &cfg ); 90 QWidget *createStyleTab ( QWidget *parent, Config &cfg );
87 QWidget *createDecoTab ( QWidget *parent, Config &cfg ); 91 QWidget *createDecoTab ( QWidget *parent, Config &cfg );
88 QWidget *createFontTab ( QWidget *parent, Config &cfg ); 92 QWidget *createFontTab ( QWidget *parent, Config &cfg );
89 QWidget *createColorTab ( QWidget *parent, Config &cfg ); 93 QWidget *createColorTab ( QWidget *parent, Config &cfg );
90 QWidget *createAdvancedTab ( QWidget *parent, Config &cfg ); 94 QWidget *createAdvancedTab ( QWidget *parent, Config &cfg );
91 95
92private: 96private:
93 bool m_style_changed; 97 bool m_style_changed;
94 bool m_font_changed; 98 bool m_font_changed;
95 bool m_scheme_changed; 99 bool m_scheme_changed;
96 bool m_deco_changed; 100 bool m_deco_changed;
97 bool m_color_changed; 101 bool m_color_changed;
98 102
99 int m_original_style; 103 int m_original_style;
100 int m_original_deco; 104 int m_original_deco;
101 int m_original_tabstyle; 105 int m_original_tabstyle;
102 bool m_original_tabpos; 106 bool m_original_tabpos;
103 107
104 QListBox * m_style_list; 108 QListBox * m_style_list;
105 QPushButton * m_style_settings; 109 QPushButton * m_style_settings;
106 110
107 QListBox * m_deco_list; 111 QListBox * m_deco_list;
108 112
109 QListBox * m_color_list; 113 QListBox * m_color_list;
110 114
111 OFontSelector *m_fontselect; 115 OFontSelector *m_fontselect;
116
117 SampleWindow *m_sample;
112 118
113 SampleWindow *m_sample;
114
115 QComboBox * m_tabstyle_list; 119 QComboBox * m_tabstyle_list;
116 QRadioButton *m_tabstyle_top; 120 QRadioButton *m_tabstyle_top;
117 QRadioButton *m_tabstyle_bottom; 121 QRadioButton *m_tabstyle_bottom;
118 122
119 QRadioButton *m_rotdir_cw; 123 QRadioButton *m_rotdir_cw;
120 QRadioButton *m_rotdir_ccw; 124 QRadioButton *m_rotdir_ccw;
121 QRadioButton *m_rotdir_flip; 125 QRadioButton *m_rotdir_flip;
122 126
123 QWidget * m_advtab; 127 QWidget * m_advtab;
124 QListView * m_except; 128 QListView * m_except;
125 QCheckBox * m_force; 129 QCheckBox * m_force;
126}; 130};
127 131
128#endif 132#endif