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 TQLineEdit;
00038
00039 class AddressEditor : public KDialogBase
00040 {
00041 Q_OBJECT
00042
00043
00044 public:
00045 AddressEditor(PilotAddress *address,
00046 PilotAddressInfo *appInfo,
00047 TQWidget *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 PilotAddressInfo *fAppInfo;
00064
00065 TQLineEdit *fCustom4Field;
00066 TQLineEdit *fCustom3Field;
00067 TQLineEdit *fCustom2Field;
00068 TQLineEdit *fCustom1Field;
00069 TQLineEdit *fCountryField;
00070 TQLineEdit *fZipField;
00071 TQLineEdit *fStateField;
00072 TQLineEdit *fCityField;
00073 TQLineEdit *fAddressField;
00074 TQLineEdit *fPhoneField[5];
00075 TQLineEdit *fCompanyField;
00076 TQLineEdit *fTitleField;
00077 TQLineEdit *fFirstNameField;
00078 TQLineEdit *fLastNameField;
00079
00080 TQLabel *m_phoneLabel[5];
00081
00082 void initLayout();
00083 void fillFields();
00084 TQString phoneLabelText(PilotAddress *, const PhoneSlot &i);
00085 };
00086 #endif
00087
|