author | eilers <eilers> | 2003-03-07 14:33:36 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-03-07 14:33:36 (UTC) |
commit | eeb28ead6d3050d662783696661d9360a049104f (patch) (unidiff) | |
tree | 3a9f27185ecddcd1fe7a9dd20db49f87b4841556 | |
parent | 78a2773ef477a4ab7327350e5f1f6c07428ad8a4 (diff) | |
download | opie-eeb28ead6d3050d662783696661d9360a049104f.zip opie-eeb28ead6d3050d662783696661d9360a049104f.tar.gz opie-eeb28ead6d3050d662783696661d9360a049104f.tar.bz2 |
Removed unused files and starting with WhatsThis..
-rw-r--r-- | core/pim/addressbook/addresssettings.cpp | 136 | ||||
-rw-r--r-- | core/pim/addressbook/addresssettings.h | 47 | ||||
-rw-r--r-- | core/pim/addressbook/addresssettingsbase.ui | 170 | ||||
-rw-r--r-- | core/pim/addressbook/configdlg.cpp | 3 | ||||
-rw-r--r-- | core/pim/addressbook/configdlg_base.ui | 75 | ||||
-rw-r--r-- | core/pim/addressbook/contacteditor.cpp | 17 |
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 | |||
32 | AddressSettings::AddressSettings( QWidget *parent, const char *name ) | ||
33 | : AddressSettingsBase( parent, name, TRUE ) | ||
34 | { | ||
35 | init(); | ||
36 | } | ||
37 | |||
38 | AddressSettings::~AddressSettings() | ||
39 | { | ||
40 | } | ||
41 | |||
42 | void 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 | |||
96 | void 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 | |||
107 | void 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 | |||
118 | void AddressSettings::accept() | ||
119 | { | ||
120 | save(); | ||
121 | QDialog::accept(); | ||
122 | } | ||
123 | |||
124 | |||
125 | void 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 | |||
28 | const int ADDRESSVERSION = 3; | ||
29 | |||
30 | class AddressSettings : public AddressSettingsBase | ||
31 | { | ||
32 | Q_OBJECT | ||
33 | public: | ||
34 | AddressSettings( QWidget *parent = 0, const char *name = 0 ); | ||
35 | ~AddressSettings(); | ||
36 | |||
37 | protected: | ||
38 | void accept(); | ||
39 | virtual void itemUp(); | ||
40 | virtual void itemDown(); | ||
41 | |||
42 | private: | ||
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 | |||
@@ -16,16 +16,19 @@ ConfigDlg::ConfigDlg( QWidget *parent, const char *name): | |||
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 |
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,23 +1,24 @@ | |||
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> |
@@ -57,16 +58,20 @@ | |||
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> |
@@ -105,16 +110,20 @@ | |||
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> |
@@ -124,57 +133,73 @@ | |||
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> |
@@ -184,42 +209,54 @@ | |||
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> |
@@ -265,16 +302,20 @@ | |||
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> |
@@ -288,27 +329,35 @@ | |||
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"> |
@@ -398,16 +447,20 @@ is provided free !</string> | |||
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"> |
@@ -420,30 +473,38 @@ is provided free !</string> | |||
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"> |
@@ -452,16 +513,20 @@ is provided free !</string> | |||
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"> |
@@ -470,16 +535,20 @@ is provided free !</string> | |||
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> |
@@ -526,16 +595,20 @@ is provided free !</string> | |||
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 -> 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> |
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 | |||
@@ -42,16 +42,17 @@ | |||
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 | ||
53 | static inline bool containsAlphaNum( const QString &str ); | 54 | static inline bool containsAlphaNum( const QString &str ); |
54 | static inline bool constainsWhiteSpace( const QString &str ); | 55 | static 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... |
@@ -60,18 +61,18 @@ void parseEmailFrom( const QString &txt, QString &strDefaultEmail, | |||
60 | 61 | ||
61 | // helper convert from file format to comma delimited... | 62 | // helper convert from file format to comma delimited... |
62 | void parseEmailTo( const QString &strDefaultEmail, | 63 | void 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 | ||
@@ -143,72 +144,84 @@ void ContactEditor::init() { | |||
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 ); |