Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
berryGuiTkISelectionListener.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 BERRYGUITKISELECTIONLISTENER_H_
14
#define BERRYGUITKISELECTIONLISTENER_H_
15
16
#include <
berryMacros.h
>
17
#include <
berryMessage.h
>
18
19
#include "
berryGuiTkSelectionEvent.h
"
20
21
namespace
berry
22
{
23
24
namespace
GuiTk
25
{
26
43
struct
BERRY_UI_QT
ISelectionListener
:
public
virtual
Object
44
{
45
46
berryObjectMacro
(
berry::GuiTk::ISelectionListener
);
47
48
struct
BERRY_UI_QT
Events
{
49
50
typedef
Message1<SelectionEvent::Pointer>
EventType
;
51
52
EventType
selected
;
53
EventType
defaultSelected
;
54
55
void
AddListener(
ISelectionListener::Pointer
listener);
56
void
RemoveListener(
ISelectionListener::Pointer
listener);
57
58
private
:
59
typedef
MessageDelegate1<ISelectionListener, SelectionEvent::Pointer>
Delegate
;
60
};
61
62
~
ISelectionListener
()
override
;
63
74
virtual
void
WidgetSelected
(
SelectionEvent::Pointer
) {}
75
87
virtual
void
WidgetDefaultSelected
(
SelectionEvent::Pointer
) {}
88
};
89
90
}
91
92
}
93
94
#endif
/* BERRYGUITKISELECTIONLISTENER_H_ */
berry::GuiTk::ISelectionListener::Events::selected
EventType selected
Definition:
berryGuiTkISelectionListener.h:52
berryMacros.h
berry::SmartPointer
Implements transparent reference counting.
Definition:
berryICommandCategoryListener.h:21
berryMessage.h
berry::Message1< SelectionEvent::Pointer >
berry::GuiTk::ISelectionListener::Events
Definition:
berryGuiTkISelectionListener.h:48
berry::Object
Light weight base class for most BlueBerry classes.
Definition:
berryObject.h:72
berry::GuiTk::ISelectionListener::WidgetDefaultSelected
virtual void WidgetDefaultSelected(SelectionEvent::Pointer)
Definition:
berryGuiTkISelectionListener.h:87
berry::GuiTk::ISelectionListener::WidgetSelected
virtual void WidgetSelected(SelectionEvent::Pointer)
Definition:
berryGuiTkISelectionListener.h:74
berry::MessageDelegate1
Definition:
berryMessage.h:170
BERRY_UI_QT
#define BERRY_UI_QT
Definition:
org_blueberry_ui_qt_Export.h:26
berry::GuiTk::ISelectionListener
Definition:
berryGuiTkISelectionListener.h:43
berry::GuiTk::ISelectionListener::Events::defaultSelected
EventType defaultSelected
Definition:
berryGuiTkISelectionListener.h:53
berry::GuiTk::ISelectionListener::Events::EventType
Message1< SelectionEvent::Pointer > EventType
Definition:
berryGuiTkISelectionListener.h:50
berryObjectMacro
#define berryObjectMacro(...)
Definition:
berryMacros.h:31
berry
Definition:
QmitkPropertyItemModel.h:24
berryGuiTkSelectionEvent.h
src
MITK
Plugins
org.blueberry.ui.qt
src
guitk
berryGuiTkISelectionListener.h
Generated on Tue Dec 24 2024 02:12:22 for Medical Imaging Interaction Toolkit by
1.8.17