Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkFileReaderOptionsDialog.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
21 #ifndef QmitkFileReaderOptionsDialog_h
22 #define QmitkFileReaderOptionsDialog_h
23 
24 #include <mitkIOUtil.h>
25 
26 #include <QDialog>
27 #include <memory>
28 
29 namespace Ui
30 {
32 }
33 
35 
45 class QmitkFileReaderOptionsDialog : public QDialog
46 {
47  Q_OBJECT
48 
49 public:
59  explicit QmitkFileReaderOptionsDialog(mitk::IOUtil::LoadInfo &loadInfo, QWidget *parent = nullptr);
60 
63 
69  bool ReuseOptions() const;
70 
74  void accept() override;
75 
76 protected slots:
82  void SetCurrentReader(int index);
83 
84 private:
85  std::unique_ptr<Ui::QmitkFileReaderOptionsDialog> ui;
86  mitk::IOUtil::LoadInfo &m_LoadInfo;
87  std::vector<mitk::FileReaderSelector::Item> m_ReaderItems;
88 };
89 
90 #endif
Dialog that presents available file readers and their options for a given file.
void accept() override
Accept the dialog, applying the selected reader and its options to the LoadInfo.
bool ReuseOptions() const
Check whether the user requested to reuse these options for subsequent files.
void SetCurrentReader(int index)
Switch the displayed options widget when the user selects a different reader.
~QmitkFileReaderOptionsDialog() override
Destructor.
QmitkFileReaderOptionsDialog(mitk::IOUtil::LoadInfo &loadInfo, QWidget *parent=nullptr)
Construct the dialog for the given load information.
A widget that dynamically creates typed editor widgets for file reader/writer options.
Contains information about the current loading process.
Definition: mitkIOUtil.h:60