Medical Imaging Interaction Toolkit  2021.10.99-888ff917
Medical Imaging Interaction Toolkit
QmitkDataManagerPreferencePage.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 
14 #ifndef QMITKDATAMANAGERPREFERENCEPAGE_H_
15 #define QMITKDATAMANAGERPREFERENCEPAGE_H_
16 
17 #include "berryIQtPreferencePage.h"
19 #include <berryIPreferences.h>
20 
21 class QWidget;
22 class QCheckBox;
23 
25 {
26  Q_OBJECT
27  Q_INTERFACES(berry::IPreferencePage)
28 
29 public:
31 
32  void Init(berry::IWorkbench::Pointer workbench) override;
33 
34  void CreateQtControl(QWidget* widget) override;
35 
36  QWidget* GetQtControl() const override;
37 
41  bool PerformOk() override;
42 
46  void PerformCancel() override;
47 
51  void Update() override;
52 
53 protected:
54  QWidget* m_MainControl;
57  QCheckBox* m_ShowHelperObjects;
60  QCheckBox* m_AllowParentChange;
62 };
63 
64 #endif /* QMITKDATAMANAGERPREFERENCEPAGE_H_ */
virtual void Init(IWorkbench::Pointer workbench)=0
berry::IPreferences::Pointer m_DataManagerPreferencesNode
virtual void Update()=0
virtual bool PerformOk()=0
virtual QWidget * GetQtControl() const =0
#define MITK_QT_DATAMANAGER
virtual void PerformCancel()=0
virtual void CreateQtControl(QWidget *parent)=0