Na tej strani

Utils::FilePathAspect Class

class Utils::FilePathAspect

Aspekt poti do datoteke je površinski ovoj okoli objekta » Utils::StringAspect «, ki predstavlja datoteko v datotečnem sistemu. Več...

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

Podroben opis

Prikazuje se privzeto z uporabo Utils::PathChooser.

Vizualna predstavitev pogosto vsebuje oznako pred prikazom dejanske vrednosti.

Glej tudi Utils::StringAspect.

Dokumentacija funkcij članov

Utils::FilePath FilePathAspect::effectiveBinary() const

Vrne celotno pot do ukaza set. To je pomembno le, če je pričakovana vrsta Command ali ExistingCommand, trenutna pot do datoteke pa je izvedljiva datoteka, ki je navedena brez poti. Po potrebi opravi iskanje v spremenljivki PATH.

[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)

V polje za urejanje besedila doda potrditveno polje z » checkerLabel « v skladu s checkBoxPlacement.

Stanje potrditvenega polja se ohrani, če se uporabi vrednost » checkerKey «, ki ni prazna.

void FilePathAspect::setExpectedKind(const Utils::PathChooser::Kind expectedKind)

Določi » expectedKind « kot pričakovano vrsto za prikaze izbirnika poti.

Glej tudi Utils::PathChooser::setExpectedKind().

void FilePathAspect::setValue(const Utils::FilePath &filePath, Utils::BaseAspect::Announcement howToAnnounce = DoEmit)

Nastavi vrednost tega vidika poti do datoteke na filePath.

Če je howToAnnounce nastavljen na DoEmit, sproži signal valueChanged.

Opomba: Pri tem se ne preverja, ali je vrednost dejansko pot do datoteke.

[override virtual] void FilePathAspect::toMap(Utils::Store &map) const

Ponovno implementira: BaseAspect::toMap(Utils::Store &map) const.

Utils::FilePath FilePathAspect::operator()() const

Vrne vrednost tega aspekta kot » Utils::FilePath «.

Opomba: Pri pretvorbise preprosto uporabi FilePath::fromUserInput(). Ne preverja se, ali je vrednost dejansko veljavna pot 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.