Na této stránce

Core::IFindSupport Class

class Core::IFindSupport

Třída IFindSupport poskytuje funkce pro vyhledávání v dokumentu nebo widgetu. Více...

Header: #include <coreplugin/find/ifindsupport.h>
Inherits: QObject

Veřejné typy

enum Result { Found, NotFound, NotYetFound }

Veřejné funkce

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

Signály

void changed()

Statické veřejné členy

void showWrapIndicator(QWidget *parent)

Podrobný popis

Viz také Core::BaseTextFind.

Dokumentace typů členů

enum IFindSupport::Result

Tento výčtový typ udává, zda byl hledaný výraz nalezen v rámci rozsahu vyhledávání s použitím vyhledávacích příznaků.

KonstantaHodnotaPopis
Core::IFindSupport::Found0Vyhledávaný výraz byl nalezen.
Core::IFindSupport::NotFound1Hledaný výraz nebyl nalezen.
Core::IFindSupport::NotYetFound2Hledaný výraz zatím nebyl nalezen.

Dokumentace členských funkcí

[signal] void IFindSupport::changed()

Tento signál se vysílá, když dojde ke změně vyhledávání.

[virtual] void IFindSupport::clearFindScope()

Vymaže rozsah vyhledávání.

[pure virtual] void IFindSupport::clearHighlights()

Vymazá zvýraznění výsledků vyhledávání ve vyhledávacím widgetu.

[pure virtual] QString IFindSupport::completedFindString() const

Vrátí celý vyhledávací řetězec.

[pure virtual] QString IFindSupport::currentFindString() const

Vrátí aktuální vyhledávací řetězec.

[virtual] void IFindSupport::defineFindScope()

Určuje rozsah vyhledávání.

[pure virtual] Core::IFindSupport::Result IFindSupport::findIncremental(const QString &txt, Utils::FindFlags findFlags)

Provede inkrementální vyhledávání hledaného výrazu „ txt “ pomocí stránky findFlags.

[pure virtual] Core::IFindSupport::Result IFindSupport::findStep(const QString &txt, Utils::FindFlags findFlags)

Vyhledávání výrazu „ txt “ pomocí stránky findFlags.

[virtual] void IFindSupport::highlightAll(const QString &txt, Utils::FindFlags findFlags)

Zvýrazní všechny výsledky vyhledávání pro výraz „ txt “ při použití stránky findFlags.

[virtual] void IFindSupport::replace(const QString &before, const QString &after, Utils::FindFlags findFlags)

Nahrazuje adresu before adresou after, jak je uvedeno na stránce findFlags.

[virtual] int IFindSupport::replaceAll(const QString &before, const QString &after, Utils::FindFlags findFlags)

Vyhledá a nahradí všechny výskyty adresy before adresou after, jak je uvedeno na stránce findFlags.

[virtual] bool IFindSupport::replaceStep(const QString &before, const QString &after, Utils::FindFlags findFlags)

Nahradí adresu before adresou after, jak je uvedeno na stránce findFlags, a poté provede funkci findStep().

Vrací, zda byl v kroku vyhledávání nalezen další shodný záznam.

[pure virtual] void IFindSupport::resetIncrementalSearch()

Vynuluje inkrementální vyhledávání a vrátí ho do výchozí polohy.

[virtual] void IFindSupport::selectAll(const QString &txt, Utils::FindFlags findFlags)

Vyhledá a vybere všechny výskyty výrazu „ txt “ s uvedeným „ findFlags “.

[static] void IFindSupport::showWrapIndicator(QWidget *parent)

Zobrazuje funkci „ parent “ s překrytým indikátorem obalení.

[pure virtual] Utils::FindFlags IFindSupport::supportedFindFlags() const

Vrací vyhledávací příznaky, jako jsou celá slova nebo regulární výrazy, které tento vyhledávací filtr podporuje.

V závislosti na vrácené hodnotě se zapnou nebo vypnou výchozí widgety vyhledávacích možností.

Výchozími možnostmi jsou Uitls::FindBackward, Utils::FindCaseSensitively, Uitls::FindRegularExpression, Uitls::FindWholeWords a Uitls::FindPreserveCase.

[pure virtual] bool IFindSupport::supportsReplace() const

Vrací, zda filtr vyhledávání podporuje funkci „vyhledat a nahradit“.

[virtual] bool IFindSupport::supportsSelectAll() const

Vrací, zda vyhledávací filtr podporuje výběr všech výsledků.

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.