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
berryAbstractNamedHandleEvent.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
#include "
berryAbstractNamedHandleEvent.h
"
18
19
namespace
berry
20
{
21
22
int
AbstractNamedHandleEvent::CHANGED_DESCRIPTION
() {
static
int
i =
AbstractNamedHandleEvent::LAST_BIT_USED_ABSTRACT_HANDLE
() << 1;
return
i; }
23
int
AbstractNamedHandleEvent::CHANGED_NAME
() {
static
int
i =
AbstractNamedHandleEvent::LAST_BIT_USED_ABSTRACT_HANDLE
() << 2;
return
i; }
24
int
AbstractNamedHandleEvent::LAST_USED_BIT
() {
static
int
i =
AbstractNamedHandleEvent::CHANGED_NAME
();
return
i; }
25
26
bool
AbstractNamedHandleEvent::IsDescriptionChanged
()
const
27
{
28
return
((
changedValues
&
CHANGED_DESCRIPTION
()) != 0);
29
}
30
31
bool
AbstractNamedHandleEvent::IsNameChanged
()
const
32
{
33
return
((
changedValues
&
CHANGED_NAME
()) != 0);
34
}
35
36
AbstractNamedHandleEvent::AbstractNamedHandleEvent
(
bool
definedChanged,
37
bool
descriptionChanged,
bool
nameChanged) :
38
AbstractHandleObjectEvent
(definedChanged)
39
{
40
if
(descriptionChanged)
41
{
42
changedValues
|=
CHANGED_DESCRIPTION
();
43
}
44
if
(nameChanged)
45
{
46
changedValues
|=
CHANGED_NAME
();
47
}
48
}
49
50
}
51
berry::AbstractNamedHandleEvent::IsDescriptionChanged
bool IsDescriptionChanged() const
Definition:
berryAbstractNamedHandleEvent.cpp:26
berry
Definition:
QmitkPropertyItemModel.h:27
berry::AbstractNamedHandleEvent::CHANGED_NAME
static int CHANGED_NAME()
Definition:
berryAbstractNamedHandleEvent.cpp:23
berry::AbstractHandleObjectEvent
Definition:
berryAbstractHandleObjectEvent.h:33
berryAbstractNamedHandleEvent.h
berry::AbstractNamedHandleEvent::CHANGED_DESCRIPTION
static int CHANGED_DESCRIPTION()
Definition:
berryAbstractNamedHandleEvent.cpp:22
berry::AbstractHandleObjectEvent::LAST_BIT_USED_ABSTRACT_HANDLE
static int LAST_BIT_USED_ABSTRACT_HANDLE()
Definition:
berryAbstractHandleObjectEvent.cpp:23
berry::AbstractNamedHandleEvent::IsNameChanged
bool IsNameChanged() const
Definition:
berryAbstractNamedHandleEvent.cpp:31
berry::AbstractNamedHandleEvent::AbstractNamedHandleEvent
AbstractNamedHandleEvent(bool definedChanged, bool descriptionChanged, bool nameChanged)
Definition:
berryAbstractNamedHandleEvent.cpp:36
berry::AbstractBitSetEvent::changedValues
int changedValues
Definition:
berryAbstractBitSetEvent.h:50
berry::AbstractNamedHandleEvent::LAST_USED_BIT
static int LAST_USED_BIT()
Definition:
berryAbstractNamedHandleEvent.cpp:24
git
MITK
Plugins
org.blueberry.core.commands
src
common
berryAbstractNamedHandleEvent.cpp
Generated on Fri Feb 3 2017 20:51:43 for Medical Imaging Interaction Toolkit by
1.8.9.1