diff options
Diffstat (limited to 'qt-ui/usermanual.h')
-rw-r--r-- | qt-ui/usermanual.h | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/qt-ui/usermanual.h b/qt-ui/usermanual.h index de8770eba..7cd10c185 100644 --- a/qt-ui/usermanual.h +++ b/qt-ui/usermanual.h @@ -1,31 +1,42 @@ #ifndef USERMANUAL_H #define USERMANUAL_H -#include <QMainWindow> -#include <QWebPage> +#include <QWebView> -namespace Ui { - class UserManual; -} +#include "ui_searchbar.h" -class UserManual : public QMainWindow { +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 { Q_OBJECT public: explicit UserManual(QWidget *parent = 0); ~UserManual(); - private slots: - void showSearchPanel(); - void hideSearchPanel(); - void searchTextChanged(QString); + void searchTextChanged(const QString& s); void searchNext(); void searchPrev(); void linkClickedSlot(QUrl url); private: - Ui::UserManual *ui; + SearchBar *searchBar; + QString mLastText; void search(QString, QWebPage::FindFlags); }; #endif // USERMANUAL_H |