NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
IGIVLEditorPreferencePage.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 IGIVLEditorPreferencePage_h
16 #define IGIVLEditorPreferencePage_h
17 
18 #include <berryIQtPreferencePage.h>
19 #include <berryIPreferences.h>
20 
21 class QWidget;
22 class QRadioButton;
23 class QPushButton;
24 class QWidgetAction;
25 class QCheckBox;
26 class ctkPathLineEdit;
27 
33 struct IGIVLEditorPreferencePage : public QObject, public berry::IQtPreferencePage
34 {
35  Q_OBJECT
36  Q_INTERFACES(berry::IPreferencePage)
37 
38 public:
40 
41  void Init(berry::IWorkbench::Pointer workbench);
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 
62  static const char* BACKGROUND_COLOR_PREFSKEY;
63  static const unsigned int DEFAULT_BACKGROUND_COLOR;
64 
65 public slots:
67 
68 protected:
69 
70  QWidget* m_MainControl;
72  unsigned int m_BackgroundColour;
73 
74  berry::IPreferences::Pointer m_IGIVLEditorPreferencesNode;
75 };
76 
77 #endif /* IGIVLEditorPreferencePage_h */
Preference page for IGIVLEditor.
Definition: IGIVLEditorPreferencePage.h:33
unsigned int m_BackgroundColour
Definition: IGIVLEditorPreferencePage.h:72
QPushButton * m_BackgroundColourButton
Definition: IGIVLEditorPreferencePage.h:71
void OnBackgroundColourClicked()
Definition: IGIVLEditorPreferencePage.cxx:84
berry::IPreferences::Pointer m_IGIVLEditorPreferencesNode
Definition: IGIVLEditorPreferencePage.h:74
virtual void Update()
Definition: IGIVLEditorPreferencePage.cxx:125
virtual bool PerformOk()
Definition: IGIVLEditorPreferencePage.cxx:110
IGIVLEditorPreferencePage()
Definition: IGIVLEditorPreferencePage.cxx:35
static const unsigned int DEFAULT_BACKGROUND_COLOR
Definition: IGIVLEditorPreferencePage.h:63
virtual void PerformCancel()
Definition: IGIVLEditorPreferencePage.cxx:118
void Init(berry::IWorkbench::Pointer workbench)
Definition: IGIVLEditorPreferencePage.cxx:44
static const char * BACKGROUND_COLOR_PREFSKEY
Definition: IGIVLEditorPreferencePage.h:62
void CreateQtControl(QWidget *widget)
Definition: IGIVLEditorPreferencePage.cxx:50
QWidget * m_MainControl
Definition: IGIVLEditorPreferencePage.h:70
QWidget * GetQtControl() const
Definition: IGIVLEditorPreferencePage.cxx:103