Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkFileReaderOptionsDialog Class Reference

Dialog that presents available file readers and their options for a given file. More...

#include <QmitkFileReaderOptionsDialog.h>

Inheritance diagram for QmitkFileReaderOptionsDialog:
Collaboration diagram for QmitkFileReaderOptionsDialog:

Public Member Functions

 QmitkFileReaderOptionsDialog (mitk::IOUtil::LoadInfo &loadInfo, QWidget *parent=nullptr)
 Construct the dialog for the given load information. More...
 
 ~QmitkFileReaderOptionsDialog () override
 Destructor. More...
 
bool ReuseOptions () const
 Check whether the user requested to reuse these options for subsequent files. More...
 
void accept () override
 Accept the dialog, applying the selected reader and its options to the LoadInfo. More...
 

Protected Slots

void SetCurrentReader (int index)
 Switch the displayed options widget when the user selects a different reader. More...
 

Detailed Description

Dialog that presents available file readers and their options for a given file.

When multiple readers are registered for a file's MIME type, this dialog lets the user choose which reader to use and configure reader-specific options. The selected reader and its options are written back to the provided mitk::IOUtil::LoadInfo upon acceptance.

Definition at line 45 of file QmitkFileReaderOptionsDialog.h.

Constructor & Destructor Documentation

◆ QmitkFileReaderOptionsDialog()

QmitkFileReaderOptionsDialog::QmitkFileReaderOptionsDialog ( mitk::IOUtil::LoadInfo &  loadInfo,
QWidget *  parent = nullptr 
)
explicit

Construct the dialog for the given load information.

Populates the reader combo box and stacked option widgets from the available readers in loadInfo.

Parameters
loadInfoReference to the LoadInfo containing the file path and reader selector.
parentOptional parent widget.

◆ ~QmitkFileReaderOptionsDialog()

QmitkFileReaderOptionsDialog::~QmitkFileReaderOptionsDialog ( )
override

Destructor.

Member Function Documentation

◆ accept()

void QmitkFileReaderOptionsDialog::accept ( )
override

Accept the dialog, applying the selected reader and its options to the LoadInfo.

◆ ReuseOptions()

bool QmitkFileReaderOptionsDialog::ReuseOptions ( ) const

Check whether the user requested to reuse these options for subsequent files.

Returns
true if the "reuse options" checkbox is checked, false otherwise.

◆ SetCurrentReader

void QmitkFileReaderOptionsDialog::SetCurrentReader ( int  index)
protectedslot

Switch the displayed options widget when the user selects a different reader.

Parameters
indexThe index of the newly selected reader in the combo box.

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