00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: 16224 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 00019 #ifndef QmitkSegmentationPreferencePage_h_included 00020 #define QmitkSegmentationPreferencePage_h_included 00021 00022 #include "berryIQtPreferencePage.h" 00023 #include "mitkQtSegmentationDll.h" 00024 #include <berryIPreferences.h> 00025 00026 class QWidget; 00027 class QCheckBox; 00028 class QRadioButton; 00029 00030 class MITK_QT_SEGMENTATION QmitkSegmentationPreferencePage : public QObject, public berry::IQtPreferencePage 00031 { 00032 Q_OBJECT 00033 00034 public: 00035 00036 QmitkSegmentationPreferencePage(); 00037 00038 void Init(berry::IWorkbench::Pointer workbench); 00039 00040 void CreateQtControl(QWidget* widget); 00041 00042 QWidget* GetQtControl() const; 00043 00047 virtual bool PerformOk(); 00048 00052 virtual void PerformCancel(); 00053 00057 virtual void Update(); 00058 00059 protected slots: 00060 00061 void OnVolumeRenderingCheckboxChecked(int); 00062 00063 protected: 00064 00065 QWidget* m_MainControl; 00066 QRadioButton* m_RadioOutline; 00067 QRadioButton* m_RadioOverlay; 00068 QCheckBox* m_VolumeRenderingCheckBox; 00069 00070 bool m_Initializing; 00071 00072 berry::IPreferences::Pointer m_SegmentationPreferencesNode; 00073 }; 00074 00075 #endif /* QMITKDATAMANAGERPREFERENCEPAGE_H_ */ 00076