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::PathChooser.
Візуальне представлення часто містить мітку перед відображенням фактичного значення.
Див. також Utils::StringAspect.
Документація до функцій-членів
Utils::FilePath FilePathAspect::effectiveBinary() const
Повертає повний шлях до команди, що задається. Має значення лише в тому випадку, якщо очікуваний тип — 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)
Додає до поля редагування рядок прапорець із checkerLabel відповідно до checkBoxPlacement.
Стан прапорця зберігається, якщо використовується непорожній параметр « 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.