Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkMultiLabelSegmentationPreferencePage.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 QmitkMultiLabelSegmentationPreferencePage_h_included
15 #define QmitkMultiLabelSegmentationPreferencePage_h_included
16 
17 #include "berryIQtPreferencePage.h"
19 #include <berryIPreferences.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 
45  bool PerformOk() override;
46 
50  void PerformCancel() override;
51 
55  void Update() override;
56 
57 protected slots:
58 
59  void OnVolumeRenderingCheckboxChecked(int);
60  void OnSmoothingCheckboxChecked(int);
61 
62 protected:
63 
64  QWidget* m_MainControl;
65  QRadioButton* m_RadioOutline;
66  QRadioButton* m_RadioOverlay;
68  QDoubleSpinBox* m_SmoothingSpinBox;
69  QDoubleSpinBox* m_DecimationSpinBox;
71 
73 
75 };
76 
77 #endif /* QMITKDATAMANAGERPREFERENCEPAGE_H_ */
virtual void Init(IWorkbench::Pointer workbench)=0
virtual void Update()=0
virtual bool PerformOk()=0
virtual QWidget * GetQtControl() const =0
virtual void PerformCancel()=0
virtual void CreateQtControl(QWidget *parent)=0