aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/FilePage.h
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2021-12-07 08:37:54 +0000
committerGitHub <[email protected]>2021-12-07 08:37:54 +0000
commitcc89ad54ab3dd4aeb3ed7afeed59a80b6e61649c (patch)
tree865d2298d836c8eb36584b5d268325bca4a66a78 /src/ui/widgets/FilePage.h
parentMerge pull request #26 from saturneric/develop (diff)
parentFix Bugs on KeyUploadDialog (diff)
downloadGpgFrontend-cc89ad54ab3dd4aeb3ed7afeed59a80b6e61649c.tar.gz
GpgFrontend-cc89ad54ab3dd4aeb3ed7afeed59a80b6e61649c.zip
Merge pull request #28 from saturneric/develop
Diffstat (limited to 'src/ui/widgets/FilePage.h')
-rw-r--r--src/ui/widgets/FilePage.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/ui/widgets/FilePage.h b/src/ui/widgets/FilePage.h
index 31be81f3..2a9f5b57 100644
--- a/src/ui/widgets/FilePage.h
+++ b/src/ui/widgets/FilePage.h
@@ -28,6 +28,7 @@
#include <boost/filesystem.hpp>
#include "ui/GpgFrontendUI.h"
+#include "ui/widgets/InfoBoardWidget.h"
namespace GpgFrontend::UI {
@@ -38,25 +39,30 @@ class FilePage : public QWidget {
[[nodiscard]] QString getSelected() const;
- void createPopupMenu();
+ public slots:
+ void slotGoPath();
signals:
void pathChanged(const QString& path);
+ void signalRefreshInfoBoard(const QString& text,
+ InfoBoardStatus verify_label_status);
+
private slots:
void fileTreeViewItemClicked(const QModelIndex& index);
void fileTreeViewItemDoubleClicked(const QModelIndex& index);
void slotUpLevel();
- void slotGoPath();
void slotOpenItem();
+ void slotRenameItem();
void slotDeleteItem();
void slotEncryptItem();
void slotDecryptItem();
void slotSignItem();
void slotVerifyItem();
+ void slotCalculateHash();
void onCustomContextMenu(const QPoint& point);
@@ -64,9 +70,13 @@ class FilePage : public QWidget {
void keyPressEvent(QKeyEvent* event) override;
private:
+ void createPopupMenu();
+
QFileSystemModel* dirModel;
QTreeView* dirTreeView;
QLineEdit* pathEdit;
+ QCompleter* pathEditCompleter;
+ QStringListModel* pathCompleteModel;
// using boost path
boost::filesystem::path mPath;
@@ -81,7 +91,7 @@ class FilePage : public QWidget {
QAction* decryptItemAct{};
QAction* signItemAct{};
QAction* verifyItemAct{};
-
+ QAction* hashCalculateAct{};
QWidget* firstParent;
};