Utils::FilePathAspect Class
class Utils::FilePathAspectEt filstiaspekt er en overfladisk indkapsling af en » Utils::StringAspect «, der repræsenterer en fil i filsystemet. Mere...
| Header: | #include <FilePathAspect> |
| Inherits: | Utils::TypedAspect |
Offentlige funktioner
| 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 |
Genimplementerede offentlige funktioner
| virtual void | fromMap(const Utils::Store &map) override |
| virtual void | toMap(Utils::Store &map) const override |
Detaljeret beskrivelse
Den vises som standard ved hjælp af Utils::PathChooser.
Den visuelle repræsentation indeholder ofte en etiket foran visningen af den faktiske værdi.
Se også Utils::StringAspect.
Dokumentation til medlemsfunktioner
Utils::FilePath FilePathAspect::effectiveBinary() const
Returnerer den fulde sti til den angivne kommando. Dette har kun betydning, hvis den forventede type er Command eller ExistingCommand, og den aktuelle filsti er et eksekverbart program, der er angivet uden sti. Der foretages om nødvendigt en søgning i PATH.
[override virtual] void FilePathAspect::fromMap(const Utils::Store &map)
Genimplementerer: BaseAspect::fromMap(const Utils::Store &map).
void FilePathAspect::makeCheckable(Utils::CheckBoxPlacement checkBoxPlacement, const QString &checkerLabel, const Utils::Key &checkerKey)
Tilføjer et afkrydsningsfelt med en » checkerLabel « i henhold til checkBoxPlacement til linjefeltet.
Afkrydsningsfeltets tilstand gemmes, når der anvendes et ikke-tomt checkerKey.
void FilePathAspect::setExpectedKind(const Utils::PathChooser::Kind expectedKind)
Indstiller » expectedKind « som den forventede type for visninger i sti-vælgeren.
Se også Utils::PathChooser::setExpectedKind().
void FilePathAspect::setValue(const Utils::FilePath &filePath, Utils::BaseAspect::Announcement howToAnnounce = DoEmit)
Indstiller værdien for dette filstiaspekt til filePath.
Hvis howToAnnounce er indstillet til DoEmit, udsender det signalet valueChanged.
Bemærk: Der foretages ingen kontrol af, om værdien rent faktisk er en filsti.
[override virtual] void FilePathAspect::toMap(Utils::Store &map) const
Genimplementerer: BaseAspect::toMap(Utils::Store &map) const.
Utils::FilePath FilePathAspect::operator()() const
Returnerer værdien af dette aspekt som Utils::FilePath.
Bemærk: Her anvendes blot FilePath::fromUserInput() til konverteringen. Der foretages ingen kontrol af, om værdien rent faktisk er en gyldig filsti.
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.