2014-01-09 17:21:29 +00:00
|
|
|
#ifndef USERMANUAL_H
|
|
|
|
#define USERMANUAL_H
|
|
|
|
|
2014-06-30 20:45:52 +00:00
|
|
|
#include <QWebView>
|
2014-01-09 17:21:29 +00:00
|
|
|
|
2014-06-30 20:45:52 +00:00
|
|
|
#include "ui_searchbar.h"
|
2014-01-09 17:21:29 +00:00
|
|
|
|
2014-06-30 20:45:52 +00:00
|
|
|
class SearchBar : public QWidget{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
SearchBar(QWidget *parent = 0);
|
|
|
|
signals:
|
|
|
|
void searchTextChanged(const QString& s);
|
|
|
|
void searchNext();
|
|
|
|
void searchPrev();
|
|
|
|
protected:
|
|
|
|
void setVisible(bool visible);
|
|
|
|
private slots:
|
|
|
|
void enableButtons(const QString& s);
|
|
|
|
private:
|
|
|
|
Ui::SearchBar ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
class UserManual : public QWebView {
|
2014-01-09 17:21:29 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit UserManual(QWidget *parent = 0);
|
|
|
|
~UserManual();
|
2014-02-28 04:09:57 +00:00
|
|
|
private
|
|
|
|
slots:
|
2014-06-30 20:45:52 +00:00
|
|
|
void searchTextChanged(const QString& s);
|
2014-01-09 17:21:29 +00:00
|
|
|
void searchNext();
|
|
|
|
void searchPrev();
|
|
|
|
void linkClickedSlot(QUrl url);
|
|
|
|
|
|
|
|
private:
|
2014-06-30 20:45:52 +00:00
|
|
|
SearchBar *searchBar;
|
|
|
|
QString mLastText;
|
2014-01-09 17:21:29 +00:00
|
|
|
void search(QString, QWebPage::FindFlags);
|
|
|
|
};
|
|
|
|
#endif // USERMANUAL_H
|