aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO2
-rw-r--r--attachments.cpp1
-rw-r--r--gpgwin.cpp10
-rw-r--r--gpgwin.h2
4 files changed, 14 insertions, 1 deletions
diff --git a/TODO b/TODO
index 9ce2df9..4afae08 100644
--- a/TODO
+++ b/TODO
@@ -9,7 +9,7 @@ Release 0.2.4
- doku for translating gpg4usb
- File-Encryption: Warning if file overwritten
- minimal MIME support (understand and decode "Content-Encoding" header, e.g. "quoted printable")
-- link to online-docs in help-menu
+- link to online tutorial in help menu [DONE]
Release 0.3
- PGP-MIME, find and show inline encrypted files
diff --git a/attachments.cpp b/attachments.cpp
index d25db21..3debb91 100644
--- a/attachments.cpp
+++ b/attachments.cpp
@@ -30,6 +30,7 @@
* - save, delete (clear) all
* - each line save & clear button
* - attached files to view-menu
+ * - also an open button, whichs should save file to tmp-folder, and open with correct app (via QDesktopServices)
*/
diff --git a/gpgwin.cpp b/gpgwin.cpp
index 006826e..7d9c789 100644
--- a/gpgwin.cpp
+++ b/gpgwin.cpp
@@ -218,6 +218,11 @@ void GpgWin::createActions()
aboutAct->setToolTip(tr("Show the application's About box"));
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()));
+
/** Popup-Menu-Action for KeyList
*/
appendSelectedKeysAct = new QAction(tr("Append Selected Key(s) To Text"), this);
@@ -259,6 +264,7 @@ void GpgWin::createMenus()
viewMenu = menuBar()->addMenu(tr("&View"));
helpMenu = menuBar()->addMenu(tr("&Help"));
+ helpMenu->addAction(openTutorialAct);
helpMenu->addAction(aboutAct);
}
@@ -480,6 +486,10 @@ void GpgWin::about()
"gpg4usb at conference.jabber.ccc.de</center>"));
}
+void GpgWin::openTutorial() {
+ QDesktopServices::openUrl(QUrl("http://gpg4usb.cpunk.de/docu.html"));
+}
+
void GpgWin::encrypt()
{
QStringList *uidList = mKeyList->getChecked();
diff --git a/gpgwin.h b/gpgwin.h
index a96b780..de351df 100644
--- a/gpgwin.h
+++ b/gpgwin.h
@@ -79,6 +79,7 @@ public slots:
void open();
void fileEncryption();
void openSettingsDialog();
+ void openTutorial();
// void dropEvent(QDropEvent *event);
private:
@@ -131,6 +132,7 @@ private:
QAction *aboutAct;
QAction *fileEncryptionAct;
QAction *openSettingsAct;
+ QAction *openTutorialAct;
QLineEdit *nameEdit;
QLineEdit *emailEdit;
QLineEdit *commentEdit;