Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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:
62  std::map<QString, QmitkHotkeyLineEdit*> m_HotkeyEditors;
63 
64  QWidget* m_MainControl;
65 };
66 
67 #endif
berry::IPreferencePage::Update
virtual void Update()=0
QmitkDataManagerHotkeysPrefPage::m_MainControl
QWidget * m_MainControl
Definition: QmitkDataManagerHotkeysPrefPage.h:64
berry::IQtPreferencePage::GetQtControl
virtual QWidget * GetQtControl() const =0
org_mitk_gui_qt_datamanager_Export.h
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
QmitkDataManagerHotkeysPrefPage
Definition: QmitkDataManagerHotkeysPrefPage.h:29
berry::IPreferencePage::PerformCancel
virtual void PerformCancel()=0
berry::IQtPreferencePage::CreateQtControl
virtual void CreateQtControl(QWidget *parent)=0
berry::IQtPreferencePage
Definition: berryIQtPreferencePage.h:29
berryIQtPreferencePage.h
berry::IPreferencePage::Init
virtual void Init(IWorkbench::Pointer workbench)=0
berry::IPreferencePage
Definition: berryIPreferencePage.h:42
MITK_QT_DATAMANAGER
#define MITK_QT_DATAMANAGER
Definition: org_mitk_gui_qt_datamanager_Export.h:26
QmitkDataManagerHotkeysPrefPage::m_HotkeyEditors
std::map< QString, QmitkHotkeyLineEdit * > m_HotkeyEditors
Maps a label to hotkey lineedit, e.g. "Toggle Visibility of selected nodes" => QmitkHotkeyLineEdit.
Definition: QmitkDataManagerHotkeysPrefPage.h:62
berry::IPreferencePage::PerformOk
virtual bool PerformOk()=0
QmitkHotkeyLineEdit
Definition: QmitkHotkeyLineEdit.h:22