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 | |||
@@ -20,12 +20,14 @@ | |||
20 | 20 | ||
21 | #ifndef CONTACTEDITOR_H | 21 | #ifndef CONTACTEDITOR_H |
22 | #define CONTACTEDITOR_H | 22 | #define CONTACTEDITOR_H |
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> |
29 | #include <qstringlist.h> | 31 | #include <qstringlist.h> |
30 | 32 | ||
31 | const int NAME_LF = 0; | 33 | const int NAME_LF = 0; |
@@ -58,12 +60,13 @@ class ContactEditor : public QDialog { | |||
58 | QWidget *parent = 0, | 60 | QWidget *parent = 0, |
59 | const char *name = 0, | 61 | const char *name = 0, |
60 | WFlags fl = 0 ); | 62 | WFlags fl = 0 ); |
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: |
67 | void slotNote(); | 70 | void slotNote(); |
68 | void slotName(); | 71 | void slotName(); |
69 | void setEntry(const OContact &entry); | 72 | void setEntry(const OContact &entry); |
@@ -75,13 +78,12 @@ class ContactEditor : public QDialog { | |||
75 | void init(); | 78 | void init(); |
76 | void initMap(); | 79 | void initMap(); |
77 | void saveEntry(); | 80 | void saveEntry(); |
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 ); |
85 | void slotChooser3Change( const QString &textChanged ); | 87 | void slotChooser3Change( const QString &textChanged ); |
86 | void slotChooser4Change( const QString &textChanged ); | 88 | void slotChooser4Change( const QString &textChanged ); |
87 | void slotCmbChooser1Change( int index ); | 89 | void slotCmbChooser1Change( int index ); |
@@ -94,12 +96,14 @@ class ContactEditor : public QDialog { | |||
94 | void slotPOBoxChange( const QString &textChanged ); | 96 | void slotPOBoxChange( const QString &textChanged ); |
95 | void slotCityChange( const QString &textChanged ); | 97 | void slotCityChange( const QString &textChanged ); |
96 | void slotStateChange( const QString &textChanged ); | 98 | void slotStateChange( const QString &textChanged ); |
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; |
103 | 107 | ||
104 | OContact ent; | 108 | OContact ent; |
105 | 109 | ||
@@ -109,12 +113,14 @@ class ContactEditor : public QDialog { | |||
109 | QList<QLineEdit> listValue; | 113 | QList<QLineEdit> listValue; |
110 | QList<QLabel> listName; | 114 | QList<QLabel> listName; |
111 | const QValueList<int> *orderedValues; | 115 | const QValueList<int> *orderedValues; |
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; |
118 | QStringList slChooserValues; | 124 | QStringList slChooserValues; |
119 | 125 | ||
120 | QMultiLineEdit *txtNote; | 126 | QMultiLineEdit *txtNote; |
@@ -140,12 +146,13 @@ class ContactEditor : public QDialog { | |||
140 | QComboBox *cmbChooserField1; | 146 | QComboBox *cmbChooserField1; |
141 | QComboBox *cmbChooserField2; | 147 | QComboBox *cmbChooserField2; |
142 | QComboBox *cmbChooserField3; | 148 | QComboBox *cmbChooserField3; |
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; |
149 | //QLineEdit *txtAddress2; | 156 | //QLineEdit *txtAddress2; |
150 | //QLineEdit *txtPOBox; | 157 | //QLineEdit *txtPOBox; |
151 | QLineEdit *txtCity; | 158 | QLineEdit *txtCity; |
@@ -153,10 +160,13 @@ class ContactEditor : public QDialog { | |||
153 | QLineEdit *txtZip; | 160 | QLineEdit *txtZip; |
154 | QComboBox *cmbAddress; | 161 | QComboBox *cmbAddress; |
155 | QComboBox *cmbCountry; | 162 | QComboBox *cmbCountry; |
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 |