summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/addresssettings.cpp136
-rw-r--r--core/pim/addressbook/addresssettings.h47
-rw-r--r--core/pim/addressbook/addresssettingsbase.ui170
-rw-r--r--core/pim/addressbook/configdlg.cpp3
-rw-r--r--core/pim/addressbook/configdlg_base.ui75
-rw-r--r--core/pim/addressbook/contacteditor.cpp17
6 files changed, 92 insertions, 356 deletions
diff --git a/core/pim/addressbook/addresssettings.cpp b/core/pim/addressbook/addresssettings.cpp
deleted file mode 100644
index 2a9413c..0000000
--- a/core/pim/addressbook/addresssettings.cpp
+++ b/dev/null
@@ -1,136 +0,0 @@
1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3**
4** This file is part of Qt Palmtop Environment.
5**
6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15**
16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you.
18**
19**********************************************************************/
20
21
22#include "addresssettings.h"
23
24#include <qpe/config.h>
25#include <opie/ocontact.h>
26
27#include <qfile.h>
28#include <qlistbox.h>
29
30#include <stdlib.h>
31
32AddressSettings::AddressSettings( QWidget *parent, const char *name )
33 : AddressSettingsBase( parent, name, TRUE )
34{
35 init();
36}
37
38AddressSettings::~AddressSettings()
39{
40}
41
42void AddressSettings::init()
43{
44 QStringList slFields = OContact::trfields();
45 // Make this match what is in initFields
46 slFields.remove( tr("Name Title") );
47 slFields.remove( tr("First Name") );
48 slFields.remove( tr("Last Name") );
49 slFields.remove( tr("File As") );
50 slFields.remove( tr("Default Email") );
51 slFields.remove( tr("Notes") );
52 slFields.remove( tr("Gender") );
53
54
55 for( QStringList::Iterator it = slFields.begin();
56 it != slFields.end(); ++it ) {
57 fieldListBox->insertItem( *it );
58 }
59
60 Config cfg( "AddressBook" );
61
62 cfg.setGroup( "Version" );
63 int version;
64 version = cfg.readNumEntry( "version" );
65 if ( version >= ADDRESSVERSION ) {
66 int i = 0;
67 int p = 0;
68 cfg.setGroup( "ImportantCategory" );
69 QString zn = cfg.readEntry( "Category" + QString::number(i),
70 QString::null );
71 while ( !zn.isNull() ) {
72 for ( int m = i; m < (int)fieldListBox->count(); m++ ) {
73 if ( fieldListBox->text( m ) == zn ) {
74 if ( m != p ) {
75 fieldListBox->removeItem( m );
76 fieldListBox->insertItem( zn, p );
77 }
78 p++;
79 break;
80 }
81 }
82 zn = cfg.readEntry( "Category" + QString::number(++i),
83 QString::null );
84 }
85
86 fieldListBox->setCurrentItem( 0 );
87 } else {
88 QString str;
89 str = getenv("HOME");
90
91 str += "/Settings/AddressBook.conf";
92 QFile::remove( str );
93 }
94}
95
96void AddressSettings::itemUp()
97{
98 int i = fieldListBox->currentItem();
99 if ( i > 0 ) {
100 QString item = fieldListBox->currentText();
101 fieldListBox->removeItem( i );
102 fieldListBox->insertItem( item, i-1 );
103 fieldListBox->setCurrentItem( i-1 );
104 }
105}
106
107void AddressSettings::itemDown()
108{
109 int i = fieldListBox->currentItem();
110 if ( i < (int)fieldListBox->count() - 1 ) {
111 QString item = fieldListBox->currentText();
112 fieldListBox->removeItem( i );
113 fieldListBox->insertItem( item, i+1 );
114 fieldListBox->setCurrentItem( i+1 );
115 }
116}
117
118void AddressSettings::accept()
119{
120 save();
121 QDialog::accept();
122}
123
124
125void AddressSettings::save()
126{
127 Config cfg( "AddressBook" );
128 cfg.setGroup( "Version" );
129 // *** To change the version change it here...
130 cfg.writeEntry( "version", QString::number(ADDRESSVERSION) );
131 cfg.setGroup( "ImportantCategory" );
132
133 for ( int i = 0; i < (int)fieldListBox->count(); i++ ) {
134 cfg.writeEntry( "Category"+QString::number(i), fieldListBox->text(i) );
135 }
136}
diff --git a/core/pim/addressbook/addresssettings.h b/core/pim/addressbook/addresssettings.h
deleted file mode 100644
index 0fdfa77..0000000
--- a/core/pim/addressbook/addresssettings.h
+++ b/dev/null
@@ -1,47 +0,0 @@
1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3**
4** This file is part of Qt Palmtop Environment.
5**
6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15**
16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you.
18**
19**********************************************************************/
20
21#ifndef _ADDRESSSETTINGS_H_
22#define _ADDRESSSETTINGS_H_
23
24#include <qlist.h>
25#include <qstringlist.h>
26#include "addresssettingsbase.h"
27
28const int ADDRESSVERSION = 3;
29
30class AddressSettings : public AddressSettingsBase
31{
32 Q_OBJECT
33public:
34 AddressSettings( QWidget *parent = 0, const char *name = 0 );
35 ~AddressSettings();
36
37protected:
38 void accept();
39 virtual void itemUp();
40 virtual void itemDown();
41
42private:
43 void init();
44 void save();
45};
46
47#endif // _ADDRESSSETTINGS_H_
diff --git a/core/pim/addressbook/addresssettingsbase.ui b/core/pim/addressbook/addresssettingsbase.ui
deleted file mode 100644
index f0eb7e8..0000000
--- a/core/pim/addressbook/addresssettingsbase.ui
+++ b/dev/null
@@ -1,170 +0,0 @@
1<!DOCTYPE UI><UI>
2<class>AddressSettingsBase</class>
3<comment>/**********************************************************************
4** Copyright (C) 2001 Trolltech AS. All rights reserved.
5**
6** This file is part of Qt Palmtop Environment.
7**
8** This file may be distributed and/or modified under the terms of the
9** GNU General Public License version 2 as published by the Free Software
10** Foundation and appearing in the file LICENSE.GPL included in the
11** packaging of this file.
12**
13** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
14** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15**
16** See http://www.trolltech.com/gpl/ for GPL licensing information.
17**
18** Contact info@trolltech.com if any conditions of this licensing are
19** not clear to you.
20**
21** $Id$
22**
23**********************************************************************/</comment>
24<widget>
25 <class>QDialog</class>
26 <property stdset="1">
27 <name>name</name>
28 <cstring>AddressSettingsBase</cstring>
29 </property>
30 <property stdset="1">
31 <name>geometry</name>
32 <rect>
33 <x>0</x>
34 <y>0</y>
35 <width>240</width>
36 <height>207</height>
37 </rect>
38 </property>
39 <property stdset="1">
40 <name>caption</name>
41 <string>Arrange Edit Fields</string>
42 </property>
43 <property>
44 <name>layoutMargin</name>
45 </property>
46 <property>
47 <name>layoutSpacing</name>
48 </property>
49 <grid>
50 <property stdset="1">
51 <name>margin</name>
52 <number>6</number>
53 </property>
54 <property stdset="1">
55 <name>spacing</name>
56 <number>6</number>
57 </property>
58 <widget row="1" column="0" rowspan="3" colspan="1" >
59 <class>QListBox</class>
60 <property stdset="1">
61 <name>name</name>
62 <cstring>fieldListBox</cstring>
63 </property>
64 </widget>
65 <widget row="0" column="0" rowspan="1" colspan="2" >
66 <class>QLabel</class>
67 <property stdset="1">
68 <name>name</name>
69 <cstring>lblExplain</cstring>
70 </property>
71 <property stdset="1">
72 <name>sizePolicy</name>
73 <sizepolicy>
74 <hsizetype>1</hsizetype>
75 <vsizetype>1</vsizetype>
76 </sizepolicy>
77 </property>
78 <property stdset="1">
79 <name>frameShape</name>
80 <enum>MShape</enum>
81 </property>
82 <property stdset="1">
83 <name>frameShadow</name>
84 <enum>MShadow</enum>
85 </property>
86 <property stdset="1">
87 <name>text</name>
88 <string>Select the field order:</string>
89 </property>
90 <property stdset="1">
91 <name>alignment</name>
92 <set>AlignTop|AlignLeft</set>
93 </property>
94 <property>
95 <name>hAlign</name>
96 </property>
97 <property>
98 <name>vAlign</name>
99 </property>
100 </widget>
101 <widget row="1" column="1" >
102 <class>QPushButton</class>
103 <property stdset="1">
104 <name>name</name>
105 <cstring>upButton</cstring>
106 </property>
107 <property stdset="1">
108 <name>text</name>
109 <string>Up</string>
110 </property>
111 <property stdset="1">
112 <name>autoRepeat</name>
113 <bool>true</bool>
114 </property>
115 </widget>
116 <widget row="2" column="1" >
117 <class>QPushButton</class>
118 <property stdset="1">
119 <name>name</name>
120 <cstring>downButton</cstring>
121 </property>
122 <property stdset="1">
123 <name>text</name>
124 <string>Down</string>
125 </property>
126 <property stdset="1">
127 <name>autoRepeat</name>
128 <bool>true</bool>
129 </property>
130 </widget>
131 <spacer row="3" column="1" >
132 <property>
133 <name>name</name>
134 <cstring>Spacer2</cstring>
135 </property>
136 <property stdset="1">
137 <name>orientation</name>
138 <enum>Vertical</enum>
139 </property>
140 <property stdset="1">
141 <name>sizeType</name>
142 <enum>Expanding</enum>
143 </property>
144 <property>
145 <name>sizeHint</name>
146 <size>
147 <width>20</width>
148 <height>20</height>
149 </size>
150 </property>
151 </spacer>
152 </grid>
153</widget>
154<connections>
155 <connection>
156 <sender>upButton</sender>
157 <signal>clicked()</signal>
158 <receiver>AddressSettingsBase</receiver>
159 <slot>itemUp()</slot>
160 </connection>
161 <connection>
162 <sender>downButton</sender>
163 <signal>clicked()</signal>
164 <receiver>AddressSettingsBase</receiver>
165 <slot>itemDown()</slot>
166 </connection>
167 <slot access="protected">itemUp()</slot>
168 <slot access="protected">itemDown()</slot>
169</connections>
170</UI>
diff --git a/core/pim/addressbook/configdlg.cpp b/core/pim/addressbook/configdlg.cpp
index f5c0c5b..f2f4141 100644
--- a/core/pim/addressbook/configdlg.cpp
+++ b/core/pim/addressbook/configdlg.cpp
@@ -1,119 +1,122 @@
1#include "configdlg.h" 1#include "configdlg.h"
2#include "ocontactfields.h" 2#include "ocontactfields.h"
3 3
4#include <qcheckbox.h> 4#include <qcheckbox.h>
5#include <qradiobutton.h> 5#include <qradiobutton.h>
6#include <qlistbox.h> 6#include <qlistbox.h>
7#include <qpushbutton.h> 7#include <qpushbutton.h>
8#include <qiconset.h> 8#include <qiconset.h>
9 9
10#include <qpe/resource.h> 10#include <qpe/resource.h>
11 11
12#include <opie/ocontact.h> 12#include <opie/ocontact.h>
13 13
14ConfigDlg::ConfigDlg( QWidget *parent, const char *name): 14ConfigDlg::ConfigDlg( QWidget *parent, const char *name):
15 ConfigDlg_Base(parent, name, true ) 15 ConfigDlg_Base(parent, name, true )
16{ 16{
17 contFields = OContactFields::trfields(); 17 contFields = OContactFields::trfields();
18 18
19 // We add all Fields into the Listbox 19 // We add all Fields into the Listbox
20 for (uint i=0; i < contFields.count(); i++) { 20 for (uint i=0; i < contFields.count(); i++) {
21 allFieldListBox->insertItem( contFields[i] ); 21 allFieldListBox->insertItem( contFields[i] );
22 } 22 }
23 23
24 // Reset Widget Flags: This was not changeable by designer :(
25 setWFlags ( WStyle_ContextHelp );
26
24 // Set Pics to Buttons and Tabs 27 // Set Pics to Buttons and Tabs
25 m_upButton->setIconSet( QIconSet( Resource::loadPixmap( "addressbook/up" ) ) ); 28 m_upButton->setIconSet( QIconSet( Resource::loadPixmap( "addressbook/up" ) ) );
26 m_downButton->setIconSet( QIconSet( Resource::loadPixmap( "addressbook/down" ) ) ); 29 m_downButton->setIconSet( QIconSet( Resource::loadPixmap( "addressbook/down" ) ) );
27 m_addButton->setIconSet( QIconSet( Resource::loadPixmap( "addressbook/add" ) ) ); 30 m_addButton->setIconSet( QIconSet( Resource::loadPixmap( "addressbook/add" ) ) );
28 m_removeButton->setIconSet( QIconSet( Resource::loadPixmap( "addressbook/sub" ) ) ); 31 m_removeButton->setIconSet( QIconSet( Resource::loadPixmap( "addressbook/sub" ) ) );
29 32
30 33
31 // Get the translation maps between Field ID and translated strings 34 // Get the translation maps between Field ID and translated strings
32 m_mapStrToID = OContactFields::trFieldsToId(); 35 m_mapStrToID = OContactFields::trFieldsToId();
33 m_mapIDToStr = OContactFields::idToTrFields(); 36 m_mapIDToStr = OContactFields::idToTrFields();
34 37
35 connect ( m_addButton, SIGNAL( clicked() ), this, SLOT( slotItemAdd() ) ); 38 connect ( m_addButton, SIGNAL( clicked() ), this, SLOT( slotItemAdd() ) );
36 connect ( m_removeButton, SIGNAL( clicked() ), this, SLOT( slotItemRemove() ) ); 39 connect ( m_removeButton, SIGNAL( clicked() ), this, SLOT( slotItemRemove() ) );
37 connect ( m_upButton, SIGNAL( clicked() ), this, SLOT( slotItemUp() ) ); 40 connect ( m_upButton, SIGNAL( clicked() ), this, SLOT( slotItemUp() ) );
38 connect ( m_downButton, SIGNAL( clicked() ), this, SLOT( slotItemDown() ) ); 41 connect ( m_downButton, SIGNAL( clicked() ), this, SLOT( slotItemDown() ) );
39} 42}
40 43
41void ConfigDlg::slotItemUp() 44void ConfigDlg::slotItemUp()
42{ 45{
43 qWarning( "void ConfigDlg::slotItemUp()" ); 46 qWarning( "void ConfigDlg::slotItemUp()" );
44 47
45 int i = fieldListBox->currentItem(); 48 int i = fieldListBox->currentItem();
46 if ( i > 0 ) { 49 if ( i > 0 ) {
47 QString item = fieldListBox->currentText(); 50 QString item = fieldListBox->currentText();
48 fieldListBox->removeItem( i ); 51 fieldListBox->removeItem( i );
49 fieldListBox->insertItem( item, i-1 ); 52 fieldListBox->insertItem( item, i-1 );
50 fieldListBox->setCurrentItem( i-1 ); 53 fieldListBox->setCurrentItem( i-1 );
51 } 54 }
52 55
53} 56}
54 57
55void ConfigDlg::slotItemDown() 58void ConfigDlg::slotItemDown()
56{ 59{
57 qWarning( "void ConfigDlg::slotItemDown()" ); 60 qWarning( "void ConfigDlg::slotItemDown()" );
58 61
59 int i = fieldListBox->currentItem(); 62 int i = fieldListBox->currentItem();
60 if ( i < (int)fieldListBox->count() - 1 ) { 63 if ( i < (int)fieldListBox->count() - 1 ) {
61 QString item = fieldListBox->currentText(); 64 QString item = fieldListBox->currentText();
62 fieldListBox->removeItem( i ); 65 fieldListBox->removeItem( i );
63 fieldListBox->insertItem( item, i+1 ); 66 fieldListBox->insertItem( item, i+1 );
64 fieldListBox->setCurrentItem( i+1 ); 67 fieldListBox->setCurrentItem( i+1 );
65 } 68 }
66} 69}
67 70
68void ConfigDlg::slotItemAdd() 71void ConfigDlg::slotItemAdd()
69{ 72{
70 qWarning( "void ConfigDlg::slotItemAdd()" ); 73 qWarning( "void ConfigDlg::slotItemAdd()" );
71 74
72 int i = allFieldListBox->currentItem(); 75 int i = allFieldListBox->currentItem();
73 if ( i > 0 ) { 76 if ( i > 0 ) {
74 QString item = allFieldListBox->currentText(); 77 QString item = allFieldListBox->currentText();
75 qWarning("ADding %s", item.latin1()); 78 qWarning("ADding %s", item.latin1());
76 fieldListBox->insertItem( item ); 79 fieldListBox->insertItem( item );
77 } 80 }
78} 81}
79 82
80void ConfigDlg::slotItemRemove() 83void ConfigDlg::slotItemRemove()
81{ 84{
82 qWarning( "void ConfigDlg::slotItemRemove()" ); 85 qWarning( "void ConfigDlg::slotItemRemove()" );
83 86
84 int i = fieldListBox->currentItem(); 87 int i = fieldListBox->currentItem();
85 if ( i > 0 ) { 88 if ( i > 0 ) {
86 fieldListBox->removeItem( i ); 89 fieldListBox->removeItem( i );
87 } 90 }
88} 91}
89 92
90void ConfigDlg::setConfig( const AbConfig& cnf ) 93void ConfigDlg::setConfig( const AbConfig& cnf )
91{ 94{
92 m_config = cnf; 95 m_config = cnf;
93 96
94 m_useRegExp->setChecked( m_config.useRegExp() ); 97 m_useRegExp->setChecked( m_config.useRegExp() );
95 m_useWildCard->setChecked( m_config.useWildCards() ); 98 m_useWildCard->setChecked( m_config.useWildCards() );
96 m_useQtMail->setChecked( m_config.useQtMail() ); 99 m_useQtMail->setChecked( m_config.useQtMail() );
97 m_useOpieMail->setChecked( m_config.useOpieMail() ); 100 m_useOpieMail->setChecked( m_config.useOpieMail() );
98 m_useCaseSensitive->setChecked( m_config.beCaseSensitive() ); 101 m_useCaseSensitive->setChecked( m_config.beCaseSensitive() );
99 102
100 switch( m_config.fontSize() ){ 103 switch( m_config.fontSize() ){
101 case 0: 104 case 0:
102 m_smallFont->setChecked( true ); 105 m_smallFont->setChecked( true );
103 m_normalFont->setChecked( false ); 106 m_normalFont->setChecked( false );
104 m_largeFont->setChecked( false ); 107 m_largeFont->setChecked( false );
105 break; 108 break;
106 case 1: 109 case 1:
107 m_smallFont->setChecked( false ); 110 m_smallFont->setChecked( false );
108 m_normalFont->setChecked( true ); 111 m_normalFont->setChecked( true );
109 m_largeFont->setChecked( false ); 112 m_largeFont->setChecked( false );
110 break; 113 break;
111 case 2: 114 case 2:
112 m_smallFont->setChecked( false ); 115 m_smallFont->setChecked( false );
113 m_normalFont->setChecked( false ); 116 m_normalFont->setChecked( false );
114 m_largeFont->setChecked( true ); 117 m_largeFont->setChecked( true );
115 break; 118 break;
116 } 119 }
117 120
118 for( uint i = 0; i < m_config.orderList().count(); i++ ) { 121 for( uint i = 0; i < m_config.orderList().count(); i++ ) {
119 fieldListBox -> insertItem ( m_mapIDToStr[ m_config.orderList()[i] ] ); 122 fieldListBox -> insertItem ( m_mapIDToStr[ m_config.orderList()[i] ] );
diff --git a/core/pim/addressbook/configdlg_base.ui b/core/pim/addressbook/configdlg_base.ui
index 8ae2578..308e138 100644
--- a/core/pim/addressbook/configdlg_base.ui
+++ b/core/pim/addressbook/configdlg_base.ui
@@ -1,547 +1,620 @@
1<!DOCTYPE UI><UI> 1<!DOCTYPE UI><UI>
2<class>ConfigDlg_Base</class> 2<class>ConfigDlg_Base</class>
3<author>Stefan Eilers</author> 3<author>Stefan Eilers</author>
4<include location="global">qwhatsthis.h</include>
4<widget> 5<widget>
5 <class>QDialog</class> 6 <class>QDialog</class>
6 <property stdset="1"> 7 <property stdset="1">
7 <name>name</name> 8 <name>name</name>
8 <cstring>Configuration</cstring> 9 <cstring>Configuration</cstring>
9 </property> 10 </property>
10 <property stdset="1"> 11 <property stdset="1">
11 <name>geometry</name> 12 <name>geometry</name>
12 <rect> 13 <rect>
13 <x>0</x> 14 <x>0</x>
14 <y>0</y> 15 <y>0</y>
15 <width>282</width> 16 <width>284</width>
16 <height>327</height> 17 <height>327</height>
17 </rect> 18 </rect>
18 </property> 19 </property>
19 <property stdset="1"> 20 <property stdset="1">
20 <name>sizePolicy</name> 21 <name>sizePolicy</name>
21 <sizepolicy> 22 <sizepolicy>
22 <hsizetype>5</hsizetype> 23 <hsizetype>5</hsizetype>
23 <vsizetype>5</vsizetype> 24 <vsizetype>5</vsizetype>
24 </sizepolicy> 25 </sizepolicy>
25 </property> 26 </property>
26 <property stdset="1"> 27 <property stdset="1">
27 <name>caption</name> 28 <name>caption</name>
28 <string>Configuration</string> 29 <string>Configuration</string>
29 </property> 30 </property>
30 <property stdset="1"> 31 <property stdset="1">
31 <name>sizeGripEnabled</name> 32 <name>sizeGripEnabled</name>
32 <bool>true</bool> 33 <bool>true</bool>
33 </property> 34 </property>
34 <property> 35 <property>
35 <name>layoutMargin</name> 36 <name>layoutMargin</name>
36 </property> 37 </property>
37 <vbox> 38 <vbox>
38 <property stdset="1"> 39 <property stdset="1">
39 <name>margin</name> 40 <name>margin</name>
40 <number>1</number> 41 <number>1</number>
41 </property> 42 </property>
42 <property stdset="1"> 43 <property stdset="1">
43 <name>spacing</name> 44 <name>spacing</name>
44 <number>6</number> 45 <number>6</number>
45 </property> 46 </property>
46 <widget> 47 <widget>
47 <class>QTabWidget</class> 48 <class>QTabWidget</class>
48 <property stdset="1"> 49 <property stdset="1">
49 <name>name</name> 50 <name>name</name>
50 <cstring>configDlg_base</cstring> 51 <cstring>configDlg_base</cstring>
51 </property> 52 </property>
52 <property stdset="1"> 53 <property stdset="1">
53 <name>sizePolicy</name> 54 <name>sizePolicy</name>
54 <sizepolicy> 55 <sizepolicy>
55 <hsizetype>7</hsizetype> 56 <hsizetype>7</hsizetype>
56 <vsizetype>7</vsizetype> 57 <vsizetype>7</vsizetype>
57 </sizepolicy> 58 </sizepolicy>
58 </property> 59 </property>
59 <property> 60 <property>
60 <name>layoutMargin</name> 61 <name>layoutMargin</name>
61 </property> 62 </property>
62 <property> 63 <property>
63 <name>layoutSpacing</name> 64 <name>layoutSpacing</name>
64 </property> 65 </property>
66 <property>
67 <name>whatsThis</name>
68 <string>Click on tab to select one</string>
69 </property>
65 <widget> 70 <widget>
66 <class>QWidget</class> 71 <class>QWidget</class>
67 <property stdset="1"> 72 <property stdset="1">
68 <name>name</name> 73 <name>name</name>
69 <cstring>Widget5</cstring> 74 <cstring>Widget5</cstring>
70 </property> 75 </property>
71 <attribute> 76 <attribute>
72 <name>title</name> 77 <name>title</name>
73 <string>Misc</string> 78 <string>Misc</string>
74 </attribute> 79 </attribute>
75 <vbox> 80 <vbox>
76 <property stdset="1"> 81 <property stdset="1">
77 <name>margin</name> 82 <name>margin</name>
78 <number>5</number> 83 <number>5</number>
79 </property> 84 </property>
80 <property stdset="1"> 85 <property stdset="1">
81 <name>spacing</name> 86 <name>spacing</name>
82 <number>6</number> 87 <number>6</number>
83 </property> 88 </property>
84 <widget> 89 <widget>
85 <class>QGroupBox</class> 90 <class>QGroupBox</class>
86 <property stdset="1"> 91 <property stdset="1">
87 <name>name</name> 92 <name>name</name>
88 <cstring>GroupBox2</cstring> 93 <cstring>GroupBox2</cstring>
89 </property> 94 </property>
90 <property stdset="1"> 95 <property stdset="1">
91 <name>title</name> 96 <name>title</name>
92 <string>Search Settings</string> 97 <string>Search Settings</string>
93 </property> 98 </property>
94 <vbox> 99 <vbox>
95 <property stdset="1"> 100 <property stdset="1">
96 <name>margin</name> 101 <name>margin</name>
97 <number>11</number> 102 <number>11</number>
98 </property> 103 </property>
99 <property stdset="1"> 104 <property stdset="1">
100 <name>spacing</name> 105 <name>spacing</name>
101 <number>6</number> 106 <number>6</number>
102 </property> 107 </property>
103 <widget> 108 <widget>
104 <class>QButtonGroup</class> 109 <class>QButtonGroup</class>
105 <property stdset="1"> 110 <property stdset="1">
106 <name>name</name> 111 <name>name</name>
107 <cstring>ButtonGroup1</cstring> 112 <cstring>ButtonGroup1</cstring>
108 </property> 113 </property>
109 <property stdset="1"> 114 <property stdset="1">
110 <name>title</name> 115 <name>title</name>
111 <string>Query Style</string> 116 <string>Query Style</string>
112 </property> 117 </property>
118 <property>
119 <name>whatsThis</name>
120 <string>Settings for the search query style</string>
121 </property>
113 <vbox> 122 <vbox>
114 <property stdset="1"> 123 <property stdset="1">
115 <name>margin</name> 124 <name>margin</name>
116 <number>11</number> 125 <number>11</number>
117 </property> 126 </property>
118 <property stdset="1"> 127 <property stdset="1">
119 <name>spacing</name> 128 <name>spacing</name>
120 <number>6</number> 129 <number>6</number>
121 </property> 130 </property>
122 <widget> 131 <widget>
123 <class>QRadioButton</class> 132 <class>QRadioButton</class>
124 <property stdset="1"> 133 <property stdset="1">
125 <name>name</name> 134 <name>name</name>
126 <cstring>m_useRegExp</cstring> 135 <cstring>m_useRegExp</cstring>
127 </property> 136 </property>
128 <property stdset="1"> 137 <property stdset="1">
129 <name>text</name> 138 <name>text</name>
130 <string>Use Regular Expressions</string> 139 <string>Use Regular Expressions</string>
131 </property> 140 </property>
141 <property>
142 <name>whatsThis</name>
143 <string>Search widget expects regular expressions if selected</string>
144 </property>
132 </widget> 145 </widget>
133 <widget> 146 <widget>
134 <class>QRadioButton</class> 147 <class>QRadioButton</class>
135 <property stdset="1"> 148 <property stdset="1">
136 <name>name</name> 149 <name>name</name>
137 <cstring>m_useWildCard</cstring> 150 <cstring>m_useWildCard</cstring>
138 </property> 151 </property>
139 <property stdset="1"> 152 <property stdset="1">
140 <name>text</name> 153 <name>text</name>
141 <string>Use Wildcards (*,?)</string> 154 <string>Use Wildcards (*,?)</string>
142 </property> 155 </property>
143 <property stdset="1"> 156 <property stdset="1">
144 <name>checked</name> 157 <name>checked</name>
145 <bool>true</bool> 158 <bool>true</bool>
146 </property> 159 </property>
160 <property>
161 <name>whatsThis</name>
162 <string>Search widget just expects simple wildcards</string>
163 </property>
147 </widget> 164 </widget>
148 </vbox> 165 </vbox>
149 </widget> 166 </widget>
150 <widget> 167 <widget>
151 <class>QCheckBox</class> 168 <class>QCheckBox</class>
152 <property stdset="1"> 169 <property stdset="1">
153 <name>name</name> 170 <name>name</name>
154 <cstring>m_useCaseSensitive</cstring> 171 <cstring>m_useCaseSensitive</cstring>
155 </property> 172 </property>
156 <property stdset="1"> 173 <property stdset="1">
157 <name>text</name> 174 <name>text</name>
158 <string>Case Sensitive</string> 175 <string>Case Sensitive</string>
159 </property> 176 </property>
177 <property>
178 <name>whatsThis</name>
179 <string>If selected, search differs between upper and lower chars</string>
180 </property>
160 </widget> 181 </widget>
161 </vbox> 182 </vbox>
162 </widget> 183 </widget>
163 <widget> 184 <widget>
164 <class>QButtonGroup</class> 185 <class>QButtonGroup</class>
165 <property stdset="1"> 186 <property stdset="1">
166 <name>name</name> 187 <name>name</name>
167 <cstring>ButtonGroup3</cstring> 188 <cstring>ButtonGroup3</cstring>
168 </property> 189 </property>
169 <property stdset="1"> 190 <property stdset="1">
170 <name>title</name> 191 <name>title</name>
171 <string>Font</string> 192 <string>Font</string>
172 </property> 193 </property>
194 <property>
195 <name>whatsThis</name>
196 <string></string>
197 </property>
173 <hbox> 198 <hbox>
174 <property stdset="1"> 199 <property stdset="1">
175 <name>margin</name> 200 <name>margin</name>
176 <number>11</number> 201 <number>11</number>
177 </property> 202 </property>
178 <property stdset="1"> 203 <property stdset="1">
179 <name>spacing</name> 204 <name>spacing</name>
180 <number>6</number> 205 <number>6</number>
181 </property> 206 </property>
182 <widget> 207 <widget>
183 <class>QRadioButton</class> 208 <class>QRadioButton</class>
184 <property stdset="1"> 209 <property stdset="1">
185 <name>name</name> 210 <name>name</name>
186 <cstring>m_smallFont</cstring> 211 <cstring>m_smallFont</cstring>
187 </property> 212 </property>
188 <property stdset="1"> 213 <property stdset="1">
189 <name>text</name> 214 <name>text</name>
190 <string>Small</string> 215 <string>Small</string>
191 </property> 216 </property>
217 <property>
218 <name>whatsThis</name>
219 <string>Font size for list- and card view</string>
220 </property>
192 </widget> 221 </widget>
193 <widget> 222 <widget>
194 <class>QRadioButton</class> 223 <class>QRadioButton</class>
195 <property stdset="1"> 224 <property stdset="1">
196 <name>name</name> 225 <name>name</name>
197 <cstring>m_normalFont</cstring> 226 <cstring>m_normalFont</cstring>
198 </property> 227 </property>
199 <property stdset="1"> 228 <property stdset="1">
200 <name>text</name> 229 <name>text</name>
201 <string>Normal</string> 230 <string>Normal</string>
202 </property> 231 </property>
203 <property stdset="1"> 232 <property stdset="1">
204 <name>checked</name> 233 <name>checked</name>
205 <bool>true</bool> 234 <bool>true</bool>
206 </property> 235 </property>
236 <property>
237 <name>whatsThis</name>
238 <string>Font size for list- and card view</string>
239 </property>
207 </widget> 240 </widget>
208 <widget> 241 <widget>
209 <class>QRadioButton</class> 242 <class>QRadioButton</class>
210 <property stdset="1"> 243 <property stdset="1">
211 <name>name</name> 244 <name>name</name>
212 <cstring>m_largeFont</cstring> 245 <cstring>m_largeFont</cstring>
213 </property> 246 </property>
214 <property stdset="1"> 247 <property stdset="1">
215 <name>text</name> 248 <name>text</name>
216 <string>Large</string> 249 <string>Large</string>
217 </property> 250 </property>
251 <property>
252 <name>whatsThis</name>
253 <string>Font size for list- and card view</string>
254 </property>
218 </widget> 255 </widget>
219 </hbox> 256 </hbox>
220 </widget> 257 </widget>
221 <spacer> 258 <spacer>
222 <property> 259 <property>
223 <name>name</name> 260 <name>name</name>
224 <cstring>Spacer3</cstring> 261 <cstring>Spacer3</cstring>
225 </property> 262 </property>
226 <property stdset="1"> 263 <property stdset="1">
227 <name>orientation</name> 264 <name>orientation</name>
228 <enum>Vertical</enum> 265 <enum>Vertical</enum>
229 </property> 266 </property>
230 <property stdset="1"> 267 <property stdset="1">
231 <name>sizeType</name> 268 <name>sizeType</name>
232 <enum>Expanding</enum> 269 <enum>Expanding</enum>
233 </property> 270 </property>
234 <property> 271 <property>
235 <name>sizeHint</name> 272 <name>sizeHint</name>
236 <size> 273 <size>
237 <width>20</width> 274 <width>20</width>
238 <height>20</height> 275 <height>20</height>
239 </size> 276 </size>
240 </property> 277 </property>
241 </spacer> 278 </spacer>
242 </vbox> 279 </vbox>
243 </widget> 280 </widget>
244 <widget> 281 <widget>
245 <class>QWidget</class> 282 <class>QWidget</class>
246 <property stdset="1"> 283 <property stdset="1">
247 <name>name</name> 284 <name>name</name>
248 <cstring>tab</cstring> 285 <cstring>tab</cstring>
249 </property> 286 </property>
250 <attribute> 287 <attribute>
251 <name>title</name> 288 <name>title</name>
252 <string>Mail</string> 289 <string>Mail</string>
253 </attribute> 290 </attribute>
254 <vbox> 291 <vbox>
255 <property stdset="1"> 292 <property stdset="1">
256 <name>margin</name> 293 <name>margin</name>
257 <number>5</number> 294 <number>5</number>
258 </property> 295 </property>
259 <property stdset="1"> 296 <property stdset="1">
260 <name>spacing</name> 297 <name>spacing</name>
261 <number>6</number> 298 <number>6</number>
262 </property> 299 </property>
263 <widget> 300 <widget>
264 <class>QButtonGroup</class> 301 <class>QButtonGroup</class>
265 <property stdset="1"> 302 <property stdset="1">
266 <name>name</name> 303 <name>name</name>
267 <cstring>ButtonGroup2</cstring> 304 <cstring>ButtonGroup2</cstring>
268 </property> 305 </property>
269 <property stdset="1"> 306 <property stdset="1">
270 <name>title</name> 307 <name>title</name>
271 <string>Mail</string> 308 <string>Mail</string>
272 </property> 309 </property>
310 <property>
311 <name>whatsThis</name>
312 <string>Fontsettings for list and card view</string>
313 </property>
273 <vbox> 314 <vbox>
274 <property stdset="1"> 315 <property stdset="1">
275 <name>margin</name> 316 <name>margin</name>
276 <number>11</number> 317 <number>11</number>
277 </property> 318 </property>
278 <property stdset="1"> 319 <property stdset="1">
279 <name>spacing</name> 320 <name>spacing</name>
280 <number>6</number> 321 <number>6</number>
281 </property> 322 </property>
282 <widget> 323 <widget>
283 <class>QRadioButton</class> 324 <class>QRadioButton</class>
284 <property stdset="1"> 325 <property stdset="1">
285 <name>name</name> 326 <name>name</name>
286 <cstring>m_useQtMail</cstring> 327 <cstring>m_useQtMail</cstring>
287 </property> 328 </property>
288 <property stdset="1"> 329 <property stdset="1">
289 <name>text</name> 330 <name>text</name>
290 <string>Prefer QT-Mail </string> 331 <string>Prefer QT-Mail </string>
291 </property> 332 </property>
292 <property stdset="1"> 333 <property stdset="1">
293 <name>checked</name> 334 <name>checked</name>
294 <bool>true</bool> 335 <bool>true</bool>
295 </property> 336 </property>
337 <property>
338 <name>whatsThis</name>
339 <string>Use Sharp's mail application if available</string>
340 </property>
296 </widget> 341 </widget>
297 <widget> 342 <widget>
298 <class>QRadioButton</class> 343 <class>QRadioButton</class>
299 <property stdset="1"> 344 <property stdset="1">
300 <name>name</name> 345 <name>name</name>
301 <cstring>m_useOpieMail</cstring> 346 <cstring>m_useOpieMail</cstring>
302 </property> 347 </property>
303 <property stdset="1"> 348 <property stdset="1">
304 <name>text</name> 349 <name>text</name>
305 <string>Prefer Opie-Mail</string> 350 <string>Prefer Opie-Mail</string>
306 </property> 351 </property>
352 <property>
353 <name>whatsThis</name>
354 <string>Use OPIE mail if installed</string>
355 </property>
307 </widget> 356 </widget>
308 <widget> 357 <widget>
309 <class>QLabel</class> 358 <class>QLabel</class>
310 <property stdset="1"> 359 <property stdset="1">
311 <name>name</name> 360 <name>name</name>
312 <cstring>TextLabel1</cstring> 361 <cstring>TextLabel1</cstring>
313 </property> 362 </property>
314 <property stdset="1"> 363 <property stdset="1">
315 <name>text</name> 364 <name>text</name>
316 <string>Notice: QT-Mail is just 365 <string>Notice: QT-Mail is just
317provided in the SHARP 366provided in the SHARP
318default ROM. Opie-Mail 367default ROM. Opie-Mail
319is provided free !</string> 368is provided free !</string>
320 </property> 369 </property>
321 </widget> 370 </widget>
322 </vbox> 371 </vbox>
323 </widget> 372 </widget>
324 <spacer> 373 <spacer>
325 <property> 374 <property>
326 <name>name</name> 375 <name>name</name>
327 <cstring>Spacer2</cstring> 376 <cstring>Spacer2</cstring>
328 </property> 377 </property>
329 <property stdset="1"> 378 <property stdset="1">
330 <name>orientation</name> 379 <name>orientation</name>
331 <enum>Vertical</enum> 380 <enum>Vertical</enum>
332 </property> 381 </property>
333 <property stdset="1"> 382 <property stdset="1">
334 <name>sizeType</name> 383 <name>sizeType</name>
335 <enum>Expanding</enum> 384 <enum>Expanding</enum>
336 </property> 385 </property>
337 <property> 386 <property>
338 <name>sizeHint</name> 387 <name>sizeHint</name>
339 <size> 388 <size>
340 <width>20</width> 389 <width>20</width>
341 <height>20</height> 390 <height>20</height>
342 </size> 391 </size>
343 </property> 392 </property>
344 </spacer> 393 </spacer>
345 </vbox> 394 </vbox>
346 </widget> 395 </widget>
347 <widget> 396 <widget>
348 <class>QWidget</class> 397 <class>QWidget</class>
349 <property stdset="1"> 398 <property stdset="1">
350 <name>name</name> 399 <name>name</name>
351 <cstring>tab</cstring> 400 <cstring>tab</cstring>
352 </property> 401 </property>
353 <attribute> 402 <attribute>
354 <name>title</name> 403 <name>title</name>
355 <string>Order</string> 404 <string>Order</string>
356 </attribute> 405 </attribute>
357 <vbox> 406 <vbox>
358 <property stdset="1"> 407 <property stdset="1">
359 <name>margin</name> 408 <name>margin</name>
360 <number>2</number> 409 <number>2</number>
361 </property> 410 </property>
362 <property stdset="1"> 411 <property stdset="1">
363 <name>spacing</name> 412 <name>spacing</name>
364 <number>2</number> 413 <number>2</number>
365 </property> 414 </property>
366 <widget> 415 <widget>
367 <class>QGroupBox</class> 416 <class>QGroupBox</class>
368 <property stdset="1"> 417 <property stdset="1">
369 <name>name</name> 418 <name>name</name>
370 <cstring>GroupBox9</cstring> 419 <cstring>GroupBox9</cstring>
371 </property> 420 </property>
372 <property stdset="1"> 421 <property stdset="1">
373 <name>title</name> 422 <name>title</name>
374 <string>Select Contact Order:</string> 423 <string>Select Contact Order:</string>
375 </property> 424 </property>
376 <grid> 425 <grid>
377 <property stdset="1"> 426 <property stdset="1">
378 <name>margin</name> 427 <name>margin</name>
379 <number>11</number> 428 <number>11</number>
380 </property> 429 </property>
381 <property stdset="1"> 430 <property stdset="1">
382 <name>spacing</name> 431 <name>spacing</name>
383 <number>6</number> 432 <number>6</number>
384 </property> 433 </property>
385 <widget row="0" column="2" > 434 <widget row="0" column="2" >
386 <class>QPushButton</class> 435 <class>QPushButton</class>
387 <property stdset="1"> 436 <property stdset="1">
388 <name>name</name> 437 <name>name</name>
389 <cstring>m_upButton</cstring> 438 <cstring>m_upButton</cstring>
390 </property> 439 </property>
391 <property stdset="1"> 440 <property stdset="1">
392 <name>sizePolicy</name> 441 <name>sizePolicy</name>
393 <sizepolicy> 442 <sizepolicy>
394 <hsizetype>1</hsizetype> 443 <hsizetype>1</hsizetype>
395 <vsizetype>0</vsizetype> 444 <vsizetype>0</vsizetype>
396 </sizepolicy> 445 </sizepolicy>
397 </property> 446 </property>
398 <property stdset="1"> 447 <property stdset="1">
399 <name>text</name> 448 <name>text</name>
400 <string>Up</string> 449 <string>Up</string>
401 </property> 450 </property>
402 <property stdset="1"> 451 <property stdset="1">
403 <name>autoRepeat</name> 452 <name>autoRepeat</name>
404 <bool>true</bool> 453 <bool>true</bool>
405 </property> 454 </property>
455 <property>
456 <name>whatsThis</name>
457 <string>Move selected attribute one line up</string>
458 </property>
406 </widget> 459 </widget>
407 <widget row="1" column="2" > 460 <widget row="1" column="2" >
408 <class>QPushButton</class> 461 <class>QPushButton</class>
409 <property stdset="1"> 462 <property stdset="1">
410 <name>name</name> 463 <name>name</name>
411 <cstring>m_downButton</cstring> 464 <cstring>m_downButton</cstring>
412 </property> 465 </property>
413 <property stdset="1"> 466 <property stdset="1">
414 <name>sizePolicy</name> 467 <name>sizePolicy</name>
415 <sizepolicy> 468 <sizepolicy>
416 <hsizetype>1</hsizetype> 469 <hsizetype>1</hsizetype>
417 <vsizetype>0</vsizetype> 470 <vsizetype>0</vsizetype>
418 </sizepolicy> 471 </sizepolicy>
419 </property> 472 </property>
420 <property stdset="1"> 473 <property stdset="1">
421 <name>text</name> 474 <name>text</name>
422 <string>Down</string> 475 <string>Down</string>
423 </property> 476 </property>
424 <property stdset="1"> 477 <property stdset="1">
425 <name>autoRepeat</name> 478 <name>autoRepeat</name>
426 <bool>true</bool> 479 <bool>true</bool>
427 </property> 480 </property>
481 <property>
482 <name>whatsThis</name>
483 <string>Move selected attribute one line down</string>
484 </property>
428 </widget> 485 </widget>
429 <widget row="4" column="0" rowspan="1" colspan="2" > 486 <widget row="4" column="0" rowspan="1" colspan="2" >
430 <class>QListBox</class> 487 <class>QListBox</class>
431 <property stdset="1"> 488 <property stdset="1">
432 <name>name</name> 489 <name>name</name>
433 <cstring>allFieldListBox</cstring> 490 <cstring>allFieldListBox</cstring>
434 </property> 491 </property>
435 <property stdset="1"> 492 <property stdset="1">
436 <name>sizePolicy</name> 493 <name>sizePolicy</name>
437 <sizepolicy> 494 <sizepolicy>
438 <hsizetype>7</hsizetype> 495 <hsizetype>7</hsizetype>
439 <vsizetype>7</vsizetype> 496 <vsizetype>7</vsizetype>
440 </sizepolicy> 497 </sizepolicy>
441 </property> 498 </property>
499 <property>
500 <name>whatsThis</name>
501 <string>List of all available attributes</string>
502 </property>
442 </widget> 503 </widget>
443 <widget row="3" column="0" > 504 <widget row="3" column="0" >
444 <class>QPushButton</class> 505 <class>QPushButton</class>
445 <property stdset="1"> 506 <property stdset="1">
446 <name>name</name> 507 <name>name</name>
447 <cstring>m_addButton</cstring> 508 <cstring>m_addButton</cstring>
448 </property> 509 </property>
449 <property stdset="1"> 510 <property stdset="1">
450 <name>sizePolicy</name> 511 <name>sizePolicy</name>
451 <sizepolicy> 512 <sizepolicy>
452 <hsizetype>1</hsizetype> 513 <hsizetype>1</hsizetype>
453 <vsizetype>0</vsizetype> 514 <vsizetype>0</vsizetype>
454 </sizepolicy> 515 </sizepolicy>
455 </property> 516 </property>
456 <property stdset="1"> 517 <property stdset="1">
457 <name>text</name> 518 <name>text</name>
458 <string>Add</string> 519 <string>Add</string>
459 </property> 520 </property>
521 <property>
522 <name>whatsThis</name>
523 <string>Add selected attribute from list below to the upper list</string>
524 </property>
460 </widget> 525 </widget>
461 <widget row="3" column="1" > 526 <widget row="3" column="1" >
462 <class>QPushButton</class> 527 <class>QPushButton</class>
463 <property stdset="1"> 528 <property stdset="1">
464 <name>name</name> 529 <name>name</name>
465 <cstring>m_removeButton</cstring> 530 <cstring>m_removeButton</cstring>
466 </property> 531 </property>
467 <property stdset="1"> 532 <property stdset="1">
468 <name>sizePolicy</name> 533 <name>sizePolicy</name>
469 <sizepolicy> 534 <sizepolicy>
470 <hsizetype>1</hsizetype> 535 <hsizetype>1</hsizetype>
471 <vsizetype>0</vsizetype> 536 <vsizetype>0</vsizetype>
472 </sizepolicy> 537 </sizepolicy>
473 </property> 538 </property>
474 <property stdset="1"> 539 <property stdset="1">
475 <name>text</name> 540 <name>text</name>
476 <string>Remove</string> 541 <string>Remove</string>
477 </property> 542 </property>
543 <property>
544 <name>whatsThis</name>
545 <string>Remove the selected attribute from the upper list</string>
546 </property>
478 </widget> 547 </widget>
479 <spacer row="2" column="2" > 548 <spacer row="2" column="2" >
480 <property> 549 <property>
481 <name>name</name> 550 <name>name</name>
482 <cstring>Spacer23</cstring> 551 <cstring>Spacer23</cstring>
483 </property> 552 </property>
484 <property stdset="1"> 553 <property stdset="1">
485 <name>orientation</name> 554 <name>orientation</name>
486 <enum>Vertical</enum> 555 <enum>Vertical</enum>
487 </property> 556 </property>
488 <property stdset="1"> 557 <property stdset="1">
489 <name>sizeType</name> 558 <name>sizeType</name>
490 <enum>Expanding</enum> 559 <enum>Expanding</enum>
491 </property> 560 </property>
492 <property> 561 <property>
493 <name>sizeHint</name> 562 <name>sizeHint</name>
494 <size> 563 <size>
495 <width>20</width> 564 <width>20</width>
496 <height>20</height> 565 <height>20</height>
497 </size> 566 </size>
498 </property> 567 </property>
499 </spacer> 568 </spacer>
500 <spacer row="3" column="2" rowspan="2" colspan="1" > 569 <spacer row="3" column="2" rowspan="2" colspan="1" >
501 <property> 570 <property>
502 <name>name</name> 571 <name>name</name>
503 <cstring>Spacer2_2</cstring> 572 <cstring>Spacer2_2</cstring>
504 </property> 573 </property>
505 <property stdset="1"> 574 <property stdset="1">
506 <name>orientation</name> 575 <name>orientation</name>
507 <enum>Vertical</enum> 576 <enum>Vertical</enum>
508 </property> 577 </property>
509 <property stdset="1"> 578 <property stdset="1">
510 <name>sizeType</name> 579 <name>sizeType</name>
511 <enum>Expanding</enum> 580 <enum>Expanding</enum>
512 </property> 581 </property>
513 <property> 582 <property>
514 <name>sizeHint</name> 583 <name>sizeHint</name>
515 <size> 584 <size>
516 <width>20</width> 585 <width>20</width>
517 <height>20</height> 586 <height>20</height>
518 </size> 587 </size>
519 </property> 588 </property>
520 </spacer> 589 </spacer>
521 <widget row="0" column="0" rowspan="3" colspan="2" > 590 <widget row="0" column="0" rowspan="3" colspan="2" >
522 <class>QListBox</class> 591 <class>QListBox</class>
523 <property stdset="1"> 592 <property stdset="1">
524 <name>name</name> 593 <name>name</name>
525 <cstring>fieldListBox</cstring> 594 <cstring>fieldListBox</cstring>
526 </property> 595 </property>
527 <property stdset="1"> 596 <property stdset="1">
528 <name>sizePolicy</name> 597 <name>sizePolicy</name>
529 <sizepolicy> 598 <sizepolicy>
530 <hsizetype>7</hsizetype> 599 <hsizetype>7</hsizetype>
531 <vsizetype>7</vsizetype> 600 <vsizetype>7</vsizetype>
532 </sizepolicy> 601 </sizepolicy>
533 </property> 602 </property>
603 <property>
604 <name>whatsThis</name>
605 <string>Order (up -&gt; down) defines the primary contact shown in the second column of the list view</string>
606 </property>
534 </widget> 607 </widget>
535 </grid> 608 </grid>
536 </widget> 609 </widget>
537 </vbox> 610 </vbox>
538 </widget> 611 </widget>
539 </widget> 612 </widget>
540 </vbox> 613 </vbox>
541</widget> 614</widget>
542<tabstops> 615<tabstops>
543 <tabstop>configDlg_base</tabstop> 616 <tabstop>configDlg_base</tabstop>
544 <tabstop>m_useQtMail</tabstop> 617 <tabstop>m_useQtMail</tabstop>
545 <tabstop>m_useOpieMail</tabstop> 618 <tabstop>m_useOpieMail</tabstop>
546</tabstops> 619</tabstops>
547</UI> 620</UI>
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp
index 0b65a10..df97b85 100644
--- a/core/pim/addressbook/contacteditor.cpp
+++ b/core/pim/addressbook/contacteditor.cpp
@@ -1,302 +1,315 @@
1/* 1/*
2 * Copyright (c) 2002 Michael R. Crawford <mike@tuxnami.org> 2 * Copyright (c) 2002 Michael R. Crawford <mike@tuxnami.org>
3 * Copyright (C) 2002 by Stefan Eilers (eilers.stefan@epost.de) 3 * Copyright (C) 2002 by Stefan Eilers (eilers.stefan@epost.de)
4 * 4 *
5 * This file is an add-on for the OPIE Palmtop Environment 5 * This file is an add-on for the OPIE Palmtop Environment
6 * 6 *
7 * This file may be distributed and/or modified under the terms of the 7 * This file may be distributed and/or modified under the terms of the
8 * GNU General Public License version 2 as published by the Free Software 8 * GNU General Public License version 2 as published by the Free Software
9 * Foundation and appearing in the file LICENSE.GPL included in the pacakaging 9 * Foundation and appearing in the file LICENSE.GPL included in the pacakaging
10 * of this file. 10 * of this file.
11 * 11 *
12 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 12 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
13 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 13 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
14 * 14 *
15 * 15 *
16 * This is a rewrite of the abeditor.h file, modified to provide a more 16 * This is a rewrite of the abeditor.h file, modified to provide a more
17 * intuitive interface to TrollTech's original Address Book editor. This 17 * intuitive interface to TrollTech's original Address Book editor. This
18 * is made to operate exactly in interface with the exception of name. 18 * is made to operate exactly in interface with the exception of name.
19 * 19 *
20 */ 20 */
21 21
22#include "contacteditor.h" 22#include "contacteditor.h"
23#include "addresspicker.h" 23#include "addresspicker.h"
24#include "ocontactfields.h" 24#include "ocontactfields.h"
25 25
26#include <qpe/categoryselect.h> 26#include <qpe/categoryselect.h>
27#include <qpe/qpeapplication.h> 27#include <qpe/qpeapplication.h>
28#include <qpe/qpedialog.h> 28#include <qpe/qpedialog.h>
29#include <qpe/timeconversion.h> 29#include <qpe/timeconversion.h>
30#include <opie/ocontact.h> 30#include <opie/ocontact.h>
31#include <qpe/resource.h> 31#include <qpe/resource.h>
32 32
33#include <qcombobox.h> 33#include <qcombobox.h>
34#include <qlabel.h> 34#include <qlabel.h>
35#include <qtabwidget.h> 35#include <qtabwidget.h>
36#include <qlayout.h> 36#include <qlayout.h>
37#include <qlineedit.h> 37#include <qlineedit.h>
38#include <qmultilineedit.h> 38#include <qmultilineedit.h>
39#include <qscrollview.h> 39#include <qscrollview.h>
40#include <qtoolbutton.h> 40#include <qtoolbutton.h>
41#include <qpushbutton.h> 41#include <qpushbutton.h>
42#include <qmainwindow.h> 42#include <qmainwindow.h>
43#include <qvaluelist.h> 43#include <qvaluelist.h>
44#include <qpopupmenu.h> 44#include <qpopupmenu.h>
45#include <qlistbox.h> 45#include <qlistbox.h>
46#include <qhbox.h> 46#include <qhbox.h>
47#include <qaction.h> 47#include <qaction.h>
48#include <qiconset.h> 48#include <qiconset.h>
49#include <qmessagebox.h> 49#include <qmessagebox.h>
50#include <qwhatsthis.h>
50 51
51#include <assert.h> 52#include <assert.h>
52 53
53static inline bool containsAlphaNum( const QString &str ); 54static inline bool containsAlphaNum( const QString &str );
54static inline bool constainsWhiteSpace( const QString &str ); 55static inline bool constainsWhiteSpace( const QString &str );
55 56
56// helper functions, convert our comma delimited list to proper 57// helper functions, convert our comma delimited list to proper
57// file format... 58// file format...
58void parseEmailFrom( const QString &txt, QString &strDefaultEmail, 59void parseEmailFrom( const QString &txt, QString &strDefaultEmail,
59 QString &strAll ); 60 QString &strAll );
60 61
61// helper convert from file format to comma delimited... 62// helper convert from file format to comma delimited...
62void parseEmailTo( const QString &strDefaultEmail, 63void parseEmailTo( const QString &strDefaultEmail,
63 const QString &strOtherEmail, QString &strBack ); 64 const QString &strOtherEmail, QString &strBack );
64 65
65 ContactEditor::ContactEditor(const OContact &entry, 66 ContactEditor::ContactEditor(const OContact &entry,
66 QWidget *parent, 67 QWidget *parent,
67 const char *name, 68 const char *name,
68 WFlags fl ) 69 WFlags )
69 : QDialog( parent, name, TRUE, fl ), 70 : QDialog( parent, name, TRUE, WStyle_ContextHelp ),
70 defaultEmailChooserPosition( -1 ), 71 defaultEmailChooserPosition( -1 ),
71 m_personalView ( false ), 72 m_personalView ( false ),
72 cmbDefaultEmail( 0 ), 73 cmbDefaultEmail( 0 ),
73 initializing ( false ) 74 initializing ( false )
74{ 75{
75 76
76 initializing = true; 77 initializing = true;
77 78
78 init(); 79 init();
79 setEntry( entry ); 80 setEntry( entry );
80 // cmbDefaultEmail = 0; 81 // cmbDefaultEmail = 0;
81 // defaultEmailChooserPosition = -1; 82 // defaultEmailChooserPosition = -1;
82 83
83 initializing = false; 84 initializing = false;
84} 85}
85 86
86ContactEditor::~ContactEditor() { 87ContactEditor::~ContactEditor() {
87} 88}
88 89
89void ContactEditor::init() { 90void ContactEditor::init() {
90 qWarning("init() START"); 91 qWarning("init() START");
91 92
92 uint i = 0; 93 uint i = 0;
93 94
94 QStringList trlChooserNames; 95 QStringList trlChooserNames;
95 96
96 for (i = 0; i <= 6; i++) { 97 for (i = 0; i <= 6; i++) {
97 slHomeAddress.append( "" ); 98 slHomeAddress.append( "" );
98 slBusinessAddress.append( "" ); 99 slBusinessAddress.append( "" );
99 } 100 }
100 101
101 trlChooserNames = OContactFields::trphonefields( false ); 102 trlChooserNames = OContactFields::trphonefields( false );
102 slChooserNames = OContactFields::untrphonefields( false ); 103 slChooserNames = OContactFields::untrphonefields( false );
103 slDynamicEntries = OContactFields::untrdetailsfields( false ); 104 slDynamicEntries = OContactFields::untrdetailsfields( false );
104 trlDynamicEntries = OContactFields::trdetailsfields( false ); 105 trlDynamicEntries = OContactFields::trdetailsfields( false );
105 106
106 // Ok, we have to remove elements from the list of dynamic entries 107 // Ok, we have to remove elements from the list of dynamic entries
107 // which are now stored in special (not dynamic) widgets.. 108 // which are now stored in special (not dynamic) widgets..
108 // Otherwise we will get problems with field assignments! (se) 109 // Otherwise we will get problems with field assignments! (se)
109 slDynamicEntries.remove("Anniversary"); 110 slDynamicEntries.remove("Anniversary");
110 slDynamicEntries.remove("Birthday"); 111 slDynamicEntries.remove("Birthday");
111 slDynamicEntries.remove("Gender"); 112 slDynamicEntries.remove("Gender");
112 113
113 // The same with translated fields.. But I will 114 // The same with translated fields.. But I will
114 // use the translation map to avoid mismatches.. 115 // use the translation map to avoid mismatches..
115 QMap<int, QString> translMap = OContactFields::idToTrFields(); 116 QMap<int, QString> translMap = OContactFields::idToTrFields();
116 trlDynamicEntries.remove( translMap[Qtopia::Anniversary] ); 117 trlDynamicEntries.remove( translMap[Qtopia::Anniversary] );
117 trlDynamicEntries.remove( translMap[Qtopia::Birthday] ); 118 trlDynamicEntries.remove( translMap[Qtopia::Birthday] );
118 trlDynamicEntries.remove( translMap[Qtopia::Gender] ); 119 trlDynamicEntries.remove( translMap[Qtopia::Gender] );
119 120
120 // Last Check to be sure.. 121 // Last Check to be sure..
121 assert( slDynamicEntries.count() == trlDynamicEntries.count() ); 122 assert( slDynamicEntries.count() == trlDynamicEntries.count() );
122 assert( slChooserNames.count() == trlChooserNames.count() ); 123 assert( slChooserNames.count() == trlChooserNames.count() );
123 124
124 for (i = 0; i < slChooserNames.count(); i++) 125 for (i = 0; i < slChooserNames.count(); i++)
125 slChooserValues.append(""); 126 slChooserValues.append("");
126 127
127 128
128 QVBoxLayout *vb = new QVBoxLayout( this ); 129 QVBoxLayout *vb = new QVBoxLayout( this );
129 130
130 tabMain = new QTabWidget( this ); 131 tabMain = new QTabWidget( this );
131 vb->addWidget( tabMain ); 132 vb->addWidget( tabMain );
132 133
133 QWidget *tabViewport = new QWidget ( tabMain ); 134 QWidget *tabViewport = new QWidget ( tabMain );
134 135
135 vb = new QVBoxLayout( tabViewport ); 136 vb = new QVBoxLayout( tabViewport );
136 137
137 svGeneral = new QScrollView( tabViewport ); 138 svGeneral = new QScrollView( tabViewport );
138 vb->addWidget( svGeneral, 0, 0 ); 139 vb->addWidget( svGeneral, 0, 0 );
139 svGeneral->setResizePolicy( QScrollView::AutoOneFit ); 140 svGeneral->setResizePolicy( QScrollView::AutoOneFit );
140 // svGeneral->setHScrollBarMode( QScrollView::AlwaysOff ); 141 // svGeneral->setHScrollBarMode( QScrollView::AlwaysOff );
141 // svGeneral->setVScrollBarMode( QScrollView::AlwaysOff ); 142 // svGeneral->setVScrollBarMode( QScrollView::AlwaysOff );
142 svGeneral->setFrameStyle( QFrame::NoFrame ); 143 svGeneral->setFrameStyle( QFrame::NoFrame );
143 144
144 QWidget *container = new QWidget( svGeneral->viewport() ); 145 QWidget *container = new QWidget( svGeneral->viewport() );
145 svGeneral->addChild( container ); 146 svGeneral->addChild( container );
146 147
147 QGridLayout *gl = new QGridLayout( container, 1, 1, 2, 4 ); 148 QGridLayout *gl = new QGridLayout( container, 1, 1, 2, 4 );
148 gl->setResizeMode( QLayout::FreeResize ); 149 gl->setResizeMode( QLayout::FreeResize );
149 150
150 btnFullName = new QPushButton( tr( "Full Name..." ), container ); 151 btnFullName = new QPushButton( tr( "Full Name..." ), container );
152 QWhatsThis::add( btnFullName, tr( "Press to enter last- middle and firstname" ) );
151 gl->addWidget( btnFullName, 0, 0 ); 153 gl->addWidget( btnFullName, 0, 0 );
152 txtFullName = new QLineEdit( container ); 154 txtFullName = new QLineEdit( container );
155 QWhatsThis::add( txtFullName, tr( "Enter fullname directly ! If you have a lastname with multiple words ( for instance \"de la Guerra\"), please write <lastname>,<firstnames> like this: \"de la Guerra, Carlos Pedro\"" ) );
153 gl->addWidget( txtFullName, 0, 1 ); 156 gl->addWidget( txtFullName, 0, 1 );
154 157
155 QLabel *l = new QLabel( tr( "Job Title" ), container ); 158 QLabel *l = new QLabel( tr( "Job Title" ), container );
159 QWhatsThis::add( l, tr( "The jobtitle.." ) );
156 gl->addWidget( l, 1, 0 ); 160 gl->addWidget( l, 1, 0 );
157 txtJobTitle = new QLineEdit( container ); 161 txtJobTitle = new QLineEdit( container );
162 QWhatsThis::add( txtJobTitle, tr( "The jobtitle.." ) );
158 gl->addWidget( txtJobTitle, 1, 1 ); 163 gl->addWidget( txtJobTitle, 1, 1 );
159 164
160 l = new QLabel( tr("Suffix"), container ); 165 l = new QLabel( tr("Suffix"), container );
166 QWhatsThis::add( l, tr( "Something like \"jr.\".." ) );
161 gl->addWidget( l, 2, 0 ); 167 gl->addWidget( l, 2, 0 );
162 txtSuffix = new QLineEdit( container ); 168 txtSuffix = new QLineEdit( container );
169 QWhatsThis::add( txtSuffix, tr( "Something like \"jr.\".." ) );
163 gl->addWidget( txtSuffix, 2, 1 ); 170 gl->addWidget( txtSuffix, 2, 1 );
164 171
165 l = new QLabel( tr( "Organization" ), container ); 172 l = new QLabel( tr( "Organization" ), container );
173 QWhatsThis::add( l, tr( "The working place of the contact" ) );
166 gl->addWidget( l, 3, 0 ); 174 gl->addWidget( l, 3, 0 );
167 txtOrganization = new QLineEdit( container ); 175 txtOrganization = new QLineEdit( container );
176 QWhatsThis::add( txtOrganization, tr( "The working place of the contact" ) );
168 gl->addWidget( txtOrganization, 3, 1 ); 177 gl->addWidget( txtOrganization, 3, 1 );
169 178
170 // Chooser 1 179 // Chooser 1
171 cmbChooserField1 = new QComboBox( FALSE, container ); 180 cmbChooserField1 = new QComboBox( FALSE, container );
181 QWhatsThis::add( cmbChooserField1, tr( "Press to select attribute to change" ) );
172 cmbChooserField1->setMaximumWidth( 90 ); 182 cmbChooserField1->setMaximumWidth( 90 );
173 gl->addWidget( cmbChooserField1, 4, 0 ); 183 gl->addWidget( cmbChooserField1, 4, 0 );
174 // Textfield for chooser 1. 184 // Textfield for chooser 1.
175 // Now use Widgetstack to contain the textfield and the default-email combo ! 185 // Now use Widgetstack to contain the textfield and the default-email combo !
176 m_widgetStack1 = new QWidgetStack( container ); 186 m_widgetStack1 = new QWidgetStack( container );
177 txtChooserField1 = new QLineEdit( m_widgetStack1 ); 187 txtChooserField1 = new QLineEdit( m_widgetStack1 );
178 m_widgetStack1 -> addWidget( txtChooserField1, TextField ); 188 m_widgetStack1 -> addWidget( txtChooserField1, TextField );
179 gl->addWidget( m_widgetStack1, 4, 1 ); 189 gl->addWidget( m_widgetStack1, 4, 1 );
180 m_widgetStack1 -> raiseWidget( TextField ); 190 m_widgetStack1 -> raiseWidget( TextField );
181 191
182 // Chooser 2 192 // Chooser 2
183 cmbChooserField2 = new QComboBox( FALSE, container ); 193 cmbChooserField2 = new QComboBox( FALSE, container );
194 QWhatsThis::add( cmbChooserField2, tr( "Press to select attribute to change" ) );
184 cmbChooserField2->setMaximumWidth( 90 ); 195 cmbChooserField2->setMaximumWidth( 90 );
185 gl->addWidget( cmbChooserField2, 5, 0 ); 196 gl->addWidget( cmbChooserField2, 5, 0 );
186 // Textfield for chooser 2 197 // Textfield for chooser 2
187 // Now use WidgetStack to contain the textfield and the default-email combo! 198 // Now use WidgetStack to contain the textfield and the default-email combo!
188 m_widgetStack2 = new QWidgetStack( container ); 199 m_widgetStack2 = new QWidgetStack( container );
189 txtChooserField2 = new QLineEdit( m_widgetStack2 ); 200 txtChooserField2 = new QLineEdit( m_widgetStack2 );
190 m_widgetStack2 -> addWidget( txtChooserField2, TextField ); 201 m_widgetStack2 -> addWidget( txtChooserField2, TextField );
191 gl->addWidget( m_widgetStack2, 5, 1 ); 202 gl->addWidget( m_widgetStack2, 5, 1 );
192 m_widgetStack2 -> raiseWidget( TextField ); 203 m_widgetStack2 -> raiseWidget( TextField );
193 204
194 // Chooser 3 205 // Chooser 3
195 cmbChooserField3 = new QComboBox( FALSE, container ); 206 cmbChooserField3 = new QComboBox( FALSE, container );
207 QWhatsThis::add( cmbChooserField3, tr( "Press to select attribute to change" ) );
196 cmbChooserField3->setMaximumWidth( 90 ); 208 cmbChooserField3->setMaximumWidth( 90 );
197 gl->addWidget( cmbChooserField3, 6, 0 ); 209 gl->addWidget( cmbChooserField3, 6, 0 );
198 // Textfield for chooser 2 210 // Textfield for chooser 2
199 // Now use WidgetStack to contain the textfield and the default-email combo! 211 // Now use WidgetStack to contain the textfield and the default-email combo!
200 m_widgetStack3 = new QWidgetStack( container ); 212 m_widgetStack3 = new QWidgetStack( container );
201 txtChooserField3 = new QLineEdit( m_widgetStack3 ); 213 txtChooserField3 = new QLineEdit( m_widgetStack3 );
202 m_widgetStack3 -> addWidget( txtChooserField3, TextField ); 214 m_widgetStack3 -> addWidget( txtChooserField3, TextField );
203 gl->addWidget( m_widgetStack3, 6, 1 ); 215 gl->addWidget( m_widgetStack3, 6, 1 );
204 m_widgetStack3 -> raiseWidget( TextField ); 216 m_widgetStack3 -> raiseWidget( TextField );
205 217
206 l = new QLabel( tr( "File As" ), container ); 218 l = new QLabel( tr( "File As" ), container );
219 QWhatsThis::add( l, tr( "Press to select how to store the name (and howto show it in the listview)" ) );
207 gl->addWidget( l, 7, 0 ); 220 gl->addWidget( l, 7, 0 );
208 cmbFileAs = new QComboBox( TRUE, container ); 221 cmbFileAs = new QComboBox( TRUE, container );
209 gl->addWidget( cmbFileAs, 7, 1 ); 222 gl->addWidget( cmbFileAs, 7, 1 );
210 223
211 labCat = new QLabel( tr( "Category" ), container ); 224 labCat = new QLabel( tr( "Category" ), container );
212 gl->addWidget( labCat, 8, 0 ); 225 gl->addWidget( labCat, 8, 0 );
213 cmbCat = new CategorySelect( container ); 226 cmbCat = new CategorySelect( container );
214 gl->addWidget( cmbCat, 8, 1 ); 227 gl->addWidget( cmbCat, 8, 1 );
215 labCat->show(); 228 labCat->show();
216 cmbCat->show(); 229 cmbCat->show();
217 230
218 btnNote = new QPushButton( tr( "Notes..." ), container ); 231 btnNote = new QPushButton( tr( "Notes..." ), container );
219 gl->addWidget( btnNote, 9, 1 ); 232 gl->addWidget( btnNote, 9, 1 );
220 233
221 tabMain->insertTab( tabViewport, tr( "General" ) ); 234 tabMain->insertTab( tabViewport, tr( "General" ) );
222 235
223 tabViewport = new QWidget ( tabMain ); 236 tabViewport = new QWidget ( tabMain );
224 237
225 vb = new QVBoxLayout( tabViewport ); 238 vb = new QVBoxLayout( tabViewport );
226 239
227 svAddress = new QScrollView( tabViewport ); 240 svAddress = new QScrollView( tabViewport );
228 vb->addWidget( svAddress, 0, 0 ); 241 vb->addWidget( svAddress, 0, 0 );
229 svAddress->setResizePolicy( QScrollView::AutoOneFit ); 242 svAddress->setResizePolicy( QScrollView::AutoOneFit );
230 svAddress->setFrameStyle( QFrame::NoFrame ); 243 svAddress->setFrameStyle( QFrame::NoFrame );
231 244
232 container = new QWidget( svAddress->viewport() ); 245 container = new QWidget( svAddress->viewport() );
233 svAddress->addChild( container ); 246 svAddress->addChild( container );
234 247
235 gl = new QGridLayout( container, 8, 3, 2, 4 ); // row 7 QSpacerItem 248 gl = new QGridLayout( container, 8, 3, 2, 4 ); // row 7 QSpacerItem
236 249
237 cmbAddress = new QComboBox( FALSE, container ); 250 cmbAddress = new QComboBox( FALSE, container );
238 cmbAddress->insertItem( tr( "Business" ) ); 251 cmbAddress->insertItem( tr( "Business" ) );
239 cmbAddress->insertItem( tr( "Home" ) ); 252 cmbAddress->insertItem( tr( "Home" ) );
240 gl->addMultiCellWidget( cmbAddress, 0, 0, 0, 1 ); 253 gl->addMultiCellWidget( cmbAddress, 0, 0, 0, 1 );
241 254
242 l = new QLabel( tr( "Address" ), container ); 255 l = new QLabel( tr( "Address" ), container );
243 gl->addWidget( l, 1, 0 ); 256 gl->addWidget( l, 1, 0 );
244 txtAddress = new QLineEdit( container ); 257 txtAddress = new QLineEdit( container );
245 gl->addMultiCellWidget( txtAddress, 1, 1, 1, 2 ); 258 gl->addMultiCellWidget( txtAddress, 1, 1, 1, 2 );
246 259
247 l = new QLabel( tr( "City" ), container ); 260 l = new QLabel( tr( "City" ), container );
248 gl->addWidget( l, 2, 0 ); 261 gl->addWidget( l, 2, 0 );
249 txtCity = new QLineEdit( container ); 262 txtCity = new QLineEdit( container );
250 gl->addMultiCellWidget( txtCity, 2, 2, 1, 2 ); 263 gl->addMultiCellWidget( txtCity, 2, 2, 1, 2 );
251 264
252 l = new QLabel( tr( "State" ), container ); 265 l = new QLabel( tr( "State" ), container );
253 gl->addWidget( l, 3, 0 ); 266 gl->addWidget( l, 3, 0 );
254 txtState = new QLineEdit( container ); 267 txtState = new QLineEdit( container );
255 gl->addMultiCellWidget( txtState, 3, 3, 1, 2 ); 268 gl->addMultiCellWidget( txtState, 3, 3, 1, 2 );
256 269
257 l = new QLabel( tr( "Zip Code" ), container ); 270 l = new QLabel( tr( "Zip Code" ), container );
258 gl->addWidget( l, 4, 0 ); 271 gl->addWidget( l, 4, 0 );
259 txtZip = new QLineEdit( container ); 272 txtZip = new QLineEdit( container );
260 gl->addMultiCellWidget( txtZip, 4, 4, 1, 2 ); 273 gl->addMultiCellWidget( txtZip, 4, 4, 1, 2 );
261 274
262 l = new QLabel( tr( "Country" ), container ); 275 l = new QLabel( tr( "Country" ), container );
263 gl->addWidget( l, 5, 0 ); 276 gl->addWidget( l, 5, 0 );
264 cmbCountry = new QComboBox( TRUE, container ); 277 cmbCountry = new QComboBox( TRUE, container );
265 cmbCountry->insertItem( tr( "" ) ); 278 cmbCountry->insertItem( tr( "" ) );
266 cmbCountry->insertItem( tr ( "United States" ) ); 279 cmbCountry->insertItem( tr ( "United States" ) );
267 cmbCountry->insertItem( tr ( "United Kingdom" ) ); 280 cmbCountry->insertItem( tr ( "United Kingdom" ) );
268 cmbCountry->insertItem( tr ( "Afghanistan" ) ); 281 cmbCountry->insertItem( tr ( "Afghanistan" ) );
269 cmbCountry->insertItem( tr ( "Albania" ) ); 282 cmbCountry->insertItem( tr ( "Albania" ) );
270 cmbCountry->insertItem( tr ( "Algeria" ) ); 283 cmbCountry->insertItem( tr ( "Algeria" ) );
271 cmbCountry->insertItem( tr ( "American Samoa" ) ); 284 cmbCountry->insertItem( tr ( "American Samoa" ) );
272 cmbCountry->insertItem( tr ( "Andorra" ) ); 285 cmbCountry->insertItem( tr ( "Andorra" ) );
273 cmbCountry->insertItem( tr ( "Angola" ) ); 286 cmbCountry->insertItem( tr ( "Angola" ) );
274 cmbCountry->insertItem( tr ( "Anguilla" ) ); 287 cmbCountry->insertItem( tr ( "Anguilla" ) );
275 cmbCountry->insertItem( tr ( "Antarctica" ) ); 288 cmbCountry->insertItem( tr ( "Antarctica" ) );
276 cmbCountry->insertItem( tr ( "Argentina" ) ); 289 cmbCountry->insertItem( tr ( "Argentina" ) );
277 cmbCountry->insertItem( tr ( "Armenia" ) ); 290 cmbCountry->insertItem( tr ( "Armenia" ) );
278 cmbCountry->insertItem( tr ( "Aruba" ) ); 291 cmbCountry->insertItem( tr ( "Aruba" ) );
279 cmbCountry->insertItem( tr ( "Australia" ) ); 292 cmbCountry->insertItem( tr ( "Australia" ) );
280 cmbCountry->insertItem( tr ( "Austria" ) ); 293 cmbCountry->insertItem( tr ( "Austria" ) );
281 cmbCountry->insertItem( tr ( "Azerbaijan" ) ); 294 cmbCountry->insertItem( tr ( "Azerbaijan" ) );
282 cmbCountry->insertItem( tr ( "Bahamas" ) ); 295 cmbCountry->insertItem( tr ( "Bahamas" ) );
283 cmbCountry->insertItem( tr ( "Bahrain" ) ); 296 cmbCountry->insertItem( tr ( "Bahrain" ) );
284 cmbCountry->insertItem( tr ( "Bangladesh" ) ); 297 cmbCountry->insertItem( tr ( "Bangladesh" ) );
285 cmbCountry->insertItem( tr ( "Barbados" ) ); 298 cmbCountry->insertItem( tr ( "Barbados" ) );
286 cmbCountry->insertItem( tr ( "Belarus" ) ); 299 cmbCountry->insertItem( tr ( "Belarus" ) );
287 cmbCountry->insertItem( tr ( "Belgium" ) ); 300 cmbCountry->insertItem( tr ( "Belgium" ) );
288 cmbCountry->insertItem( tr ( "Belize" ) ); 301 cmbCountry->insertItem( tr ( "Belize" ) );
289 cmbCountry->insertItem( tr ( "Benin" ) ); 302 cmbCountry->insertItem( tr ( "Benin" ) );
290 cmbCountry->insertItem( tr ( "Bermuda" ) ); 303 cmbCountry->insertItem( tr ( "Bermuda" ) );
291 cmbCountry->insertItem( tr ( "Bhutan" ) ); 304 cmbCountry->insertItem( tr ( "Bhutan" ) );
292 cmbCountry->insertItem( tr ( "Bolivia" ) ); 305 cmbCountry->insertItem( tr ( "Bolivia" ) );
293 cmbCountry->insertItem( tr ( "Botswana" ) ); 306 cmbCountry->insertItem( tr ( "Botswana" ) );
294 cmbCountry->insertItem( tr ( "Bouvet Island" ) ); 307 cmbCountry->insertItem( tr ( "Bouvet Island" ) );
295 cmbCountry->insertItem( tr ( "Brazil" ) ); 308 cmbCountry->insertItem( tr ( "Brazil" ) );
296 cmbCountry->insertItem( tr ( "Brunei Darussalam" ) ); 309 cmbCountry->insertItem( tr ( "Brunei Darussalam" ) );
297 cmbCountry->insertItem( tr ( "Bulgaria" ) ); 310 cmbCountry->insertItem( tr ( "Bulgaria" ) );
298 cmbCountry->insertItem( tr ( "Burkina Faso" ) ); 311 cmbCountry->insertItem( tr ( "Burkina Faso" ) );
299 cmbCountry->insertItem( tr ( "Burundi" ) ); 312 cmbCountry->insertItem( tr ( "Burundi" ) );
300 cmbCountry->insertItem( tr ( "Cambodia" ) ); 313 cmbCountry->insertItem( tr ( "Cambodia" ) );
301 cmbCountry->insertItem( tr ( "Cameroon" ) ); 314 cmbCountry->insertItem( tr ( "Cameroon" ) );
302 cmbCountry->insertItem( tr ( "Canada" ) ); 315 cmbCountry->insertItem( tr ( "Canada" ) );