33 #ifndef CXFILEPATHPROPERTY_H
34 #define CXFILEPATHPROPERTY_H
36 #include "cxResourceExport.h"
38 #include <QDomElement>
39 #include <QStringList>
59 void appendRootPath(QString path);
60 void setFilepath(QString filename);
62 QString getRelativeFilepath()
const;
63 QString getAbsoluteFilepath()
const;
65 QString getRootPath()
const;
66 QStringList getRootPaths()
const;
69 void evaluate(QString* foundRoot,
bool* found, QString* foundRelative, QString* foundAbsolute)
const;
86 static FilePathPropertyPtr initialize(
const QString& uid, QString name, QString help, QString value,
87 QStringList paths, QDomNode root = QDomNode());
91 virtual QString getDisplayName()
const;
92 virtual QString getUid()
const;
94 virtual QVariant getValueAsVariant()
const;
95 virtual void setValueFromVariant(QVariant val);
97 virtual bool setValue(
const QString& value);
98 virtual QString getValue()
const;
99 virtual QString getHelp()
const;
100 virtual void setHelp(QString val);
119 #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