Dialog that presents available file readers and their options for a given file.
More...
#include <QmitkFileReaderOptionsDialog.h>
|
| void | SetCurrentReader (int index) |
| | Switch the displayed options widget when the user selects a different reader. More...
|
| |
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.
◆ 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
-
| loadInfo | Reference to the LoadInfo containing the file path and reader selector. |
| parent | Optional parent widget. |
◆ ~QmitkFileReaderOptionsDialog()
| QmitkFileReaderOptionsDialog::~QmitkFileReaderOptionsDialog |
( |
| ) |
|
|
override |
◆ 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
-
| index | The index of the newly selected reader in the combo box. |
The documentation for this class was generated from the following file: