configurecardviewdialog.h
00001 #ifndef CONFIGURECARDVIEWDIALOG_H 00002 #define CONFIGURECARDVIEWDIALOG_H 00003 00004 /* 00005 This file is part of KAddressBook. 00006 Copyright (c) 2002 Mike Pilone <mpilone@slac.com> 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 2 of the License, or 00011 (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program; if not, write to the Free Software 00020 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00021 00022 As a special exception, permission is given to link this program 00023 with any edition of Qt, and distribute the resulting executable, 00024 without including the source code for Qt in the source distribution. 00025 */ 00026 00027 #include "configureviewdialog.h" 00028 00029 class QString; 00030 class QWidget; 00031 class QCheckBox; 00032 class KConfig; 00033 00034 namespace KABC { class AddressBook; } 00035 00036 class CardViewLookAndFeelPage; 00037 00042 class ConfigureCardViewDialog : public ConfigureViewDialog 00043 { 00044 public: 00045 ConfigureCardViewDialog(const QString &viewName, KABC::AddressBook *doc, 00046 QWidget *parent, const char *name); 00047 virtual ~ConfigureCardViewDialog(); 00048 00049 virtual void readConfig(KConfig *config); 00050 virtual void writeConfig(KConfig *config); 00051 00052 private: 00053 void initGUI(); 00054 00055 CardViewLookAndFeelPage *mPage; 00056 }; 00057 00060 class CardViewLookAndFeelPage : public QWidget 00061 { 00062 public: 00063 CardViewLookAndFeelPage(QWidget *parent, const char *name); 00064 ~CardViewLookAndFeelPage() {} 00065 00066 void readConfig(KConfig *config); 00067 void writeConfig(KConfig *config); 00068 00069 private: 00070 void initGUI(); 00071 00072 QCheckBox *mLabelsBox; 00073 QCheckBox *mBordersBox; 00074 QCheckBox *mSeparatorsBox; 00075 QCheckBox *mEmptyFieldsBox; 00076 }; 00077 00078 #endif