kpilot/kpilot
addressEditor.h00001
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 #include <kdialogbase.h>
00034
00035 class QLineEdit;
00036 class PilotAddress;
00037 struct AddressAppInfo;
00038
00039 class AddressEditor : public KDialogBase
00040 {
00041 Q_OBJECT
00042
00043
00044 public:
00045 AddressEditor(PilotAddress *address,
00046 struct AddressAppInfo *appInfo,
00047 QWidget *parent, const char *name=0L);
00048 ~AddressEditor();
00049
00050
00051 signals:
00052 void recordChangeComplete ( PilotAddress* );
00053
00054 public slots:
00055 void slotOk();
00056 void slotCancel();
00057 void updateRecord(PilotAddress *);
00058
00059 private:
00060 bool fDeleteOnCancel;
00061
00062 PilotAddress* fAddress;
00063 struct AddressAppInfo *fAppInfo;
00064
00065 QLineEdit *fCustom4Field;
00066 QLineEdit *fCustom3Field;
00067 QLineEdit *fCustom2Field;
00068 QLineEdit *fCustom1Field;
00069 QLineEdit *fCountryField;
00070 QLineEdit *fZipField;
00071 QLineEdit *fStateField;
00072 QLineEdit *fCityField;
00073 QLineEdit *fAddressField;
00074 QLineEdit *fPhoneField[5];
00075 QLineEdit *fCompanyField;
00076 QLineEdit *fTitleField;
00077 QLineEdit *fFirstNameField;
00078 QLineEdit *fLastNameField;
00079
00080 QLabel *m_phoneLabel[5];
00081
00082 void initLayout();
00083 void fillFields();
00084 QString phoneLabelText(PilotAddress *, int i);
00085 };
00086 #endif
00087
|