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 QMITKDATAMANAGERHOTKEYSPREFPAGE_H_ 00020 #define QMITKDATAMANAGERHOTKEYSPREFPAGE_H_ 00021 00022 #include "berryIQtPreferencePage.h" 00023 #include "mitkQtDataManagerDll.h" 00024 00025 #include <map> 00026 #include <QWidget> 00027 00028 class QmitkHotkeyLineEdit; 00029 00030 struct MITK_QT_DATAMANAGER QmitkDataManagerHotkeysPrefPage : public berry::IQtPreferencePage 00031 { 00032 00033 public: 00034 QmitkDataManagerHotkeysPrefPage(); 00035 00036 void Init(berry::IWorkbench::Pointer workbench); 00037 00038 void CreateQtControl(QWidget* parent); 00039 00040 QWidget* GetQtControl() const; 00041 00045 virtual bool PerformOk(); 00046 00050 virtual void PerformCancel(); 00051 00055 virtual void Update(); 00056 00057 protected: 00061 berry::IPreferences::WeakPtr m_DataManagerHotkeysPreferencesNode; 00062 00066 std::map<QString, QmitkHotkeyLineEdit*> m_HotkeyEditors; 00067 00068 QWidget* m_MainControl; 00069 }; 00070 00071 #endif /* QMITKDATAMANAGERHOTKEYSPREFPAGE_H_ */