21 #ifndef __qSlicerFileDialog_h 22 #define __qSlicerFileDialog_h 26 #include <QStringList> 35 #include "qSlicerBaseQTGUIExport.h" 47 Q_PROPERTY(QString description READ description)
54 virtual
qSlicerIO::IOFileType fileType()const = 0;
58 virtual QString description()const = 0;
81 virtual bool isMimeDataAccepted(
const QMimeData*mimeData)
const;
88 virtual void dropEvent(QDropEvent *event);
93 virtual QStringList loadedNodes()
const;
101 class qSlicerStandardFileDialogPrivate;
110 Q_PROPERTY(QString description READ description WRITE setDescription)
113 Q_PROPERTY(
IOAction action READ action WRITE setAction)
121 virtual
qSlicerIO::IOFileType fileType()const;
122 virtual
void setFileType(
qSlicerIO::IOFileType fileType);
126 virtual QString description() const;
127 virtual
void setDescription(const QString& description);
136 virtual
bool exec(const
qSlicerIO::IOProperties& ioProperties =
140 static QStringList getOpenFileName(
qSlicerIO::IOProperties ioProperties =
142 static QString getExistingDirectory(
qSlicerIO::IOProperties ioProperties =
146 virtual QStringList loadedNodes()const;
149 static ctkFileDialog* createFileDialog(const
qSlicerIO::IOProperties& ioProperties =
155 QScopedPointer<qSlicerStandardFileDialogPrivate> d_ptr;
Base class for qSlicerFileReader and qSlicerFileWriter.