Slicer  4.10
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

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

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 = 0)

◆ ~qSlicerDataDialog()

virtual qSlicerDataDialog::~qSlicerDataDialog ( )
virtual

Member Function Documentation

◆ action()

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

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()

virtual QString qSlicerDataDialog::description ( ) const
virtual

Unique name of the reader/writer

See also
filetype()

Implements qSlicerFileDialog.

◆ dropEvent()

virtual void qSlicerDataDialog::dropEvent ( QDropEvent *  event)
virtual

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()

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

run the dialog to select the file/files/directory

Implements qSlicerFileDialog.

◆ fileType()

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

Implements qSlicerFileDialog.

◆ isMimeDataAccepted()

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

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: