Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
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 QMITKDATAMANAGERPREFERENCEPAGE_H_
19 #define QMITKDATAMANAGERPREFERENCEPAGE_H_
20 
21 #include "berryIQtPreferencePage.h"
23 #include <berryIPreferences.h>
24 
25 class QWidget;
26 class QCheckBox;
27 
29 {
30  Q_OBJECT
31  Q_INTERFACES(berry::IPreferencePage)
32 
33 public:
35 
36  void Init(berry::IWorkbench::Pointer workbench) override;
37 
38  void CreateQtControl(QWidget* widget) override;
39 
40  QWidget* GetQtControl() const override;
41 
45  virtual bool PerformOk() override;
46 
50  virtual void PerformCancel() override;
51 
55  virtual void Update() override;
56 
57 protected:
58  QWidget* m_MainControl;
61  QCheckBox* m_ShowHelperObjects;
66  QCheckBox* m_AllowParentChange;
68 };
69 
70 #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