diff options
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 7710043..8dc1e6a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -78,11 +78,9 @@ MainWindow::MainWindow() // Show wizard, if the don't show wizard message box wasn't checked // and keylist doesn't contain a private key QSettings settings; - // if (settings.value("wizard/showWizard",true).toBool() && !mKeyList->containsPrivateKeys()) { - Wizard *wizard = new Wizard(mCtx,this); - wizard->show(); - wizard->setModal(true); - //} + if (settings.value("wizard/showWizard",true).toBool() && !mKeyList->containsPrivateKeys()) { + startWizard(); + } } void MainWindow::restoreSettings() @@ -291,12 +289,12 @@ void MainWindow::createActions() importKeyFromEditAct->setToolTip(tr("Import New Key From Editor")); connect(importKeyFromEditAct, SIGNAL(triggered()), this, SLOT(importKeyFromEdit())); - openKeyManagementAct = new QAction(tr("Key Management"), this); + openKeyManagementAct = new QAction(tr("&Key Management"), this); openKeyManagementAct->setIcon(QIcon(iconPath + "keymgmt.png")); openKeyManagementAct->setToolTip(tr("Open Keymanagement")); connect(openKeyManagementAct, SIGNAL(triggered()), this, SLOT(openKeyManagement())); - importKeyDialogAct = new QAction(tr("Import Key"), this); + importKeyDialogAct = new QAction(tr("&Import Key"), this); importKeyDialogAct->setIcon(QIcon(iconPath + "key_import.png")); importKeyDialogAct->setToolTip(tr("Open Import New Key Dialog")); connect(importKeyDialogAct, SIGNAL(triggered()), this, SLOT(importKeyDialog())); @@ -309,7 +307,6 @@ void MainWindow::createActions() connect(aboutAct, SIGNAL(triggered()), this, SLOT(about())); openTutorialAct = new QAction(tr("Online &Tutorial"), this); - openTutorialAct->setIcon(QIcon(iconPath + "help.png")); openTutorialAct->setToolTip(tr("Open Online Tutorial")); connect(openTutorialAct, SIGNAL(triggered()), this, SLOT(openTutorial())); @@ -317,6 +314,10 @@ void MainWindow::createActions() openTranslateAct->setToolTip(tr("Translate gpg4usb yourself")); connect(openTranslateAct, SIGNAL(triggered()), this, SLOT(openTranslate())); + startWizardAct= new QAction(tr("Open &Wizard"), this); + startWizardAct->setToolTip(tr("Open the wizard")); + connect(startWizardAct, SIGNAL(triggered()), this, SLOT(startWizard())); + /* Popup-Menu-Action for KeyList */ appendSelectedKeysAct = new QAction(tr("Append Selected Key(s) To Text"), this); @@ -396,6 +397,7 @@ void MainWindow::createMenus() helpMenu = menuBar()->addMenu(tr("&Help")); helpMenu->addAction(openTutorialAct); helpMenu->addAction(openTranslateAct); + helpMenu->addAction(startWizardAct); helpMenu->addAction(aboutAct); } @@ -611,6 +613,13 @@ void MainWindow::openTutorial() { QDesktopServices::openUrl(QUrl("http://gpg4usb.cpunk.de/docu.html")); } +void MainWindow::startWizard() +{ + Wizard *wizard = new Wizard(mCtx,this); + wizard->show(); + wizard->setModal(true); +} + /* * if this is mime, split text and attachments... * message contains only text afterwards |