GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
FilePage.h
1 
29 #pragma once
30 
31 #include "ui/GpgFrontendUI.h"
32 #include "ui/widgets/FileTreeView.h"
33 #include "ui/widgets/InfoBoardWidget.h"
34 
35 class Ui_FilePage;
36 
37 namespace GpgFrontend::UI {
38 
43 class FilePage : public QWidget {
44  Q_OBJECT
45  public:
51  explicit FilePage(QWidget* parent, const QString&);
52 
58  [[nodiscard]] auto GetSelected() const -> QString;
59 
60  public slots:
65  void SlotGoPath();
66 
67  signals:
68 
74  void SignalPathChanged(const QString& path);
75 
82  void SignalRefreshInfoBoard(const QString& text,
83  InfoBoardStatus verify_label_status);
84 
85  protected:
91  void keyPressEvent(QKeyEvent* event) override;
92 
93  private:
94  std::shared_ptr<Ui_FilePage> ui_;
95 
96  QCompleter* path_edit_completer_;
97  QStringListModel* path_complete_model_;
98 
99  QMenu* popup_menu_{};
100  QMenu* option_popup_menu_{};
101  FileTreeView* file_tree_view_;
102 };
103 
104 } // namespace GpgFrontend::UI
Definition: FilePage.h:43
void SignalRefreshInfoBoard(const QString &text, InfoBoardStatus verify_label_status)
auto GetSelected() const -> QString
Get the Selected object.
Definition: FilePage.cpp:151
void keyPressEvent(QKeyEvent *event) override
Definition: FilePage.cpp:159
void SignalPathChanged(const QString &path)
FilePage(QWidget *parent, const QString &)
Construct a new File Page object.
Definition: FilePage.cpp:38
Definition: FileReadTask.cpp:31
InfoBoardStatus
Definition: InfoBoardWidget.h:42