summaryrefslogtreecommitdiff
authoreilers <eilers>2003-02-24 09:33:19 (UTC)
committer eilers <eilers>2003-02-24 09:33:19 (UTC)
commit6696e7855b81581d964db64dc7b886c3f58d94ea (patch) (unidiff)
tree504994d669cb119dda5e2c55bc5bb92b7afdff17
parentd5746c625ebf540711179ef01a7bb99bc3b2c3d6 (diff)
downloadopie-6696e7855b81581d964db64dc7b886c3f58d94ea.zip
opie-6696e7855b81581d964db64dc7b886c3f58d94ea.tar.gz
opie-6696e7855b81581d964db64dc7b886c3f58d94ea.tar.bz2
Change default settings of combos for contacteditor
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/TODO1
-rw-r--r--core/pim/addressbook/contacteditor.cpp8
-rw-r--r--core/pim/addressbook/version.h2
3 files changed, 6 insertions, 5 deletions
diff --git a/core/pim/addressbook/TODO b/core/pim/addressbook/TODO
index 906b462..719b720 100644
--- a/core/pim/addressbook/TODO
+++ b/core/pim/addressbook/TODO
@@ -1,87 +1,88 @@
1Stuff todo until OPIE 1.0 : 1Stuff todo until OPIE 1.0 :
2=========================== 2===========================
3 3
4Feature requests: 4Feature requests:
5----------------- 5-----------------
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 in case it's installed and there's no mobile 9- dial with dtmfdial in case 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- Beaming of multiple contacts (current list/ by search or by category) 13- Beaming of multiple contacts (current list/ by search or by category)
14- Configure the letter-picker: lastname/fullname search 14- Configure the letter-picker: lastname/fullname search
15- User center of the joypad to switch back from card to listview ! 15- User center of the joypad to switch back from card to listview !
16- Cursor-UP/Down: Should additionally scroll cardview if it is too large 16- Cursor-UP/Down: Should additionally scroll cardview if it is too large
17 (behaviour should be selectable by configuration) 17 (behaviour should be selectable by configuration)
18 18
19Known Bugs: 19Known Bugs:
20----------- 20-----------
21- Default Email-button: A lot of problems: 21- Default Email-button: A lot of problems:
22 If on second tab: The combo chooser is on the top left of the screen ! :( 22 If on second tab: The combo chooser is on the top left of the screen ! :(
23- Default Email-Button: Sometimes not hiding the textfields completely 23- Default Email-Button: Sometimes not hiding the textfields completely
24 24
25Bugs but not in addressbook: 25Bugs but not in addressbook:
26----------------------------- 26-----------------------------
27- VCARD: If umlaut (äöüß) in address, the parser gets confused.. 27- VCARD: If umlaut (äöüß) in address, the parser gets confused..
28 28
29- Exporting and reimporting of Jobtitle was reported to fail (Could not reproduce this ! (se)) 29- Exporting and reimporting of Jobtitle was reported to fail (Could not reproduce this ! (se))
30 30
31 31
32Urgent: 32Urgent:
33-------- 33--------
34ContactEditor: 34ContactEditor:
35- Contact-Editor is temporarely reenabled. Wait for replacement. 35- Contact-Editor is temporarely reenabled. Wait for replacement.
36- Redesign of Contacteditor 36- Redesign of Contacteditor
37- Category is on the wrong position after changing to personal and back to normal 37- Category is on the wrong position after changing to personal and back to normal
38 ( Temporarily workaround: Category is never deactivated.. :S ) 38 ( Temporarily workaround: Category is never deactivated.. :S )
39 39
40- Fix handling of 3 Firstnames
40 41
41Important: 42Important:
42---------- 43----------
43 44
44- If new contact is added (contacteditor closed): focus (table, card) to 45- If new contact is added (contacteditor closed): focus (table, card) to
45 this entry ! 46 this entry !
46- After search (Started with Return): KeyFocus should be on Tabelle 47- After search (Started with Return): KeyFocus should be on Tabelle
47 48
48- "What's this" should be added (Deleyed after Feature Freeze) 49- "What's this" should be added (Deleyed after Feature Freeze)
49 50
50Less important: 51Less important:
51--------------- 52---------------
52- Reload if contacts were changed externally 53- Reload if contacts were changed externally
53- The picker (alphabetical sort widget) should be 54- The picker (alphabetical sort widget) should be
54 placed verticaly or horizontally (configurable) 55 placed verticaly or horizontally (configurable)
55- Find a smart solution for activating/deactivating the "send email" event 56- Find a smart solution for activating/deactivating the "send email" event
56 57
57Should be Fixed (not absolute sure, need further validation): 58Should be Fixed (not absolute sure, need further validation):
58------------------------------------------------------------- 59-------------------------------------------------------------
59 60
60 61
61Fixed/Ready: 62Fixed/Ready:
62------- 63-------
63- Syncing: abtable not reloaded after sync. 64- Syncing: abtable not reloaded after sync.
64- Find widget should be replaced by something like 65- Find widget should be replaced by something like
65 qpdf has. 66 qpdf has.
66- Adding a configuration dialog 67- Adding a configuration dialog
67- Picker: Activated letter schould be more visible 68- Picker: Activated letter schould be more visible
68- Advanced handling of cursor keys (search..) 69- Advanced handling of cursor keys (search..)
69- Mail-Icon is missing 70- Mail-Icon is missing
70- Use opie-mail insted of qt-mail if possible. 71- Use opie-mail insted of qt-mail if possible.
71- Font menu is invisible using german translation 72- Font menu is invisible using german translation
72- Personal contact editor: Disable categories 73- Personal contact editor: Disable categories
73- "Nonenglish" translation bug has to be fixed. 74- "Nonenglish" translation bug has to be fixed.
74- contacteditor: Birthday, annyversary, ... : Use Dateselector 75- contacteditor: Birthday, annyversary, ... : Use Dateselector
75- The names of the countries are sorted by there english names, only.. 76- The names of the countries are sorted by there english names, only..
76 Even if they are translated.. :S 77 Even if they are translated.. :S
77- Cursor keys should work in detail-view (ablabel) 78- Cursor keys should work in detail-view (ablabel)
78 -> Ablabel should be removed and Abtable should be increased with 79 -> Ablabel should be removed and Abtable should be increased with
79 different views (as started by darwin zins).. 80 different views (as started by darwin zins)..
80- Use advanced database functions in abtable to decrease 81- Use advanced database functions in abtable to decrease
81 memory footprint and to make everything more easy ! 82 memory footprint and to make everything more easy !
82 (abtable should store Iterator for selected Category) 83 (abtable should store Iterator for selected Category)
83- Abtable: Configure Contact column (internally already available, 84- Abtable: Configure Contact column (internally already available,
84 need configuration) 85 need configuration)
85- Select of primary contact (see #274 on mantis) 86- Select of primary contact (see #274 on mantis)
86- Category-select does not work completely: "Unfiled" is always in listview .. 87- Category-select does not work completely: "Unfiled" is always in listview ..
87- Return from Contacteditor: Category resettet to all 88- Return from Contacteditor: Category resettet to all
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp
index 97573af..b60f2dd 100644
--- a/core/pim/addressbook/contacteditor.cpp
+++ b/core/pim/addressbook/contacteditor.cpp
@@ -1446,100 +1446,100 @@ void ContactEditor::setEntry( const OContact &entry ) {
1446/* 1446/*
1447 if ( *it == "Home Pager") 1447 if ( *it == "Home Pager")
1448 *itV = ent.homePager(); 1448 *itV = ent.homePager();
1449 1449
1450 if ( *it == "AIM IM" ) 1450 if ( *it == "AIM IM" )
1451 *itV = ent.AIMIM(); 1451 *itV = ent.AIMIM();
1452 1452
1453 if ( *it == "ICQ IM" ) 1453 if ( *it == "ICQ IM" )
1454 *itV = ent.ICQIM(); 1454 *itV = ent.ICQIM();
1455 1455
1456 if ( *it == "Jabber IM" ) 1456 if ( *it == "Jabber IM" )
1457 *itV = ent.jabberIM(); 1457 *itV = ent.jabberIM();
1458 1458
1459 if ( *it == "MSN IM" ) 1459 if ( *it == "MSN IM" )
1460 *itV = ent.MSNIM(); 1460 *itV = ent.MSNIM();
1461 1461
1462 if ( *it == "Yahoo IM" ) 1462 if ( *it == "Yahoo IM" )
1463 *itV = ent.yahooIM(); 1463 *itV = ent.yahooIM();
1464*/ 1464*/
1465 if ( *it == "Home Web Page" ) 1465 if ( *it == "Home Web Page" )
1466 *itV = ent.homeWebpage(); 1466 *itV = ent.homeWebpage();
1467 1467
1468 if ( ( *it == "Business WebPage" ) || ( *it == "Work Web Page" ) ) 1468 if ( ( *it == "Business WebPage" ) || ( *it == "Work Web Page" ) )
1469 *itV = ent.businessWebpage(); 1469 *itV = ent.businessWebpage();
1470 1470
1471 1471
1472 } 1472 }
1473 1473
1474 1474
1475 cmbCat->setCategories( ent.categories(), "Contacts", tr("Contacts") ); 1475 cmbCat->setCategories( ent.categories(), "Contacts", tr("Contacts") );
1476 1476
1477 QString gender = ent.gender(); 1477 QString gender = ent.gender();
1478 cmbGender->setCurrentItem( gender.toInt() ); 1478 cmbGender->setCurrentItem( gender.toInt() );
1479 1479
1480 txtNote->setText( ent.notes() ); 1480 txtNote->setText( ent.notes() );
1481 1481
1482 slotAddressTypeChange( cmbAddress->currentItem() ); 1482 slotAddressTypeChange( cmbAddress->currentItem() );
1483 1483
1484 // Calling "show()" to arrange all widgets. Otherwise we will get 1484 // Calling "show()" to arrange all widgets. Otherwise we will get
1485 // a wrong position of the textfields and are unable to put our 1485 // a wrong position of the textfields and are unable to put our
1486 // default-email combo over it.. This is very ugly ! 1486 // default-email combo over it.. This is very ugly !
1487 // Does anybody has a better solution ? 1487 // Does anybody has a better solution ?
1488 // Basically we should rethink the strategy to hide 1488 // Basically we should rethink the strategy to hide
1489 // a textfield with overwriting.. (se) 1489 // a textfield with overwriting.. (se)
1490 show(); 1490 show();
1491 1491
1492 // Get combo-settings from contact and set preset.. 1492 // Get combo-settings from contact and set preset..
1493 contactfields.loadFromRecord( ent ); 1493 contactfields.loadFromRecord( ent );
1494 cmbChooserField1->setCurrentItem( contactfields.getFieldOrder(0, 0) ); 1494 cmbChooserField1->setCurrentItem( contactfields.getFieldOrder(0, 7) );
1495 cmbChooserField2->setCurrentItem( contactfields.getFieldOrder(1, 1) ); 1495 cmbChooserField2->setCurrentItem( contactfields.getFieldOrder(1, 9) );
1496 cmbChooserField3->setCurrentItem( contactfields.getFieldOrder(2, 2) ); 1496 cmbChooserField3->setCurrentItem( contactfields.getFieldOrder(2, 0) );
1497 cmbChooserField4->setCurrentItem( contactfields.getFieldOrder(3, 5) ); 1497 cmbChooserField4->setCurrentItem( contactfields.getFieldOrder(3, 6) );
1498 cmbAddress->setCurrentItem( contactfields.getFieldOrder(4, 1) ); 1498 cmbAddress->setCurrentItem( contactfields.getFieldOrder(4, 1) );
1499 slotCmbChooser1Change( cmbChooserField1->currentItem() ); 1499 slotCmbChooser1Change( cmbChooserField1->currentItem() );
1500 slotCmbChooser2Change( cmbChooserField2->currentItem() ); 1500 slotCmbChooser2Change( cmbChooserField2->currentItem() );
1501 slotCmbChooser3Change( cmbChooserField3->currentItem() ); 1501 slotCmbChooser3Change( cmbChooserField3->currentItem() );
1502 slotCmbChooser4Change( cmbChooserField4->currentItem() ); 1502 slotCmbChooser4Change( cmbChooserField4->currentItem() );
1503 slotAddressTypeChange( cmbAddress->currentItem() ); 1503 slotAddressTypeChange( cmbAddress->currentItem() );
1504 1504
1505 updateDatePicker(); 1505 updateDatePicker();
1506 1506
1507 initializing = false; 1507 initializing = false;
1508} 1508}
1509void ContactEditor::updateDatePicker() 1509void ContactEditor::updateDatePicker()
1510{ 1510{
1511 // Set DatePicker 1511 // Set DatePicker
1512 if ( !ent.birthday().isNull() ){ 1512 if ( !ent.birthday().isNull() ){
1513 birthdayButton->setText( TimeString::numberDateString( ent.birthday() ) ); 1513 birthdayButton->setText( TimeString::numberDateString( ent.birthday() ) );
1514 birthdayPicker->setDate( ent.birthday() ); 1514 birthdayPicker->setDate( ent.birthday() );
1515 } else 1515 } else
1516 birthdayButton->setText( tr ("Unknown") ); 1516 birthdayButton->setText( tr ("Unknown") );
1517 1517
1518 if ( !ent.anniversary().isNull() ){ 1518 if ( !ent.anniversary().isNull() ){
1519 anniversaryButton->setText( TimeString::numberDateString( ent.anniversary() ) ); 1519 anniversaryButton->setText( TimeString::numberDateString( ent.anniversary() ) );
1520 anniversaryPicker->setDate( ent.anniversary() ); 1520 anniversaryPicker->setDate( ent.anniversary() );
1521 } else 1521 } else
1522 anniversaryButton->setText( tr ("Unknown") ); 1522 anniversaryButton->setText( tr ("Unknown") );
1523 1523
1524} 1524}
1525 1525
1526void ContactEditor::saveEntry() { 1526void ContactEditor::saveEntry() {
1527 1527
1528 // Store current combo into contact 1528 // Store current combo into contact
1529 contactfields.saveToRecord( ent ); 1529 contactfields.saveToRecord( ent );
1530 1530
1531 if ( useFullName ) { 1531 if ( useFullName ) {
1532 txtFirstName->setText( parseName( txtFullName->text(), NAME_F ) ); 1532 txtFirstName->setText( parseName( txtFullName->text(), NAME_F ) );
1533 txtMiddleName->setText( parseName( txtFullName->text(), NAME_M ) ); 1533 txtMiddleName->setText( parseName( txtFullName->text(), NAME_M ) );
1534 txtLastName->setText( parseName( txtFullName->text(), NAME_L ) ); 1534 txtLastName->setText( parseName( txtFullName->text(), NAME_L ) );
1535 txtSuffix->setText( parseName( txtFullName->text(), NAME_S ) ); 1535 txtSuffix->setText( parseName( txtFullName->text(), NAME_S ) );
1536 1536
1537 useFullName = false; 1537 useFullName = false;
1538 } 1538 }
1539 1539
1540 ent.setFirstName( txtFirstName->text() ); 1540 ent.setFirstName( txtFirstName->text() );
1541 ent.setLastName( txtLastName->text() ); 1541 ent.setLastName( txtLastName->text() );
1542 ent.setMiddleName( txtMiddleName->text() ); 1542 ent.setMiddleName( txtMiddleName->text() );
1543 ent.setSuffix( txtSuffix->text() ); 1543 ent.setSuffix( txtSuffix->text() );
1544 1544
1545 ent.setFileAs( cmbFileAs->currentText() ); 1545 ent.setFileAs( cmbFileAs->currentText() );
diff --git a/core/pim/addressbook/version.h b/core/pim/addressbook/version.h
index e716fe4..3c1e5ee 100644
--- a/core/pim/addressbook/version.h
+++ b/core/pim/addressbook/version.h
@@ -1,10 +1,10 @@
1#ifndef _VERSION_H_ 1#ifndef _VERSION_H_
2#define _VERSION_H_ 2#define _VERSION_H_
3 3
4#define MAINVERSION "0" 4#define MAINVERSION "0"
5#define SUBVERSION "2" 5#define SUBVERSION "2"
6#define PATCHVERSION "0" 6#define PATCHVERSION "1"
7 7
8#define APPNAME "OPIE_ADDRESSBOOK" 8#define APPNAME "OPIE_ADDRESSBOOK"
9 9
10#endif 10#endif