SEPIA
Software documentation for the APEX SEPIA receivers
helpbrowser.h
1 /* Copyright 2017 Michael Olberg <michael.olberg@chalmers.se> */
2 #ifndef HELPBROWSER_H
3 #define HELPBROWSER_H
4 
5 #include <QWidget>
6 #include <QString>
7 #include <QTextBrowser>
8 #include <QPushButton>
9 #include <QUrl>
10 
11 class HelpBrowser : public QWidget
12 {
13  Q_OBJECT
14  public:
15  HelpBrowser(const QString &path, const QString &page, QWidget *parent = 0);
16  static void showPage(const QString &page);
17 
18  private slots:
19  void updateCaption(const QUrl &page);
20 
21  private:
22  QTextBrowser *textBrowser;
23  QPushButton *homeButton;
24  QPushButton *backButton;
25  QPushButton *closeButton;
26 };
27 
28 #endif // HELPBROWSER_H