-rw-r--r-- | core/pim/addressbook/TODO | 35 | ||||
-rw-r--r-- | core/pim/addressbook/ablabel.cpp | 7 | ||||
-rw-r--r-- | core/pim/addressbook/abview.cpp | 55 | ||||
-rw-r--r-- | core/pim/addressbook/abview.h | 2 | ||||
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 2 | ||||
-rw-r--r-- | core/pim/addressbook/configdlg_base.ui | 10 | ||||
-rw-r--r-- | core/pim/addressbook/ocontactfields.cpp | 4 |
7 files changed, 68 insertions, 47 deletions
diff --git a/core/pim/addressbook/TODO b/core/pim/addressbook/TODO index 1cbee26..93ece13 100644 --- a/core/pim/addressbook/TODO +++ b/core/pim/addressbook/TODO | |||
@@ -6,77 +6,75 @@ Feature requests: | |||
6 | - Dial by mobile phone by tapping the number.. | 6 | - Dial by mobile phone by tapping the number.. |
7 | (Maybe using gsmtool. And we may | 7 | (Maybe using gsmtool. And we may |
8 | add a library class for this) | 8 | add a library class for this) |
9 | - dial with dtmfdial incase it's installed and there's no mobile | 9 | - dial with dtmfdial incase it's installed and there's no mobile |
10 | - 3rd column for 2. Contact | 10 | - 3rd column for 2. Contact |
11 | - Implementing additional Views (Phonebook, ...) | 11 | - Implementing additional Views (Phonebook, ...) |
12 | - Birthday & Anniversary Reminder | 12 | - Birthday & Anniversary Reminder |
13 | - Plugin for Today for Birthdays and Anniversaries | 13 | - Plugin for Today for Birthdays and Anniversaries |
14 | 14 | ||
15 | Known Bugs: | 15 | Known Bugs: |
16 | ----------- | 16 | ----------- |
17 | - OK-Key does not switch from Detailview (ablable) to Listview | 17 | - OK-Key does not switch from Detailview (ablable) to Listview |
18 | - After finising search and after Edit: Clear Picker | ||
19 | - After Edit: Table position back to edited entry. | ||
20 | - Combo in Contacteditor: Field "Default-Email" is not correctly implemented and | ||
21 | should be removed by a picker/combo. | ||
22 | - Name order selected in "contacteditor" not used in list view. | 18 | - Name order selected in "contacteditor" not used in list view. |
19 | |||
23 | - Language not English (tested with german opie-translation): | 20 | - Language not English (tested with german opie-translation): |
24 | 1. Configure nicht übersetzt (alles leer). | 21 | 1. Configure nicht übersetzt (alles leer). |
25 | 2. Contacteditor nur teilweise übersetzt. | 22 | 2. Contacteditor nur teilweise übersetzt. |
26 | 3. Kategorie-Picker geht nicht (nur bei Openzaurus). | 23 | 3. Kategorie-Picker geht nicht. |
27 | 24 | ||
28 | 25 | ||
29 | Bugs but not in addressbook: | 26 | Bugs but not in addressbook: |
30 | ----------------------------- | 27 | ----------------------------- |
31 | - VCARD: Import of Anniversary does not work correctly (currently disabled) | 28 | - VCARD: Import of Anniversary does not work correctly (currently disabled) |
32 | - VCARD: If umlaut (äöüß) in address, the parser gets confused.. | 29 | - VCARD: If umlaut (äöüß) in address, the parser gets confused.. |
33 | - Exporting and reimporting of Jobtitle fails. | 30 | |
31 | - Exporting and reimporting of Jobtitle fails (Could not reproduce this ! (se)) | ||
34 | 32 | ||
35 | 33 | ||
36 | Urgent: | 34 | Urgent: |
37 | -------- | 35 | -------- |
38 | - Contact-Editor is temporarely reanabled. Wait for replacement. | 36 | - Implement Button Pics |
37 | - Fix start of opie-mail | ||
38 | |||
39 | ContactEditor: | ||
40 | - Contact-Editor is temporarely reenabled. Wait for replacement. | ||
39 | - Redesign of Contacteditor | 41 | - Redesign of Contacteditor |
40 | - Store last settings of combo-boxes | 42 | - Store last settings of combo-boxes |
41 | - Category is on the wrong position after changing to personal and back to normal | 43 | - Category is on the wrong position after changing to personal and back to normal |
42 | ( Temporarily workaround: Category is never deactivated.. :S ) | 44 | ( Temporarily workaround: Category is never deactivated.. :S ) |
43 | - Optimize Table Update... | 45 | - Personal and Business Web-page is not editable |
44 | - Change MyDialog to Config | ||
45 | - Implement Button Pics | ||
46 | - Fix start of opie-mail | ||
47 | 46 | ||
48 | Important: | 47 | Important: |
49 | ---------- | 48 | ---------- |
50 | 49 | ||
50 | - Implement a picker/combo for the default email. | ||
51 | - After search (Started with Return): KeyFocus should be on Tabelle | 51 | - After search (Started with Return): KeyFocus should be on Tabelle |
52 | - Searchwidget closed: Selected user is jumping | ||
53 | - Wenn suchen beendet, dann dauert das Tabellenupdate (was überhaupt überflüssig ist) | ||
54 | zu lange.. | ||
55 | |||
56 | - Store position and state of toolbar | ||
57 | 52 | ||
58 | - IRDA Receive: Contact is added, but start of editor with new entry expected.. | 53 | - IRDA Receive: Contact is added, but start of editor with new entry expected.. |
59 | - "What's this" should be added (Deleyed after Feature Freeze) | 54 | - "What's this" should be added (Deleyed after Feature Freeze) |
60 | 55 | ||
61 | Less important: | 56 | Less important: |
62 | --------------- | 57 | --------------- |
63 | - Reload if contacts were changed externally | 58 | - Reload if contacts were changed externally |
64 | - Overview window cleanup needed.. | 59 | - Overview window cleanup needed.. |
65 | - The picker (alphabetical sort widget) should be | 60 | - The picker (alphabetical sort widget) should be |
66 | placed verticaly or horizontally (configurable) | 61 | placed verticaly or horizontally (configurable) |
67 | - Find a smart solution for activating/deactivating the "send email" event | 62 | - Find a smart solution for activating/deactivating the "send email" event |
68 | 63 | ||
69 | Should be Fixed (not absolute sure, need further validation): | 64 | Should be Fixed (not absolute sure, need further validation): |
70 | ------------------------------------------------------------- | 65 | ------------------------------------------------------------- |
66 | - Searchwidget closed: Selected user is jumping | ||
67 | - Wenn suchen beendet, dann dauert das Tabellenupdate (was überhaupt überflüssig ist) | ||
68 | zu lange.. | ||
71 | 69 | ||
72 | 70 | ||
73 | Fixed: | 71 | Fixed: |
74 | ------- | 72 | ------- |
75 | - Syncing: abtable not reloaded after sync. | 73 | - Syncing: abtable not reloaded after sync. |
76 | - Find widget should be replaced by something like | 74 | - Find widget should be replaced by something like |
77 | qpdf has. | 75 | qpdf has. |
78 | - Adding a configuration dialog | 76 | - Adding a configuration dialog |
79 | - Picker: Activated letter schould be more visible | 77 | - Picker: Activated letter schould be more visible |
80 | - Advanced handling of cursor keys (search..) | 78 | - Advanced handling of cursor keys (search..) |
81 | - Mail-Icon is missing | 79 | - Mail-Icon is missing |
82 | - Use opie-mail insted of qt-mail if possible. | 80 | - Use opie-mail insted of qt-mail if possible. |
@@ -95,12 +93,17 @@ Fixed: | |||
95 | - Abtable: Configure Contact column (internally already available, | 93 | - Abtable: Configure Contact column (internally already available, |
96 | need configuration) | 94 | need configuration) |
97 | - Select of primary contact (see #274 on mantis) | 95 | - Select of primary contact (see #274 on mantis) |
98 | - Category-select does not work completely: "Unfiled" is always in listview .. | 96 | - Category-select does not work completely: "Unfiled" is always in listview .. |
99 | - Return from Contacteditor: Category resettet to all | 97 | - Return from Contacteditor: Category resettet to all |
100 | - Personal Details not working | 98 | - Personal Details not working |
101 | - If category changed, the letterpicker should be resetted | 99 | - If category changed, the letterpicker should be resetted |
102 | - There should be some icons for List and Cardview | 100 | - There should be some icons for List and Cardview |
103 | - If in Cardview and a category change removes all entries: | 101 | - If in Cardview and a category change removes all entries: |
104 | There are already entries in Cardview after up/down | 102 | There are already entries in Cardview after up/down |
105 | - Personal Details: Anniversary zeigt Fantasie-Werte | 103 | - Personal Details: Anniversary zeigt Fantasie-Werte |
106 | - Unfiled shown just in Category "All" and "Unfiled". | 104 | - Unfiled shown just in Category "All" and "Unfiled". |
105 | - After finising search and after Edit: Clear Picker | ||
106 | - After Edit: Table position back to edited entry. | ||
107 | - Optimize Table Update... | ||
108 | - Change MyDialog to Config | ||
109 | - Store position and state of toolbar | ||
diff --git a/core/pim/addressbook/ablabel.cpp b/core/pim/addressbook/ablabel.cpp index 5b40dc1..937aaae 100644 --- a/core/pim/addressbook/ablabel.cpp +++ b/core/pim/addressbook/ablabel.cpp | |||
@@ -42,25 +42,30 @@ void AbLabel::setContacts( const OContactAccess::List& viewList ) | |||
42 | m_empty = false; | 42 | m_empty = false; |
43 | m_itCurContact = m_viewList.begin(); | 43 | m_itCurContact = m_viewList.begin(); |
44 | sync(); | 44 | sync(); |
45 | }else{ | 45 | }else{ |
46 | // m_itCurContact.clear(); | 46 | // m_itCurContact.clear(); |
47 | m_empty = true; | 47 | m_empty = true; |
48 | setText( "" ); | 48 | setText( "" ); |
49 | } | 49 | } |
50 | } | 50 | } |
51 | 51 | ||
52 | int AbLabel::currentEntry_UID() | 52 | int AbLabel::currentEntry_UID() |
53 | { | 53 | { |
54 | return ( (*m_itCurContact).uid() ); | 54 | OContact contact = *m_itCurContact; |
55 | |||
56 | if ( contact.isEmpty() ) | ||
57 | return 0; | ||
58 | else | ||
59 | return ( contact.uid() ); | ||
55 | } | 60 | } |
56 | 61 | ||
57 | OContact AbLabel::currentEntry() | 62 | OContact AbLabel::currentEntry() |
58 | { | 63 | { |
59 | return ( *m_itCurContact ); | 64 | return ( *m_itCurContact ); |
60 | } | 65 | } |
61 | 66 | ||
62 | 67 | ||
63 | bool AbLabel::selectContact( int UID ) | 68 | bool AbLabel::selectContact( int UID ) |
64 | { | 69 | { |
65 | 70 | ||
66 | for ( m_itCurContact = m_viewList.begin(); m_itCurContact != m_viewList.end(); ++m_itCurContact){ | 71 | for ( m_itCurContact = m_viewList.begin(); m_itCurContact != m_viewList.end(); ++m_itCurContact){ |
diff --git a/core/pim/addressbook/abview.cpp b/core/pim/addressbook/abview.cpp index 0f4bd5f..7226e82 100644 --- a/core/pim/addressbook/abview.cpp +++ b/core/pim/addressbook/abview.cpp | |||
@@ -115,56 +115,62 @@ void AbView::removeEntry( const int UID ) | |||
115 | } | 115 | } |
116 | 116 | ||
117 | void AbView::replaceEntry( const OContact &contact ) | 117 | void AbView::replaceEntry( const OContact &contact ) |
118 | { | 118 | { |
119 | qWarning("abview:ReplaceContact"); | 119 | qWarning("abview:ReplaceContact"); |
120 | m_contactdb->replace( contact ); | 120 | m_contactdb->replace( contact ); |
121 | load(); | 121 | load(); |
122 | 122 | ||
123 | } | 123 | } |
124 | 124 | ||
125 | OContact AbView::currentEntry() | 125 | OContact AbView::currentEntry() |
126 | { | 126 | { |
127 | OContact currentContact; | ||
128 | |||
127 | switch ( (int) m_curr_View ) { | 129 | switch ( (int) m_curr_View ) { |
128 | case TableView: | 130 | case TableView: |
129 | return ( m_abTable -> currentEntry() ); | 131 | currentContact = m_abTable -> currentEntry(); |
130 | break; | 132 | break; |
131 | case CardView: | 133 | case CardView: |
132 | return ( m_ablabel -> currentEntry() ); | 134 | currentContact = m_ablabel -> currentEntry(); |
133 | break; | 135 | break; |
134 | } | 136 | } |
135 | return OContact(); | 137 | m_curr_Contact = currentContact.uid(); |
138 | return currentContact; | ||
136 | } | 139 | } |
137 | 140 | ||
138 | bool AbView::save() | 141 | bool AbView::save() |
139 | { | 142 | { |
140 | qWarning("abView:Save data"); | 143 | qWarning("abView:Save data"); |
141 | 144 | ||
142 | return m_contactdb->save(); | 145 | return m_contactdb->save(); |
143 | } | 146 | } |
144 | 147 | ||
145 | void AbView::load() | 148 | void AbView::load() |
146 | { | 149 | { |
147 | qWarning("abView:Load data"); | 150 | qWarning("abView:Load data"); |
151 | |||
152 | // Letter Search is stopped at this place | ||
153 | emit signalClearLetterPicker(); | ||
148 | 154 | ||
149 | if ( m_inPersonal ) | 155 | if ( m_inPersonal ) |
150 | m_list = m_contactdb->allRecords(); | 156 | m_list = m_contactdb->allRecords(); |
151 | else | 157 | else{ |
152 | m_list = m_contactdb->sorted( true, 0, 0, 0 ); | 158 | m_list = m_contactdb->sorted( true, 0, 0, 0 ); |
153 | 159 | clearForCategory(); | |
154 | clearForCategory(); | 160 | } |
155 | 161 | ||
156 | qWarning ("Number of contacts: %d", m_list.count()); | 162 | qWarning ("Number of contacts: %d", m_list.count()); |
157 | 163 | ||
158 | updateView(); | 164 | updateView( true ); |
159 | 165 | ||
160 | } | 166 | } |
161 | 167 | ||
162 | void AbView::reload() | 168 | void AbView::reload() |
163 | { | 169 | { |
164 | qWarning( "void AbView::reload()" ); | 170 | qWarning( "void AbView::reload()" ); |
165 | 171 | ||
166 | m_contactdb->reload(); | 172 | m_contactdb->reload(); |
167 | load(); | 173 | load(); |
168 | } | 174 | } |
169 | 175 | ||
170 | void AbView::clear() | 176 | void AbView::clear() |
@@ -215,25 +221,25 @@ void AbView::setShowByLetter( char c ) | |||
215 | { | 221 | { |
216 | qWarning("void AbView::setShowByLetter( %c )", c ); | 222 | qWarning("void AbView::setShowByLetter( %c )", c ); |
217 | OContact query; | 223 | OContact query; |
218 | if ( c == 0 ){ | 224 | if ( c == 0 ){ |
219 | load(); | 225 | load(); |
220 | return; | 226 | return; |
221 | }else{ | 227 | }else{ |
222 | query.setLastName( QString("%1*").arg(c) ); | 228 | query.setLastName( QString("%1*").arg(c) ); |
223 | m_list = m_contactdb->queryByExample( query, OContactAccess::WildCards ); | 229 | m_list = m_contactdb->queryByExample( query, OContactAccess::WildCards ); |
224 | clearForCategory(); | 230 | clearForCategory(); |
225 | m_curr_Contact = 0; | 231 | m_curr_Contact = 0; |
226 | } | 232 | } |
227 | updateView(); | 233 | updateView( true ); |
228 | } | 234 | } |
229 | 235 | ||
230 | void AbView::setListOrder( const QValueList<int>& ordered ) | 236 | void AbView::setListOrder( const QValueList<int>& ordered ) |
231 | { | 237 | { |
232 | m_orderedFields = ordered; | 238 | m_orderedFields = ordered; |
233 | updateView(); | 239 | updateView(); |
234 | } | 240 | } |
235 | 241 | ||
236 | 242 | ||
237 | QString AbView::showCategory() const | 243 | QString AbView::showCategory() const |
238 | { | 244 | { |
239 | return mCat.label( "Contacts", m_curr_category ); | 245 | return mCat.label( "Contacts", m_curr_category ); |
@@ -316,25 +322,25 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, | |||
316 | qWarning( "found: %d", m_list.count() ); | 322 | qWarning( "found: %d", m_list.count() ); |
317 | if ( m_list.count() == 0 ){ | 323 | if ( m_list.count() == 0 ){ |
318 | emit signalNotFound(); | 324 | emit signalNotFound(); |
319 | return; | 325 | return; |
320 | } | 326 | } |
321 | 327 | ||
322 | // Now remove all contacts with wrong category (if any selected) | 328 | // Now remove all contacts with wrong category (if any selected) |
323 | // This algorithm is a litte bit ineffective, but | 329 | // This algorithm is a litte bit ineffective, but |
324 | // we will not have a lot of matching entries.. | 330 | // we will not have a lot of matching entries.. |
325 | clearForCategory(); | 331 | clearForCategory(); |
326 | 332 | ||
327 | // Now show all found entries | 333 | // Now show all found entries |
328 | updateView(); | 334 | updateView( true ); |
329 | } | 335 | } |
330 | 336 | ||
331 | void AbView::offSearch() | 337 | void AbView::offSearch() |
332 | { | 338 | { |
333 | m_inSearch = false; | 339 | m_inSearch = false; |
334 | 340 | ||
335 | load(); | 341 | load(); |
336 | } | 342 | } |
337 | 343 | ||
338 | void AbView::slotSwitch(){ | 344 | void AbView::slotSwitch(){ |
339 | qWarning("AbView::slotSwitch()"); | 345 | qWarning("AbView::slotSwitch()"); |
340 | 346 | ||
@@ -398,49 +404,52 @@ bool AbView::contactCompare( const OContact &cnt, int category ) | |||
398 | } | 404 | } |
399 | qWarning ("Return: %d", returnMe); | 405 | qWarning ("Return: %d", returnMe); |
400 | return returnMe; | 406 | return returnMe; |
401 | } | 407 | } |
402 | 408 | ||
403 | // In Some rare cases we have to update all lists.. | 409 | // In Some rare cases we have to update all lists.. |
404 | void AbView::updateListinViews() | 410 | void AbView::updateListinViews() |
405 | { | 411 | { |
406 | m_abTable -> setContacts( m_list ); | 412 | m_abTable -> setContacts( m_list ); |
407 | m_ablabel -> setContacts( m_list ); | 413 | m_ablabel -> setContacts( m_list ); |
408 | } | 414 | } |
409 | 415 | ||
410 | void AbView::updateView() | 416 | void AbView::updateView( bool newdata ) |
411 | { | 417 | { |
412 | qWarning("AbView::updateView()"); | 418 | qWarning("AbView::updateView()"); |
413 | 419 | ||
414 | if ( m_viewStack -> visibleWidget() ){ | 420 | if ( m_viewStack -> visibleWidget() ){ |
415 | m_viewStack -> visibleWidget() -> clearFocus(); | 421 | m_viewStack -> visibleWidget() -> clearFocus(); |
416 | } | 422 | } |
417 | 423 | ||
418 | // If we switching the view, we have to store some information | 424 | // If we switching the view, we have to store some information |
419 | if ( m_list.count() ){ | 425 | if ( !newdata ){ |
420 | switch ( (int) m_prev_View ) { | 426 | if ( m_list.count() ){ |
421 | case TableView: | 427 | switch ( (int) m_prev_View ) { |
422 | m_curr_Contact = m_abTable -> currentEntry_UID(); | 428 | case TableView: |
423 | break; | 429 | m_curr_Contact = m_abTable -> currentEntry_UID(); |
424 | case CardView: | 430 | break; |
425 | m_curr_Contact = m_ablabel -> currentEntry_UID(); | 431 | case CardView: |
426 | break; | 432 | m_curr_Contact = m_ablabel -> currentEntry_UID(); |
427 | } | 433 | break; |
428 | }else | 434 | } |
429 | m_curr_Contact = 0; | 435 | }else |
436 | m_curr_Contact = 0; | ||
437 | } | ||
430 | 438 | ||
431 | // Feed all views with new lists | 439 | // Feed all views with new lists |
432 | updateListinViews(); | 440 | if ( newdata ) |
441 | updateListinViews(); | ||
433 | 442 | ||
434 | // Inform the world that the view is changed | 443 | // Tell the world that the view is changed |
435 | if ( m_curr_View != m_prev_View ) | 444 | if ( m_curr_View != m_prev_View ) |
436 | emit signalViewSwitched ( (int) m_curr_View ); | 445 | emit signalViewSwitched ( (int) m_curr_View ); |
437 | 446 | ||
438 | m_prev_View = m_curr_View; | 447 | m_prev_View = m_curr_View; |
439 | 448 | ||
440 | // Switch to new View | 449 | // Switch to new View |
441 | switch ( (int) m_curr_View ) { | 450 | switch ( (int) m_curr_View ) { |
442 | case TableView: | 451 | case TableView: |
443 | m_abTable -> setChoiceSelection( m_orderedFields ); | 452 | m_abTable -> setChoiceSelection( m_orderedFields ); |
444 | if ( m_curr_Contact != 0 ) | 453 | if ( m_curr_Contact != 0 ) |
445 | m_abTable -> selectContact ( m_curr_Contact ); | 454 | m_abTable -> selectContact ( m_curr_Contact ); |
446 | m_abTable -> setFocus(); | 455 | m_abTable -> setFocus(); |
diff --git a/core/pim/addressbook/abview.h b/core/pim/addressbook/abview.h index 2c10cfa..8570fe7 100644 --- a/core/pim/addressbook/abview.h +++ b/core/pim/addressbook/abview.h | |||
@@ -49,25 +49,25 @@ public: | |||
49 | signals: | 49 | signals: |
50 | void signalNotFound(); | 50 | void signalNotFound(); |
51 | void signalClearLetterPicker(); | 51 | void signalClearLetterPicker(); |
52 | void signalViewSwitched ( int ); | 52 | void signalViewSwitched ( int ); |
53 | 53 | ||
54 | public slots: | 54 | public slots: |
55 | void slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, | 55 | void slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, |
56 | bool backwards, QString category = QString::null ); | 56 | bool backwards, QString category = QString::null ); |
57 | void slotSwitch(); | 57 | void slotSwitch(); |
58 | 58 | ||
59 | private: | 59 | private: |
60 | void updateListinViews(); | 60 | void updateListinViews(); |
61 | void updateView(); | 61 | void updateView( bool newdata = false ); |
62 | void clearForCategory(); | 62 | void clearForCategory(); |
63 | bool contactCompare( const OContact &cnt, int category ); | 63 | bool contactCompare( const OContact &cnt, int category ); |
64 | void parseName( const QString& name, QString *first, QString *middle, | 64 | void parseName( const QString& name, QString *first, QString *middle, |
65 | QString * last ); | 65 | QString * last ); |
66 | 66 | ||
67 | Categories mCat; | 67 | Categories mCat; |
68 | bool m_inSearch; | 68 | bool m_inSearch; |
69 | bool m_inPersonal; | 69 | bool m_inPersonal; |
70 | int m_curr_category; | 70 | int m_curr_category; |
71 | Views m_curr_View; | 71 | Views m_curr_View; |
72 | Views m_prev_View; | 72 | Views m_prev_View; |
73 | int m_curr_Contact; | 73 | int m_curr_Contact; |
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index 5d588da..055124c 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp | |||
@@ -644,25 +644,25 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data) | |||
644 | } | 644 | } |
645 | 645 | ||
646 | void AddressbookWindow::editEntry( EntryMode entryMode ) | 646 | void AddressbookWindow::editEntry( EntryMode entryMode ) |
647 | { | 647 | { |
648 | OContact entry; | 648 | OContact entry; |
649 | if ( !abEditor ) { | 649 | if ( !abEditor ) { |
650 | abEditor = new ContactEditor( entry, this, "editor" ); | 650 | abEditor = new ContactEditor( entry, this, "editor" ); |
651 | } | 651 | } |
652 | if ( entryMode == EditEntry ) | 652 | if ( entryMode == EditEntry ) |
653 | abEditor->setEntry( m_abView -> currentEntry() ); | 653 | abEditor->setEntry( m_abView -> currentEntry() ); |
654 | else if ( entryMode == NewEntry ) | 654 | else if ( entryMode == NewEntry ) |
655 | abEditor->setEntry( entry ); | 655 | abEditor->setEntry( entry ); |
656 | // other things may chane the caption. | 656 | // other things may change the caption. |
657 | abEditor->setCaption( tr("Edit Address") ); | 657 | abEditor->setCaption( tr("Edit Address") ); |
658 | 658 | ||
659 | #if defined(Q_WS_QWS) || defined(_WS_QWS_) | 659 | #if defined(Q_WS_QWS) || defined(_WS_QWS_) |
660 | abEditor->showMaximized(); | 660 | abEditor->showMaximized(); |
661 | #endif | 661 | #endif |
662 | // fix the foxus... | 662 | // fix the foxus... |
663 | abEditor->setNameFocus(); | 663 | abEditor->setNameFocus(); |
664 | if ( abEditor->exec() ) { | 664 | if ( abEditor->exec() ) { |
665 | setFocus(); | 665 | setFocus(); |
666 | if ( entryMode == NewEntry ) { | 666 | if ( entryMode == NewEntry ) { |
667 | OContact insertEntry = abEditor->entry(); | 667 | OContact insertEntry = abEditor->entry(); |
668 | insertEntry.assignUid(); | 668 | insertEntry.assignUid(); |
diff --git a/core/pim/addressbook/configdlg_base.ui b/core/pim/addressbook/configdlg_base.ui index 408bfa6..8ae2578 100644 --- a/core/pim/addressbook/configdlg_base.ui +++ b/core/pim/addressbook/configdlg_base.ui | |||
@@ -3,36 +3,40 @@ | |||
3 | <author>Stefan Eilers</author> | 3 | <author>Stefan Eilers</author> |
4 | <widget> | 4 | <widget> |
5 | <class>QDialog</class> | 5 | <class>QDialog</class> |
6 | <property stdset="1"> | 6 | <property stdset="1"> |
7 | <name>name</name> | 7 | <name>name</name> |
8 | <cstring>Configuration</cstring> | 8 | <cstring>Configuration</cstring> |
9 | </property> | 9 | </property> |
10 | <property stdset="1"> | 10 | <property stdset="1"> |
11 | <name>geometry</name> | 11 | <name>geometry</name> |
12 | <rect> | 12 | <rect> |
13 | <x>0</x> | 13 | <x>0</x> |
14 | <y>0</y> | 14 | <y>0</y> |
15 | <width>276</width> | 15 | <width>282</width> |
16 | <height>327</height> | 16 | <height>327</height> |
17 | </rect> | 17 | </rect> |
18 | </property> | 18 | </property> |
19 | <property stdset="1"> | 19 | <property stdset="1"> |
20 | <name>sizePolicy</name> | 20 | <name>sizePolicy</name> |
21 | <sizepolicy> | 21 | <sizepolicy> |
22 | <hsizetype>5</hsizetype> | 22 | <hsizetype>5</hsizetype> |
23 | <vsizetype>5</vsizetype> | 23 | <vsizetype>5</vsizetype> |
24 | </sizepolicy> | 24 | </sizepolicy> |
25 | </property> | 25 | </property> |
26 | <property stdset="1"> | 26 | <property stdset="1"> |
27 | <name>caption</name> | ||
28 | <string>Configuration</string> | ||
29 | </property> | ||
30 | <property stdset="1"> | ||
27 | <name>sizeGripEnabled</name> | 31 | <name>sizeGripEnabled</name> |
28 | <bool>true</bool> | 32 | <bool>true</bool> |
29 | </property> | 33 | </property> |
30 | <property> | 34 | <property> |
31 | <name>layoutMargin</name> | 35 | <name>layoutMargin</name> |
32 | </property> | 36 | </property> |
33 | <vbox> | 37 | <vbox> |
34 | <property stdset="1"> | 38 | <property stdset="1"> |
35 | <name>margin</name> | 39 | <name>margin</name> |
36 | <number>1</number> | 40 | <number>1</number> |
37 | </property> | 41 | </property> |
38 | <property stdset="1"> | 42 | <property stdset="1"> |
@@ -344,29 +348,29 @@ is provided free !</string> | |||
344 | <class>QWidget</class> | 348 | <class>QWidget</class> |
345 | <property stdset="1"> | 349 | <property stdset="1"> |
346 | <name>name</name> | 350 | <name>name</name> |
347 | <cstring>tab</cstring> | 351 | <cstring>tab</cstring> |
348 | </property> | 352 | </property> |
349 | <attribute> | 353 | <attribute> |
350 | <name>title</name> | 354 | <name>title</name> |
351 | <string>Order</string> | 355 | <string>Order</string> |
352 | </attribute> | 356 | </attribute> |
353 | <vbox> | 357 | <vbox> |
354 | <property stdset="1"> | 358 | <property stdset="1"> |
355 | <name>margin</name> | 359 | <name>margin</name> |
356 | <number>-1</number> | 360 | <number>2</number> |
357 | </property> | 361 | </property> |
358 | <property stdset="1"> | 362 | <property stdset="1"> |
359 | <name>spacing</name> | 363 | <name>spacing</name> |
360 | <number>-1</number> | 364 | <number>2</number> |
361 | </property> | 365 | </property> |
362 | <widget> | 366 | <widget> |
363 | <class>QGroupBox</class> | 367 | <class>QGroupBox</class> |
364 | <property stdset="1"> | 368 | <property stdset="1"> |
365 | <name>name</name> | 369 | <name>name</name> |
366 | <cstring>GroupBox9</cstring> | 370 | <cstring>GroupBox9</cstring> |
367 | </property> | 371 | </property> |
368 | <property stdset="1"> | 372 | <property stdset="1"> |
369 | <name>title</name> | 373 | <name>title</name> |
370 | <string>Select Contact Order:</string> | 374 | <string>Select Contact Order:</string> |
371 | </property> | 375 | </property> |
372 | <grid> | 376 | <grid> |
diff --git a/core/pim/addressbook/ocontactfields.cpp b/core/pim/addressbook/ocontactfields.cpp index 7823a9c..df57efa 100644 --- a/core/pim/addressbook/ocontactfields.cpp +++ b/core/pim/addressbook/ocontactfields.cpp | |||
@@ -33,25 +33,25 @@ QStringList OContactFields::untrdetailsfields( bool sorted ) | |||
33 | 33 | ||
34 | /*! | 34 | /*! |
35 | \internal | 35 | \internal |
36 | Returns a translated list of phone field names for a contact. | 36 | Returns a translated list of phone field names for a contact. |
37 | */ | 37 | */ |
38 | QStringList OContactFields::trphonefields( bool sorted ) | 38 | QStringList OContactFields::trphonefields( bool sorted ) |
39 | { | 39 | { |
40 | QStringList list; | 40 | QStringList list; |
41 | list.append( QObject::tr( "Business Phone" ) ); | 41 | list.append( QObject::tr( "Business Phone" ) ); |
42 | list.append( QObject::tr( "Business Fax" ) ); | 42 | list.append( QObject::tr( "Business Fax" ) ); |
43 | list.append( QObject::tr( "Business Mobile" ) ); | 43 | list.append( QObject::tr( "Business Mobile" ) ); |
44 | 44 | ||
45 | list.append( QObject::tr( "Default Email" ) ); | 45 | // list.append( QObject::tr( "Default Email" ) ); |
46 | list.append( QObject::tr( "Emails" ) ); | 46 | list.append( QObject::tr( "Emails" ) ); |
47 | 47 | ||
48 | list.append( QObject::tr( "Home Phone" ) ); | 48 | list.append( QObject::tr( "Home Phone" ) ); |
49 | list.append( QObject::tr( "Home Fax" ) ); | 49 | list.append( QObject::tr( "Home Fax" ) ); |
50 | list.append( QObject::tr( "Home Mobile" ) ); | 50 | list.append( QObject::tr( "Home Mobile" ) ); |
51 | 51 | ||
52 | if (sorted) list.sort(); | 52 | if (sorted) list.sort(); |
53 | 53 | ||
54 | return list; | 54 | return list; |
55 | } | 55 | } |
56 | 56 | ||
57 | 57 | ||
@@ -129,25 +129,25 @@ QStringList OContactFields::trfields( bool sorted ) | |||
129 | /*! | 129 | /*! |
130 | \internal | 130 | \internal |
131 | Returns a list of phone field names for a contact. | 131 | Returns a list of phone field names for a contact. |
132 | */ | 132 | */ |
133 | QStringList OContactFields::untrphonefields( bool sorted ) | 133 | QStringList OContactFields::untrphonefields( bool sorted ) |
134 | { | 134 | { |
135 | QStringList list; | 135 | QStringList list; |
136 | 136 | ||
137 | list.append( "Business Phone" ); | 137 | list.append( "Business Phone" ); |
138 | list.append( "Business Fax" ); | 138 | list.append( "Business Fax" ); |
139 | list.append( "Business Mobile" ); | 139 | list.append( "Business Mobile" ); |
140 | 140 | ||
141 | list.append( "Default Email" ); | 141 | // list.append( "Default Email" ); |
142 | list.append( "Emails" ); | 142 | list.append( "Emails" ); |
143 | 143 | ||
144 | list.append( "Home Phone" ); | 144 | list.append( "Home Phone" ); |
145 | list.append( "Home Fax" ); | 145 | list.append( "Home Fax" ); |
146 | list.append( "Home Mobile" ); | 146 | list.append( "Home Mobile" ); |
147 | 147 | ||
148 | if (sorted) list.sort(); | 148 | if (sorted) list.sort(); |
149 | 149 | ||
150 | return list; | 150 | return list; |
151 | } | 151 | } |
152 | 152 | ||
153 | /*! | 153 | /*! |