11 #ifndef CXFILEPATHPROPERTYBASE_H 12 #define CXFILEPATHPROPERTYBASE_H 16 #include <QDomElement> 34 void appendRootPath(QString path);
35 void setFilepath(QString filename);
37 QString getRelativeFilepath()
const;
38 QString getAbsoluteFilepath()
const;
40 QString getRootPath()
const;
41 QStringList getRootPaths()
const;
44 void evaluate(QString* foundRoot,
bool* found, QString* foundRelative, QString* foundAbsolute)
const;
65 virtual QString getDisplayName()
const;
69 return QVariant(this->getValue());
73 this->setValue(val.toString());
76 virtual QString
getUid()
const {
return this->getDisplayName()+
"_uid"; }
77 virtual bool setValue(
const QString& value);
78 virtual QString getValue()
const;
94 #endif // CXFILEPATHPROPERTYBASE_H virtual QString getUid() const
virtual QVariant getValueAsVariant() const
EmbeddedFilepath mFilePath
Superclass for all data adapters.
Helper class for storing one string value in an xml document.
virtual ~FilePathPropertyBase()
QString mName
emitted when the value is set using setValue() (similar to changed(), but more constrained) ...
Base class for properties using a file path.
virtual void setValueFromVariant(QVariant val)
Namespace for all CustusX production code.