Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef QmitkMultiLabelSegmentationPreferencePage_h_included
19 #define QmitkMultiLabelSegmentationPreferencePage_h_included
20 
21 #include "berryIQtPreferencePage.h"
23 #include <berryIPreferences.h>
24 
25 class QWidget;
26 class QCheckBox;
27 class QRadioButton;
28 class QDoubleSpinBox;
29 
31 {
32  Q_OBJECT
33  Q_INTERFACES(berry::IPreferencePage)
34 
35 public:
36 
39 
40  void Init(berry::IWorkbench::Pointer workbench);
41 
42  void CreateQtControl(QWidget* widget);
43 
44  QWidget* GetQtControl() const;
45 
49  virtual bool PerformOk();
50 
54  virtual void PerformCancel();
55 
59  virtual void Update();
60 
61 protected slots:
62 
63  void OnVolumeRenderingCheckboxChecked(int);
64  void OnSmoothingCheckboxChecked(int);
65 
66 protected:
67 
68  QWidget* m_MainControl;
69  QRadioButton* m_RadioOutline;
70  QRadioButton* m_RadioOverlay;
72  QDoubleSpinBox* m_SmoothingSpinBox;
73  QDoubleSpinBox* m_DecimationSpinBox;
75 
77 
79 };
80 
81 #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