NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkMorphologicalSegmentorPreferencePage.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 niftkMorphologicalSegmentorPreferencePage_h
16 #define niftkMorphologicalSegmentorPreferencePage_h
17 
18 #include <berryIQtPreferencePage.h>
19 #include <berryIPreferences.h>
20 
21 class QWidget;
22 class QPushButton;
23 
24 namespace niftk
25 {
26 
30 class MorphologicalSegmentorPreferencePage : public QObject, public berry::IQtPreferencePage
31 {
32  Q_OBJECT
33  Q_INTERFACES(berry::IPreferencePage)
34 
35 public:
36 
38  static const QString PREFERENCES_NODE_NAME;
39 
43 
44  void Init(berry::IWorkbench::Pointer workbench);
45 
46  void CreateQtControl(QWidget* widget);
47 
48  QWidget* GetQtControl() const;
49 
53  virtual bool PerformOk();
54 
58  virtual void PerformCancel();
59 
63  virtual void Update();
64 
65 protected slots:
66 
68  void OnResetDefaultColour();
69 
70 protected:
71 
72  QWidget *m_MainControl;
75  QString m_DefaultColor;
76 
78 
80 };
81 
82 }
83 
84 #endif
void OnDefaultColourChanged()
Definition: niftkMorphologicalSegmentorPreferencePage.cxx:145
static const QString PREFERENCES_NODE_NAME
Stores the name of the preferences node.
Definition: niftkMorphologicalSegmentorPreferencePage.h:38
QPushButton * m_DefaultColorPushButton
Definition: niftkMorphologicalSegmentorPreferencePage.h:73
QWidget * m_MainControl
Definition: niftkMorphologicalSegmentorPreferencePage.h:72
void OnResetDefaultColour()
Definition: niftkMorphologicalSegmentorPreferencePage.cxx:172
virtual void PerformCancel()
Definition: niftkMorphologicalSegmentorPreferencePage.cxx:122
berry::IPreferences::Pointer m_niftkMorphologicalSegmentationViewPreferencesNode
Definition: niftkMorphologicalSegmentorPreferencePage.h:79
virtual bool PerformOk()
Definition: niftkMorphologicalSegmentorPreferencePage.cxx:112
QString m_DefaultColor
Definition: niftkMorphologicalSegmentorPreferencePage.h:75
QWidget * GetQtControl() const
Definition: niftkMorphologicalSegmentorPreferencePage.cxx:105
bool m_Initializing
Definition: niftkMorphologicalSegmentorPreferencePage.h:77
Preferences page for this plugin, enabling choice volume rendering on/off.
Definition: niftkMorphologicalSegmentorPreferencePage.h:30
MorphologicalSegmentorPreferencePage()
Definition: niftkMorphologicalSegmentorPreferencePage.cxx:37
QString m_DefauleColorStyleSheet
Definition: niftkMorphologicalSegmentorPreferencePage.h:74
void CreateQtControl(QWidget *widget)
Definition: niftkMorphologicalSegmentorPreferencePage.cxx:69
void Init(berry::IWorkbench::Pointer workbench)
Definition: niftkMorphologicalSegmentorPreferencePage.cxx:62
~MorphologicalSegmentorPreferencePage()
Definition: niftkMorphologicalSegmentorPreferencePage.cxx:55
Definition: niftkExceptionObject.h:21
virtual void Update()
Definition: niftkMorphologicalSegmentorPreferencePage.cxx:128