Utils::FilePathAspect Class
class Utils::FilePathAspectUn "file path aspect" è un wrapper superficiale attorno a un " Utils::StringAspect " che rappresenta un file nel file system. Per saperne di più...
| Header: | #include <FilePathAspect> |
| Inherits: | Utils::TypedAspect |
Funzioni pubbliche
| 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 |
Funzioni pubbliche reimplementate
| virtual void | fromMap(const Utils::Store &map) override |
| virtual void | toMap(Utils::Store &map) const override |
Descrizione dettagliata
Viene visualizzato per impostazione predefinita utilizzando Utils::PathChooser.
La rappresentazione visiva contiene spesso un'etichetta davanti alla visualizzazione del valore effettivo.
Vedi anche Utils::StringAspect.
Documentazione delle funzioni membro
Utils::FilePath FilePathAspect::effectiveBinary() const
Restituisce il percorso completo del comando impostato. Ha rilevanza solo se il tipo previsto è Command o ExistingCommand e il percorso del file corrente è un eseguibile fornito senza il proprio percorso. Se necessario, esegue una ricerca in PATH.
[override virtual] void FilePathAspect::fromMap(const Utils::Store &map)
Reimplementa: BaseAspect::fromMap(const Utils::Store &map).
void FilePathAspect::makeCheckable(Utils::CheckBoxPlacement checkBoxPlacement, const QString &checkerLabel, const Utils::Key &checkerKey)
Aggiunge al campo di immissione un'opzione di selezione con un checkerLabel, come descritto su checkBoxPlacement.
Lo stato della casella di controllo viene reso persistente quando si utilizza un oggetto ` checkerKey` non vuoto.
void FilePathAspect::setExpectedKind(const Utils::PathChooser::Kind expectedKind)
Imposta " expectedKind " come tipo previsto per le schermate di selezione del percorso.
Vedi anche Utils::PathChooser::setExpectedKind().
void FilePathAspect::setValue(const Utils::FilePath &filePath, Utils::BaseAspect::Announcement howToAnnounce = DoEmit)
Imposta il valore dell'aspetto relativo al percorso del file su filePath.
Se howToAnnounce è impostato su DoEmit, emette il segnale valueChanged.
Nota: questa operazione non verifica se il valore sia effettivamente un percorso di file.
[override virtual] void FilePathAspect::toMap(Utils::Store &map) const
Reimplementa: ` BaseAspect::toMap` (Utils::Store &map) const.
Utils::FilePath FilePathAspect::operator()() const
Restituisce il valore di questo aspetto come Utils::FilePath.
Nota: questa operazione utilizza semplicemente FilePath::fromUserInput() per la conversione. Non viene effettuato alcun controllo per verificare che il valore sia effettivamente un percorso di file valido.
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.