GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
HelpPage.h
1 
29 #pragma once
30 
31 #include "ui/GpgFrontendUI.h"
32 
33 namespace GpgFrontend::UI {
34 
39 class HelpPage : public QWidget {
40  Q_OBJECT
41  public:
48  explicit HelpPage(const QString& path, QWidget* parent = nullptr);
49 
55  QTextBrowser* GetBrowser();
56 
57  public slots:
58 
64  void slot_open_url(const QUrl& url);
65 
66  private:
67  QTextBrowser* browser_;
68  QUrl localized_help(const QUrl& path);
69 };
70 
71 } // namespace GpgFrontend::UI
Definition: HelpPage.h:39
HelpPage(const QString &path, QWidget *parent=nullptr)
Construct a new Help Page object.
Definition: HelpPage.cpp:33
void slot_open_url(const QUrl &url)
Definition: HelpPage.cpp:48
QTextBrowser * GetBrowser()
Get the Browser object.
Definition: HelpPage.cpp:81
QTextBrowser * browser_
The textbrowser of the tab.
Definition: HelpPage.h:67
QUrl localized_help(const QUrl &path)
HelpPage::localized_help check if the requested file is also available with the locale,...
Definition: HelpPage.cpp:60
Definition: FileReadTask.cpp:31