summaryrefslogtreecommitdiffabout
path: root/kaddressbook/views/configuretableviewdialog.h
Unidiff
Diffstat (limited to 'kaddressbook/views/configuretableviewdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/views/configuretableviewdialog.h21
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
@@ -23,18 +23,21 @@
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
29class QString; 31class QString;
30class QWidget; 32class QWidget;
31class QRadioButton; 33class QRadioButton;
32class QCheckBox; 34class QCheckBox;
33class KURLRequester; 35class KURLRequester;
34class KConfig; 36class KConfig;
37class QLabel;
35 38
36namespace KABC { class AddressBook; } 39namespace KABC { class AddressBook; }
37 40
38class LookAndFeelPage; 41class LookAndFeelPage;
39 42
40/** 43/**
@@ -57,29 +60,41 @@ class ConfigureTableViewWidget : public ViewConfigureWidget
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*/
63class LookAndFeelPage : public QWidget 66class 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;