diff options
Diffstat (limited to 'src/ui/widgets/FilePage.h')
-rw-r--r-- | src/ui/widgets/FilePage.h | 16 |
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; }; |