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