BaseTextFind Class
class Core::BaseTextFindThe BaseTextFind class implements a find filter for QPlainTextEdit and QTextEdit based widgets. More...
Header: | #include <coreplugin/find/basetextfind.h> |
Inherits: | Core::IFindSupport |
Reimplemented Public Functions
virtual void | clearFindScope() override |
virtual void | clearHighlights() override |
virtual QString | completedFindString() const override |
virtual QString | currentFindString() const override |
virtual void | defineFindScope() override |
virtual Core::IFindSupport::Result | findIncremental(const QString &txt, Utils::FindFlags findFlags) override |
virtual Core::IFindSupport::Result | findStep(const QString &txt, Utils::FindFlags findFlags) override |
virtual void | highlightAll(const QString &txt, Utils::FindFlags findFlags) override |
virtual void | replace(const QString &before, const QString &after, Utils::FindFlags findFlags) override |
virtual int | replaceAll(const QString &before, const QString &after, Utils::FindFlags findFlags) override |
virtual bool | replaceStep(const QString &before, const QString &after, Utils::FindFlags findFlags) override |
virtual void | resetIncrementalSearch() override |
virtual Utils::FindFlags | supportedFindFlags() const override |
virtual bool | supportsReplace() const override |
Signals
void | findScopeChanged(const Utils::MultiTextCursor &cursor) |
void | highlightAllRequested(const QString &txt, Utils::FindFlags findFlags) |
See also Core::IFindFilter.
Member Function Documentation
[override virtual]
void BaseTextFind::clearFindScope()
Reimplements: IFindSupport::clearFindScope().
[override virtual]
void BaseTextFind::clearHighlights()
Reimplements: IFindSupport::clearHighlights().
[override virtual]
QString BaseTextFind::completedFindString() const
Reimplements: IFindSupport::completedFindString() const.
[override virtual]
QString BaseTextFind::currentFindString() const
Reimplements: IFindSupport::currentFindString() const.
[override virtual]
void BaseTextFind::defineFindScope()
Reimplements: IFindSupport::defineFindScope().
[override virtual]
Core::IFindSupport::Result BaseTextFind::findIncremental(const QString &txt, Utils::FindFlags findFlags)
Reimplements: IFindSupport::findIncremental(const QString &txt, Utils::FindFlags findFlags).
[signal]
void BaseTextFind::findScopeChanged(const Utils::MultiTextCursor &cursor)
This signal is emitted when the search scope changes to cursor.
[override virtual]
Core::IFindSupport::Result BaseTextFind::findStep(const QString &txt, Utils::FindFlags findFlags)
Reimplements: IFindSupport::findStep(const QString &txt, Utils::FindFlags findFlags).
[override virtual]
void BaseTextFind::highlightAll(const QString &txt, Utils::FindFlags findFlags)
Reimplements: IFindSupport::highlightAll(const QString &txt, Utils::FindFlags findFlags).
Emits highlightAllRequested().
[signal]
void BaseTextFind::highlightAllRequested(const QString &txt, Utils::FindFlags findFlags)
This signal is emitted when the search results for txt using the given findFlags should be highlighted in the editor widget.
[override virtual]
void BaseTextFind::replace(const QString &before, const QString &after, Utils::FindFlags findFlags)
Reimplements: IFindSupport::replace(const QString &before, const QString &after, Utils::FindFlags findFlags).
[override virtual]
int BaseTextFind::replaceAll(const QString &before, const QString &after, Utils::FindFlags findFlags)
Reimplements: IFindSupport::replaceAll(const QString &before, const QString &after, Utils::FindFlags findFlags).
Returns the number of search hits replaced.
[override virtual]
bool BaseTextFind::replaceStep(const QString &before, const QString &after, Utils::FindFlags findFlags)
Reimplements: IFindSupport::replaceStep(const QString &before, const QString &after, Utils::FindFlags findFlags).
[override virtual]
void BaseTextFind::resetIncrementalSearch()
Reimplements: IFindSupport::resetIncrementalSearch().
[override virtual]
Utils::FindFlags BaseTextFind::supportedFindFlags() const
Reimplements: IFindSupport::supportedFindFlags() const.
[override virtual]
bool BaseTextFind::supportsReplace() const
Reimplements: IFindSupport::supportsReplace() const.
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.