Diffstat (limited to 'kaddressbook/views/configuretableviewdialog.h') (more/less context) (show whitespace changes)
-rw-r--r-- | kaddressbook/views/configuretableviewdialog.h | 17 |
1 files changed, 16 insertions, 1 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 | |||
@@ -17,30 +17,33 @@ | |||
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 | { |
@@ -51,38 +54,50 @@ class ConfigureTableViewWidget : public ViewConfigureWidget | |||
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 ); |
79 | void setTextFont(); | ||
80 | void setHeaderFont(); | ||
81 | void enableFonts(); | ||
82 | void enableColors(); | ||
76 | 83 | ||
77 | private: | 84 | private: |
78 | void initGUI(); | 85 | void initGUI(); |
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; | ||
79 | 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 |