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
berryIDropTargetListener.cpp
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
#include "
berryIDropTargetListener.h
"
19
20
namespace
berry
{
21
22
IDropTargetListener::~IDropTargetListener
()
23
{
24
}
25
26
void
IDropTargetListener::Events::AddListener
(
IDropTargetListener
* l)
27
{
28
if
(l ==
nullptr
)
return
;
29
30
Types t = l->
GetDropTargetEventTypes
();
31
32
if
(t &
ENTER
)
33
dragEnter
+=
DragEnterDelegate
(l, &
IDropTargetListener::DragEnterEvent
);
34
if
(t &
LEAVE
)
35
dragLeave
+=
DragLeaveDelegate
(l, &
IDropTargetListener::DragLeaveEvent
);
36
if
(t &
MOVE
)
37
dragMove
+=
DragMoveDelegate
(l, &
IDropTargetListener::DragMoveEvent
);
38
if
(t &
DROP
)
39
drop
+=
DropDelegate
(l, &
IDropTargetListener::DropEvent
);
40
}
41
42
void
IDropTargetListener::Events::RemoveListener
(
IDropTargetListener
* l)
43
{
44
if
(l ==
nullptr
)
return
;
45
46
dragEnter -=
DragEnterDelegate
(l, &
IDropTargetListener::DragEnterEvent
);
47
dragLeave -=
DragLeaveDelegate
(l, &
IDropTargetListener::DragLeaveEvent
);
48
dragMove -=
DragMoveDelegate
(l, &
IDropTargetListener::DragMoveEvent
);
49
drop -=
DropDelegate
(l, &
IDropTargetListener::DropEvent
);
50
}
51
52
}
berry::IDropTargetListener::DropEvent
virtual void DropEvent(QDropEvent *)
Definition:
berryIDropTargetListener.h:76
berry
Definition:
QmitkPropertyItemModel.h:27
berryIDropTargetListener.h
berry::IDropTargetListener::Events::MOVE
Definition:
berryIDropTargetListener.h:43
berry::IDropTargetListener
Definition:
berryIDropTargetListener.h:32
berry::IDropTargetListener::Events::dragMove
DragMoveEventType dragMove
Definition:
berryIDropTargetListener.h:58
berry::IDropTargetListener::Events::LEAVE
Definition:
berryIDropTargetListener.h:42
berry::IDropTargetListener::Events::AddListener
void AddListener(IDropTargetListener *listener)
Definition:
berryIDropTargetListener.cpp:26
berry::IDropTargetListener::Events::dragLeave
DragLeaveEventType dragLeave
Definition:
berryIDropTargetListener.h:57
berry::IDropTargetListener::Events::DROP
Definition:
berryIDropTargetListener.h:44
berry::IDropTargetListener::GetDropTargetEventTypes
virtual Events::Types GetDropTargetEventTypes() const =0
berry::IDropTargetListener::Events::drop
DropEventType drop
Definition:
berryIDropTargetListener.h:59
berry::IDropTargetListener::Events::ENTER
Definition:
berryIDropTargetListener.h:41
berry::IDropTargetListener::Events::dragEnter
DragEnterEventType dragEnter
Definition:
berryIDropTargetListener.h:56
berry::IDropTargetListener::DragEnterEvent
virtual void DragEnterEvent(QDragEnterEvent *)
Definition:
berryIDropTargetListener.h:73
berry::IDropTargetListener::DragLeaveEvent
virtual void DragLeaveEvent(QDragLeaveEvent *)
Definition:
berryIDropTargetListener.h:74
berry::IDropTargetListener::DragMoveEvent
virtual void DragMoveEvent(QDragMoveEvent *)
Definition:
berryIDropTargetListener.h:75
berry::MessageDelegate1
Definition:
berryMessage.h:174
berry::IDropTargetListener::~IDropTargetListener
virtual ~IDropTargetListener()
Definition:
berryIDropTargetListener.cpp:22
berry::IDropTargetListener::Events::RemoveListener
void RemoveListener(IDropTargetListener *listener)
Definition:
berryIDropTargetListener.cpp:42
git
MITK
Plugins
org.blueberry.ui.qt
src
berryIDropTargetListener.cpp
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1