NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkImageLookupTablesPreferencePage.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkImageLookupTablesPreferencePage_h
16 #define niftkImageLookupTablesPreferencePage_h
17 
18 #include <berryIQtPreferencePage.h>
19 #include <berryIPreferences.h>
20 
21 class QWidget;
22 class QRadioButton;
23 class QDoubleSpinBox;
24 class QSpinBox;
25 
26 namespace niftk
27 {
28 
35 class ImageLookupTablesPreferencePage : public QObject, public berry::IQtPreferencePage
36 {
37  Q_OBJECT
38  Q_INTERFACES(berry::IPreferencePage)
39 
40 public:
41 
45 
46  static const QString PRECISION_NAME;
47 
48  void Init(berry::IWorkbench::Pointer workbench) override;
49 
50  void CreateQtControl(QWidget* widget) override;
51 
52  QWidget* GetQtControl() const override;
53 
57  virtual bool PerformOk() override;
58 
62  virtual void PerformCancel() override;
63 
67  virtual void Update() override;
68 
69 protected slots:
70 
71 protected:
72 
73  QWidget* m_MainControl;
74  QSpinBox* m_Precision;
76 
77  berry::IPreferences::Pointer m_ImageLookupTablesPreferencesNode;
78 
79 };
80 
81 }
82 
83 #endif
84 
void CreateQtControl(QWidget *widget) override
Definition: niftkImageLookupTablesPreferencePage.cxx:65
berry::IPreferences::Pointer m_ImageLookupTablesPreferencesNode
Definition: niftkImageLookupTablesPreferencePage.h:77
QSpinBox * m_Precision
Definition: niftkImageLookupTablesPreferencePage.h:74
virtual bool PerformOk() override
Definition: niftkImageLookupTablesPreferencePage.cxx:99
virtual void PerformCancel() override
Definition: niftkImageLookupTablesPreferencePage.cxx:107
ImageLookupTablesPreferencePage()
Definition: niftkImageLookupTablesPreferencePage.cxx:32
~ImageLookupTablesPreferencePage()
Definition: niftkImageLookupTablesPreferencePage.cxx:51
QWidget * GetQtControl() const override
Definition: niftkImageLookupTablesPreferencePage.cxx:92
bool m_Initializing
Definition: niftkImageLookupTablesPreferencePage.h:75
void Init(berry::IWorkbench::Pointer workbench) override
Definition: niftkImageLookupTablesPreferencePage.cxx:58
virtual void Update() override
Definition: niftkImageLookupTablesPreferencePage.cxx:113
Preferences page for this plugin, enabling choice of spin box precision.
Definition: niftkImageLookupTablesPreferencePage.h:35
QWidget * m_MainControl
Definition: niftkImageLookupTablesPreferencePage.h:73
Definition: niftkExceptionObject.h:21
static const QString PRECISION_NAME
Definition: niftkImageLookupTablesPreferencePage.h:46