Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkFileWriterOptionsDialog.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 QmitkFileWriterOptionsDialog_h
22 #define QmitkFileWriterOptionsDialog_h
23 
24 #include <mitkIOUtil.h>
25 
26 #include <QDialog>
27 #include <memory>
28 
29 namespace Ui
30 {
32 }
33 
35 
45 class QmitkFileWriterOptionsDialog : public QDialog
46 {
47  Q_OBJECT
48 
49 public:
59  explicit QmitkFileWriterOptionsDialog(mitk::IOUtil::SaveInfo &saveInfo, QWidget *parent = nullptr);
60 
63 
69  bool ReuseOptions() const;
70 
74  void accept() override;
75 
76 private:
77  std::unique_ptr<Ui::QmitkFileWriterOptionsDialog> ui;
78  mitk::IOUtil::SaveInfo &m_SaveInfo;
79  std::vector<mitk::FileWriterSelector::Item> m_WriterItems;
80 };
81 
82 #endif
A widget that dynamically creates typed editor widgets for file reader/writer options.
Dialog that presents available file writers and their options for a given save operation.
~QmitkFileWriterOptionsDialog() override
Destructor.
void accept() override
Accept the dialog, applying the selected writer and its options to the SaveInfo.
bool ReuseOptions() const
Check whether the user requested to reuse these options for subsequent files.
QmitkFileWriterOptionsDialog(mitk::IOUtil::SaveInfo &saveInfo, QWidget *parent=nullptr)
Construct the dialog for the given save information.
Contains information about a save operation for a BaseData object.
Definition: mitkIOUtil.h:95