-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 16 | ||||
-rw-r--r-- | kabc/phonenumber.cpp | 30 | ||||
-rw-r--r-- | kaddressbook/emaileditwidget.cpp | 2 | ||||
-rw-r--r-- | kaddressbook/phoneeditwidget.cpp | 27 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 16 |
5 files changed, 63 insertions, 28 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 | |||
@@ -1021,13 +1021,13 @@ | |||
1021 | { "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, | 1021 | { "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</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" }, | 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" }, |
1027 | { "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monatsansicht</p>\n" }, | 1027 | { "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monatsansicht</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" }, | 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" }, |
1033 | { "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" }, | 1033 | { "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" }, |
@@ -1326,6 +1326,18 @@ | |||
1326 | { "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, | 1326 | { "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, |
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 | { "","" }, |
1331 | { "","" }, \ No newline at end of file | 1343 | { "","" }, \ No newline at end of file |
diff --git a/kabc/phonenumber.cpp b/kabc/phonenumber.cpp index abb3b3b..041effc 100644 --- a/kabc/phonenumber.cpp +++ b/kabc/phonenumber.cpp | |||
@@ -184,47 +184,43 @@ QString PhoneNumber::typeLabel( int type ) | |||
184 | 184 | ||
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"); |
200 | else if ((type & Bbs) == Bbs) | 200 | else if ((type & Bbs) == Bbs) |
201 | typeString += i18n("Mailbox"); | 201 | typeString += i18n("Mailbox"); |
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"); |
208 | else if ((type & Pcs) == Pcs) | 206 | else if ((type & Pcs) == Pcs) |
209 | typeString += i18n("PCS"); | 207 | typeString += i18n("PCS"); |
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) |
220 | typeString += i18n("(p)"); | 213 | typeString += i18n("(p)"); |
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()) { |
217 | if ((type & Voice) == Voice) | ||
218 | return i18n("Voice"); | ||
219 | else | ||
224 | return i18n("Other"); | 220 | return i18n("Other"); |
221 | } | ||
225 | 222 | ||
226 | 223 | return typeString.stripWhiteSpace(); | |
227 | return typeString; | ||
228 | } | 224 | } |
229 | 225 | ||
230 | QDataStream &KABC::operator<<( QDataStream &s, const PhoneNumber &phone ) | 226 | QDataStream &KABC::operator<<( QDataStream &s, const PhoneNumber &phone ) |
diff --git a/kaddressbook/emaileditwidget.cpp b/kaddressbook/emaileditwidget.cpp index 0e01b02..e72face 100644 --- a/kaddressbook/emaileditwidget.cpp +++ b/kaddressbook/emaileditwidget.cpp | |||
@@ -189,6 +189,7 @@ qDebug("EmailEditDialog::EmailEditDialog has to be changed (lowPrio)"); | |||
189 | mEmailListBox->insertStringList( items ); | 189 | mEmailListBox->insertStringList( items ); |
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 |
194 | KAcceleratorManager::manage( this ); | 195 | KAcceleratorManager::manage( this ); |
@@ -225,6 +226,7 @@ void EmailEditDialog::add() | |||
225 | void EmailEditDialog::edit() | 226 | 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 | } |
230 | 232 | ||
diff --git a/kaddressbook/phoneeditwidget.cpp b/kaddressbook/phoneeditwidget.cpp index 19bb676..a435959 100644 --- a/kaddressbook/phoneeditwidget.cpp +++ b/kaddressbook/phoneeditwidget.cpp | |||
@@ -213,7 +213,8 @@ void PhoneEditWidget::edit() | |||
213 | 213 | ||
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(); |
219 | emit modified(); | 220 | emit modified(); |
@@ -339,6 +340,9 @@ 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 | } |
344 | 348 | ||
@@ -406,10 +410,27 @@ void PhoneEditDialog::slotAddPhoneNumber() | |||
406 | PhoneTypeDialog dlg( tmp, this ); | 410 | PhoneTypeDialog dlg( tmp, this ); |
407 | 411 | ||
408 | if ( dlg.exec() ) { | 412 | if ( dlg.exec() ) { |
413 | QListViewItem* i = mListView->firstChild(); | ||
409 | KABC::PhoneNumber phoneNumber = dlg.phoneNumber(); | 414 | KABC::PhoneNumber phoneNumber = dlg.phoneNumber(); |
415 | bool insert = true; | ||
416 | while ( i ) { | ||
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 ) { | ||
410 | mPhoneNumberList.append( phoneNumber ); | 431 | mPhoneNumberList.append( phoneNumber ); |
411 | new PhoneViewItem( mListView, phoneNumber ); | 432 | new PhoneViewItem( mListView, phoneNumber ); |
412 | 433 | } | |
413 | mChanged = true; | 434 | mChanged = true; |
414 | } | 435 | } |
415 | } | 436 | } |
@@ -504,6 +525,8 @@ PhoneTypeDialog::PhoneTypeDialog( const KABC::PhoneNumber &phoneNumber, | |||
504 | } | 525 | } |
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 | ||
509 | KABC::PhoneNumber PhoneTypeDialog::phoneNumber() | 532 | KABC::PhoneNumber PhoneTypeDialog::phoneNumber() |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 09a0880..d98915b 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1439,19 +1439,21 @@ void MainWindow::keyBindings() | |||
1439 | QString cap = i18n("KO/Pi Keys + Colors"); | 1439 | QString cap = i18n("KO/Pi Keys + Colors"); |
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")+ |
1444 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ | 1446 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ |
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")+ |
1450 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ | 1452 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ |
1451 | i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+ | 1453 | i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+ |
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")+ |
1457 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ | 1459 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ |
@@ -1900,12 +1902,7 @@ void MainWindow::keyPressEvent ( QKeyEvent * e ) | |||
1900 | mView->viewManager()->showListView(); | 1902 | mView->viewManager()->showListView(); |
1901 | break; | 1903 | break; |
1902 | case Qt::Key_N: | 1904 | case Qt::Key_N: |
1903 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) | ||
1904 | mView->viewManager()->showNextView(); | 1905 | 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: |
1911 | mView->viewManager()->showTodoView(); | 1908 | mView->viewManager()->showTodoView(); |
@@ -1923,7 +1920,12 @@ 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: |
1923 | if ( e->state() == Qt::ControlButton ) | ||
1926 | mView->toggleDateNavigatorWidget(); | 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: |
1929 | mView->toggleExpand(); | 1931 | mView->toggleExpand(); |