author | eilers <eilers> | 2002-12-16 16:09:51 (UTC) |
---|---|---|
committer | eilers <eilers> | 2002-12-16 16:09:51 (UTC) |
commit | c7c8bf3d2fd133fa05ff7a5daed977c05429c4c1 (patch) (unidiff) | |
tree | af2d61766398115557a84a0f9efee6fb684f5e88 | |
parent | cdf781e3243601bce6c7bcbb10f38e7a24f04887 (diff) | |
download | opie-c7c8bf3d2fd133fa05ff7a5daed977c05429c4c1.zip opie-c7c8bf3d2fd133fa05ff7a5daed977c05429c4c1.tar.gz opie-c7c8bf3d2fd133fa05ff7a5daed977c05429c4c1.tar.bz2 |
not important
-rw-r--r-- | core/pim/addressbook/TODO | 2 | ||||
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/pim/addressbook/TODO b/core/pim/addressbook/TODO index 7e800fa..a9f65de 100644 --- a/core/pim/addressbook/TODO +++ b/core/pim/addressbook/TODO | |||
@@ -1,110 +1,110 @@ | |||
1 | Stuff todo until OPIE 1.0 : | 1 | Stuff todo until OPIE 1.0 : |
2 | =========================== | 2 | =========================== |
3 | 3 | ||
4 | Feature requests: | 4 | Feature requests: |
5 | ----------------- | 5 | ----------------- |
6 | - Dial by mobile phone by tapping the number.. | 6 | - Dial by mobile phone by tapping the number.. |
7 | (Maybe using gsmtool. And we may | 7 | (Maybe using gsmtool. And we may |
8 | add a library class for this) | 8 | add a library class for this) |
9 | - dial with dtmfdial incase it's installed and there's no mobile | 9 | - dial with dtmfdial incase it's installed and there's no mobile |
10 | - 3rd column for 2. Contact | 10 | - 3rd column for 2. Contact |
11 | - Implementing additional Views (Phonebook, ...) | 11 | - Implementing additional Views (Phonebook, ...) |
12 | - Birthday & Anniversary Reminder | 12 | - Birthday & Anniversary Reminder |
13 | - Plugin for Today for Birthdays and Anniversaries | 13 | - Plugin for Today for Birthdays and Anniversaries |
14 | - Beaming of multiple contacts (current list/ by search or by category) | 14 | - Beaming of multiple contacts (current list/ by search or by category) |
15 | 15 | ||
16 | Known Bugs: | 16 | Known Bugs: |
17 | ----------- | 17 | ----------- |
18 | - Language not English (tested with german opie-translation): | 18 | - Language not English (tested with german opie-translation): |
19 | 1. Configure nicht übersetzt (alles leer). | 19 | 1. Configure nicht übersetzt (alles leer). |
20 | 2. Contacteditor nur teilweise übersetzt. | 20 | 2. Contacteditor nur teilweise übersetzt. |
21 | 3. Kategorie-Picker geht nicht. | 21 | 3. Kategorie-Picker geht nicht. |
22 | 22 | ||
23 | 23 | ||
24 | Bugs but not in addressbook: | 24 | Bugs but not in addressbook: |
25 | ----------------------------- | 25 | ----------------------------- |
26 | - VCARD: If umlaut (äöüß) in address, the parser gets confused.. | 26 | - VCARD: If umlaut (äöüß) in address, the parser gets confused.. |
27 | 27 | ||
28 | - Exporting and reimporting of Jobtitle was reported to fail (Could not reproduce this ! (se)) | 28 | - Exporting and reimporting of Jobtitle was reported to fail (Could not reproduce this ! (se)) |
29 | 29 | ||
30 | 30 | ||
31 | Urgent: | 31 | Urgent: |
32 | -------- | 32 | -------- |
33 | - Implement Button Pics | 33 | - Implement Button Pics |
34 | - Fix start of opie-mail | ||
35 | 34 | ||
36 | ContactEditor: | 35 | ContactEditor: |
37 | - Contact-Editor is temporarely reenabled. Wait for replacement. | 36 | - Contact-Editor is temporarely reenabled. Wait for replacement. |
38 | - Redesign of Contacteditor | 37 | - Redesign of Contacteditor |
39 | - Store last settings of combo-boxes | 38 | - Store last settings of combo-boxes |
40 | - Category is on the wrong position after changing to personal and back to normal | 39 | - Category is on the wrong position after changing to personal and back to normal |
41 | ( Temporarily workaround: Category is never deactivated.. :S ) | 40 | ( Temporarily workaround: Category is never deactivated.. :S ) |
42 | - Personal and Business Web-page is not editable | 41 | - Personal and Business Web-page is not editable |
43 | 42 | ||
44 | Important: | 43 | Important: |
45 | ---------- | 44 | ---------- |
46 | 45 | ||
47 | - Implement a picker/combo for the default email. | 46 | - Implement a picker/combo for the default email. |
48 | - After search (Started with Return): KeyFocus should be on Tabelle | 47 | - After search (Started with Return): KeyFocus should be on Tabelle |
49 | 48 | ||
50 | - Add a dialog to accept and optionally edit received contacts by IRDA. | 49 | - Add a dialog to accept and optionally edit received contacts by IRDA. |
51 | - "What's this" should be added (Deleyed after Feature Freeze) | 50 | - "What's this" should be added (Deleyed after Feature Freeze) |
52 | 51 | ||
53 | Less important: | 52 | Less important: |
54 | --------------- | 53 | --------------- |
55 | - Reload if contacts were changed externally | 54 | - Reload if contacts were changed externally |
56 | - Overview window cleanup needed.. | 55 | - Overview window cleanup needed.. |
57 | - The picker (alphabetical sort widget) should be | 56 | - The picker (alphabetical sort widget) should be |
58 | placed verticaly or horizontally (configurable) | 57 | placed verticaly or horizontally (configurable) |
59 | - Find a smart solution for activating/deactivating the "send email" event | 58 | - Find a smart solution for activating/deactivating the "send email" event |
60 | 59 | ||
61 | Should be Fixed (not absolute sure, need further validation): | 60 | Should be Fixed (not absolute sure, need further validation): |
62 | ------------------------------------------------------------- | 61 | ------------------------------------------------------------- |
63 | 62 | ||
64 | 63 | ||
65 | Fixed: | 64 | Fixed: |
66 | ------- | 65 | ------- |
67 | - Syncing: abtable not reloaded after sync. | 66 | - Syncing: abtable not reloaded after sync. |
68 | - Find widget should be replaced by something like | 67 | - Find widget should be replaced by something like |
69 | qpdf has. | 68 | qpdf has. |
70 | - Adding a configuration dialog | 69 | - Adding a configuration dialog |
71 | - Picker: Activated letter schould be more visible | 70 | - Picker: Activated letter schould be more visible |
72 | - Advanced handling of cursor keys (search..) | 71 | - Advanced handling of cursor keys (search..) |
73 | - Mail-Icon is missing | 72 | - Mail-Icon is missing |
74 | - Use opie-mail insted of qt-mail if possible. | 73 | - Use opie-mail insted of qt-mail if possible. |
75 | - Font menu is invisible using german translation | 74 | - Font menu is invisible using german translation |
76 | - Personal contact editor: Disable categories | 75 | - Personal contact editor: Disable categories |
77 | - "Nonenglish" translation bug has to be fixed. | 76 | - "Nonenglish" translation bug has to be fixed. |
78 | - contacteditor: Birthday, annyversary, ... : Use Dateselector | 77 | - contacteditor: Birthday, annyversary, ... : Use Dateselector |
79 | - The names of the countries are sorted by there english names, only.. | 78 | - The names of the countries are sorted by there english names, only.. |
80 | Even if they are translated.. :S | 79 | Even if they are translated.. :S |
81 | - Cursor keys should work in detail-view (ablabel) | 80 | - Cursor keys should work in detail-view (ablabel) |
82 | -> Ablabel should be removed and Abtable should be increased with | 81 | -> Ablabel should be removed and Abtable should be increased with |
83 | different views (as started by darwin zins).. | 82 | different views (as started by darwin zins).. |
84 | - Use advanced database functions in abtable to decrease | 83 | - Use advanced database functions in abtable to decrease |
85 | memory footprint and to make everything more easy ! | 84 | memory footprint and to make everything more easy ! |
86 | (abtable should store Iterator for selected Category) | 85 | (abtable should store Iterator for selected Category) |
87 | - Abtable: Configure Contact column (internally already available, | 86 | - Abtable: Configure Contact column (internally already available, |
88 | need configuration) | 87 | need configuration) |
89 | - Select of primary contact (see #274 on mantis) | 88 | - Select of primary contact (see #274 on mantis) |
90 | - Category-select does not work completely: "Unfiled" is always in listview .. | 89 | - Category-select does not work completely: "Unfiled" is always in listview .. |
91 | - Return from Contacteditor: Category resettet to all | 90 | - Return from Contacteditor: Category resettet to all |
92 | - Personal Details not working | 91 | - Personal Details not working |
93 | - If category changed, the letterpicker should be resetted | 92 | - If category changed, the letterpicker should be resetted |
94 | - There should be some icons for List and Cardview | 93 | - There should be some icons for List and Cardview |
95 | - If in Cardview and a category change removes all entries: | 94 | - If in Cardview and a category change removes all entries: |
96 | There are already entries in Cardview after up/down | 95 | There are already entries in Cardview after up/down |
97 | - Personal Details: Anniversary zeigt Fantasie-Werte | 96 | - Personal Details: Anniversary zeigt Fantasie-Werte |
98 | - Unfiled shown just in Category "All" and "Unfiled". | 97 | - Unfiled shown just in Category "All" and "Unfiled". |
99 | - After finising search and after Edit: Clear Picker | 98 | - After finising search and after Edit: Clear Picker |
100 | - After Edit: Table position back to edited entry. | 99 | - After Edit: Table position back to edited entry. |
101 | - Optimize Table Update... | 100 | - Optimize Table Update... |
102 | - Change MyDialog to Config | 101 | - Change MyDialog to Config |
103 | - Store position and state of toolbar | 102 | - Store position and state of toolbar |
104 | - Searchwidget closed: Selected user is jumping | 103 | - Searchwidget closed: Selected user is jumping |
105 | - Wenn suchen beendet, dann dauert das Tabellenupdate (was überhaupt überflüssig ist) | 104 | - Wenn suchen beendet, dann dauert das Tabellenupdate (was überhaupt überflüssig ist) |
106 | zu lange.. | 105 | zu lange.. |
107 | - VCARD: Import of Anniversary does not work correctly (currently disabled) | 106 | - VCARD: Import of Anniversary does not work correctly (currently disabled) |
108 | - Name order selected in "contacteditor" not used in list view. | 107 | - Name order selected in "contacteditor" not used in list view. |
109 | - OK-Key does not switch from Detailview (ablable) to Listview | 108 | - OK-Key does not switch from Detailview (ablable) to Listview |
110 | - Receiving of beams should open a dialog | 109 | - Receiving of beams should open a dialog |
110 | - Fix start of opie-mail | ||
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index 12dc24e..68fcf1e 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp | |||
@@ -47,199 +47,199 @@ | |||
47 | #include <qaction.h> | 47 | #include <qaction.h> |
48 | #include <qdialog.h> | 48 | #include <qdialog.h> |
49 | #include <qdir.h> | 49 | #include <qdir.h> |
50 | #include <qfile.h> | 50 | #include <qfile.h> |
51 | #include <qimage.h> | 51 | #include <qimage.h> |
52 | #include <qlayout.h> | 52 | #include <qlayout.h> |
53 | #include <qmessagebox.h> | 53 | #include <qmessagebox.h> |
54 | #include <qpixmap.h> | 54 | #include <qpixmap.h> |
55 | #include <qpopupmenu.h> | 55 | #include <qpopupmenu.h> |
56 | #include <qstringlist.h> | 56 | #include <qstringlist.h> |
57 | #include <qtoolbutton.h> | 57 | #include <qtoolbutton.h> |
58 | #include <qwhatsthis.h> | 58 | #include <qwhatsthis.h> |
59 | #include <qdatetime.h> | 59 | #include <qdatetime.h> |
60 | 60 | ||
61 | #include <stdlib.h> | 61 | #include <stdlib.h> |
62 | #include <sys/stat.h> | 62 | #include <sys/stat.h> |
63 | #include <sys/types.h> | 63 | #include <sys/types.h> |
64 | #include <fcntl.h> | 64 | #include <fcntl.h> |
65 | #include <unistd.h> | 65 | #include <unistd.h> |
66 | 66 | ||
67 | 67 | ||
68 | #include "picker.h" | 68 | #include "picker.h" |
69 | #include "configdlg.h" | 69 | #include "configdlg.h" |
70 | 70 | ||
71 | extern QString addressbookPersonalVCardName(); | 71 | extern QString addressbookPersonalVCardName(); |
72 | 72 | ||
73 | AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, | 73 | AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, |
74 | WFlags f ) | 74 | WFlags f ) |
75 | : QMainWindow( parent, name, f ), | 75 | : QMainWindow( parent, name, f ), |
76 | catMenu (0l), | 76 | catMenu (0l), |
77 | abEditor(0l), | 77 | abEditor(0l), |
78 | syncing(FALSE), | 78 | syncing(FALSE), |
79 | m_tableViewButton(0l), | 79 | m_tableViewButton(0l), |
80 | m_cardViewButton(0l) | 80 | m_cardViewButton(0l) |
81 | { | 81 | { |
82 | isLoading = true; | 82 | isLoading = true; |
83 | 83 | ||
84 | m_config.load(); | 84 | m_config.load(); |
85 | 85 | ||
86 | setCaption( tr("Contacts") ); | 86 | setCaption( tr("Contacts") ); |
87 | setIcon( Resource::loadPixmap( "AddressBook" ) ); | 87 | setIcon( Resource::loadPixmap( "AddressBook" ) ); |
88 | 88 | ||
89 | // Settings for Main Menu | 89 | // Settings for Main Menu |
90 | setToolBarsMovable( true ); | 90 | setToolBarsMovable( true ); |
91 | setRightJustification( true ); | 91 | setRightJustification( true ); |
92 | 92 | ||
93 | // Create Toolbar | 93 | // Create Toolbar |
94 | listTools = new QPEToolBar( this, "list operations" ); | 94 | listTools = new QPEToolBar( this, "list operations" ); |
95 | listTools->setHorizontalStretchable( true ); | 95 | listTools->setHorizontalStretchable( true ); |
96 | addToolBar( listTools ); | 96 | addToolBar( listTools ); |
97 | moveToolBar( listTools, m_config.getToolBarPos() ); | 97 | moveToolBar( listTools, m_config.getToolBarPos() ); |
98 | 98 | ||
99 | QPEMenuBar *mbList = new QPEMenuBar( this ); | 99 | QPEMenuBar *mbList = new QPEMenuBar( this ); |
100 | mbList->setMargin( 0 ); | 100 | mbList->setMargin( 0 ); |
101 | 101 | ||
102 | QPopupMenu *edit = new QPopupMenu( mbList ); | 102 | QPopupMenu *edit = new QPopupMenu( mbList ); |
103 | mbList->insertItem( tr( "Contact" ), edit ); | 103 | mbList->insertItem( tr( "Contact" ), edit ); |
104 | 104 | ||
105 | 105 | ||
106 | // View Icons | 106 | // View Icons |
107 | m_tableViewButton = new QAction( tr( "List" ), Resource::loadPixmap( "datebook/weeklst" ), | 107 | m_tableViewButton = new QAction( tr( "List" ), Resource::loadPixmap( "datebook/weeklst" ), |
108 | QString::null, 0, this, 0 ); | 108 | QString::null, 0, this, 0 ); |
109 | connect( m_tableViewButton, SIGNAL( activated() ), this, SLOT( slotListView() ) ); | 109 | connect( m_tableViewButton, SIGNAL( activated() ), this, SLOT( slotListView() ) ); |
110 | m_tableViewButton->setToggleAction( true ); | 110 | m_tableViewButton->setToggleAction( true ); |
111 | m_tableViewButton->addTo( listTools ); | 111 | m_tableViewButton->addTo( listTools ); |
112 | m_cardViewButton = new QAction( tr( "Card" ), Resource::loadPixmap( "day" ), QString::null, 0, this, 0 ); | 112 | m_cardViewButton = new QAction( tr( "Card" ), Resource::loadPixmap( "day" ), QString::null, 0, this, 0 ); |
113 | connect( m_cardViewButton, SIGNAL( activated() ), this, SLOT( slotCardView() ) ); | 113 | connect( m_cardViewButton, SIGNAL( activated() ), this, SLOT( slotCardView() ) ); |
114 | m_cardViewButton->setToggleAction( true ); | 114 | m_cardViewButton->setToggleAction( true ); |
115 | m_cardViewButton->addTo( listTools ); | 115 | m_cardViewButton->addTo( listTools ); |
116 | 116 | ||
117 | listTools->addSeparator(); | 117 | listTools->addSeparator(); |
118 | 118 | ||
119 | // Other Buttons | 119 | // Other Buttons |
120 | QAction *a = new QAction( tr( "New" ), Resource::loadPixmap( "new" ), QString::null, | 120 | QAction *a = new QAction( tr( "New" ), Resource::loadPixmap( "new" ), QString::null, |
121 | 0, this, 0 ); | 121 | 0, this, 0 ); |
122 | actionNew = a; | 122 | actionNew = a; |
123 | connect( a, SIGNAL( activated() ), this, SLOT( slotListNew() ) ); | 123 | connect( a, SIGNAL( activated() ), this, SLOT( slotListNew() ) ); |
124 | a->addTo( edit ); | 124 | a->addTo( edit ); |
125 | a->addTo( listTools ); | 125 | a->addTo( listTools ); |
126 | 126 | ||
127 | a = new QAction( tr( "Edit" ), Resource::loadPixmap( "edit" ), QString::null, | 127 | a = new QAction( tr( "Edit" ), Resource::loadPixmap( "edit" ), QString::null, |
128 | 0, this, 0 ); | 128 | 0, this, 0 ); |
129 | actionEdit = a; | 129 | actionEdit = a; |
130 | connect( a, SIGNAL( activated() ), this, SLOT( slotViewEdit() ) ); | 130 | connect( a, SIGNAL( activated() ), this, SLOT( slotViewEdit() ) ); |
131 | a->addTo( edit ); | 131 | a->addTo( edit ); |
132 | a->addTo( listTools ); | 132 | a->addTo( listTools ); |
133 | 133 | ||
134 | a = new QAction( tr( "Delete" ), Resource::loadPixmap( "trash" ), QString::null, | 134 | a = new QAction( tr( "Delete" ), Resource::loadPixmap( "trash" ), QString::null, |
135 | 0, this, 0 ); | 135 | 0, this, 0 ); |
136 | actionTrash = a; | 136 | actionTrash = a; |
137 | connect( a, SIGNAL( activated() ), this, SLOT( slotListDelete() ) ); | 137 | connect( a, SIGNAL( activated() ), this, SLOT( slotListDelete() ) ); |
138 | a->addTo( edit ); | 138 | a->addTo( edit ); |
139 | a->addTo( listTools ); | 139 | a->addTo( listTools ); |
140 | 140 | ||
141 | 141 | ||
142 | // make it possible to go directly to businesscard via qcop call | 142 | // make it possible to go directly to businesscard via qcop call |
143 | #if defined(Q_WS_QWS) | 143 | //#if defined(Q_WS_QWS) // Why this ? (se) |
144 | #if !defined(QT_NO_COP) | 144 | #if !defined(QT_NO_COP) |
145 | QCopChannel *addressChannel = new QCopChannel("QPE/Addressbook" , this ); | 145 | QCopChannel *addressChannel = new QCopChannel("QPE/Addressbook" , this ); |
146 | connect (addressChannel, SIGNAL( received(const QCString &, const QByteArray &)), | 146 | connect (addressChannel, SIGNAL( received(const QCString &, const QByteArray &)), |
147 | this, SLOT ( appMessage(const QCString &, const QByteArray &) ) ); | 147 | this, SLOT ( appMessage(const QCString &, const QByteArray &) ) ); |
148 | #endif | 148 | #endif |
149 | #endif | 149 | // #endif |
150 | a = new QAction( tr( "Find" ), Resource::loadPixmap( "mag" ), | 150 | a = new QAction( tr( "Find" ), Resource::loadPixmap( "mag" ), |
151 | QString::null, 0, this, 0 ); | 151 | QString::null, 0, this, 0 ); |
152 | actionFind = a; | 152 | actionFind = a; |
153 | connect( a, SIGNAL(activated()), this, SLOT( slotFindOpen()) ); | 153 | connect( a, SIGNAL(activated()), this, SLOT( slotFindOpen()) ); |
154 | a->addTo( edit ); | 154 | a->addTo( edit ); |
155 | a->addTo( listTools ); | 155 | a->addTo( listTools ); |
156 | 156 | ||
157 | // Much better search widget, taken from QTReader.. (se) | 157 | // Much better search widget, taken from QTReader.. (se) |
158 | searchBar = new OFloatBar( "Search", this, QMainWindow::Top, TRUE ); | 158 | searchBar = new OFloatBar( "Search", this, QMainWindow::Top, TRUE ); |
159 | searchBar->setHorizontalStretchable( TRUE ); | 159 | searchBar->setHorizontalStretchable( TRUE ); |
160 | searchBar->hide(); | 160 | searchBar->hide(); |
161 | searchEdit = new QLineEdit( searchBar, "searchEdit" ); | 161 | searchEdit = new QLineEdit( searchBar, "searchEdit" ); |
162 | 162 | ||
163 | // QFont f("unifont", 16 /*, QFont::Bold*/); | 163 | // QFont f("unifont", 16 /*, QFont::Bold*/); |
164 | // searchEdit->setFont( f ); | 164 | // searchEdit->setFont( f ); |
165 | 165 | ||
166 | searchBar->setStretchableWidget( searchEdit ); | 166 | searchBar->setStretchableWidget( searchEdit ); |
167 | connect( searchEdit, SIGNAL( returnPressed( ) ), | 167 | connect( searchEdit, SIGNAL( returnPressed( ) ), |
168 | this, SLOT( slotFind( ) ) ); | 168 | this, SLOT( slotFind( ) ) ); |
169 | 169 | ||
170 | a = new QAction( tr( "Start Search" ), Resource::loadPixmap( "enter" ), QString::null, 0, this, 0 ); | 170 | a = new QAction( tr( "Start Search" ), Resource::loadPixmap( "enter" ), QString::null, 0, this, 0 ); |
171 | connect( a, SIGNAL( activated() ), this, SLOT( slotFind() ) ); | 171 | connect( a, SIGNAL( activated() ), this, SLOT( slotFind() ) ); |
172 | a->addTo( searchBar ); | 172 | a->addTo( searchBar ); |
173 | 173 | ||
174 | a = new QAction( tr( "Close Find" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); | 174 | a = new QAction( tr( "Close Find" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); |
175 | connect( a, SIGNAL( activated() ), this, SLOT( slotFindClose() ) ); | 175 | connect( a, SIGNAL( activated() ), this, SLOT( slotFindClose() ) ); |
176 | a->addTo( searchBar ); | 176 | a->addTo( searchBar ); |
177 | 177 | ||
178 | a = new QAction( tr( "Write Mail To" ), Resource::loadPixmap( "mail/sendmail" ), | 178 | a = new QAction( tr( "Write Mail To" ), Resource::loadPixmap( "mail/sendmail" ), |
179 | QString::null, 0, this, 0 ); | 179 | QString::null, 0, this, 0 ); |
180 | //a->setEnabled( FALSE ); we got support for it now :) zecke | 180 | //a->setEnabled( FALSE ); we got support for it now :) zecke |
181 | actionMail = a; | 181 | actionMail = a; |
182 | connect( a, SIGNAL( activated() ), this, SLOT( writeMail() ) ); | 182 | connect( a, SIGNAL( activated() ), this, SLOT( writeMail() ) ); |
183 | a->addTo( edit ); | 183 | a->addTo( edit ); |
184 | a->addTo( listTools ); | 184 | a->addTo( listTools ); |
185 | 185 | ||
186 | if ( Ir::supported() ) { | 186 | if ( Ir::supported() ) { |
187 | a = new QAction( tr ("Beam Entry" ), Resource::loadPixmap( "beam" ), QString::null, | 187 | a = new QAction( tr ("Beam Entry" ), Resource::loadPixmap( "beam" ), QString::null, |
188 | 0, this, 0 ); | 188 | 0, this, 0 ); |
189 | actionBeam = a; | 189 | actionBeam = a; |
190 | connect( a, SIGNAL( activated() ), this, SLOT( slotBeam() ) ); | 190 | connect( a, SIGNAL( activated() ), this, SLOT( slotBeam() ) ); |
191 | a->addTo( edit ); | 191 | a->addTo( edit ); |
192 | a->addTo( listTools ); | 192 | a->addTo( listTools ); |
193 | } | 193 | } |
194 | 194 | ||
195 | edit->insertSeparator(); | 195 | edit->insertSeparator(); |
196 | 196 | ||
197 | a = new QAction( tr("Import vCard"), QString::null, 0, 0); | 197 | a = new QAction( tr("Import vCard"), QString::null, 0, 0); |
198 | actionPersonal = a; | 198 | actionPersonal = a; |
199 | connect( a, SIGNAL( activated() ), this, SLOT( importvCard() ) ); | 199 | connect( a, SIGNAL( activated() ), this, SLOT( importvCard() ) ); |
200 | a->addTo( edit ); | 200 | a->addTo( edit ); |
201 | 201 | ||
202 | edit->insertSeparator(); | 202 | edit->insertSeparator(); |
203 | 203 | ||
204 | a = new QAction( tr("My Personal Details"), QString::null, 0, 0, 0, TRUE ); | 204 | a = new QAction( tr("My Personal Details"), QString::null, 0, 0, 0, TRUE ); |
205 | actionPersonal = a; | 205 | actionPersonal = a; |
206 | connect( a, SIGNAL( activated() ), this, SLOT( slotPersonalView() ) ); | 206 | connect( a, SIGNAL( activated() ), this, SLOT( slotPersonalView() ) ); |
207 | a->addTo( edit ); | 207 | a->addTo( edit ); |
208 | 208 | ||
209 | 209 | ||
210 | #ifdef __DEBUG_RELEASE | 210 | #ifdef __DEBUG_RELEASE |
211 | // Remove this function for public Release ! This is only | 211 | // Remove this function for public Release ! This is only |
212 | // for debug purposes .. | 212 | // for debug purposes .. |
213 | a = new QAction( tr( "Save all Data"), QString::null, 0, 0 ); | 213 | a = new QAction( tr( "Save all Data"), QString::null, 0, 0 ); |
214 | connect( a, SIGNAL( activated() ), this , SLOT( slotSave() ) ); | 214 | connect( a, SIGNAL( activated() ), this , SLOT( slotSave() ) ); |
215 | a->addTo( edit ); | 215 | a->addTo( edit ); |
216 | #endif | 216 | #endif |
217 | a = new QAction( tr( "Config" ), Resource::loadPixmap( "today/config" ), QString::null, | 217 | a = new QAction( tr( "Config" ), Resource::loadPixmap( "today/config" ), QString::null, |
218 | 0, this, 0 ); | 218 | 0, this, 0 ); |
219 | connect( a, SIGNAL( activated() ), this, SLOT( slotConfig() ) ); | 219 | connect( a, SIGNAL( activated() ), this, SLOT( slotConfig() ) ); |
220 | a->addTo( edit ); | 220 | a->addTo( edit ); |
221 | 221 | ||
222 | // Create Views | 222 | // Create Views |
223 | listContainer = new QWidget( this ); | 223 | listContainer = new QWidget( this ); |
224 | QVBoxLayout *vb = new QVBoxLayout( listContainer ); | 224 | QVBoxLayout *vb = new QVBoxLayout( listContainer ); |
225 | 225 | ||
226 | m_abView = new AbView( listContainer, m_config.orderList() ); | 226 | m_abView = new AbView( listContainer, m_config.orderList() ); |
227 | vb->addWidget( m_abView ); | 227 | vb->addWidget( m_abView ); |
228 | // abList->setHScrollBarMode( QScrollView::AlwaysOff ); | 228 | // abList->setHScrollBarMode( QScrollView::AlwaysOff ); |
229 | connect( m_abView, SIGNAL( signalViewSwitched ( int ) ), | 229 | connect( m_abView, SIGNAL( signalViewSwitched ( int ) ), |
230 | this, SLOT( slotViewSwitched( int ) ) ); | 230 | this, SLOT( slotViewSwitched( int ) ) ); |
231 | 231 | ||
232 | 232 | ||
233 | QObject::connect( m_abView, SIGNAL(signalNotFound()), this, SLOT(slotNotFound()) ); | 233 | QObject::connect( m_abView, SIGNAL(signalNotFound()), this, SLOT(slotNotFound()) ); |
234 | 234 | ||
235 | m_abView->load(); | 235 | m_abView->load(); |
236 | 236 | ||
237 | // Letter Picker | 237 | // Letter Picker |
238 | pLabel = new LetterPicker( listContainer ); | 238 | pLabel = new LetterPicker( listContainer ); |
239 | connect(pLabel, SIGNAL(letterClicked(char)), this, SLOT(slotSetLetter(char))); | 239 | connect(pLabel, SIGNAL(letterClicked(char)), this, SLOT(slotSetLetter(char))); |
240 | connect(m_abView, SIGNAL( signalClearLetterPicker() ), pLabel, SLOT( clear() ) ); | 240 | connect(m_abView, SIGNAL( signalClearLetterPicker() ), pLabel, SLOT( clear() ) ); |
241 | 241 | ||
242 | vb->addWidget( pLabel ); | 242 | vb->addWidget( pLabel ); |
243 | 243 | ||
244 | // Category Menu | 244 | // Category Menu |
245 | catMenu = new QPopupMenu( this ); | 245 | catMenu = new QPopupMenu( this ); |