Diffstat (limited to 'core/pim/addressbook/contacteditor.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/contacteditor.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/core/pim/addressbook/contacteditor.h b/core/pim/addressbook/contacteditor.h index 8ed8553..40ce864 100644 --- a/core/pim/addressbook/contacteditor.h +++ b/core/pim/addressbook/contacteditor.h | |||
@@ -23,6 +23,8 @@ | |||
23 | 23 | ||
24 | #include <opie/ocontact.h> | 24 | #include <opie/ocontact.h> |
25 | 25 | ||
26 | #include <qpe/datebookmonth.h> | ||
27 | |||
26 | #include <qdialog.h> | 28 | #include <qdialog.h> |
27 | #include <qlist.h> | 29 | #include <qlist.h> |
28 | #include <qmap.h> | 30 | #include <qmap.h> |
@@ -61,6 +63,7 @@ class ContactEditor : public QDialog { | |||
61 | ~ContactEditor(); | 63 | ~ContactEditor(); |
62 | void loadFields(); | 64 | void loadFields(); |
63 | void setNameFocus(); | 65 | void setNameFocus(); |
66 | void setPersonalView( bool personal = true ); | ||
64 | OContact entry() const { return ent; } | 67 | OContact entry() const { return ent; } |
65 | 68 | ||
66 | public slots: | 69 | public slots: |
@@ -78,7 +81,6 @@ class ContactEditor : public QDialog { | |||
78 | bool isEmpty(); | 81 | bool isEmpty(); |
79 | void cleanupFields(); | 82 | void cleanupFields(); |
80 | QString parseName( QString fullName, int type ); | 83 | QString parseName( QString fullName, int type ); |
81 | |||
82 | private slots: | 84 | private slots: |
83 | void slotChooser1Change( const QString &textChanged ); | 85 | void slotChooser1Change( const QString &textChanged ); |
84 | void slotChooser2Change( const QString &textChanged ); | 86 | void slotChooser2Change( const QString &textChanged ); |
@@ -97,6 +99,8 @@ class ContactEditor : public QDialog { | |||
97 | void slotZipChange( const QString &textChanged ); | 99 | void slotZipChange( const QString &textChanged ); |
98 | void slotCountryChange( const QString &textChanged ); | 100 | void slotCountryChange( const QString &textChanged ); |
99 | void slotFullNameChange( const QString &textChanged ); | 101 | void slotFullNameChange( const QString &textChanged ); |
102 | void slotAnniversaryDateChanged( int year, int month, int day); | ||
103 | void slotBirthdayDateChanged( int year, int month, int day); | ||
100 | 104 | ||
101 | private: | 105 | private: |
102 | bool useFullName, hasGender, hasTitle, hasCompany, hasNotes, hasStreet, hasStreet2, hasPOBox, hasCity, hasState, hasZip, hasCountry; | 106 | bool useFullName, hasGender, hasTitle, hasCompany, hasNotes, hasStreet, hasStreet2, hasPOBox, hasCity, hasState, hasZip, hasCountry; |
@@ -112,6 +116,8 @@ class ContactEditor : public QDialog { | |||
112 | QStringList slOrdered; | 116 | QStringList slOrdered; |
113 | QStringList slDynamicEntries; | 117 | QStringList slDynamicEntries; |
114 | 118 | ||
119 | bool m_personalView; | ||
120 | |||
115 | QStringList slHomeAddress; | 121 | QStringList slHomeAddress; |
116 | QStringList slBusinessAddress; | 122 | QStringList slBusinessAddress; |
117 | QStringList slChooserNames; | 123 | QStringList slChooserNames; |
@@ -143,6 +149,7 @@ class ContactEditor : public QDialog { | |||
143 | QComboBox *cmbChooserField4; | 149 | QComboBox *cmbChooserField4; |
144 | QComboBox *cmbFileAs; | 150 | QComboBox *cmbFileAs; |
145 | CategorySelect *cmbCat; | 151 | CategorySelect *cmbCat; |
152 | QLabel *labCat; | ||
146 | 153 | ||
147 | QScrollView *svAddress; | 154 | QScrollView *svAddress; |
148 | QLineEdit *txtAddress; | 155 | QLineEdit *txtAddress; |
@@ -156,7 +163,10 @@ class ContactEditor : public QDialog { | |||
156 | 163 | ||
157 | QScrollView *svDetails; | 164 | QScrollView *svDetails; |
158 | QComboBox *cmbGender; | 165 | QComboBox *cmbGender; |
159 | 166 | DateBookMonth* birthdayPicker; | |
160 | }; | 167 | QToolButton* birthdayButton; |
168 | DateBookMonth* anniversaryPicker; | ||
169 | QToolButton* anniversaryButton; | ||
170 | }; | ||
161 | 171 | ||
162 | #endif | 172 | #endif |