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&);
75 
82  void SignalRefreshInfoBoard(const QString&, InfoBoardStatus);
83 
88  void SignalCurrentTabChanged();
89 
96 
97  protected:
103  void keyPressEvent(QKeyEvent* event) override;
104 
105  private:
106  std::shared_ptr<Ui_FilePage> ui_;
107 
108  QCompleter* path_edit_completer_;
109  QStringListModel* path_complete_model_;
110 
111  QMenu* popup_menu_{};
112  QMenu* option_popup_menu_{};
113  FileTreeView* file_tree_view_;
114 
115  private slots:
116 
121  void update_main_basical_opera_menu(const QString&);
122 };
123 
124 } // namespace GpgFrontend::UI
Definition: FilePage.h:43
void SignalRefreshInfoBoard(const QString &, InfoBoardStatus)
auto GetSelected() const -> QString
Get the Selected object.
Definition: FilePage.cpp:111
void SignalMainWindowlUpdateBasicalOperaMenu(unsigned int)
void keyPressEvent(QKeyEvent *event) override
Definition: FilePage.cpp:119
FilePage(QWidget *parent, const QString &)
Construct a new File Page object.
Definition: FilePage.cpp:38
void SignalPathChanged(const QString &)
Definition: FileReadTask.cpp:31
InfoBoardStatus
Definition: InfoBoardWidget.h:42