Medical Imaging Interaction Toolkit  2021.10.99-888ff917
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QMITKDATAMANAGERHOTKEYSPREFPAGE_H
14 #define QMITKDATAMANAGERHOTKEYSPREFPAGE_H
15 
17 
18 // blueberry ui qt plugin
19 #include <berryIQtPreferencePage.h>
20 
21 // qt
22 #include <QWidget>
23 
24 // c++
25 #include <map>
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  bool PerformOk() override;
50  void PerformCancel() override;
54  void Update() override;
55 
56 protected:
68  std::map<QString, QmitkHotkeyLineEdit*> m_HotkeyEditors;
69 
70  QWidget* m_MainControl;
71 };
72 
73 #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
The node from which the properties are taken (will be catched from the preferences service in ctor) ...
std::map< QString, QmitkHotkeyLineEdit * > m_HotkeyEditors
Maps a label to hotkey lineedit, e.g. "Toggle Visibility of selected nodes" => QmitkHotkeyLineEdit.
virtual void PerformCancel()=0
virtual void CreateQtControl(QWidget *parent)=0