Core::IFindSupport Class
class Core::IFindSupportKlasa IFindSupport udostępnia funkcje służące do wyszukiwania w dokumencie lub widżecie. Więcej...
| Header: | #include <coreplugin/find/ifindsupport.h> |
| Inherits: | QObject |
Typy publiczne
| enum | Result { Found, NotFound, NotYetFound } |
Funkcje publiczne
| virtual void | clearFindScope() |
| virtual void | clearHighlights() = 0 |
| virtual QString | completedFindString() const = 0 |
| virtual QString | currentFindString() const = 0 |
| virtual void | defineFindScope() |
| virtual Core::IFindSupport::Result | findIncremental(const QString &txt, Utils::FindFlags findFlags) = 0 |
| virtual Core::IFindSupport::Result | findStep(const QString &txt, Utils::FindFlags findFlags) = 0 |
| virtual void | highlightAll(const QString &txt, Utils::FindFlags findFlags) |
| virtual void | replace(const QString &before, const QString &after, Utils::FindFlags findFlags) |
| virtual int | replaceAll(const QString &before, const QString &after, Utils::FindFlags findFlags) |
| virtual bool | replaceStep(const QString &before, const QString &after, Utils::FindFlags findFlags) |
| virtual void | resetIncrementalSearch() = 0 |
| virtual void | selectAll(const QString &txt, Utils::FindFlags findFlags) |
| virtual Utils::FindFlags | supportedFindFlags() const = 0 |
| virtual bool | supportsReplace() const = 0 |
| virtual bool | supportsSelectAll() const |
Sygnały
| void | changed() |
Statyczne elementy publiczne
| void | showWrapIndicator(QWidget *parent) |
Zobacz też Core::BaseTextFind.
Dokumentacja typów elementów składowych
enum IFindSupport::Result
Ta enumacja określa, czy termin wyszukiwania został znaleziony w zakresie wyszukiwania przy użyciu flag wyszukiwania.
| Stała | Wartość | Opis |
|---|---|---|
Core::IFindSupport::Found | 0 | Termin wyszukiwania został znaleziony. |
Core::IFindSupport::NotFound | 1 | Słowo kluczowe nie zostało znalezione. |
Core::IFindSupport::NotYetFound | 2 | Termin wyszukiwania nie został jeszcze znaleziony. |
Dokumentacja funkcji członkowskich
[signal] void IFindSupport::changed()
Sygnał ten jest wysyłany w momencie zmiany wyników wyszukiwania.
[virtual] void IFindSupport::clearFindScope()
Czyści zakres wyszukiwania.
[pure virtual] void IFindSupport::clearHighlights()
Usuwa podświetlenie wyników wyszukiwania w widżecie wyszukiwania.
[pure virtual] QString IFindSupport::completedFindString() const
Zwraca cały ciąg wyszukiwania.
[pure virtual] QString IFindSupport::currentFindString() const
Zwraca bieżący ciąg wyszukiwania.
[virtual] void IFindSupport::defineFindScope()
Określa zakres wyszukiwania.
[pure virtual] Core::IFindSupport::Result IFindSupport::findIncremental(const QString &txt, Utils::FindFlags findFlags)
Przeprowadza wyszukiwanie przyrostowe hasła „ txt ” przy użyciu serwisu findFlags.
[pure virtual] Core::IFindSupport::Result IFindSupport::findStep(const QString &txt, Utils::FindFlags findFlags)
Wyszukiwania hasła „ txt ” przy użyciu strony findFlags.
[virtual] void IFindSupport::highlightAll(const QString &txt, Utils::FindFlags findFlags)
Podświetla wszystkie wyniki wyszukiwania dla hasła „ txt ” podczas korzystania z serwisu findFlags.
[virtual] void IFindSupport::replace(const QString &before, const QString &after, Utils::FindFlags findFlags)
Zastępuje adres before adresem after, zgodnie z informacją zawartą na stronie findFlags.
[virtual] int IFindSupport::replaceAll(const QString &before, const QString &after, Utils::FindFlags findFlags)
Wyszukuje i zastępuje wszystkie wystąpienia adresu before adresem after zgodnie z instrukcją podaną na stronie findFlags.
[virtual] bool IFindSupport::replaceStep(const QString &before, const QString &after, Utils::FindFlags findFlags)
Zastępuje adres before adresem after zgodnie z instrukcją zawartą na stronie findFlags, a następnie wykonuje operację findStep().
Zwraca informację, czy w etapie wyszukiwania znaleziono kolejne dopasowanie.
[pure virtual] void IFindSupport::resetIncrementalSearch()
Przywraca wyszukiwanie przyrostowe do pozycji początkowej.
[virtual] void IFindSupport::selectAll(const QString &txt, Utils::FindFlags findFlags)
Wyszukuje i wybiera wszystkie wystąpienia adresu txt z podanym findFlags.
[static] void IFindSupport::showWrapIndicator(QWidget *parent)
Wyświetla wykres typu „ parent ” z nałożonym wskaźnikiem zawijania.
[pure virtual] Utils::FindFlags IFindSupport::supportedFindFlags() const
Zwraca flagi wyszukiwania, takie jak całe słowa lub wyrażenia regularne, które obsługuje ten filtr wyszukiwania.
W zależności od zwróconej wartości domyślne widżety opcji wyszukiwania są włączane lub wyłączane.
Domyślnie są to: `Uitls::FindBackward`, ` Utils::FindCaseSensitively`, `Uitls::FindRegularExpression`, `Uitls::FindWholeWords` oraz `Uitls::FindPreserveCase`.
[pure virtual] bool IFindSupport::supportsReplace() const
Zwraca wartość wskazującą, czy filtr wyszukiwania obsługuje funkcję „znajdź i zamień”.
[virtual] bool IFindSupport::supportsSelectAll() const
Zwraca informację, czy filtr wyszukiwania umożliwia zaznaczenie wszystkich wyników.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.