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

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

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

◆ ~qSlicerStandardFileDialog()

qSlicerStandardFileDialog::~qSlicerStandardFileDialog ( )
override

Member Function Documentation

◆ action()

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

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

QString qSlicerStandardFileDialog::description ( ) const
overridevirtual

Reimplemented to return the description set by setDescription()

See also
description, setDescription()

Implements qSlicerFileDialog.

◆ exec()

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

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

Implements qSlicerFileDialog.

Reimplemented in qSlicerScriptedFileDialog.

◆ fileType()

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

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

QStringList qSlicerStandardFileDialog::loadedNodes ( ) const
overridevirtual

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: