Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
Medical Imaging Interaction Toolkit
QmitkSegmentationPreferencePage.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 
14 #ifndef QmitkSegmentationPreferencePage_h_included
15 #define QmitkSegmentationPreferencePage_h_included
16 
18 #include <berryIPreferences.h>
19 #include "berryIQtPreferencePage.h"
20 
21 class QWidget;
22 class QCheckBox;
23 class QRadioButton;
24 class QDoubleSpinBox;
25 
27 {
28  Q_OBJECT
29  Q_INTERFACES(berry::IPreferencePage)
30 
31 public:
32 
35 
36  void Init(berry::IWorkbench::Pointer workbench) override;
37 
38  void CreateQtControl(QWidget* widget) override;
39 
40  QWidget* GetQtControl() const override;
41 
42  bool PerformOk() override;
43 
44  void PerformCancel() override;
45 
46  void Update() override;
47 
48 protected slots:
49 
50  void OnSmoothingCheckboxChecked(int);
51 
52 protected:
53 
54  QWidget* m_MainControl;
55  QCheckBox* m_SlimViewCheckBox;
56  QRadioButton* m_RadioOutline;
57  QRadioButton* m_RadioOverlay;
59  QCheckBox* m_SmoothingCheckBox;
60  QDoubleSpinBox* m_SmoothingSpinBox;
61  QDoubleSpinBox* m_DecimationSpinBox;
62  QDoubleSpinBox* m_ClosingSpinBox;
63 
65 
67 };
68 
69 #endif /* QMITKDATAMANAGERPREFERENCEPAGE_H_ */
70 
virtual void Init(IWorkbench::Pointer workbench)=0
virtual void Update()=0
virtual bool PerformOk()=0
virtual QWidget * GetQtControl() const =0
berry::IPreferences::Pointer m_SegmentationPreferencesNode
virtual void PerformCancel()=0
virtual void CreateQtControl(QWidget *parent)=0