Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
berryINullSelectionListener.h
Go to the documentation of this file.
1
/*===================================================================
2
3
BlueBerry Platform
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 BERRYINULLSELECTIONLISTENER_H_
19
#define BERRYINULLSELECTIONLISTENER_H_
20
21
#include "
berryISelectionListener.h
"
22
23
namespace
berry
24
{
25
42
struct
BERRY_UI_QT
INullSelectionListener
:
public
ISelectionListener
43
{
44
~
INullSelectionListener
();
45
};
46
72
template
<
typename
R>
73
struct
NullSelectionChangedAdapter
:
public
INullSelectionListener
74
{
75
76
typedef
R
Listener
;
77
typedef
void
78
(R::*
Callback
)(
const
IWorkbenchPart::Pointer
&,
const
ISelection::ConstPointer
&);
79
80
NullSelectionChangedAdapter
(R* l, Callback c) :
81
listener(l), callback(c)
82
{
83
poco_assert(listener);
84
poco_assert(callback);
85
}
86
87
void
SelectionChanged
(
const
IWorkbenchPart::Pointer
& part,
88
const
ISelection::ConstPointer
& selection)
override
89
{
90
(listener->*callback)(part, selection);
91
}
92
93
private
:
94
95
Listener* listener;
96
Callback callback;
97
};
98
99
}
100
101
#endif
/* BERRYINULLSELECTIONLISTENER_H_ */
berry::ISelectionListener
Definition:
berryISelectionListener.h:42
berry
Definition:
QmitkPropertyItemModel.h:27
berry::SmartPointer< Self >
berry::NullSelectionChangedAdapter::Listener
R Listener
Definition:
berryINullSelectionListener.h:76
berry::NullSelectionChangedAdapter::SelectionChanged
void SelectionChanged(const IWorkbenchPart::Pointer &part, const ISelection::ConstPointer &selection) override
Definition:
berryINullSelectionListener.h:87
berry::NullSelectionChangedAdapter
Definition:
berryINullSelectionListener.h:73
berryISelectionListener.h
berry::INullSelectionListener
Definition:
berryINullSelectionListener.h:42
berry::NullSelectionChangedAdapter::Callback
void(R::* Callback)(const IWorkbenchPart::Pointer &, const ISelection::ConstPointer &)
Definition:
berryINullSelectionListener.h:78
berry::NullSelectionChangedAdapter::NullSelectionChangedAdapter
NullSelectionChangedAdapter(R *l, Callback c)
Definition:
berryINullSelectionListener.h:80
BERRY_UI_QT
#define BERRY_UI_QT
Definition:
org_blueberry_ui_qt_Export.h:23
git
MITK
Plugins
org.blueberry.ui.qt
src
berryINullSelectionListener.h
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1