Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berryAbstractNamedHandleEvent.cpp
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
#include "
berryAbstractNamedHandleEvent.h
"
14
15
namespace
berry
16
{
17
18
int
AbstractNamedHandleEvent::CHANGED_DESCRIPTION
() {
static
int
i =
AbstractNamedHandleEvent::LAST_BIT_USED_ABSTRACT_HANDLE
() << 1;
return
i; }
19
int
AbstractNamedHandleEvent::CHANGED_NAME
() {
static
int
i =
AbstractNamedHandleEvent::LAST_BIT_USED_ABSTRACT_HANDLE
() << 2;
return
i; }
20
int
AbstractNamedHandleEvent::LAST_USED_BIT
() {
static
int
i =
AbstractNamedHandleEvent::CHANGED_NAME
();
return
i; }
21
22
bool
AbstractNamedHandleEvent::IsDescriptionChanged
()
const
23
{
24
return
((
changedValues
&
CHANGED_DESCRIPTION
()) != 0);
25
}
26
27
bool
AbstractNamedHandleEvent::IsNameChanged
()
const
28
{
29
return
((
changedValues
&
CHANGED_NAME
()) != 0);
30
}
31
32
AbstractNamedHandleEvent::AbstractNamedHandleEvent
(
bool
definedChanged,
33
bool
descriptionChanged,
bool
nameChanged) :
34
AbstractHandleObjectEvent
(definedChanged)
35
{
36
if
(descriptionChanged)
37
{
38
changedValues
|=
CHANGED_DESCRIPTION
();
39
}
40
if
(nameChanged)
41
{
42
changedValues
|=
CHANGED_NAME
();
43
}
44
}
45
46
}
47
berry
Definition:
QmitkPropertyItemModel.h:23
berry::AbstractNamedHandleEvent::CHANGED_NAME
static int CHANGED_NAME()
Definition:
berryAbstractNamedHandleEvent.cpp:19
berry::AbstractHandleObjectEvent
Definition:
berryAbstractHandleObjectEvent.h:29
berryAbstractNamedHandleEvent.h
berry::AbstractNamedHandleEvent::IsDescriptionChanged
bool IsDescriptionChanged() const
Definition:
berryAbstractNamedHandleEvent.cpp:22
berry::AbstractNamedHandleEvent::CHANGED_DESCRIPTION
static int CHANGED_DESCRIPTION()
Definition:
berryAbstractNamedHandleEvent.cpp:18
berry::AbstractHandleObjectEvent::LAST_BIT_USED_ABSTRACT_HANDLE
static int LAST_BIT_USED_ABSTRACT_HANDLE()
Definition:
berryAbstractHandleObjectEvent.cpp:19
berry::AbstractNamedHandleEvent::IsNameChanged
bool IsNameChanged() const
Definition:
berryAbstractNamedHandleEvent.cpp:27
berry::AbstractNamedHandleEvent::AbstractNamedHandleEvent
AbstractNamedHandleEvent(bool definedChanged, bool descriptionChanged, bool nameChanged)
Definition:
berryAbstractNamedHandleEvent.cpp:32
berry::AbstractBitSetEvent::changedValues
int changedValues
Definition:
berryAbstractBitSetEvent.h:46
berry::AbstractNamedHandleEvent::LAST_USED_BIT
static int LAST_USED_BIT()
Definition:
berryAbstractNamedHandleEvent.cpp:20
Source
Plugins
org.blueberry.core.commands
src
common
berryAbstractNamedHandleEvent.cpp
Generated on Thu Mar 12 2020 10:23:32 for Medical Imaging Interaction Toolkit by
1.8.13