subsurface/qt-ui/usermanual.h
Sergey Starosek 7e7a1d29ad User manual: overlay search panel
Make search panel floating so that web view does not resize.

This commit also addresses following issues:
- search now wraps around document
- application icon and window title are now back

Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-01-10 16:12:44 +07:00

32 lines
516 B
C++

#ifndef USERMANUAL_H
#define USERMANUAL_H
#include <QMainWindow>
#include <QWebPage>
namespace Ui {
class UserManual;
}
class UserManual : public QMainWindow
{
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