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 QMITK_INPUTDEVICESPREFPAGE_H_ 00020 #define QMITK_INPUTDEVICESPREFPAGE_H_ 00021 00022 #include "berryIQtPreferencePage.h" 00023 #include <berryIPreferences.h> 00024 #include <QHash> 00025 00026 class QWidget; 00027 class QCheckBox; 00028 00029 class QmitkInputDevicesPrefPage : public berry::IQtPreferencePage 00030 { 00031 00032 public: 00033 00037 QmitkInputDevicesPrefPage(); 00038 00042 void Init(berry::IWorkbench::Pointer workbench); 00043 00044 00048 void CreateQtControl(QWidget* widget); 00049 00053 QWidget* GetQtControl() const; 00054 00058 virtual bool PerformOk(); 00059 00063 virtual void PerformCancel(); 00064 00068 virtual void Update(); 00069 00070 protected: 00071 00072 QWidget* m_MainControl; 00073 00074 QHash<QCheckBox*,std::string> m_InputDevices; 00075 00076 berry::IPreferences::Pointer m_InputDevicesPrefNode; 00077 00078 }; 00079 00080 #endif // QMITK_INPUTDEVICESPREFPAGE_H_