mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
e5ae3fca7f
commit
8b00f8ffe6
4 changed files with 296 additions and 3 deletions
32
qt-ui/usermanual.h
Normal file
32
qt-ui/usermanual.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue