diff options
author | Saturneric <[email protected]> | 2021-12-05 18:51:59 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-05 19:00:26 +0000 |
commit | 590f222de4abdf2aae4d2d8de6f9af25996a713e (patch) | |
tree | 4108a6205fb517a694d65b3044f7369f32b43862 /src/ui/widgets/FilePage.h | |
parent | Add Submodules & Update & Fixed (diff) | |
download | GpgFrontend-590f222de4abdf2aae4d2d8de6f9af25996a713e.tar.gz GpgFrontend-590f222de4abdf2aae4d2d8de6f9af25996a713e.zip |
Improve UI
1. Support Key List Tab
2. File Hash Calculate
3. File Rename
4. Fix known bugs
5. Fix known ci issues.
Diffstat (limited to 'src/ui/widgets/FilePage.h')
-rw-r--r-- | src/ui/widgets/FilePage.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/ui/widgets/FilePage.h b/src/ui/widgets/FilePage.h index 31be81f3..8533aaac 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,6 +70,8 @@ class FilePage : public QWidget { void keyPressEvent(QKeyEvent* event) override; private: + void createPopupMenu(); + QFileSystemModel* dirModel; QTreeView* dirTreeView; QLineEdit* pathEdit; |