Slicer  4.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Slots | Public Member Functions | Protected Attributes
qSlicerDataDialog Class Reference

#include <Base/QTGUI/qSlicerDataDialog.h>

Inheritance diagram for qSlicerDataDialog:
Inheritance graph
[legend]
Collaboration diagram for qSlicerDataDialog:
Collaboration graph
[legend]

Public Types

typedef qSlicerFileDialog Superclass
 
- Public Types inherited from qSlicerFileDialog
enum  IOAction { Read, Write }
 
typedef QObject Superclass
 

Public Slots

virtual void addDirectory (const QString directoryPath)
 
virtual void addFile (const QString filePath)
 for programmatic population of dialog More...
 

Public Member Functions

qSlicerFileDialog::IOAction action () const override
 
QString description () const override
 
void dropEvent (QDropEvent *event) override
 
Q_INVOKABLE bool exec (const qSlicerIO::IOProperties &readerProperties=qSlicerIO::IOProperties()) override
 run the dialog to select the file/files/directory More...
 
qSlicerIO::IOFileType fileType () const override
 
bool isMimeDataAccepted (const QMimeData *mimeData) const override
 
 qSlicerDataDialog (QObject *parent=nullptr)
 
 ~qSlicerDataDialog () override
 
- Public Member Functions inherited from qSlicerFileDialog
virtual QStringList loadedNodes () const
 
 qSlicerFileDialog (QObject *parent=nullptr)
 
 ~qSlicerFileDialog () override
 

Protected Attributes

QScopedPointer< qSlicerDataDialogPrivate > d_ptr
 

Additional Inherited Members

- Properties inherited from qSlicerFileDialog
QString description
 
- Static Public Member Functions inherited from qSlicerFileDialog
static QStringList nameFilters (qSlicerIO::IOFileType fileType=QString("NoFile"))
 

Detailed Description

Definition at line 36 of file qSlicerDataDialog.h.

Member Typedef Documentation

◆ Superclass

Definition at line 40 of file qSlicerDataDialog.h.

Constructor & Destructor Documentation

◆ qSlicerDataDialog()

qSlicerDataDialog::qSlicerDataDialog ( QObject *  parent = nullptr)

◆ ~qSlicerDataDialog()

qSlicerDataDialog::~qSlicerDataDialog ( )
override

Member Function Documentation

◆ action()

qSlicerFileDialog::IOAction qSlicerDataDialog::action ( ) const
overridevirtual

Implements qSlicerFileDialog.

◆ addDirectory

virtual void qSlicerDataDialog::addDirectory ( const QString  directoryPath)
virtualslot

◆ addFile

virtual void qSlicerDataDialog::addFile ( const QString  filePath)
virtualslot

for programmatic population of dialog

◆ description()

QString qSlicerDataDialog::description ( ) const
overridevirtual

Unique name of the reader/writer

See also
filetype()

Implements qSlicerFileDialog.

◆ dropEvent()

void qSlicerDataDialog::dropEvent ( QDropEvent *  event)
overridevirtual

Handle drop events: populate the dialog with the dropped mime data. Can be reimplemented in subclass to support drag&drop. Do nothing by default. If it does something, acceptProposedAction() or accept() must be called.

See also
isMimeDataAccepted()

Reimplemented from qSlicerFileDialog.

◆ exec()

Q_INVOKABLE bool qSlicerDataDialog::exec ( const qSlicerIO::IOProperties readerProperties = qSlicerIO::IOProperties())
overridevirtual

run the dialog to select the file/files/directory

Implements qSlicerFileDialog.

◆ fileType()

qSlicerIO::IOFileType qSlicerDataDialog::fileType ( ) const
overridevirtual

Implements qSlicerFileDialog.

◆ isMimeDataAccepted()

bool qSlicerDataDialog::isMimeDataAccepted ( const QMimeData *  mimeData) const
overridevirtual

Accept or ignore mimedata. Returns false by default. Can be reimplemented in subclass to support drag&drop.

See also
dropEvent()

Reimplemented from qSlicerFileDialog.

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerDataDialogPrivate> qSlicerDataDialog::d_ptr
protected

Definition at line 61 of file qSlicerDataDialog.h.


The documentation for this class was generated from the following file: