Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkStartupDialog.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 
13 #include <QDialog>
14 #include <memory>
15 
16 class QItemSelection;
17 
18 namespace Ui
19 {
20  class QmitkStartupDialog;
21 }
22 
23 class QmitkStartupDialog : public QDialog
24 {
25  Q_OBJECT
26 
27 public:
28  explicit QmitkStartupDialog(QWidget* parent = nullptr);
29  ~QmitkStartupDialog() override;
30 
31  bool SkipDialog() const;
32 
33  bool UsePreset() const;
34  QString GetPresetName() const;
35  QStringList GetPresetCategories() const;
36 
37 private:
38  void LoadPresets();
39 
40  void showEvent(QShowEvent* event) override;
41 
42  void OnPresetRadioButtonToggled(bool checked);
43  void OnSelectedPresetChanged(const QItemSelection& selected, const QItemSelection& deselected);
44  void OnFinished(int result);
45 
46  std::unique_ptr<Ui::QmitkStartupDialog> m_Ui;
47 };
QmitkStartupDialog(QWidget *parent=nullptr)
bool SkipDialog() const
~QmitkStartupDialog() override
QStringList GetPresetCategories() const
bool UsePreset() const
QString GetPresetName() const