Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berryIntroPart.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 BERRYINTROPART_H_
14
#define BERRYINTROPART_H_
15
16
#include "
berryIIntroPart.h
"
17
18
#include "
berryIIntroSite.h
"
19
20
#include <
berryIConfigurationElement.h
>
21
#include <
berryIExecutableExtension.h
>
22
#include <
berryIPropertyChangeListener.h
>
23
24
#include <QIcon>
25
26
namespace
berry
27
{
28
52
class
BERRY_UI_QT
IntroPart
:
public
QObject,
public
IIntroPart
,
public
IExecutableExtension
53
{
54
55
Q_OBJECT
56
Q_INTERFACES(
berry::IIntroPart
berry::IExecutableExtension
)
57
58
private
:
59
60
IConfigurationElement::Pointer
configElement;
61
62
QIcon imageDescriptor;
63
64
IIntroSite::Pointer
partSite;
65
66
QString titleLabel;
67
68
IPropertyChangeListener::Events
propChangeEvents;
69
75
QString GetDefaultTitle()
const
;
76
77
protected
:
78
85
void
FirePropertyChange(
int
propertyId);
86
94
IConfigurationElement::Pointer
GetConfigurationElement();
95
101
QIcon GetDefaultImage()
const
;
102
111
void
SetSite(
IIntroSite::Pointer
site);
112
119
void
SetTitleImage(
const
QIcon& titleImage);
120
127
void
SetTitle(
const
QString& titleLabel);
128
129
public
:
130
131
/* (non-Javadoc)
132
* @see org.eclipse.ui.intro.IIntroPart#addPropertyListener(org.eclipse.ui.IPropertyListener)
133
*/
134
void
AddPropertyListener(
IPropertyChangeListener
* l)
override
;
135
141
~
IntroPart
()
override
;
142
151
// Object getAdapter(Class adapter) {
152
// return Platform.getAdapterManager().getAdapter(this, adapter);
153
// }
154
155
156
/*
157
* (non-Javadoc)
158
*
159
* @see org.eclipse.ui.intro.IIntroPart#getIntroSite()
160
*/
161
IIntroSite::Pointer
GetIntroSite()
const override
;
162
163
/* (non-Javadoc)
164
* @see org.eclipse.ui.intro.IIntroPart#getTitleImage()
165
*/
166
QIcon GetTitleImage()
const override
;
167
168
/* (non-Javadoc)
169
* @see org.eclipse.ui.intro.IIntroPart#getTitle()
170
*/
171
QString GetPartName()
const override
;
172
186
void
Init(
IIntroSite::Pointer
site,
IMemento::Pointer
memento)
override
;
187
188
/* (non-Javadoc)
189
* @see org.eclipse.ui.intro.IIntroPart#removePropertyListener(org.eclipse.ui.IPropertyListener)
190
*/
191
void
RemovePropertyListener(
IPropertyChangeListener
* l)
override
;
192
200
void
SaveState(
IMemento::Pointer
memento)
override
;
201
212
void
SetInitializationData(
const
IConfigurationElement::Pointer
& cfig,
213
const
QString& propertyName,
const
Object::Pointer
& data)
override
;
214
215
};
216
217
}
218
219
#endif
/* BERRYINTROPART_H_ */
berry
Definition:
QmitkPropertyItemModel.h:23
berry::SmartPointer< Self >
berryIConfigurationElement.h
berryIExecutableExtension.h
berry::Object::Pointer
berry::SmartPointer< Self > Pointer
Definition:
berryObject.h:82
berryIIntroPart.h
berry::IExecutableExtension
Definition:
berryIExecutableExtension.h:42
berryIIntroSite.h
berry::IIntroPart
Definition:
berryIIntroPart.h:53
berryIPropertyChangeListener.h
berry::IntroPart
Definition:
berryIntroPart.h:52
berry::IPropertyChangeListener
Definition:
berryIPropertyChangeListener.h:42
berry::IPropertyChangeListener::Events
Definition:
berryIPropertyChangeListener.h:47
BERRY_UI_QT
#define BERRY_UI_QT
Definition:
org_blueberry_ui_qt_Export.h:25
Source
Plugins
org.blueberry.ui.qt
src
intro
berryIntroPart.h
Generated on Thu Mar 12 2020 10:23:32 for Medical Imaging Interaction Toolkit by
1.8.13