Core::IFindSupport Class
class Core::IFindSupportIFindSupport 클래스는 문서나 위젯 내에서 검색할 수 있는 기능을 제공합니다. 더 보기...
| Header: | #include <coreplugin/find/ifindsupport.h> |
| Inherits: | QObject |
공개 유형
| enum | Result { Found, NotFound, NotYetFound } |
공개 함수
| 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 |
신호
| void | changed() |
정적 공용 멤버
| void | showWrapIndicator(QWidget *parent) |
Core::BaseTextFind도 참조하십시오 .
멤버 유형 문서
enum IFindSupport::Result
이 열거형은 find 플래그를 사용하여 검색 범위 내에서 검색어가 발견되었는지 여부를 나타냅니다.
| 상수 | 값 | 설명 |
|---|---|---|
Core::IFindSupport::Found | 0 | 검색어가 발견되었습니다. |
Core::IFindSupport::NotFound | 1 | 검색어가 발견되지 않았습니다. |
Core::IFindSupport::NotYetFound | 2 | 검색어를 아직 찾지 못했습니다. |
멤버 함수 문서
[signal] void IFindSupport::changed()
검색 조건이 변경되면 이 신호가 발생합니다.
[virtual] void IFindSupport::clearFindScope()
검색 범위를 지웁니다.
[pure virtual] void IFindSupport::clearHighlights()
검색한 위젯에서 검색 결과의 강조 표시를 해제합니다.
[pure virtual] QString IFindSupport::completedFindString() const
전체 검색 문자열을 반환합니다.
[pure virtual] QString IFindSupport::currentFindString() const
현재 검색 문자열을 반환합니다.
[virtual] void IFindSupport::defineFindScope()
검색 범위를 정의합니다.
[pure virtual] Core::IFindSupport::Result IFindSupport::findIncremental(const QString &txt, Utils::FindFlags findFlags)
findFlags 를 사용하여 ‘ txt ’라는 검색어에 대한 증분 검색을 수행합니다.
[pure virtual] Core::IFindSupport::Result IFindSupport::findStep(const QString &txt, Utils::FindFlags findFlags)
findFlags 을 사용하여 txt 에 대한 검색 결과.
[virtual] void IFindSupport::highlightAll(const QString &txt, Utils::FindFlags findFlags)
findFlags 를 사용할 때 ‘ txt ’에 대한 모든 검색 결과를 강조 표시합니다.
[virtual] void IFindSupport::replace(const QString &before, const QString &after, Utils::FindFlags findFlags)
findFlags 에 명시된 대로 before 을 after 으로 대체합니다.
[virtual] int IFindSupport::replaceAll(const QString &before, const QString &after, Utils::FindFlags findFlags)
findFlags 에 명시된 대로, ‘ before ’이 포함된 모든 부분을 ‘ after ’로 찾아서 바꾸습니다.
[virtual] bool IFindSupport::replaceStep(const QString &before, const QString &after, Utils::FindFlags findFlags)
findFlags 에 명시된 대로 before 을 after 으로 대체한 다음, findStep()을 수행합니다.
찾기 단계에서 또 다른 일치 항목을 찾았는지 여부를 반환합니다.
[pure virtual] void IFindSupport::resetIncrementalSearch()
증분 검색을 시작 위치로 재설정합니다.
[virtual] void IFindSupport::selectAll(const QString &txt, Utils::FindFlags findFlags)
지정된 ` findFlags` 조건에 맞는 ` txt `의 모든 인스턴스를 찾아 선택합니다.
[static] void IFindSupport::showWrapIndicator(QWidget *parent)
parent 에 랩 표시기가 중첩된 모습을 보여줍니다.
[pure virtual] Utils::FindFlags IFindSupport::supportedFindFlags() const
이 찾기 필터가 지원하는 ‘전체 단어’나 ‘정규 표현식’과 같은 찾기 플래그를 반환합니다.
반환된 값에 따라 기본 찾기 옵션 위젯이 활성화되거나 비활성화됩니다.
기본값은 Uitls::FindBackward, Utils::FindCaseSensitively, Uitls::FindRegularExpression, Uitls::FindWholeWords 및 Uitls::FindPreserveCase입니다.
[pure virtual] bool IFindSupport::supportsReplace() const
find 필터가 검색 및 바꾸기 기능을 지원하는지 여부를 반환합니다.
[virtual] bool IFindSupport::supportsSelectAll() 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.