-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 16 | ||||
-rw-r--r-- | kabc/phonenumber.cpp | 34 | ||||
-rw-r--r-- | kaddressbook/emaileditwidget.cpp | 2 | ||||
-rw-r--r-- | kaddressbook/phoneeditwidget.cpp | 37 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 22 |
5 files changed, 73 insertions, 38 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 1a045f3..f8f8b96 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1022,5 +1022,5 @@ | |||
1022 | { "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, | 1022 | { "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, |
1023 | { "<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n","<p><b>+,-</b> : Zoom rein/raus Agenda | <b>A</b>: Wechsle Ganztag Agenda Höhe</p>\n" }, | 1023 | { "<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n","<p><b>+,-</b> : Zoom rein/raus Agenda | <b>A</b>: Wechsle Ganztag Agenda Höhe</p>\n" }, |
1024 | { "<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X</b>: Zeige/verstecke Datumsnavigator</p>\n" }, | 1024 | { "<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X+ctrl</b>: Zeige/verstecke Datumsnavigator</p>\n" }, |
1025 | { "<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n","<p><b>T</b>: Gehe zu Heute | <b>T+ctrl</b>: Neues Todo</p>\n" }, | 1025 | { "<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n","<p><b>T</b>: Gehe zu Heute | <b>T+ctrl</b>: Neues Todo</p>\n" }, |
1026 | { "<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n","<p><b>E</b>: Editiere selektiertes Item |<b> E+ctrl</b>: Neuer Termin</p>\n" }, | 1026 | { "<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n","<p><b>E</b>: Editiere selektiertes Item |<b> E+ctrl</b>: Neuer Termin</p>\n" }, |
@@ -1028,5 +1028,5 @@ | |||
1028 | { "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochenansicht | <b>U</b>: Wochenansicht</p>\n" }, | 1028 | { "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochenansicht | <b>U</b>: Wochenansicht</p>\n" }, |
1029 | { "<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n","<p><b>V</b>: Todo Ansicht | <b>L</b>: Termin Listen Ansicht</p>\n" }, | 1029 | { "<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n","<p><b>V</b>: Todo Ansicht | <b>L</b>: Termin Listen Ansicht</p>\n" }, |
1030 | { "<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ","<p><b>N</b>: Nächste-Tage Ansicht | <b>W</b>: What's Next Ansicht\n " }, | 1030 | { "<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ","<p><b>X</b>: Nächste-X-Tage Ansicht | <b>W</b>: What's Next Ansicht\n " }, |
1031 | { "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" }, | 1031 | { "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" }, |
1032 | { "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" }, | 1032 | { "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" }, |
@@ -1327,4 +1327,16 @@ | |||
1327 | { "Printout Mode","Druck Modus" }, | 1327 | { "Printout Mode","Druck Modus" }, |
1328 | { "Filter menu icon","Filtermenu Icon" }, | 1328 | { "Filter menu icon","Filtermenu Icon" }, |
1329 | { "<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n","<p><b>A+(shift oder ctrl)</b>: Zeige Zeit bis zum nächsten Alarm</p>\n" }, | ||
1330 | { "<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n","<p><b>N</b>: Wechsle zur nächsten Ansicht, die ein Icon in der Toolbar hat</p>\n" }, | ||
1331 | { "","" }, | ||
1332 | { "","" }, | ||
1333 | { "","" }, | ||
1334 | { "","" }, | ||
1335 | { "","" }, | ||
1336 | { "","" }, | ||
1337 | { "","" }, | ||
1338 | { "","" }, | ||
1339 | { "","" }, | ||
1340 | { "","" }, | ||
1329 | { "","" }, | 1341 | { "","" }, |
1330 | { "","" }, | 1342 | { "","" }, |
diff --git a/kabc/phonenumber.cpp b/kabc/phonenumber.cpp index abb3b3b..041effc 100644 --- a/kabc/phonenumber.cpp +++ b/kabc/phonenumber.cpp | |||
@@ -185,15 +185,15 @@ QString PhoneNumber::typeLabel( int type ) | |||
185 | if (!typeString.isEmpty()) | 185 | if (!typeString.isEmpty()) |
186 | typeString += " "; | 186 | typeString += " "; |
187 | |||
188 | if ((type & Cell) == Cell) | 187 | if ((type & Cell) == Cell) |
189 | typeString += i18n("Mobile"); | 188 | typeString += i18n("Mobile") +" "; |
190 | else if ((type & Fax) == Fax) | 189 | if ((type & Sip) == Sip) |
190 | typeString += i18n("SIP")+" "; | ||
191 | if ((type & Car) == Car) | ||
192 | typeString += i18n("Car")+" "; | ||
193 | |||
194 | if ((type & Fax) == Fax) | ||
191 | typeString += i18n("Fax"); | 195 | typeString += i18n("Fax"); |
192 | else if ((type & Msg) == Msg) | 196 | else if ((type & Msg) == Msg) |
193 | typeString += i18n("Messenger"); | 197 | typeString += i18n("Messenger"); |
194 | else if ((type & Voice) == Voice) { | ||
195 | // add nothing in case of the Voice flag | ||
196 | // typeString += i18n("Voice"); | ||
197 | } | ||
198 | else if ((type & Video) == Video) | 198 | else if ((type & Video) == Video) |
199 | typeString += i18n("Video"); | 199 | typeString += i18n("Video"); |
@@ -202,6 +202,4 @@ QString PhoneNumber::typeLabel( int type ) | |||
202 | else if ((type & Modem) == Modem) | 202 | else if ((type & Modem) == Modem) |
203 | typeString += i18n("Modem"); | 203 | typeString += i18n("Modem"); |
204 | else if ((type & Car) == Car) | ||
205 | typeString += i18n("Car"); | ||
206 | else if ((type & Isdn) == Isdn) | 204 | else if ((type & Isdn) == Isdn) |
207 | typeString += i18n("ISDN"); | 205 | typeString += i18n("ISDN"); |
@@ -210,10 +208,5 @@ QString PhoneNumber::typeLabel( int type ) | |||
210 | else if ((type & Pager) == Pager) | 208 | else if ((type & Pager) == Pager) |
211 | typeString += i18n("Pager"); | 209 | typeString += i18n("Pager"); |
212 | else if ((type & Sip) == Sip) | ||
213 | typeString += i18n("SIP"); | ||
214 | |||
215 | // add the prefered flag | 210 | // add the prefered flag |
216 | if (!typeString.isEmpty()) | ||
217 | typeString += " "; | ||
218 | /* | 211 | /* |
219 | if ((type & Pref) == Pref) | 212 | if ((type & Pref) == Pref) |
@@ -221,9 +214,12 @@ QString PhoneNumber::typeLabel( int type ) | |||
221 | */ | 214 | */ |
222 | //if we still have no match, return "other" | 215 | //if we still have no match, return "other" |
223 | if (typeString.isEmpty()) | 216 | if (typeString.isEmpty()) { |
224 | return i18n("Other"); | 217 | if ((type & Voice) == Voice) |
225 | 218 | return i18n("Voice"); | |
226 | 219 | else | |
227 | return typeString; | 220 | return i18n("Other"); |
221 | } | ||
222 | |||
223 | return typeString.stripWhiteSpace(); | ||
228 | } | 224 | } |
229 | 225 | ||
diff --git a/kaddressbook/emaileditwidget.cpp b/kaddressbook/emaileditwidget.cpp index 0e01b02..e72face 100644 --- a/kaddressbook/emaileditwidget.cpp +++ b/kaddressbook/emaileditwidget.cpp | |||
@@ -190,4 +190,5 @@ qDebug("EmailEditDialog::EmailEditDialog has to be changed (lowPrio)"); | |||
190 | // set default state | 190 | // set default state |
191 | selectionChanged( -1 ); | 191 | selectionChanged( -1 ); |
192 | mEmailEdit->setFocus(); | ||
192 | 193 | ||
193 | #ifndef KAB_EMBEDDED | 194 | #ifndef KAB_EMBEDDED |
@@ -226,4 +227,5 @@ void EmailEditDialog::edit() | |||
226 | { | 227 | { |
227 | mEmailEdit->setText( mEmailListBox->currentText() ); | 228 | mEmailEdit->setText( mEmailListBox->currentText() ); |
229 | mEmailListBox->removeItem( mEmailListBox->currentItem() ); | ||
228 | mEmailEdit->setFocus(); | 230 | mEmailEdit->setFocus(); |
229 | } | 231 | } |
diff --git a/kaddressbook/phoneeditwidget.cpp b/kaddressbook/phoneeditwidget.cpp index 19bb676..a435959 100644 --- a/kaddressbook/phoneeditwidget.cpp +++ b/kaddressbook/phoneeditwidget.cpp | |||
@@ -214,5 +214,6 @@ void PhoneEditWidget::edit() | |||
214 | if ( dlg.exec() ) { | 214 | if ( dlg.exec() ) { |
215 | if ( dlg.changed() ) { | 215 | if ( dlg.changed() ) { |
216 | mPhoneList = dlg.phoneNumbers(); | 216 | KABC::PhoneNumber::List list = dlg.phoneNumbers(); |
217 | setPhoneNumbers( list ); | ||
217 | updateCombos(); | 218 | updateCombos(); |
218 | updateLineEdits(); | 219 | updateLineEdits(); |
@@ -339,5 +340,8 @@ private: | |||
339 | PhoneViewItem::PhoneViewItem( QListView *parent, const KABC::PhoneNumber &number ) | 340 | PhoneViewItem::PhoneViewItem( QListView *parent, const KABC::PhoneNumber &number ) |
340 | : QListViewItem( parent ), mPhoneNumber( number ) | 341 | : QListViewItem( parent ), mPhoneNumber( number ) |
341 | { | 342 | { |
343 | #ifdef DESKTOP_VERSION | ||
344 | setRenameEnabled ( 0, true ); | ||
345 | #endif | ||
342 | makeText(); | 346 | makeText(); |
343 | } | 347 | } |
@@ -407,9 +411,26 @@ void PhoneEditDialog::slotAddPhoneNumber() | |||
407 | 411 | ||
408 | if ( dlg.exec() ) { | 412 | if ( dlg.exec() ) { |
409 | KABC::PhoneNumber phoneNumber = dlg.phoneNumber(); | 413 | QListViewItem* i = mListView->firstChild(); |
410 | mPhoneNumberList.append( phoneNumber ); | 414 | KABC::PhoneNumber phoneNumber = dlg.phoneNumber(); |
411 | new PhoneViewItem( mListView, phoneNumber ); | 415 | bool insert = true; |
412 | 416 | while ( i ) { | |
413 | mChanged = true; | 417 | PhoneViewItem* p = ( PhoneViewItem* ) i; |
418 | KABC::PhoneNumber pn = p->phoneNumber(); | ||
419 | if ( (pn.type() | KABC::PhoneNumber::Pref) == (phoneNumber.type() | KABC::PhoneNumber::Pref) ) { | ||
420 | if ( p->text(0).isEmpty()) { | ||
421 | p->setPhoneNumber( phoneNumber ); | ||
422 | mPhoneNumberList.remove( pn ); | ||
423 | mPhoneNumberList.append( phoneNumber ); | ||
424 | insert = false; | ||
425 | break; | ||
426 | } | ||
427 | } | ||
428 | i = i->nextSibling(); | ||
429 | } | ||
430 | if ( insert ) { | ||
431 | mPhoneNumberList.append( phoneNumber ); | ||
432 | new PhoneViewItem( mListView, phoneNumber ); | ||
433 | } | ||
434 | mChanged = true; | ||
414 | } | 435 | } |
415 | } | 436 | } |
@@ -505,4 +526,6 @@ PhoneTypeDialog::PhoneTypeDialog( const KABC::PhoneNumber &phoneNumber, | |||
505 | 526 | ||
506 | mPreferredBox->setChecked( mPhoneNumber.type() & KABC::PhoneNumber::Pref ); | 527 | mPreferredBox->setChecked( mPhoneNumber.type() & KABC::PhoneNumber::Pref ); |
528 | mNumber->setFocus(); | ||
529 | mNumber->setSelection( 0, 1024); | ||
507 | } | 530 | } |
508 | 531 | ||
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 09a0880..d98915b 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1440,4 +1440,6 @@ void MainWindow::keyBindings() | |||
1440 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + | 1440 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + |
1441 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ | 1441 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ |
1442 | i18n("<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n") + | ||
1443 | i18n("<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n") + | ||
1442 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + | 1444 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + |
1443 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ | 1445 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ |
@@ -1445,5 +1447,5 @@ void MainWindow::keyBindings() | |||
1445 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ | 1447 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ |
1446 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ | 1448 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ |
1447 | i18n("<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ")+ | 1449 | i18n("<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ")+ |
1448 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ | 1450 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ |
1449 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ | 1451 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ |
@@ -1452,5 +1454,5 @@ void MainWindow::keyBindings() | |||
1452 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ | 1454 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ |
1453 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ | 1455 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ |
1454 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n")+ | 1456 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n")+ |
1455 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ | 1457 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ |
1456 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ | 1458 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ |
@@ -1901,10 +1903,5 @@ void MainWindow::keyPressEvent ( QKeyEvent * e ) | |||
1901 | break; | 1903 | break; |
1902 | case Qt::Key_N: | 1904 | case Qt::Key_N: |
1903 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) | 1905 | mView->viewManager()->showNextView(); |
1904 | mView->viewManager()->showNextView(); | ||
1905 | else { | ||
1906 | mView->viewManager()->showNextXView(); | ||
1907 | showSelectedDates = true; | ||
1908 | } | ||
1909 | break; | 1906 | break; |
1910 | case Qt::Key_V: | 1907 | case Qt::Key_V: |
@@ -1923,6 +1920,11 @@ void MainWindow::keyPressEvent ( QKeyEvent * e ) | |||
1923 | mView->toggleFilter(); | 1920 | mView->toggleFilter(); |
1924 | break; | 1921 | break; |
1925 | case Qt::Key_X: | 1922 | case Qt::Key_X: |
1926 | mView->toggleDateNavigatorWidget(); | 1923 | if ( e->state() == Qt::ControlButton ) |
1924 | mView->toggleDateNavigatorWidget(); | ||
1925 | else { | ||
1926 | mView->viewManager()->showNextXView(); | ||
1927 | showSelectedDates = true; | ||
1928 | } | ||
1927 | break; | 1929 | break; |
1928 | case Qt::Key_Space: | 1930 | case Qt::Key_Space: |