Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
berryIPreferencePage.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 BERRYIPREFERENCEPAGE_H_
14 #define BERRYIPREFERENCEPAGE_H_
15 
16 #include "berryObject.h"
17 #include "berryIWorkbench.h"
18 
19 #include <QObject>
20 
21 namespace berry
22 {
23 
42 struct BERRY_UI_QT IPreferencePage: virtual public Object
43 {
44 
46 
47  ~IPreferencePage() override;
48 
58  virtual void Init(IWorkbench::Pointer workbench) = 0;
59 
70  virtual void CreateControl(void* parent) = 0;
71 
81  virtual void* GetControl() const = 0;
82 
86  virtual bool PerformOk() = 0;
87 
91  virtual void PerformCancel() = 0;
92 
97  virtual void Update() = 0;
98 };
99 
100 }
101 
102 Q_DECLARE_INTERFACE(berry::IPreferencePage, "org.blueberry.ui.IPreferencePage")
103 
104 #endif /*BERRYIPREFERENCEPAGE_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:73
Implements transparent reference counting.
#define BERRY_UI_QT
virtual void CreateControl(void *parent)=0
virtual void Init(IWorkbench::Pointer workbench)=0
virtual void * GetControl() const =0
~IPreferencePage() override
berryObjectMacro(berry::IPreferencePage)
virtual bool PerformOk()=0
virtual void PerformCancel()=0
virtual void Update()=0