15 #include <QDomElement> 16 #include <QStringList> 35 retval->mName = name.isEmpty() ? uid : name;
37 retval->mFilePath.setFilepath(value);
38 foreach (QString path, paths)
39 retval->mFilePath.appendRootPath(path);
41 retval->mFilePath.setFilepath(retval->mStore.readValue(value));
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
virtual void setHelp(QString val)
Helper class for storing one string value in an xml document.
virtual void setValueFromVariant(QVariant val)
virtual QString getValue() const
virtual QVariant getValueAsVariant() const
virtual QString getUid() const
void changed()
emit when the underlying data value is changed: The user interface will be updated.
static FilePathPropertyPtr initialize(const QString &uid, QString name, QString help, QString value, QStringList paths, QDomNode root=QDomNode())
virtual bool setValue(const QString &value)
boost::shared_ptr< class FilePathProperty > FilePathPropertyPtr
Namespace for all CustusX production code.