Utils::FilePathAspect Class
class Utils::FilePathAspect파일 경로 측면은 파일 시스템 내의 파일을 나타내는 파일 객체( Utils::StringAspect )를 감싸는 얕은 래퍼입니다. 더 보기...
| Header: | #include <FilePathAspect> |
| Inherits: | Utils::TypedAspect |
공개 함수
| Utils::FilePath | effectiveBinary() const |
| void | makeCheckable(Utils::CheckBoxPlacement checkBoxPlacement, const QString &checkerLabel, const Utils::Key &checkerKey) |
| void | setExpectedKind(const Utils::PathChooser::Kind expectedKind) |
| void | setValue(const Utils::FilePath &filePath, Utils::BaseAspect::Announcement howToAnnounce = DoEmit) |
| Utils::FilePath | operator()() const |
재구현된 공용 함수
| virtual void | fromMap(const Utils::Store &map) override |
| virtual void | toMap(Utils::Store &map) const override |
Utils::StringAspect도 참조하십시오 .
멤버 함수 문서
Utils::FilePath FilePathAspect::effectiveBinary() const
set 명령의 전체 경로를 반환합니다. 이 동작은 예상되는 종류가 ` Command ` 또는 ` ExistingCommand `이고, 현재 파일 경로가 경로 정보가 포함되지 않은 실행 파일인 경우에만 차이가 발생합니다. 필요한 경우 PATH에서 검색을 수행합니다.
[override virtual] void FilePathAspect::fromMap(const Utils::Store &map)
BaseAspect::fromMap(const Utils::Store &map)를 재구현합니다.
void FilePathAspect::makeCheckable(Utils::CheckBoxPlacement checkBoxPlacement, const QString &checkerLabel, const Utils::Key &checkerKey)
checkBoxPlacement 에 따라 checkerLabel 속성을 가진 체크박스를 라인 에디트에 추가합니다.
checkerKey 의 값이 비어 있지 않은 경우, 체크박스의 상태가 영구적으로 유지됩니다.
void FilePathAspect::setExpectedKind(const Utils::PathChooser::Kind expectedKind)
경로 선택기 표시창의 예상 유형을 ‘ expectedKind ’로 설정합니다.
Utils::PathChooser::setExpectedKind()도 참조하십시오 .
void FilePathAspect::setValue(const Utils::FilePath &filePath, Utils::BaseAspect::Announcement howToAnnounce = DoEmit)
이 파일 경로 측면의 값을 filePath 으로 설정합니다.
howToAnnounce 가 DoEmit 로 설정된 경우, valueChanged 신호를 발생시킵니다.
참고: 이 기능은 값이 실제로 파일 경로인지에 대한 어떠한 검사도 수행하지 않습니다.
[override virtual] void FilePathAspect::toMap(Utils::Store &map) const
BaseAspect::toMap(Utils::Store &map) const를 재구현합니다.
Utils::FilePath FilePathAspect::operator()() const
이 어스펙트의 값을 Utils::FilePath 형식으로 반환합니다.
참고: 이 메서드는 변환을 위해 단순히 ` FilePath::fromUserInput() `를 사용합니다. 해당 값이 실제로 유효한 파일 경로인지에 대한 검사는 수행하지 않습니다.
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.