Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berrySaveablesLifecycleEvent.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 "
berrySaveablesLifecycleEvent.h
"
14
15
namespace
berry
16
{
17
18
const
int
SaveablesLifecycleEvent::POST_OPEN
= 1;
19
const
int
SaveablesLifecycleEvent::PRE_CLOSE
= 2;
20
const
int
SaveablesLifecycleEvent::POST_CLOSE
= 3;
21
const
int
SaveablesLifecycleEvent::DIRTY_CHANGED
= 4;
22
23
SaveablesLifecycleEvent::SaveablesLifecycleEvent
(
Object::Pointer
source_,
24
int
eventType_,
const
QList<Saveable::Pointer>& saveables_,
25
bool
force_) :
26
eventType(eventType_), saveables(saveables_), force(force_), veto(false),
27
source(source_)
28
{
29
30
}
31
32
int
SaveablesLifecycleEvent::GetEventType
()
33
{
34
return
eventType;
35
}
36
37
Object::Pointer
SaveablesLifecycleEvent::GetSource
()
38
{
39
return
source;
40
}
41
42
QList<Saveable::Pointer>
SaveablesLifecycleEvent::GetSaveables
()
43
{
44
return
saveables;
45
}
46
47
bool
SaveablesLifecycleEvent::IsVeto
()
48
{
49
return
veto;
50
}
51
52
void
SaveablesLifecycleEvent::SetVeto
(
bool
veto)
53
{
54
this->veto = veto;
55
}
56
57
bool
SaveablesLifecycleEvent::IsForce
()
58
{
59
return
force;
60
}
61
62
}
berry
Definition:
QmitkPropertyItemModel.h:23
berry::SaveablesLifecycleEvent::SaveablesLifecycleEvent
SaveablesLifecycleEvent(Object::Pointer source_, int eventType_, const QList< Saveable::Pointer > &saveables_, bool force_)
Definition:
berrySaveablesLifecycleEvent.cpp:23
berry::SaveablesLifecycleEvent::IsVeto
bool IsVeto()
Definition:
berrySaveablesLifecycleEvent.cpp:47
berry::SmartPointer< Self >
berry::SaveablesLifecycleEvent::SetVeto
void SetVeto(bool veto)
Definition:
berrySaveablesLifecycleEvent.cpp:52
berry::SaveablesLifecycleEvent::GetEventType
int GetEventType()
Definition:
berrySaveablesLifecycleEvent.cpp:32
berry::SaveablesLifecycleEvent::PRE_CLOSE
static const int PRE_CLOSE
Definition:
berrySaveablesLifecycleEvent.h:45
berry::SaveablesLifecycleEvent::DIRTY_CHANGED
static const int DIRTY_CHANGED
Definition:
berrySaveablesLifecycleEvent.h:56
berry::SaveablesLifecycleEvent::POST_CLOSE
static const int POST_CLOSE
Definition:
berrySaveablesLifecycleEvent.h:50
berry::SaveablesLifecycleEvent::POST_OPEN
static const int POST_OPEN
Definition:
berrySaveablesLifecycleEvent.h:39
berry::SaveablesLifecycleEvent::GetSaveables
QList< Saveable::Pointer > GetSaveables()
Definition:
berrySaveablesLifecycleEvent.cpp:42
berry::SaveablesLifecycleEvent::GetSource
Object::Pointer GetSource()
Definition:
berrySaveablesLifecycleEvent.cpp:37
berry::SaveablesLifecycleEvent::IsForce
bool IsForce()
Definition:
berrySaveablesLifecycleEvent.cpp:57
berrySaveablesLifecycleEvent.h
Source
Plugins
org.blueberry.ui.qt
src
berrySaveablesLifecycleEvent.cpp
Generated on Thu Mar 12 2020 10:23:33 for Medical Imaging Interaction Toolkit by
1.8.13