aboutsummaryrefslogtreecommitdiffstats
path: root/include/MainWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/MainWindow.h')
-rw-r--r--include/MainWindow.h81
1 files changed, 61 insertions, 20 deletions
diff --git a/include/MainWindow.h b/include/MainWindow.h
index c5937e0d..a6ddfc3a 100644
--- a/include/MainWindow.h
+++ b/include/MainWindow.h
@@ -41,6 +41,8 @@
#include "gpg/result_analyse/EncryptResultAnalyse.h"
#include "gpg/result_analyse/DecryptResultAnalyse.h"
+#include "gpg/GpgFileOpera.h"
+
/**
* @brief
@@ -67,6 +69,44 @@ protected:
*/
void closeEvent(QCloseEvent *event) override;
+public slots:
+
+ /**
+ * @details Open a new tab for path
+ */
+ void slotOpenFile(QString &path);
+
+ /**
+ * @details Open dialog for encrypting file.
+ */
+ void slotFileEncrypt();
+
+ /**
+ * @details Open dialog for decrypting file.
+ */
+ void slotFileDecrypt();
+
+ /**
+ * @details Open dialog for signing file.
+ */
+ void slotFileSign();
+
+ /**
+ * @details Open dialog for verifying file.
+ */
+ void slotFileVerify();
+
+ /**
+ * @details Open dialog for signing file.
+ */
+ void slotFileEncryptSign();
+
+ /**
+ * @details Open dialog for verifying file.
+ */
+ void slotFileDecryptVerify();
+
+
private slots:
/**
@@ -105,6 +145,26 @@ private slots:
void slotDecryptVerify();
/**
+ * @details Open dialog for encrypting file.
+ */
+ void slotFileEncryptCustom();
+
+ /**
+ * @details Open dialog for decrypting file.
+ */
+ void slotFileDecryptCustom();
+
+ /**
+ * @details Open dialog for signing file.
+ */
+ void slotFileSignCustom();
+
+ /**
+ * @details Open dialog for verifying file.
+ */
+ void slotFileVerifyCustom();
+
+ /**
* @details Show the details of the first of the first of selected keys
*/
void slotShowKeyDetails();
@@ -156,26 +216,6 @@ private slots:
void slotAbout();
/**
- * @details Open dialog for encrypting file.
- */
- void slotFileEncrypt();
-
- /**
- * @details Open dialog for decrypting file.
- */
- void slotFileDecrypt();
-
- /**
- * @details Open dialog for signing file.
- */
- void slotFileSign();
-
- /**
- * @details Open dialog for verifying file.
- */
- void slotFileVerify();
-
- /**
* @details Open File Opera Tab
*/
void slotOpenFileTab();
@@ -293,6 +333,7 @@ private:
QAction *switchTabUpAct; /** Action to switch tab up*/
QAction *switchTabDownAct; /** Action to switch tab down */
QAction *openAct; /** Action to open file */
+ QAction *browserAct; /** Action to open file browser*/
QAction *saveAct; /** Action to save file */
QAction *saveAsAct; /** Action to save file as */
QAction *printAct; /** Action to print */