Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkDataManagerHotkeysPrefPage.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef QMITKDATAMANAGERHOTKEYSPREFPAGE_H_
19 #define QMITKDATAMANAGERHOTKEYSPREFPAGE_H_
20 
21 #include "berryIQtPreferencePage.h"
23 
24 #include <map>
25 #include <QWidget>
26 
28 
30 {
31  Q_OBJECT
32  Q_INTERFACES(berry::IPreferencePage)
33 
34 public:
36 
37  void Init(berry::IWorkbench::Pointer workbench) override;
38 
39  void CreateQtControl(QWidget* parent) override;
40 
41  QWidget* GetQtControl() const override;
42 
46  virtual bool PerformOk() override;
47 
51  virtual void PerformCancel() override;
52 
56  virtual void Update() override;
57 
58 protected:
63 
67  std::map<QString, QmitkHotkeyLineEdit*> m_HotkeyEditors;
68 
69  QWidget* m_MainControl;
70 };
71 
72 #endif /* QMITKDATAMANAGERHOTKEYSPREFPAGE_H_ */
virtual void Init(IWorkbench::Pointer workbench)=0
virtual void Update()=0
virtual bool PerformOk()=0
virtual QWidget * GetQtControl() const =0
#define MITK_QT_DATAMANAGER
berry::IPreferences::WeakPtr m_DataManagerHotkeysPreferencesNode
std::map< QString, QmitkHotkeyLineEdit * > m_HotkeyEditors
virtual void PerformCancel()=0
virtual void CreateQtControl(QWidget *parent)=0