21 #ifndef __qSlicerRelativePathMapper_h 22 #define __qSlicerRelativePathMapper_h 28 #include "qSlicerBaseQTCoreExport.h" 29 class qSlicerRelativePathMapperPrivate;
51 Q_PROPERTY(QByteArray propertyName READ propertyName)
53 Q_PROPERTY(QString path READ path WRITE setPath NOTIFY pathChanged)
54 Q_PROPERTY(QStringList paths READ paths WRITE setPaths NOTIFY pathsChanged)
56 Q_PROPERTY(QString relativePath READ relativePath WRITE setRelativePath NOTIFY relativePathChanged STORED false)
57 Q_PROPERTY(QStringList relativePaths READ relativePaths WRITE setRelativePaths NOTIFY relativePathsChanged STORED false)
67 QByteArray propertyName()const;
70 QObject* targetObject()const;
73 QStringList paths()const;
75 QString relativePath()const;
76 QStringList relativePaths()const;
78 void setPath(const QString& path);
79 void setPaths(const QStringList& path);
80 void setRelativePath(const QString& path);
81 void setRelativePaths(const QStringList& paths);
84 void emitPathChanged();
85 void emitPathsChanged();
88 void pathChanged(const QString& value);
89 void pathsChanged(const QStringList& value);
90 void relativePathChanged(const QString& value);
91 void relativePathsChanged(const QStringList& value);
94 QScopedPointer<qSlicerRelativePathMapperPrivate> d_ptr;