summaryrefslogtreecommitdiffstats
path: root/qt-ui/usermanual.h
diff options
context:
space:
mode:
authorGravatar Sergey Starosek <sergey.starosek@gmail.com>2014-01-09 19:21:29 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-10 16:07:43 +0700
commit8b00f8ffe6597a233814708d19b286e5dc0c65d8 (patch)
tree0ccd0f2e3e886b596aa10cb92c6e373867a08431 /qt-ui/usermanual.h
parente5ae3fca7fce07b5415f66fab937420f07aa70c6 (diff)
downloadsubsurface-8b00f8ffe6597a233814708d19b286e5dc0c65d8.tar.gz
Extract user manual web view into a separate class
Provide search functionality which addresses ticket #391 Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/usermanual.h')
-rw-r--r--qt-ui/usermanual.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/qt-ui/usermanual.h b/qt-ui/usermanual.h
new file mode 100644
index 000000000..f915f4c1e
--- /dev/null
+++ b/qt-ui/usermanual.h
@@ -0,0 +1,32 @@
+#ifndef USERMANUAL_H
+#define USERMANUAL_H
+
+#include <QMainWindow>
+#include <QWebPage>
+
+namespace Ui {
+class UserManual;
+}
+
+class UserManual : public QWidget
+{
+ Q_OBJECT
+
+public:
+ explicit UserManual(QWidget *parent = 0);
+ ~UserManual();
+
+private slots:
+ void showSearchPanel();
+ void hideSearchPanel();
+ void searchTextChanged(QString);
+ void searchNext();
+ void searchPrev();
+ void linkClickedSlot(QUrl url);
+
+private:
+ Ui::UserManual *ui;
+ void search(QString, QWebPage::FindFlags);
+};
+
+#endif // USERMANUAL_H