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 qSlicerIO::IOFileType fileType()const override;
122 virtual
void setFileType(
qSlicerIO::IOFileType fileType);
126 QString description() const override;
127 virtual
void setDescription(const QString& description);
136 bool exec(const
qSlicerIO::IOProperties& ioProperties =
140 static QStringList getOpenFileName(
qSlicerIO::IOProperties ioProperties =
142 static QString getExistingDirectory(
qSlicerIO::IOProperties ioProperties =
146 QStringList loadedNodes()const override;
149 static ctkFileDialog* createFileDialog(const
qSlicerIO::IOProperties& ioProperties =
150 qSlicerIO::IOProperties(), QWidget* parent =
nullptr);
155 QScopedPointer<qSlicerStandardFileDialogPrivate> d_ptr;
Q_DECLARE_METATYPE(qSlicerExtensionsManagerModel::ServerAPI)
Base class for qSlicerFileReader and qSlicerFileWriter.