Changeset View
Changeset View
Standalone View
Standalone View
documentation/documentationfindwidget.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 34 | public: | |||
---|---|---|---|---|---|
45 | void hideEvent(QHideEvent* event) override; | 45 | void hideEvent(QHideEvent* event) override; | ||
46 | 46 | | |||
47 | public Q_SLOTS: | 47 | public Q_SLOTS: | ||
48 | void startSearch(); | 48 | void startSearch(); | ||
49 | 49 | | |||
50 | private Q_SLOTS: | 50 | private Q_SLOTS: | ||
51 | void searchNext(); | 51 | void searchNext(); | ||
52 | void searchPrevious(); | 52 | void searchPrevious(); | ||
53 | void emitDataChanged(); | ||||
53 | 54 | | |||
54 | Q_SIGNALS: | 55 | Q_SIGNALS: | ||
55 | void newSearch(const QString& text, KDevelop::DocumentationFindWidget::FindOptions); | 56 | /** | ||
57 | * Emitted when the user requests a search. | ||||
58 | * @param text text to search in documentation | ||||
59 | * @param options MatchCase being set or empty flags (Next/Previous unused here) | ||||
60 | */ | ||||
61 | void searchRequested(const QString& text, KDevelop::DocumentationFindWidget::FindOptions options); | ||||
62 | /** | ||||
63 | * Emitted when the user edits the search field or changes the case-sensitivity checkbox. | ||||
64 | * Allows documentation views capable of live searches to show live results while the user types. | ||||
65 | * @param text current text in search text field | ||||
66 | * @param options MatchCase being set or empty flags (Next/Previous unused here) | ||||
67 | */ | ||||
68 | void searchDataChanged(const QString& text, KDevelop::DocumentationFindWidget::FindOptions options); | ||||
56 | /** | 69 | /** | ||
57 | * Emitted when the search tool view is closed, so no more search hits should be displayed. | 70 | * Emitted when the search tool view is closed, so no more search hits should be displayed. | ||
58 | */ | 71 | */ | ||
59 | void searchFinished(); | 72 | void searchFinished(); | ||
60 | 73 | | |||
61 | private: | 74 | private: | ||
62 | Ui::FindWidget* m_ui; | 75 | Ui::FindWidget* m_ui; | ||
63 | }; | 76 | }; | ||
64 | 77 | | |||
65 | } | 78 | } | ||
66 | 79 | | |||
67 | #endif // KDEVPLATFORM_DOCUMENTATIONFINDWIDGET_H | 80 | #endif // KDEVPLATFORM_DOCUMENTATIONFINDWIDGET_H |