aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.h
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-12-23 00:06:04 +0100
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-12-23 00:06:04 +0100
commit1cf3eb2174458a0b844287b9c265fc4e92464177 (patch)
tree9b837881d1e747b3964df89e9f4be39c949191d5 /gpgwin.h
parentthere may be more than on signature (diff)
downloadgpg4usb-1cf3eb2174458a0b844287b9c265fc4e92464177.tar.gz
gpg4usb-1cf3eb2174458a0b844287b9c265fc4e92464177.zip
added comment action (to insert > at every line) in edit menu, added drag and drop handling and exported textedit to its own class
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@407 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'gpgwin.h')
-rw-r--r--gpgwin.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gpgwin.h b/gpgwin.h
index 9a1db25..7dfdafc 100644
--- a/gpgwin.h
+++ b/gpgwin.h
@@ -27,6 +27,7 @@
#include "attachments.h"
#include "mime.h"
#include "keymgmt.h"
+#include "textedit.h"
class QMainWindow;
class QPlainTextEdit;
@@ -61,6 +62,8 @@ public:
protected:
void closeEvent(QCloseEvent *event);
+ void dropEvent(QDropEvent* event);
+ void dragEnterEvent(QDragEnterEvent* event);
public slots:
void encrypt();
@@ -101,7 +104,7 @@ private:
void parseMime(QByteArray *message);
QString strippedName(const QString &fullFileName);
- QPlainTextEdit *edit;
+ TextEdit *edit;
QMenu *fileMenu;
QMenu *editMenu;
QMenu *cryptMenu;
@@ -132,6 +135,7 @@ private:
QAction *appendSelectedKeysAct;
QAction *openKeyManagementAct;
QAction *copyAct;
+ QAction *commentAct;
QAction *cutAct;
QAction *pasteAct;
QAction *selectallAct;