Core::IFindSupport Class
class Core::IFindSupportDie Klasse „IFindSupport“ stellt Funktionen zur Suche in einem Dokument oder Widget bereit. Mehr dazu...
| Header: | #include <coreplugin/find/ifindsupport.h> |
| Inherits: | QObject |
Öffentliche Typen
| enum | Result { Found, NotFound, NotYetFound } |
Öffentliche Funktionen
| 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 |
Signale
| void | changed() |
Statische öffentliche Mitglieder
| void | showWrapIndicator(QWidget *parent) |
Siehe auch „ Core::BaseTextFind “.
Dokumentation zu Mitgliedstypen
enum IFindSupport::Result
Diese Enumeration gibt an, ob der Suchbegriff unter Verwendung der Suchflags innerhalb des Suchbereichs gefunden wurde.
| Konstante | Wert | Beschreibung |
|---|---|---|
Core::IFindSupport::Found | 0 | Der Suchbegriff wurde gefunden. |
Core::IFindSupport::NotFound | 1 | Der Suchbegriff wurde nicht gefunden. |
Core::IFindSupport::NotYetFound | 2 | Der Suchbegriff wurde noch nicht gefunden. |
Dokumentation der Member-Funktionen
[signal] void IFindSupport::changed()
Dieses Signal wird ausgegeben, wenn sich die Suche ändert.
[virtual] void IFindSupport::clearFindScope()
Löscht den Suchbereich.
[pure virtual] void IFindSupport::clearHighlights()
Löscht die Hervorhebung der Suchergebnisse im Such-Widget.
[pure virtual] QString IFindSupport::completedFindString() const
Gibt die vollständige Suchzeichenfolge zurück.
[pure virtual] QString IFindSupport::currentFindString() const
Gibt die aktuelle Suchzeichenfolge zurück.
[virtual] void IFindSupport::defineFindScope()
Legt den Suchbereich fest.
[pure virtual] Core::IFindSupport::Result IFindSupport::findIncremental(const QString &txt, Utils::FindFlags findFlags)
Führt eine inkrementelle Suche nach dem Suchbegriff „ txt “ unter Verwendung von „ findFlags “ durch.
[pure virtual] Core::IFindSupport::Result IFindSupport::findStep(const QString &txt, Utils::FindFlags findFlags)
Suche nach „ txt “ über findFlags.
[virtual] void IFindSupport::highlightAll(const QString &txt, Utils::FindFlags findFlags)
Markiert alle Suchtreffer für „ txt “, wenn findFlags verwendet wird.
[virtual] void IFindSupport::replace(const QString &before, const QString &after, Utils::FindFlags findFlags)
Ersetzt before durch after, wie unter findFlags angegeben.
[virtual] int IFindSupport::replaceAll(const QString &before, const QString &after, Utils::FindFlags findFlags)
Sucht und ersetzt alle Vorkommen von „ before “ durch „ after “, wie unter findFlags angegeben.
[virtual] bool IFindSupport::replaceStep(const QString &before, const QString &after, Utils::FindFlags findFlags)
Ersetzt „ before “ durch „ after “, wie unter findFlags angegeben, und führt anschließend „ findStep()“ aus.
Gibt zurück, ob der Suchschritt eine weitere Übereinstimmung gefunden hat.
[pure virtual] void IFindSupport::resetIncrementalSearch()
Setzt die inkrementelle Suche auf die Startposition zurück.
[virtual] void IFindSupport::selectAll(const QString &txt, Utils::FindFlags findFlags)
Sucht und wählt alle Instanzen von „ txt “ mit dem angegebenen „ findFlags “ aus.
[static] void IFindSupport::showWrapIndicator(QWidget *parent)
Zeigt „ parent “ mit überlagertem Wrap-Indikator.
[pure virtual] Utils::FindFlags IFindSupport::supportedFindFlags() const
Gibt die Suchflags zurück, wie z. B. ganze Wörter oder reguläre Ausdrücke, die dieser Suchfilter unterstützt.
Je nach zurückgegebenem Wert werden die Standard-Suchoptions-Widgets aktiviert oder deaktiviert.
Standardmäßig sind „Uitls::FindBackward“, „ Utils::FindCaseSensitively “, „Uitls::FindRegularExpression“, „Uitls::FindWholeWords“ und „Uitls::FindPreserveCase“ aktiviert.
[pure virtual] bool IFindSupport::supportsReplace() const
Gibt zurück, ob der Suchfilter die Funktion „Suchen und Ersetzen“ unterstützt.
[virtual] bool IFindSupport::supportsSelectAll() const
Gibt zurück, ob der Suchfilter die Auswahl aller Ergebnisse unterstützt.
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.