00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-02-10 14:14:32 +0100 (Di, 10 Feb 2009) $ 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 QMITKDATAMANAGERPREFERENCEPAGE_H_ 00020 #define QMITKDATAMANAGERPREFERENCEPAGE_H_ 00021 00022 #include "berryIQtPreferencePage.h" 00023 #include "mitkQtDataManagerDll.h" 00024 #include <berryIPreferences.h> 00025 00026 class QWidget; 00027 class QCheckBox; 00028 00029 struct MITK_QT_DATAMANAGER QmitkDataManagerPreferencePage : public berry::IQtPreferencePage 00030 { 00031 00032 public: 00033 QmitkDataManagerPreferencePage(); 00034 00035 void Init(berry::IWorkbench::Pointer workbench); 00036 00037 void CreateQtControl(QWidget* widget); 00038 00039 QWidget* GetQtControl() const; 00040 00044 virtual bool PerformOk(); 00045 00049 virtual void PerformCancel(); 00050 00054 virtual void Update(); 00055 00056 protected: 00057 QWidget* m_MainControl; 00058 QCheckBox* m_EnableSingleEditing; 00059 QCheckBox* m_PlaceNewNodesOnTop; 00060 berry::IPreferences::Pointer m_DataManagerPreferencesNode; 00061 }; 00062 00063 #endif /* QMITKDATAMANAGERPREFERENCEPAGE_H_ */