Diffstat (limited to 'core/pim/addressbook/contacteditor.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/contacteditor.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/pim/addressbook/contacteditor.h b/core/pim/addressbook/contacteditor.h index 40ce864..250b831 100644 --- a/core/pim/addressbook/contacteditor.h +++ b/core/pim/addressbook/contacteditor.h | |||
@@ -34,108 +34,108 @@ const int NAME_LF = 0; | |||
34 | const int NAME_LFM = 1; | 34 | const int NAME_LFM = 1; |
35 | const int NAME_FL = 2; | 35 | const int NAME_FL = 2; |
36 | const int NAME_FMLS = 3; | 36 | const int NAME_FMLS = 3; |
37 | 37 | ||
38 | const int NAME_F = 4; | 38 | const int NAME_F = 4; |
39 | const int NAME_M = 5; | 39 | const int NAME_M = 5; |
40 | const int NAME_L = 6; | 40 | const int NAME_L = 6; |
41 | const int NAME_S = 7; | 41 | const int NAME_S = 7; |
42 | 42 | ||
43 | 43 | ||
44 | class QScrollView; | 44 | class QScrollView; |
45 | class QTabWidget; | 45 | class QTabWidget; |
46 | class QMultiLineEdit; | 46 | class QMultiLineEdit; |
47 | class QLineEdit; | 47 | class QLineEdit; |
48 | class QComboBox; | 48 | class QComboBox; |
49 | class QPushButton; | 49 | class QPushButton; |
50 | class CategorySelect; | 50 | class CategorySelect; |
51 | class QLabel; | 51 | class QLabel; |
52 | 52 | ||
53 | class ContactEditor : public QDialog { | 53 | class ContactEditor : public QDialog { |
54 | Q_OBJECT | 54 | Q_OBJECT |
55 | 55 | ||
56 | public: | 56 | public: |
57 | ContactEditor(const OContact &entry, | 57 | ContactEditor(const OContact &entry, |
58 | const QValueList<int> *newOrderedValues, | ||
59 | QStringList *slNewOrdered, | ||
60 | QWidget *parent = 0, | 58 | QWidget *parent = 0, |
61 | const char *name = 0, | 59 | const char *name = 0, |
62 | WFlags fl = 0 ); | 60 | WFlags fl = 0 ); |
63 | ~ContactEditor(); | 61 | ~ContactEditor(); |
64 | void loadFields(); | ||
65 | void setNameFocus(); | 62 | void setNameFocus(); |
66 | void setPersonalView( bool personal = true ); | 63 | void setPersonalView( bool personal = true ); |
67 | OContact entry() const { return ent; } | 64 | OContact entry() const { return ent; } |
68 | 65 | ||
69 | public slots: | 66 | public slots: |
70 | void slotNote(); | 67 | void slotNote(); |
71 | void slotName(); | 68 | void slotName(); |
72 | void setEntry(const OContact &entry); | 69 | void setEntry(const OContact &entry); |
73 | 70 | ||
74 | protected slots: | 71 | protected slots: |
75 | void accept(); | 72 | void accept(); |
76 | 73 | ||
77 | private: | 74 | private: |
78 | void init(); | 75 | void init(); |
79 | void initMap(); | ||
80 | void saveEntry(); | 76 | void saveEntry(); |
81 | bool isEmpty(); | 77 | bool isEmpty(); |
82 | void cleanupFields(); | 78 | void cleanupFields(); |
79 | void updateDatePicker(); | ||
83 | QString parseName( QString fullName, int type ); | 80 | QString parseName( QString fullName, int type ); |
84 | private slots: | 81 | private slots: |
85 | void slotChooser1Change( const QString &textChanged ); | 82 | void slotChooser1Change( const QString &textChanged ); |
86 | void slotChooser2Change( const QString &textChanged ); | 83 | void slotChooser2Change( const QString &textChanged ); |
87 | void slotChooser3Change( const QString &textChanged ); | 84 | void slotChooser3Change( const QString &textChanged ); |
88 | void slotChooser4Change( const QString &textChanged ); | 85 | void slotChooser4Change( const QString &textChanged ); |
89 | void slotCmbChooser1Change( int index ); | 86 | void slotCmbChooser1Change( int index ); |
90 | void slotCmbChooser2Change( int index ); | 87 | void slotCmbChooser2Change( int index ); |
91 | void slotCmbChooser3Change( int index ); | 88 | void slotCmbChooser3Change( int index ); |
92 | void slotCmbChooser4Change( int index ); | 89 | void slotCmbChooser4Change( int index ); |
93 | void slotAddressTypeChange( int index ); | 90 | void slotAddressTypeChange( int index ); |
94 | void slotAddressChange( const QString &textChanged ); | 91 | void slotAddressChange( const QString &textChanged ); |
95 | void slotAddress2Change( const QString &textChanged ); | 92 | void slotAddress2Change( const QString &textChanged ); |
96 | void slotPOBoxChange( const QString &textChanged ); | 93 | void slotPOBoxChange( const QString &textChanged ); |
97 | void slotCityChange( const QString &textChanged ); | 94 | void slotCityChange( const QString &textChanged ); |
98 | void slotStateChange( const QString &textChanged ); | 95 | void slotStateChange( const QString &textChanged ); |
99 | void slotZipChange( const QString &textChanged ); | 96 | void slotZipChange( const QString &textChanged ); |
100 | void slotCountryChange( const QString &textChanged ); | 97 | void slotCountryChange( const QString &textChanged ); |
101 | void slotFullNameChange( const QString &textChanged ); | 98 | void slotFullNameChange( const QString &textChanged ); |
102 | void slotAnniversaryDateChanged( int year, int month, int day); | 99 | void slotAnniversaryDateChanged( int year, int month, int day); |
103 | void slotBirthdayDateChanged( int year, int month, int day); | 100 | void slotBirthdayDateChanged( int year, int month, int day); |
101 | void slotRemoveBirthday(); | ||
102 | void slotRemoveAnniversary(); | ||
104 | 103 | ||
105 | private: | 104 | private: |
106 | bool useFullName, hasGender, hasTitle, hasCompany, hasNotes, hasStreet, hasStreet2, hasPOBox, hasCity, hasState, hasZip, hasCountry; | 105 | bool useFullName; |
106 | // bool hasGender, hasTitle, hasCompany, hasNotes, hasStreet, hasStreet2, hasPOBox, hasCity, hasState, hasZip, hasCountry; | ||
107 | 107 | ||
108 | OContact ent; | 108 | OContact ent; |
109 | 109 | ||
110 | QDialog *dlgNote; | 110 | QDialog *dlgNote; |
111 | QDialog *dlgName; | 111 | QDialog *dlgName; |
112 | 112 | ||
113 | QList<QLineEdit> listValue; | 113 | QList<QLineEdit> listValue; |
114 | QList<QLabel> listName; | 114 | QList<QLabel> listName; |
115 | const QValueList<int> *orderedValues; | 115 | |
116 | QStringList slOrdered; | ||
117 | QStringList slDynamicEntries; | 116 | QStringList slDynamicEntries; |
117 | QStringList trlDynamicEntries; | ||
118 | 118 | ||
119 | bool m_personalView; | 119 | bool m_personalView; |
120 | 120 | ||
121 | QStringList slHomeAddress; | 121 | QStringList slHomeAddress; |
122 | QStringList slBusinessAddress; | 122 | QStringList slBusinessAddress; |
123 | QStringList slChooserNames; | 123 | QStringList slChooserNames; |
124 | QStringList slChooserValues; | 124 | QStringList slChooserValues; |
125 | 125 | ||
126 | QMultiLineEdit *txtNote; | 126 | QMultiLineEdit *txtNote; |
127 | QLabel *lblNote; | 127 | QLabel *lblNote; |
128 | 128 | ||
129 | //QLineEdit *txtTitle; | 129 | //QLineEdit *txtTitle; |
130 | QLineEdit *txtFirstName; | 130 | QLineEdit *txtFirstName; |
131 | QLineEdit *txtMiddleName; | 131 | QLineEdit *txtMiddleName; |
132 | QLineEdit *txtLastName; | 132 | QLineEdit *txtLastName; |
133 | QLineEdit *txtSuffix; | 133 | QLineEdit *txtSuffix; |
134 | 134 | ||
135 | QTabWidget *tabMain; | 135 | QTabWidget *tabMain; |
136 | QScrollView *svGeneral; | 136 | QScrollView *svGeneral; |
137 | QPushButton *btnFullName; | 137 | QPushButton *btnFullName; |
138 | QPushButton *btnNote; | 138 | QPushButton *btnNote; |
139 | QLineEdit *txtFullName; | 139 | QLineEdit *txtFullName; |
140 | QLineEdit *txtJobTitle; | 140 | QLineEdit *txtJobTitle; |
141 | QLineEdit *txtOrganization; | 141 | QLineEdit *txtOrganization; |