På denne side

Core::IFindSupport Class

class Core::IFindSupport

IFindSupport-klassen indeholder funktioner til søgning i et dokument eller en widget. Mere...

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

Offentlige typer

enum Result { Found, NotFound, NotYetFound }

Offentlige funktioner

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

Signaler

void changed()

Statiske offentlige medlemmer

void showWrapIndicator(QWidget *parent)

Detaljeret beskrivelse

Se også Core::BaseTextFind.

Dokumentation for medlemstyper

enum IFindSupport::Result

Denne enum angiver, om søgeordet blev fundet inden for søgeområdet ved hjælp af find-flagene.

KonstantVærdiBeskrivelse
Core::IFindSupport::Found0Søgeudtrykket blev fundet.
Core::IFindSupport::NotFound1Søgeordet blev ikke fundet.
Core::IFindSupport::NotYetFound2Søgeordet er endnu ikke fundet.

Dokumentation af medlemsfunktioner

[signal] void IFindSupport::changed()

Dette signal udsendes, når søgningen ændres.

[virtual] void IFindSupport::clearFindScope()

Rydder søgeområdet.

[pure virtual] void IFindSupport::clearHighlights()

Fjerner markeringen af søgeresultaterne i søgewidget.

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

Returnerer den fulde søgestreng.

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

Returnerer den aktuelle søgestreng.

[virtual] void IFindSupport::defineFindScope()

Definerer søgeområdet.

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

Udfører en inkrementel søgning efter søgeordet » txt « ved hjælp af » findFlags «.

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

Søgninger efter » txt « via findFlags.

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

Fremhæver alle søgeresultater for » txt «, når man bruger findFlags.

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

Erstatning af before med after som angivet på findFlags.

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

Søger efter og erstatter alle forekomster af before med after, som angivet på findFlags.

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

Erstat before med after som angivet på findFlags, og udfør derefter findStep().

Returnerer, om søgetrinnet fandt endnu et match.

[pure virtual] void IFindSupport::resetIncrementalSearch()

Nulstiller inkrementel søgning til startpositionen.

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

Finder og markerer alle forekomster af txt med den angivne findFlags.

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

Viser » parent « med wrap-indikatoren lagt ovenpå.

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

Returnerer de søgefunktioner, såsom hele ord eller regulære udtryk, som dette søgefilter understøtter.

Afhængigt af den returnerede værdi aktiveres eller deaktiveres standardwidgets for søgeindstillingerne.

Standardindstillingen er Uitls::FindBackward, Utils::FindCaseSensitively, Uitls::FindRegularExpression, Uitls::FindWholeWords og Uitls::FindPreserveCase.

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

Angiver, om søgefilteret understøtter søgning og erstatning.

[virtual] bool IFindSupport::supportsSelectAll() const

Angiver, om søgefilteret understøtter valg af alle resultater.

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.