Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Properties | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
qSlicerStandardFileDialog Class Reference

#include <Base/QTGUI/qSlicerFileDialog.h>

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

Properties

IOAction action
 
QString description
 
qSlicerIO::IOFileType fileType
 
- Properties inherited from qSlicerFileDialog
QString description
 

Public Member Functions

virtual qSlicerFileDialog::IOAction action () const
 
virtual QString description () const
 
virtual bool exec (const qSlicerIO::IOProperties &ioProperties=qSlicerIO::IOProperties())
 
virtual qSlicerIO::IOFileType fileType () const
 
virtual QStringList loadedNodes () const
 Return the list of nodes created by exec(). More...
 
 qSlicerStandardFileDialog (QObject *parent=0)
 
void setAction (IOAction action)
 
virtual void setDescription (const QString &description)
 
virtual void setFileType (qSlicerIO::IOFileType fileType)
 
virtual ~qSlicerStandardFileDialog ()
 
- Public Member Functions inherited from qSlicerFileDialog
virtual void dropEvent (QDropEvent *event)
 
virtual bool isMimeDataAccepted (const QMimeData *mimeData) const
 
 qSlicerFileDialog (QObject *parent=0)
 
virtual ~qSlicerFileDialog ()
 

Static Public Member Functions

static QString getExistingDirectory (qSlicerIO::IOProperties ioProperties=qSlicerIO::IOProperties())
 
static QStringList getOpenFileName (qSlicerIO::IOProperties ioProperties=qSlicerIO::IOProperties())
 Properties availables with IOPorperties: fileMode, multipleFiles, fileType. More...
 
- Static Public Member Functions inherited from qSlicerFileDialog
static QStringList nameFilters (qSlicerIO::IOFileType fileType=QString("NoFile"))
 

Protected Member Functions

qSlicerIOOptionsoptions (const qSlicerIO::IOProperties &ioProperties) const
 

Static Protected Member Functions

static ctkFileDialog * createFileDialog (const qSlicerIO::IOProperties &ioProperties=qSlicerIO::IOProperties())
 

Protected Attributes

QScopedPointer< qSlicerStandardFileDialogPrivate > d_ptr
 

Additional Inherited Members

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

Detailed Description

Definition at line 105 of file qSlicerFileDialog.h.

Property Documentation

◆ action

IOAction qSlicerStandardFileDialog::action
readwrite

This property controls which action the dialog is doing: read or write. Read by default.

Definition at line 113 of file qSlicerFileDialog.h.

◆ description

QString qSlicerStandardFileDialog::description
readwrite

Definition at line 110 of file qSlicerFileDialog.h.

◆ fileType

qSlicerIO::IOFileType qSlicerStandardFileDialog::fileType
readwrite

Definition at line 109 of file qSlicerFileDialog.h.

Constructor & Destructor Documentation

◆ qSlicerStandardFileDialog()

qSlicerStandardFileDialog::qSlicerStandardFileDialog ( QObject *  parent = 0)

◆ ~qSlicerStandardFileDialog()

virtual qSlicerStandardFileDialog::~qSlicerStandardFileDialog ( )
virtual

Member Function Documentation

◆ action()

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

Reimplemented to return the IOAction set by setAction()

See also
action, setAction()

Implements qSlicerFileDialog.

◆ createFileDialog()

static ctkFileDialog* qSlicerStandardFileDialog::createFileDialog ( const qSlicerIO::IOProperties ioProperties = qSlicerIO::IOProperties())
staticprotected

◆ description()

virtual QString qSlicerStandardFileDialog::description ( ) const
virtual

Reimplemented to return the description set by setDescription()

See also
description, setDescription()

Implements qSlicerFileDialog.

◆ exec()

virtual bool qSlicerStandardFileDialog::exec ( const qSlicerIO::IOProperties ioProperties = qSlicerIO::IOProperties())
virtual

run the dialog to select the file/files/directory Properties availables with IOPorperties: fileMode, multipleFiles, fileType.

Implements qSlicerFileDialog.

Reimplemented in qSlicerScriptedFileDialog.

◆ fileType()

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

Reimplemented to return the fileType set by setFileType()

See also
fileType, setFileType()

Implements qSlicerFileDialog.

◆ getExistingDirectory()

static QString qSlicerStandardFileDialog::getExistingDirectory ( qSlicerIO::IOProperties  ioProperties = qSlicerIO::IOProperties())
static

◆ getOpenFileName()

static QStringList qSlicerStandardFileDialog::getOpenFileName ( qSlicerIO::IOProperties  ioProperties = qSlicerIO::IOProperties())
static

Properties availables with IOPorperties: fileMode, multipleFiles, fileType.

◆ loadedNodes()

virtual QStringList qSlicerStandardFileDialog::loadedNodes ( ) const
virtual

Return the list of nodes created by exec().

Reimplemented from qSlicerFileDialog.

◆ options()

qSlicerIOOptions* qSlicerStandardFileDialog::options ( const qSlicerIO::IOProperties ioProperties) const
protected

◆ setAction()

void qSlicerStandardFileDialog::setAction ( IOAction  action)

Set the action of the file dialog. To be called by python.

See also
action, action()

◆ setDescription()

virtual void qSlicerStandardFileDialog::setDescription ( const QString &  description)
virtual

◆ setFileType()

virtual void qSlicerStandardFileDialog::setFileType ( qSlicerIO::IOFileType  fileType)
virtual

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerStandardFileDialogPrivate> qSlicerStandardFileDialog::d_ptr
protected

Definition at line 155 of file qSlicerFileDialog.h.


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