Utils::FilePathAspect Class
class Utils::FilePathAspectAspekt putanje datoteke je plitki omotač oko e Utils::StringAspect a koji predstavlja datoteku u datotečnom sustavu. Više...
| Header: | #include <FilePathAspect> |
| Inherits: | Utils::TypedAspect |
Javne funkcije
| 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 |
Ponovno implementirane javne funkcije
| virtual void | fromMap(const Utils::Store &map) override |
| virtual void | toMap(Utils::Store &map) const override |
Detaljan opis
Zadano se prikazuje pomoću Utils::PathChooser.
Vizualni prikaz često sadrži oznaku ispred prikaza stvarne vrijednosti.
Vidi također Utils::StringAspect.
Dokumentacija funkcija člana
Utils::FilePath FilePathAspect::effectiveBinary() const
Vraća punu putanju naredbe set. Razliku čini samo ako je očekivani tip Command ili ExistingCommand i ako je trenutna putanja datoteke izvršna datoteka dostavljena bez svoje putanje. Po potrebi provodi pretraživanje u PATH-u.
[override virtual] void FilePathAspect::fromMap(const Utils::Store &map)
Ponovno implementira: BaseAspect::fromMap(const Utils::Store &map).
void FilePathAspect::makeCheckable(Utils::CheckBoxPlacement checkBoxPlacement, const QString &checkerLabel, const Utils::Key &checkerKey)
Dodaje potvrdni okvir s checkerLabel om prema checkBoxPlacement u polje za unos retka.
Stanje potvrdnog okvira postaje trajno kada se koristi ne-prazan checkerKey.
void FilePathAspect::setExpectedKind(const Utils::PathChooser::Kind expectedKind)
Postavlja expectedKind kao očekivani tip za prikaze odabira puta.
Vidi također Utils::PathChooser::setExpectedKind().
void FilePathAspect::setValue(const Utils::FilePath &filePath, Utils::BaseAspect::Announcement howToAnnounce = DoEmit)
Postavlja vrijednost ovog aspekta putanje datoteke na filePath.
Ako je howToAnnounce postavljeno na DoEmit, emitira signal valueChanged.
Napomena: Ovo ne koristi nikakvu provjeru da vrijednost doista predstavlja putanju datoteke.
[override virtual] void FilePathAspect::toMap(Utils::Store &map) const
Ponovno implementira: BaseAspect::toMap(Utils::Store &map) const.
Utils::FilePath FilePathAspect::operator()() const
Vraća vrijednost ovog aspekta kao Utils::FilePath.
Napomena: Ovo jednostavno koristi FilePath::fromUserInput() za konverziju. Ne koristi nikakvu provjeru je li vrijednost zapravo valjana putanja do datoteke.
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.