kaddressbook Library API Documentation

configurecardviewdialog.h

00001 /* 00002 This file is part of KAddressBook. 00003 Copyright (c) 2002 Mike Pilone <mpilone@slac.com> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 00019 As a special exception, permission is given to link this program 00020 with any edition of Qt, and distribute the resulting executable, 00021 without including the source code for Qt in the source distribution. 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
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:08 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003