addressEditor.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
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
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
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
This file is part of the documentation for kpilot Library Version 3.2.2.