kpilot Library API Documentation

addressEditor.h

00001 // -*- C++ -*- 00002 /* addressEditor.h KPilot 00003 ** 00004 ** Copyright (C) 1998-2000 by Dan Pilone 00005 ** 00006 ** This is a dialog window that is used to edit a single address record. 00007 */ 00008 00009 /* 00010 ** This program is free software; you can redistribute it and/or modify 00011 ** it under the terms of the GNU General Public License as published by 00012 ** the Free Software Foundation; either version 2 of the License, or 00013 ** (at your option) any later version. 00014 ** 00015 ** This program is distributed in the hope that it will be useful, 00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 ** GNU General Public License for more details. 00019 ** 00020 ** You should have received a copy of the GNU General Public License 00021 ** along with this program in a file called COPYING; if not, write to 00022 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00023 ** MA 02111-1307, USA. 00024 */ 00025 00026 /* 00027 ** Bug reports and questions can be sent to kde-pim@kde.org 00028 */ 00029 00030 #ifndef _KPILOT_ADDRESSEDITOR_H 00031 #define _KPILOT_ADDRESSEDITOR_H 00032 00033 #ifndef _KDIALOGBASE_H 00034 #include <kdialogbase.h> 00035 #endif 00036 00037 class QLineEdit; 00038 class PilotAddress; 00039 struct AddressAppInfo; 00040 00041 class AddressEditor : public KDialogBase 00042 { 00043 Q_OBJECT 00044 00045 00046 public: 00047 AddressEditor(PilotAddress *address, 00048 struct AddressAppInfo *appInfo, 00049 QWidget *parent, const char *name=0L); 00050 ~AddressEditor(); 00051 00052 00053 signals: 00054 void recordChangeComplete ( PilotAddress* ); 00055 00056 public slots: 00057 void slotOk(); 00058 void slotCancel(); 00059 void updateRecord(PilotAddress *); 00060 00061 private: 00062 bool fDeleteOnCancel; 00063 00064 PilotAddress* fAddress; 00065 struct AddressAppInfo *fAppInfo; 00066 // entry fields 00067 QLineEdit *fCustom4Field; 00068 QLineEdit *fCustom3Field; 00069 QLineEdit *fCustom2Field; 00070 QLineEdit *fCustom1Field; 00071 QLineEdit *fCountryField; 00072 QLineEdit *fZipField; 00073 QLineEdit *fStateField; 00074 QLineEdit *fCityField; 00075 QLineEdit *fAddressField; 00076 QLineEdit *fPhoneField[5]; 00077 QLineEdit *fCompanyField; 00078 QLineEdit *fTitleField; 00079 QLineEdit *fFirstNameField; 00080 QLineEdit *fLastNameField; 00081 // phone labels (changing!) 00082 QLabel *m_phoneLabel[5]; 00083 00084 void initLayout(); 00085 void fillFields(); 00086 QString phoneLabelText(PilotAddress *, int i); 00087 }; 00088 #else 00089 #ifdef DEBUG 00090 #warning "File doubly included" 00091 #endif 00092 #endif 00093
KDE Logo
This file is part of the documentation for kpilot Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:57:48 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003