Utils::FilePathAspect Class
class Utils::FilePathAspectElement „ścieżka do pliku” stanowi prostą otoczkę wokół obiektu typu ` Utils::StringAspect `, który reprezentuje plik w systemie plików. Więcej...
| Header: | #include <FilePathAspect> |
| Inherits: | Utils::TypedAspect |
Funkcje publiczne
| 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 |
Ponownie zaimplementowane funkcje publiczne
| virtual void | fromMap(const Utils::Store &map) override |
| virtual void | toMap(Utils::Store &map) const override |
Szczegółowy opis
Domyślnie jest wyświetlana przy użyciu klasy ` Utils::PathChooser`.
Reprezentacja wizualna często zawiera etykietę umieszczoną przed wyświetleniem rzeczywistej wartości.
Zobacz też: Utils::StringAspect.
Dokumentacja funkcji składowych
Utils::FilePath FilePathAspect::effectiveBinary() const
Zwraca pełną ścieżkę polecenia set. Ma to znaczenie tylko wtedy, gdy oczekiwanym typem jest Command lub ExistingCommand, a bieżąca ścieżka pliku odnosi się do pliku wykonywalnego podanego bez ścieżki. W razie potrzeby przeprowadza wyszukiwanie w zmiennej PATH.
[override virtual] void FilePathAspect::fromMap(const Utils::Store &map)
Zrealizowuje: BaseAspect::fromMap(const Utils::Store &map).
void FilePathAspect::makeCheckable(Utils::CheckBoxPlacement checkBoxPlacement, const QString &checkerLabel, const Utils::Key &checkerKey)
Dodaje do pola edycji tekstu pole wyboru z tekstem „ checkerLabel ” zgodnie z checkBoxPlacement.
Stan pola wyboru jest zapamiętywany, jeśli używana jest niepusta wartość typu „ checkerKey ”.
void FilePathAspect::setExpectedKind(const Utils::PathChooser::Kind expectedKind)
Ustawia „ expectedKind ” jako oczekiwany typ wyświetlaczy wyboru ścieżki.
Zobacz także funkcję Utils::PathChooser::setExpectedKind().
void FilePathAspect::setValue(const Utils::FilePath &filePath, Utils::BaseAspect::Announcement howToAnnounce = DoEmit)
Ustawia wartość tego aspektu ścieżki pliku na filePath.
Jeśli howToAnnounce jest ustawione na DoEmit, generowany jest sygnał valueChanged.
Uwaga: Nie jesttu sprawdzane, czy podana wartość faktycznie jest ścieżką do pliku.
[override virtual] void FilePathAspect::toMap(Utils::Store &map) const
Ponowna implementacja: BaseAspect::toMap(Utils::Store &map) const.
Utils::FilePath FilePathAspect::operator()() const
Zwraca wartość tego aspektu w formacie Utils::FilePath.
Uwaga: Funkcja ta wykorzystuje po prostu adres FilePath::fromUserInput() do konwersji. Nie sprawdza, czy podana wartość jest rzeczywiście prawidłową ścieżką do pliku.
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.