Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
berryISourceProviderListener.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 BERRYISOURCEPROVIDERLISTENER_H_
15
#define BERRYISOURCEPROVIDERLISTENER_H_
16
17
#include <
org_blueberry_ui_qt_Export.h
>
18
19
#include <
berryMacros.h
>
20
#include <
berryObject.h
>
21
#include <
berryMessage.h
>
22
23
#include <map>
24
25
namespace
berry
{
26
38
struct
BERRY_UI_QT
ISourceProviderListener
39
{
40
41
struct
Events
{
42
Message2<int, const QHash<QString, Object::ConstPointer>
& >
multipleSourcesChanged
;
43
Message3<int, const QString&, Object::ConstPointer>
singleSourceChanged
;
44
45
void
AddListener(
ISourceProviderListener
* l);
46
void
RemoveListener(
ISourceProviderListener
* l);
47
48
private
:
49
50
typedef
MessageDelegate2<ISourceProviderListener, int, const QHash<QString, Object::ConstPointer>
& >
Delegate2
;
51
typedef
MessageDelegate3<ISourceProviderListener, int, const QString&, Object::ConstPointer>
Delegate3
;
52
};
53
54
virtual
~
ISourceProviderListener
();
55
72
virtual
void
SourceChanged(
int
sourcePriority,
73
const
QHash<QString, Object::ConstPointer>& sourceValuesByName) = 0;
74
90
virtual
void
SourceChanged(
int
sourcePriority,
91
const
QString& sourceName,
Object::ConstPointer
sourceValue) = 0;
92
};
93
94
}
95
96
#endif
/* BERRYISOURCEPROVIDERLISTENER_H_ */
berry::ISourceProviderListener
Definition:
berryISourceProviderListener.h:38
org_blueberry_ui_qt_Export.h
berryMacros.h
berry::SmartPointer
Implements transparent reference counting.
Definition:
berryICommandCategoryListener.h:21
berryMessage.h
berry::Message3
Definition:
berryMessage.h:929
berry::ISourceProviderListener::Events::singleSourceChanged
Message3< int, const QString &, Object::ConstPointer > singleSourceChanged
Definition:
berryISourceProviderListener.h:43
berry::ISourceProviderListener::Events::multipleSourcesChanged
Message2< int, const QHash< QString, Object::ConstPointer > & > multipleSourcesChanged
Definition:
berryISourceProviderListener.h:42
berry::Message2
Definition:
berryMessage.h:858
BERRY_UI_QT
#define BERRY_UI_QT
Definition:
org_blueberry_ui_qt_Export.h:26
berry::MessageDelegate2
Definition:
berryMessage.h:216
berry::ISourceProviderListener::Events
Definition:
berryISourceProviderListener.h:41
berryObject.h
berry
Definition:
QmitkPropertyItemModel.h:24
berry::MessageDelegate3
Definition:
berryMessage.h:262
src
MITK
Plugins
org.blueberry.ui.qt
src
berryISourceProviderListener.h
Generated on Sat Nov 23 2024 02:13:08 for Medical Imaging Interaction Toolkit by
1.8.17