00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
#ifndef CONFIGURECARDVIEWDIALOG_H
00025
#define CONFIGURECARDVIEWDIALOG_H
00026
00027
#include "viewconfigurewidget.h"
00028
00029
#include <qvbox.h>
00030
#include <qwidget.h>
00031
#include <qfont.h>
00032
00033
class QString;
00034
class QWidget;
00035
class QCheckBox;
00036
class QLabel;
00037
class KConfig;
00038
00039
namespace KABC {
class AddressBook; }
00040
00041
class CardViewLookAndFeelPage;
00042
00048 class ConfigureCardViewWidget :
public ViewConfigureWidget
00049 {
00050
public:
00051
ConfigureCardViewWidget( KABC::AddressBook *ab, QWidget *parent,
const char *name );
00052
virtual ~
ConfigureCardViewWidget();
00053
00054
virtual void restoreSettings( KConfig* );
00055
virtual void saveSettings( KConfig* );
00056
00057
private:
00058
class CardViewLookNFeelPage *mAdvancedPage;
00059 };
00060
00080 class CardViewLookNFeelPage :
public QVBox {
00081
00082 Q_OBJECT
00083
00084
public:
00085
CardViewLookNFeelPage( QWidget *parent=0,
const char *name=0 );
00086 ~
CardViewLookNFeelPage();
00087
00088
void restoreSettings( KConfig* );
00089
void saveSettings( KConfig* );
00090
00091
private slots:
00092
void setTextFont();
00093
void setHeaderFont();
00094
void enableFonts();
00095
void enableColors();
00096
00097
private:
00098
void initGUI();
00099
void updateFontLabel( QFont, QLabel * );
00100
00101 QCheckBox *cbEnableCustomFonts,
00102 *cbEnableCustomColors,
00103 *cbDrawSeps, *cbDrawBorders,
00104 *cbShowFieldLabels, *cbShowEmptyFields;
00105
class ColorListBox *lbColors;
00106 QLabel *lTextFont, *lHeaderFont;
00107
class KPushButton *btnFont, *btnHeaderFont;
00108
class QSpinBox *sbMargin, *sbSpacing, *sbSepWidth;
00109
00110
class QWidget *vbFonts;
00111 };
00112
00113
#endif