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.