21 #ifndef __qSlicerScriptedFileReader_h 22 #define __qSlicerScriptedFileReader_h 26 #include "qSlicerBaseQTCoreExport.h" 33 class qSlicerScriptedFileReaderPrivate;
42 Q_PROPERTY(QStringList loadedNodes READ loadedNodes WRITE setLoadedNodes)
49 QString pythonSource()
const;
53 bool setPythonSource(
const QString& newPythonSource,
const QString& className = QLatin1String(
""),
bool missingClassIsExpected =
true);
72 bool canLoadFile(
const QString& file)
const override;
83 return Superclass::loadedNodes();
86 Superclass::setLoadedNodes(
nodes);
90 QScopedPointer<qSlicerScriptedFileReaderPrivate>
d_ptr;
qSlicerFileReader Superclass
virtual bool load(const IOProperties &properties)
Properties availables : fileMode, multipleFiles, fileType.
virtual QString description() const =0
Unique name of the reader/writer.
virtual QStringList extensions() const
virtual IOFileType fileType() const =0
Multiple readers can share the same file type.
void setLoadedNodes(const QStringList &nodes) override
virtual bool canLoadFile(const QString &file) const
QScopedPointer< qSlicerFileReaderPrivate > d_ptr
QStringList loadedNodes() const override