15 #ifndef IGIVideoOverlayEditorPreferencePage_h
16 #define IGIVideoOverlayEditorPreferencePage_h
18 #include <berryIQtPreferencePage.h>
19 #include <berryIPreferences.h>
26 class ctkPathLineEdit;
39 Q_INTERFACES(berry::IPreferencePage)
44 void Init(berry::IWorkbench::Pointer workbench)
override;
62 virtual void Update()
override;
97 QWidget *m_MainControl;
98 ctkPathLineEdit *m_CalibrationFileName;
99 QPushButton *m_ColorButton1;
100 QPushButton *m_ColorButton2;
101 QString m_FirstColor;
102 QString m_SecondColor;
103 QString m_FirstColorStyleSheet;
104 QString m_SecondColorStyleSheet;
106 berry::IPreferences::Pointer m_IGIVideoOverlayEditorPreferencesNode;
virtual void Update() override
Definition: niftkIGIVideoOverlayEditorPreferencePage.cxx:149
virtual bool PerformOk() override
Definition: niftkIGIVideoOverlayEditorPreferencePage.cxx:130
static const QString FIRST_BACKGROUND_STYLE_SHEET
Stores the name of the preference node that contains the stylesheet of the first background colour...
Definition: niftkIGIVideoOverlayEditorPreferencePage.h:72
static const QString SECOND_BACKGROUND_STYLE_SHEET
Stores the name of the preference node that contains the stylesheet of the second background colour...
Definition: niftkIGIVideoOverlayEditorPreferencePage.h:77
void SecondColorChanged()
Definition: niftkIGIVideoOverlayEditorPreferencePage.cxx:200
static const QString CALIBRATION_FILE_NAME
Stores the name of the preference node that contains the name of the calibration file.
Definition: niftkIGIVideoOverlayEditorPreferencePage.h:67
static const QString FIRST_BACKGROUND_COLOUR
Stores the name of the preference node that contains the first background colour. ...
Definition: niftkIGIVideoOverlayEditorPreferencePage.h:82
QWidget * GetQtControl() const override
Definition: niftkIGIVideoOverlayEditorPreferencePage.cxx:123
void Init(berry::IWorkbench::Pointer workbench) override
Definition: niftkIGIVideoOverlayEditorPreferencePage.cxx:48
Preference page for IGIVideoOverlayEditor, eg. setting the gradient background.
Definition: niftkIGIVideoOverlayEditorPreferencePage.h:36
static const QString SECOND_BACKGROUND_COLOUR
Stores the name of the preference node that contains the second background colour.
Definition: niftkIGIVideoOverlayEditorPreferencePage.h:87
void ResetColors()
Definition: niftkIGIVideoOverlayEditorPreferencePage.cxx:222
virtual void PerformCancel() override
Definition: niftkIGIVideoOverlayEditorPreferencePage.cxx:142
IGIVideoOverlayEditorPreferencePage()
Definition: niftkIGIVideoOverlayEditorPreferencePage.cxx:38
void FirstColorChanged()
Definition: niftkIGIVideoOverlayEditorPreferencePage.cxx:178
Definition: niftkExceptionObject.h:21
void CreateQtControl(QWidget *widget) override
Definition: niftkIGIVideoOverlayEditorPreferencePage.cxx:54