12 #ifndef CXFILEPATHPROPERTY_H 13 #define CXFILEPATHPROPERTY_H 15 #include "cxResourceExport.h" 17 #include <QDomElement> 18 #include <QStringList> 38 void appendRootPath(QString path);
39 void setFilepath(QString filename);
41 QString getRelativeFilepath()
const;
42 QString getAbsoluteFilepath()
const;
44 QString getRootPath()
const;
45 QStringList getRootPaths()
const;
48 void evaluate(QString* foundRoot,
bool* found, QString* foundRelative, QString* foundAbsolute)
const;
65 static FilePathPropertyPtr initialize(
const QString& uid, QString name, QString help, QString value,
66 QStringList paths, QDomNode root = QDomNode());
70 virtual QString getDisplayName()
const;
71 virtual QString getUid()
const;
73 virtual QVariant getValueAsVariant()
const;
74 virtual void setValueFromVariant(QVariant val);
76 virtual bool setValue(
const QString& value);
77 virtual QString getValue()
const;
78 virtual QString getHelp()
const;
79 virtual void setHelp(QString val);
98 #endif // CXFILEPATHPROPERTY_H
Superclass for all data adapters.
Helper class for storing one string value in an xml document.
boost::shared_ptr< class FilePathProperty > FilePathPropertyPtr
Namespace for all CustusX production code.