summaryrefslogtreecommitdiff
authortille <tille>2002-10-25 21:13:51 (UTC)
committer tille <tille>2002-10-25 21:13:51 (UTC)
commit595407074ac5724eb33aeb151ce27e38fbca21d5 (patch) (unidiff)
tree5f29c9fe9e2c06cc887726e475e50da47e67803c
parent437330505960e2783e088049665e0a11b2dc7edb (diff)
downloadopie-595407074ac5724eb33aeb151ce27e38fbca21d5.zip
opie-595407074ac5724eb33aeb151ce27e38fbca21d5.tar.gz
opie-595407074ac5724eb33aeb151ce27e38fbca21d5.tar.bz2
sorts the tanslated country now
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/TODO4
-rw-r--r--core/pim/addressbook/contacteditor.cpp3
2 files changed, 5 insertions, 2 deletions
diff --git a/core/pim/addressbook/TODO b/core/pim/addressbook/TODO
index 100a6fd..654bbd2 100644
--- a/core/pim/addressbook/TODO
+++ b/core/pim/addressbook/TODO
@@ -6,26 +6,24 @@ Urgent:
6 6
7 7
8Important: 8Important:
9 9
10- Name order selected in "contacteditor" not used in list view. 10- Name order selected in "contacteditor" not used in list view.
11 11
12- Overview window cleanup needed.. 12- Overview window cleanup needed..
13- Cursor keys should work in detail-view (ablabel) 13- Cursor keys should work in detail-view (ablabel)
14 -> Ablabel should be removed and Abtable should be increased with 14 -> Ablabel should be removed and Abtable should be increased with
15 different views (as started by darwin zins).. 15 different views (as started by darwin zins)..
16- Store last settings of combo-boxes 16- Store last settings of combo-boxes
17- Finishing of new View functions (List, Phonebook...) 17- Finishing of new View functions (List, Phonebook...)
18- The names of the countries are sorted by there english names, only..
19 Even if they are translated.. :S
20- Reload if contacts were changed externally 18- Reload if contacts were changed externally
21- "What's this" should be added 19- "What's this" should be added
22 20
23Less important: 21Less important:
24 22
25- The picker (alphabetical sort widget) should be 23- The picker (alphabetical sort widget) should be
26 placed verticaly or horizontally (configurable) 24 placed verticaly or horizontally (configurable)
27- Use advanced database functions in abtable to decrease 25- Use advanced database functions in abtable to decrease
28 memory footprint and to make everything more easy ! 26 memory footprint and to make everything more easy !
29 (abtable should store Iterator for selected Category) 27 (abtable should store Iterator for selected Category)
30 28
31Should be Fixed (not absolute sure, need further validation): 29Should be Fixed (not absolute sure, need further validation):
@@ -35,12 +33,14 @@ Fixed:
35- Syncing: abtable not reloaded after sync. 33- Syncing: abtable not reloaded after sync.
36- Find widget should be replaced by something like 34- Find widget should be replaced by something like
37 qpdf has. 35 qpdf has.
38- Adding a configuration dialog 36- Adding a configuration dialog
39- Picker: Activated letter schould be more visible 37- Picker: Activated letter schould be more visible
40- Advanced handling of cursor keys (search..) 38- Advanced handling of cursor keys (search..)
41- Mail-Icon is missing 39- Mail-Icon is missing
42- Use opie-mail insted of qt-mail if possible. 40- Use opie-mail insted of qt-mail if possible.
43- Font menu is invisible using german translation 41- Font menu is invisible using german translation
44- Personal contact editor: Disable categories 42- Personal contact editor: Disable categories
45- "Nonenglish" translation bug has to be fixed. 43- "Nonenglish" translation bug has to be fixed.
46- contacteditor: Birthday, annyversary, ... : Use Dateselector 44- contacteditor: Birthday, annyversary, ... : Use Dateselector
45- The names of the countries are sorted by there english names, only..
46 Even if they are translated.. :S
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp
index a59a927..52ab0f2 100644
--- a/core/pim/addressbook/contacteditor.cpp
+++ b/core/pim/addressbook/contacteditor.cpp
@@ -29,24 +29,25 @@
29#include <qcombobox.h> 29#include <qcombobox.h>
30#include <qlabel.h> 30#include <qlabel.h>
31#include <qtabwidget.h> 31#include <qtabwidget.h>
32#include <qlayout.h> 32#include <qlayout.h>
33#include <qlineedit.h> 33#include <qlineedit.h>
34#include <qmultilineedit.h> 34#include <qmultilineedit.h>
35#include <qscrollview.h> 35#include <qscrollview.h>
36#include <qtoolbutton.h> 36#include <qtoolbutton.h>
37#include <qpushbutton.h> 37#include <qpushbutton.h>
38#include <qmainwindow.h> 38#include <qmainwindow.h>
39#include <qvaluelist.h> 39#include <qvaluelist.h>
40#include <qpopupmenu.h> 40#include <qpopupmenu.h>
41#include <qlistbox.h>
41 42
42static inline bool containsAlphaNum( const QString &str ); 43static inline bool containsAlphaNum( const QString &str );
43static inline bool constainsWhiteSpace( const QString &str ); 44static inline bool constainsWhiteSpace( const QString &str );
44 45
45// helper functions, convert our comma delimited list to proper 46// helper functions, convert our comma delimited list to proper
46// file format... 47// file format...
47void parseEmailFrom( const QString &txt, QString &strDefaultEmail, 48void parseEmailFrom( const QString &txt, QString &strDefaultEmail,
48 QString &strAll ); 49 QString &strAll );
49 50
50// helper convert from file format to comma delimited... 51// helper convert from file format to comma delimited...
51void parseEmailTo( const QString &strDefaultEmail, 52void parseEmailTo( const QString &strDefaultEmail,
52 const QString &strOtherEmail, QString &strBack ); 53 const QString &strOtherEmail, QString &strBack );
@@ -688,24 +689,26 @@ void ContactEditor::init() {
688 cmbCountry->insertItem( tr ( "Ukraine" ) ); 689 cmbCountry->insertItem( tr ( "Ukraine" ) );
689 cmbCountry->insertItem( tr ( "Uruguay" ) ); 690 cmbCountry->insertItem( tr ( "Uruguay" ) );
690 cmbCountry->insertItem( tr ( "Uzbekistan" ) ); 691 cmbCountry->insertItem( tr ( "Uzbekistan" ) );
691 cmbCountry->insertItem( tr ( "Vanuatu" ) ); 692 cmbCountry->insertItem( tr ( "Vanuatu" ) );
692 cmbCountry->insertItem( tr ( "Venezuela" ) ); 693 cmbCountry->insertItem( tr ( "Venezuela" ) );
693 cmbCountry->insertItem( tr ( "Viet Nam" ) ); 694 cmbCountry->insertItem( tr ( "Viet Nam" ) );
694 cmbCountry->insertItem( tr ( "Virgin Islands" ) ); 695 cmbCountry->insertItem( tr ( "Virgin Islands" ) );
695 cmbCountry->insertItem( tr ( "Western Sahara" ) ); 696 cmbCountry->insertItem( tr ( "Western Sahara" ) );
696 cmbCountry->insertItem( tr ( "Yemen" ) ); 697 cmbCountry->insertItem( tr ( "Yemen" ) );
697 cmbCountry->insertItem( tr ( "Yugoslavia" ) ); 698 cmbCountry->insertItem( tr ( "Yugoslavia" ) );
698 cmbCountry->insertItem( tr ( "Zambia" ) ); 699 cmbCountry->insertItem( tr ( "Zambia" ) );
699 cmbCountry->insertItem( tr ( "Zimbabwe" ) ); 700 cmbCountry->insertItem( tr ( "Zimbabwe" ) );
701 if (cmbCountry->listBox()!=0)
702 cmbCountry->listBox()->sort();
700 703
701 cmbCountry->setMaximumWidth( 135 ); 704 cmbCountry->setMaximumWidth( 135 );
702 705
703 gl->addMultiCellWidget( cmbCountry, 5, 5, 1, 2 ); 706 gl->addMultiCellWidget( cmbCountry, 5, 5, 1, 2 );
704 707
705 cmbChooserField4 = new QComboBox( FALSE, container ); 708 cmbChooserField4 = new QComboBox( FALSE, container );
706 cmbChooserField4->setMaximumWidth( 90 ); 709 cmbChooserField4->setMaximumWidth( 90 );
707 gl->addWidget( cmbChooserField4, 6, 0 ); 710 gl->addWidget( cmbChooserField4, 6, 0 );
708 txtChooserField4 = new QLineEdit( container ); 711 txtChooserField4 = new QLineEdit( container );
709 gl->addMultiCellWidget( txtChooserField4, 6, 6, 1, 2 ); 712 gl->addMultiCellWidget( txtChooserField4, 6, 6, 1, 2 );
710 713
711 QSpacerItem *space = new QSpacerItem(1,1, 714 QSpacerItem *space = new QSpacerItem(1,1,