Diffstat (limited to 'kaddressbook/views/configuretableviewdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/views/configuretableviewdialog.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/kaddressbook/views/configuretableviewdialog.h b/kaddressbook/views/configuretableviewdialog.h index 8392710..003ccf8 100644 --- a/kaddressbook/views/configuretableviewdialog.h +++ b/kaddressbook/views/configuretableviewdialog.h | |||
@@ -5,84 +5,99 @@ | |||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #ifndef CONFIGURETABLEVIEWDIALOG_H | 24 | #ifndef CONFIGURETABLEVIEWDIALOG_H |
25 | #define CONFIGURETABLEVIEWDIALOG_H | 25 | #define CONFIGURETABLEVIEWDIALOG_H |
26 | 26 | ||
27 | #include "viewconfigurewidget.h" | 27 | #include "viewconfigurewidget.h" |
28 | 28 | ||
29 | #include <qvbox.h> | ||
30 | |||
29 | class QString; | 31 | class QString; |
30 | class QWidget; | 32 | class QWidget; |
31 | class QRadioButton; | 33 | class QRadioButton; |
32 | class QCheckBox; | 34 | class QCheckBox; |
33 | class KURLRequester; | 35 | class KURLRequester; |
34 | class KConfig; | 36 | class KConfig; |
37 | class QLabel; | ||
35 | 38 | ||
36 | namespace KABC { class AddressBook; } | 39 | namespace KABC { class AddressBook; } |
37 | 40 | ||
38 | class LookAndFeelPage; | 41 | class LookAndFeelPage; |
39 | 42 | ||
40 | /** | 43 | /** |
41 | Configure dialog for the table view. This dialog inherits from the | 44 | Configure dialog for the table view. This dialog inherits from the |
42 | standard view dialog in order to add a custom page for the table | 45 | standard view dialog in order to add a custom page for the table |
43 | view. | 46 | view. |
44 | */ | 47 | */ |
45 | class ConfigureTableViewWidget : public ViewConfigureWidget | 48 | class ConfigureTableViewWidget : public ViewConfigureWidget |
46 | { | 49 | { |
47 | public: | 50 | public: |
48 | ConfigureTableViewWidget( KABC::AddressBook *ab, QWidget *parent, const char *name ); | 51 | ConfigureTableViewWidget( KABC::AddressBook *ab, QWidget *parent, const char *name ); |
49 | virtual ~ConfigureTableViewWidget(); | 52 | virtual ~ConfigureTableViewWidget(); |
50 | 53 | ||
51 | virtual void restoreSettings( KConfig* ); | 54 | virtual void restoreSettings( KConfig* ); |
52 | virtual void saveSettings( KConfig* ); | 55 | virtual void saveSettings( KConfig* ); |
53 | 56 | ||
54 | private: | 57 | private: |
55 | void initGUI(); | 58 | void initGUI(); |
56 | 59 | ||
57 | LookAndFeelPage *mPage; | 60 | LookAndFeelPage *mPage; |
58 | }; | 61 | }; |
59 | 62 | ||
60 | /** | 63 | /** |
61 | Internal class. It is only defined here for moc | 64 | Internal class. It is only defined here for moc |
62 | */ | 65 | */ |
63 | class LookAndFeelPage : public QWidget | 66 | class LookAndFeelPage : public QVBox |
64 | { | 67 | { |
65 | Q_OBJECT | 68 | Q_OBJECT |
66 | 69 | ||
67 | public: | 70 | public: |
68 | LookAndFeelPage( QWidget *parent, const char *name = 0 ); | 71 | LookAndFeelPage( QWidget *parent, const char *name = 0 ); |
69 | ~LookAndFeelPage() {} | 72 | ~LookAndFeelPage() {} |
70 | 73 | ||
71 | void restoreSettings( KConfig* ); | 74 | void restoreSettings( KConfig* ); |
72 | void saveSettings( KConfig* ); | 75 | void saveSettings( KConfig* ); |
73 | 76 | ||
74 | protected slots: | 77 | protected slots: |
75 | void enableBackgroundToggled( bool ); | 78 | void enableBackgroundToggled( bool ); |
76 | 79 | void setTextFont(); | |
80 | void setHeaderFont(); | ||
81 | void enableFonts(); | ||
82 | void enableColors(); | ||
83 | |||
77 | private: | 84 | private: |
78 | void initGUI(); | 85 | void initGUI(); |
79 | 86 | void updateFontLabel( QFont, QLabel * ); | |
87 | |||
88 | QCheckBox *cbEnableCustomFonts, | ||
89 | *cbEnableCustomColors; | ||
90 | class ColorListBox *lbColors; | ||
91 | QLabel *lTextFont, *lHeaderFont; | ||
92 | class QPushButton *btnFont, *btnHeaderFont; | ||
93 | class QWidget* vbFonts; | ||
94 | |||
80 | QRadioButton *mAlternateButton; | 95 | QRadioButton *mAlternateButton; |
81 | QRadioButton *mLineButton; | 96 | QRadioButton *mLineButton; |
82 | QRadioButton *mNoneButton; | 97 | QRadioButton *mNoneButton; |
83 | QCheckBox *mToolTipBox; | 98 | QCheckBox *mToolTipBox; |
84 | KURLRequester *mBackgroundName; | 99 | KURLRequester *mBackgroundName; |
85 | QCheckBox *mBackgroundBox; | 100 | QCheckBox *mBackgroundBox; |
86 | }; | 101 | }; |
87 | 102 | ||
88 | #endif | 103 | #endif |