author | zautrix <zautrix> | 2005-03-01 13:30:51 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-01 13:30:51 (UTC) |
commit | 81e2fbd0c031a3db209de68c190ddf4c0350d14a (patch) (unidiff) | |
tree | 14c071ce0a6c81c28480f3e9480d1c24a96c9b78 | |
parent | 43c5ba9a16a0ea0ec80c920d9161d6c49bf0f674 (diff) | |
download | kdepimpi-81e2fbd0c031a3db209de68c190ddf4c0350d14a.zip kdepimpi-81e2fbd0c031a3db209de68c190ddf4c0350d14a.tar.gz kdepimpi-81e2fbd0c031a3db209de68c190ddf4c0350d14a.tar.bz2 |
pwm gui enhancements
-rw-r--r-- | bin/kdepim/pwmanager/germantranslation.txt | 7 | ||||
-rw-r--r-- | pwmanager/pwmanager/commentbox.cpp | 4 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwm.cpp | 41 |
3 files changed, 33 insertions, 19 deletions
diff --git a/bin/kdepim/pwmanager/germantranslation.txt b/bin/kdepim/pwmanager/germantranslation.txt index 0ebc644..d481c42 100644 --- a/bin/kdepim/pwmanager/germantranslation.txt +++ b/bin/kdepim/pwmanager/germantranslation.txt | |||
@@ -1,5 +1,5 @@ | |||
1 | { " Local Time","Ortszeit" }, | 1 | { " Local Time","Ortszeit" }, |
2 | { "Default","Voreinstellungen" }, | 2 | { "Default","Default" }, |
3 | { "Configure...","Konfigurieren..." }, | 3 | { "Configure...","Konfigurieren..." }, |
4 | { "Remove sync info","Entferne Sync Info" }, | 4 | { "Remove sync info","Entferne Sync Info" }, |
5 | { "For all profiles","Für alle Profile" }, | 5 | { "For all profiles","Für alle Profile" }, |
@@ -308,7 +308,7 @@ | |||
308 | { "&Reveal","&Offen zeigen" }, | 308 | { "&Reveal","&Offen zeigen" }, |
309 | { "&Generate","&Generiere" }, | 309 | { "&Generate","&Generiere" }, |
310 | { "&Password","&Passwort" }, | 310 | { "&Password","&Passwort" }, |
311 | { "&Comments","Kommentare" }, | 311 | { "&Comments","Kommentar" }, |
312 | { "Launcher:","Launcher:" }, | 312 | { "Launcher:","Launcher:" }, |
313 | { "$d = Description","$d = Beschreibung" }, | 313 | { "$d = Description","$d = Beschreibung" }, |
314 | { "$n = Username","$n = Benutzername" }, | 314 | { "$n = Username","$n = Benutzername" }, |
@@ -345,7 +345,8 @@ | |||
345 | { "The list\n "","Die Liste\n "" }, | 345 | { "The list\n "","Die Liste\n "" }, |
346 | { "nothing to do","Nichts zu tun" }, | 346 | { "nothing to do","Nichts zu tun" }, |
347 | { "Sorry, there's nothing to save.\nPlease first add some passwords.","Sorry, es gibt nichts zu speichern.\nBitte erst Passwörter hinzufügen." }, | 347 | { "Sorry, there's nothing to save.\nPlease first add some passwords.","Sorry, es gibt nichts zu speichern.\nBitte erst Passwörter hinzufügen." }, |
348 | { "","" }, | 348 | { "Add new password","Passwort hinzufügen" }, |
349 | { "Successfully saved data.","Datei gespeichert." }, | ||
349 | { "","" }, | 350 | { "","" }, |
350 | { "","" }, | 351 | { "","" }, |
351 | { "","" }, | 352 | { "","" }, |
diff --git a/pwmanager/pwmanager/commentbox.cpp b/pwmanager/pwmanager/commentbox.cpp index 4a76f36..e2d2d2b 100644 --- a/pwmanager/pwmanager/commentbox.cpp +++ b/pwmanager/pwmanager/commentbox.cpp | |||
@@ -71,7 +71,7 @@ void CommentBox::setText(const QString &text) | |||
71 | { | 71 | { |
72 | switchTo(mode_text); | 72 | switchTo(mode_text); |
73 | PWM_ASSERT(textDta); | 73 | PWM_ASSERT(textDta); |
74 | textDta->setText(i18n("Comment") + ": " + text); | 74 | textDta->setText( text); |
75 | if (!textDta->isVisible()) | 75 | if (!textDta->isVisible()) |
76 | textDta->show(); | 76 | textDta->show(); |
77 | } | 77 | } |
@@ -246,7 +246,7 @@ void CommentBox::clear() | |||
246 | 246 | ||
247 | void CommentBox::setText(const QString &text) | 247 | void CommentBox::setText(const QString &text) |
248 | { | 248 | { |
249 | QMultiLineEdit::setText(i18n("Comment") + ": " + text); | 249 | QMultiLineEdit::setText( text); |
250 | if (!this->isVisible()) | 250 | if (!this->isVisible()) |
251 | this->show(); | 251 | this->show(); |
252 | } | 252 | } |
diff --git a/pwmanager/pwmanager/pwm.cpp b/pwmanager/pwmanager/pwm.cpp index 48257ef..fc6837f 100644 --- a/pwmanager/pwmanager/pwm.cpp +++ b/pwmanager/pwmanager/pwm.cpp | |||
@@ -249,6 +249,11 @@ void PwM::initMenubar() | |||
249 | i18n("&Close"), this, | 249 | i18n("&Close"), this, |
250 | SLOT(close_slot()), 0, BUTTON_POPUP_FILE_CLOSE); | 250 | SLOT(close_slot()), 0, BUTTON_POPUP_FILE_CLOSE); |
251 | filePopup->insertSeparator(); | 251 | filePopup->insertSeparator(); |
252 | filePopup->insertItem(QIconSet(picons->loadIcon("pencil", KIcon::Small)), | ||
253 | i18n("&Add password"), this, | ||
254 | SLOT(addPwd_slot()), 0, | ||
255 | BUTTON_POPUP_MANAGE_ADD); | ||
256 | filePopup->insertSeparator(); | ||
252 | filePopup->insertItem(QIconSet(picons->loadIcon("filesave", KIcon::Small)), | 257 | filePopup->insertItem(QIconSet(picons->loadIcon("filesave", KIcon::Small)), |
253 | i18n("&Save"), this, | 258 | i18n("&Save"), this, |
254 | SLOT(save_slot()), 0, BUTTON_POPUP_FILE_SAVE); | 259 | SLOT(save_slot()), 0, BUTTON_POPUP_FILE_SAVE); |
@@ -286,10 +291,12 @@ void PwM::initMenubar() | |||
286 | i18n("I&mport"), importPopup, | 291 | i18n("I&mport"), importPopup, |
287 | BUTTON_POPUP_FILE_IMPORT); | 292 | BUTTON_POPUP_FILE_IMPORT); |
288 | filePopup->insertSeparator(); | 293 | filePopup->insertSeparator(); |
294 | #if 0 | ||
289 | filePopup->insertItem(QIconSet(picons->loadIcon("fileprint", KIcon::Small)), | 295 | filePopup->insertItem(QIconSet(picons->loadIcon("fileprint", KIcon::Small)), |
290 | i18n("&Print..."), this, | 296 | i18n("&Print..."), this, |
291 | SLOT(print_slot()), 0, BUTTON_POPUP_FILE_PRINT); | 297 | SLOT(print_slot()), 0, BUTTON_POPUP_FILE_PRINT); |
292 | filePopup->insertSeparator(); | 298 | filePopup->insertSeparator(); |
299 | #endif | ||
293 | filePopup->insertItem(QIconSet(picons->loadIcon("exit", KIcon::Small)), | 300 | filePopup->insertItem(QIconSet(picons->loadIcon("exit", KIcon::Small)), |
294 | i18n("&Quit"), this, | 301 | i18n("&Quit"), this, |
295 | SLOT(quitButton_slot()), 0, BUTTON_POPUP_FILE_QUIT); | 302 | SLOT(quitButton_slot()), 0, BUTTON_POPUP_FILE_QUIT); |
@@ -299,6 +306,7 @@ void PwM::initMenubar() | |||
299 | i18n("&Add password"), this, | 306 | i18n("&Add password"), this, |
300 | SLOT(addPwd_slot()), 0, | 307 | SLOT(addPwd_slot()), 0, |
301 | BUTTON_POPUP_MANAGE_ADD); | 308 | BUTTON_POPUP_MANAGE_ADD); |
309 | managePopup->insertSeparator(); | ||
302 | managePopup->insertItem(QIconSet(picons->loadIcon("edit", KIcon::Small)), | 310 | managePopup->insertItem(QIconSet(picons->loadIcon("edit", KIcon::Small)), |
303 | i18n("&Edit"), this, SLOT(editPwd_slot()), 0, | 311 | i18n("&Edit"), this, SLOT(editPwd_slot()), 0, |
304 | BUTTON_POPUP_MANAGE_EDIT); | 312 | BUTTON_POPUP_MANAGE_EDIT); |
@@ -414,32 +422,40 @@ void PwM::initToolbar() | |||
414 | picons = KGlobal::iconLoader(); | 422 | picons = KGlobal::iconLoader(); |
415 | #endif | 423 | #endif |
416 | 424 | ||
417 | #ifdef PWM_EMBEDDED | 425 | #if 0 |
418 | if ( QApplication::desktop()->width() > 320 ) | ||
419 | #endif | ||
420 | { | ||
421 | toolBar()->insertButton(picons->loadIcon("filenew", KIcon::Toolbar), | 426 | toolBar()->insertButton(picons->loadIcon("filenew", KIcon::Toolbar), |
422 | BUTTON_TOOL_NEW, SIGNAL(clicked(int)), this, | 427 | BUTTON_TOOL_NEW, SIGNAL(clicked(int)), this, |
423 | SLOT(new_slot()), true, i18n("New")); | 428 | SLOT(new_slot()), true, i18n("New")); |
429 | #endif | ||
424 | toolBar()->insertButton(picons->loadIcon("fileopen", KIcon::Toolbar), | 430 | toolBar()->insertButton(picons->loadIcon("fileopen", KIcon::Toolbar), |
425 | BUTTON_TOOL_OPEN, SIGNAL(clicked(int)), this, | 431 | BUTTON_TOOL_OPEN, SIGNAL(clicked(int)), this, |
426 | SLOT(open_slot()), true, i18n("Open")); | 432 | SLOT(open_slot()), true, i18n("Open")); |
433 | toolBar()->insertButton(picons->loadIcon("pencil", KIcon::Toolbar), | ||
434 | BUTTON_TOOL_ADD, SIGNAL(clicked(int)), this, | ||
435 | SLOT(addPwd_slot()), true, | ||
436 | i18n("Add password")); | ||
437 | toolBar()->insertSeparator(); | ||
438 | |||
439 | toolBar()->insertButton(picons->loadIcon("find", KIcon::Toolbar), | ||
440 | BUTTON_TOOL_FIND, SIGNAL(clicked(int)), this, | ||
441 | SLOT(find_slot()), true, i18n("Find entry")); | ||
427 | toolBar()->insertSeparator(); | 442 | toolBar()->insertSeparator(); |
428 | } | ||
429 | toolBar()->insertButton(picons->loadIcon("filesave", KIcon::Toolbar), | 443 | toolBar()->insertButton(picons->loadIcon("filesave", KIcon::Toolbar), |
430 | BUTTON_TOOL_SAVE, SIGNAL(clicked(int)), this, | 444 | BUTTON_TOOL_SAVE, SIGNAL(clicked(int)), this, |
431 | SLOT(save_slot()), true, i18n("Save")); | 445 | SLOT(save_slot()), true, i18n("Save")); |
446 | #if 0 | ||
432 | toolBar()->insertButton(picons->loadIcon("filesaveas", KIcon::Toolbar), | 447 | toolBar()->insertButton(picons->loadIcon("filesaveas", KIcon::Toolbar), |
433 | BUTTON_TOOL_SAVEAS, SIGNAL(clicked(int)), this, | 448 | BUTTON_TOOL_SAVEAS, SIGNAL(clicked(int)), this, |
434 | SLOT(saveAs_slot()), true, i18n("Save as")); | 449 | SLOT(saveAs_slot()), true, i18n("Save as")); |
450 | #endif | ||
451 | |||
452 | |||
453 | #if 0 | ||
435 | toolBar()->insertButton(picons->loadIcon("fileprint", KIcon::Toolbar), | 454 | toolBar()->insertButton(picons->loadIcon("fileprint", KIcon::Toolbar), |
436 | BUTTON_TOOL_PRINT, SIGNAL(clicked(int)), this, | 455 | BUTTON_TOOL_PRINT, SIGNAL(clicked(int)), this, |
437 | SLOT(print_slot()), true, i18n("Print...")); | 456 | SLOT(print_slot()), true, i18n("Print...")); |
457 | #endif | ||
438 | toolBar()->insertSeparator(); | 458 | toolBar()->insertSeparator(); |
439 | toolBar()->insertButton(picons->loadIcon("pencil", KIcon::Toolbar), | ||
440 | BUTTON_TOOL_ADD, SIGNAL(clicked(int)), this, | ||
441 | SLOT(addPwd_slot()), true, | ||
442 | i18n("Add password")); | ||
443 | toolBar()->insertButton(picons->loadIcon("edit", KIcon::Toolbar), | 459 | toolBar()->insertButton(picons->loadIcon("edit", KIcon::Toolbar), |
444 | BUTTON_TOOL_EDIT, SIGNAL(clicked(int)), this, | 460 | BUTTON_TOOL_EDIT, SIGNAL(clicked(int)), this, |
445 | SLOT(editPwd_slot()), true, | 461 | SLOT(editPwd_slot()), true, |
@@ -449,10 +465,6 @@ void PwM::initToolbar() | |||
449 | SLOT(deletePwd_slot()), true, | 465 | SLOT(deletePwd_slot()), true, |
450 | i18n("Delete password")); | 466 | i18n("Delete password")); |
451 | toolBar()->insertSeparator(); | 467 | toolBar()->insertSeparator(); |
452 | toolBar()->insertButton(picons->loadIcon("find", KIcon::Toolbar), | ||
453 | BUTTON_TOOL_FIND, SIGNAL(clicked(int)), this, | ||
454 | SLOT(find_slot()), true, i18n("Find entry")); | ||
455 | toolBar()->insertSeparator(); | ||
456 | toolBar()->insertButton(picons->loadIcon("halfencrypted", KIcon::Toolbar), | 468 | toolBar()->insertButton(picons->loadIcon("halfencrypted", KIcon::Toolbar), |
457 | BUTTON_TOOL_LOCK, SIGNAL(clicked(int)), this, | 469 | BUTTON_TOOL_LOCK, SIGNAL(clicked(int)), this, |
458 | SLOT(lockWnd_slot()), true, | 470 | SLOT(lockWnd_slot()), true, |
@@ -635,7 +647,7 @@ void PwM::addPwd_slot1(QString *pw, PwMDoc *_doc) | |||
635 | #else | 647 | #else |
636 | AddEntryWndImpl w(doc, this, "addentrywndimpl"); | 648 | AddEntryWndImpl w(doc, this, "addentrywndimpl"); |
637 | #endif | 649 | #endif |
638 | 650 | w.setCaption( i18n ("Add new password") ); | |
639 | vector<string> catList; | 651 | vector<string> catList; |
640 | doc->getCategoryList(&catList); | 652 | doc->getCategoryList(&catList); |
641 | unsigned i, size = catList.size(); | 653 | unsigned i, size = catList.size(); |
@@ -733,6 +745,7 @@ void PwM::editPwd_slot3(const QString *category, const int *index, | |||
733 | BUG_ON(currItem.binary); | 745 | BUG_ON(currItem.binary); |
734 | 746 | ||
735 | AddEntryWndImpl w(doc); | 747 | AddEntryWndImpl w(doc); |
748 | w.setCaption( i18n ("Edit password") ); | ||
736 | vector<string> catList; | 749 | vector<string> catList; |
737 | doc->getCategoryList(&catList); | 750 | doc->getCategoryList(&catList); |
738 | unsigned i, size = catList.size(); | 751 | unsigned i, size = catList.size(); |