Diffstat (limited to 'kaddressbook/views/configuretableviewdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/views/configuretableviewdialog.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kaddressbook/views/configuretableviewdialog.h b/kaddressbook/views/configuretableviewdialog.h index 003ccf8..8125fc9 100644 --- a/kaddressbook/views/configuretableviewdialog.h +++ b/kaddressbook/views/configuretableviewdialog.h | |||
@@ -1,103 +1,105 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KAddressBook. | 2 | This file is part of KAddressBook. |
3 | Copyright (c) 2002 Mike Pilone <mpilone@slac.com> | 3 | Copyright (c) 2002 Mike Pilone <mpilone@slac.com> |
4 | 4 | ||
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> | 29 | #include <q3vbox.h> |
30 | //Added by qt3to4: | ||
31 | #include <QLabel> | ||
30 | 32 | ||
31 | class QString; | 33 | class QString; |
32 | class QWidget; | 34 | class QWidget; |
33 | class QRadioButton; | 35 | class QRadioButton; |
34 | class QCheckBox; | 36 | class QCheckBox; |
35 | class KURLRequester; | 37 | class KURLRequester; |
36 | class KConfig; | 38 | class KConfig; |
37 | class QLabel; | 39 | class QLabel; |
38 | 40 | ||
39 | namespace KABC { class AddressBook; } | 41 | namespace KABC { class AddressBook; } |
40 | 42 | ||
41 | class LookAndFeelPage; | 43 | class LookAndFeelPage; |
42 | 44 | ||
43 | /** | 45 | /** |
44 | Configure dialog for the table view. This dialog inherits from the | 46 | Configure dialog for the table view. This dialog inherits from the |
45 | standard view dialog in order to add a custom page for the table | 47 | standard view dialog in order to add a custom page for the table |
46 | view. | 48 | view. |
47 | */ | 49 | */ |
48 | class ConfigureTableViewWidget : public ViewConfigureWidget | 50 | class ConfigureTableViewWidget : public ViewConfigureWidget |
49 | { | 51 | { |
50 | public: | 52 | public: |
51 | ConfigureTableViewWidget( KABC::AddressBook *ab, QWidget *parent, const char *name ); | 53 | ConfigureTableViewWidget( KABC::AddressBook *ab, QWidget *parent, const char *name ); |
52 | virtual ~ConfigureTableViewWidget(); | 54 | virtual ~ConfigureTableViewWidget(); |
53 | 55 | ||
54 | virtual void restoreSettings( KConfig* ); | 56 | virtual void restoreSettings( KConfig* ); |
55 | virtual void saveSettings( KConfig* ); | 57 | virtual void saveSettings( KConfig* ); |
56 | 58 | ||
57 | private: | 59 | private: |
58 | void initGUI(); | 60 | void initGUI(); |
59 | 61 | ||
60 | LookAndFeelPage *mPage; | 62 | LookAndFeelPage *mPage; |
61 | }; | 63 | }; |
62 | 64 | ||
63 | /** | 65 | /** |
64 | Internal class. It is only defined here for moc | 66 | Internal class. It is only defined here for moc |
65 | */ | 67 | */ |
66 | class LookAndFeelPage : public QVBox | 68 | class LookAndFeelPage : public Q3VBox |
67 | { | 69 | { |
68 | Q_OBJECT | 70 | Q_OBJECT |
69 | 71 | ||
70 | public: | 72 | public: |
71 | LookAndFeelPage( QWidget *parent, const char *name = 0 ); | 73 | LookAndFeelPage( QWidget *parent, const char *name = 0 ); |
72 | ~LookAndFeelPage() {} | 74 | ~LookAndFeelPage() {} |
73 | 75 | ||
74 | void restoreSettings( KConfig* ); | 76 | void restoreSettings( KConfig* ); |
75 | void saveSettings( KConfig* ); | 77 | void saveSettings( KConfig* ); |
76 | 78 | ||
77 | protected slots: | 79 | protected slots: |
78 | void enableBackgroundToggled( bool ); | 80 | void enableBackgroundToggled( bool ); |
79 | void setTextFont(); | 81 | void setTextFont(); |
80 | void setHeaderFont(); | 82 | void setHeaderFont(); |
81 | void enableFonts(); | 83 | void enableFonts(); |
82 | void enableColors(); | 84 | void enableColors(); |
83 | 85 | ||
84 | private: | 86 | private: |
85 | void initGUI(); | 87 | void initGUI(); |
86 | void updateFontLabel( QFont, QLabel * ); | 88 | void updateFontLabel( QFont, QLabel * ); |
87 | 89 | ||
88 | QCheckBox *cbEnableCustomFonts, | 90 | QCheckBox *cbEnableCustomFonts, |
89 | *cbEnableCustomColors; | 91 | *cbEnableCustomColors; |
90 | class ColorListBox *lbColors; | 92 | class ColorListBox *lbColors; |
91 | QLabel *lTextFont, *lHeaderFont; | 93 | QLabel *lTextFont, *lHeaderFont; |
92 | class QPushButton *btnFont, *btnHeaderFont; | 94 | class QPushButton *btnFont, *btnHeaderFont; |
93 | class QWidget* vbFonts; | 95 | class QWidget* vbFonts; |
94 | 96 | ||
95 | QRadioButton *mAlternateButton; | 97 | QRadioButton *mAlternateButton; |
96 | QRadioButton *mLineButton; | 98 | QRadioButton *mLineButton; |
97 | QRadioButton *mNoneButton; | 99 | QRadioButton *mNoneButton; |
98 | QCheckBox *mToolTipBox; | 100 | QCheckBox *mToolTipBox; |
99 | KURLRequester *mBackgroundName; | 101 | KURLRequester *mBackgroundName; |
100 | QCheckBox *mBackgroundBox; | 102 | QCheckBox *mBackgroundBox; |
101 | }; | 103 | }; |
102 | 104 | ||
103 | #endif | 105 | #endif |