Auf dieser Seite

Utils::FilePathAspect Class

class Utils::FilePathAspect

Ein Dateipfad-Aspekt ist eine oberflächliche Hülle um einen „ Utils::StringAspect “, der eine Datei im Dateisystem repräsentiert. Mehr...

Header: #include <FilePathAspect>
Inherits: Utils::TypedAspect

Öffentliche Funktionen

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

Neu implementierte öffentliche Funktionen

virtual void fromMap(const Utils::Store &map) override
virtual void toMap(Utils::Store &map) const override

Ausführliche Beschreibung

Standardmäßig wird die Anzeige mithilfe von „ Utils::PathChooser “ dargestellt.

Die visuelle Darstellung enthält oft eine Beschriftung vor der Anzeige des tatsächlichen Werts.

Siehe auch „ Utils::StringAspect “.

Dokumentation der Mitgliedsfunktionen

Utils::FilePath FilePathAspect::effectiveBinary() const

Gibt den vollständigen Pfad des Befehls „set“ zurück. Dies ist nur dann von Bedeutung, wenn als Typ „ Command “ oder „ ExistingCommand “ erwartet wird und der aktuelle Dateipfad ein ausführbares Programm ist, das ohne seinen Pfad angegeben wurde. Führt bei Bedarf eine Suche in der Umgebungsvariable „PATH“ durch.

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

Implementiert neu: BaseAspect::fromMap(const Utils::Store &map).

void FilePathAspect::makeCheckable(Utils::CheckBoxPlacement checkBoxPlacement, const QString &checkerLabel, const Utils::Key &checkerKey)

Fügt dem Zeileneingabefeld ein Kontrollkästchen mit einem „ checkerLabel “ gemäß checkBoxPlacement hinzu.

Der Status des Kontrollkästchens wird beibehalten, wenn ein nicht leeres „ checkerKey “ verwendet wird.

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

Legt „ expectedKind “ als erwarteten Typ für die Anzeige der Pfadauswahl fest.

Siehe auch Utils::PathChooser::setExpectedKind().

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

Legt den Wert dieses Dateipfad-Aspekts auf „ filePath “ fest.

Wenn „ howToAnnounce “ auf „ DoEmit “ gesetzt ist, wird das Signal „ valueChanged “ ausgelöst.

Hinweis: Es wird nicht überprüft, ob der Wert tatsächlich ein Dateipfad ist.

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

Implementiert erneut: „ BaseAspect::toMap “ (Utils::Store &map) const.

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

Gibt den Wert dieses Aspekts als „ Utils::FilePath “ zurück.

Hinweis: Hierbei wird lediglich „ FilePath::fromUserInput() “ für die Konvertierung verwendet. Es wird nicht überprüft, ob der Wert tatsächlich ein gültiger Dateipfad ist.

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.