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
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
berrySaveablesLifecycleEvent.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 "
berrySaveablesLifecycleEvent.h
"
18
19
namespace
berry
20
{
21
22
const
int
SaveablesLifecycleEvent::POST_OPEN = 1;
23
const
int
SaveablesLifecycleEvent::PRE_CLOSE
= 2;
24
const
int
SaveablesLifecycleEvent::POST_CLOSE
= 3;
25
const
int
SaveablesLifecycleEvent::DIRTY_CHANGED
= 4;
26
27
SaveablesLifecycleEvent::SaveablesLifecycleEvent
(
Object::Pointer
source_,
28
int
eventType_,
const
QList<Saveable::Pointer>& saveables_,
29
bool
force_) :
30
eventType(eventType_), saveables(saveables_), force(force_), veto(false),
31
source(source_)
32
{
33
34
}
35
36
int
SaveablesLifecycleEvent::GetEventType
()
37
{
38
return
eventType;
39
}
40
41
Object::Pointer
SaveablesLifecycleEvent::GetSource
()
42
{
43
return
source;
44
}
45
46
QList<Saveable::Pointer>
SaveablesLifecycleEvent::GetSaveables
()
47
{
48
return
saveables;
49
}
50
51
bool
SaveablesLifecycleEvent::IsVeto
()
52
{
53
return
veto;
54
}
55
56
void
SaveablesLifecycleEvent::SetVeto
(
bool
veto)
57
{
58
this->veto = veto;
59
}
60
61
bool
SaveablesLifecycleEvent::IsForce
()
62
{
63
return
force;
64
}
65
66
}
berry
Definition:
QmitkPropertyItemModel.h:27
berry::SaveablesLifecycleEvent::SaveablesLifecycleEvent
SaveablesLifecycleEvent(Object::Pointer source_, int eventType_, const QList< Saveable::Pointer > &saveables_, bool force_)
Definition:
berrySaveablesLifecycleEvent.cpp:27
berry::SaveablesLifecycleEvent::IsVeto
bool IsVeto()
Definition:
berrySaveablesLifecycleEvent.cpp:51
berry::SmartPointer< Self >
berry::SaveablesLifecycleEvent::SetVeto
void SetVeto(bool veto)
Definition:
berrySaveablesLifecycleEvent.cpp:56
berry::SaveablesLifecycleEvent::GetEventType
int GetEventType()
Definition:
berrySaveablesLifecycleEvent.cpp:36
berry::SaveablesLifecycleEvent::PRE_CLOSE
static const int PRE_CLOSE
Definition:
berrySaveablesLifecycleEvent.h:49
berry::SaveablesLifecycleEvent::DIRTY_CHANGED
static const int DIRTY_CHANGED
Definition:
berrySaveablesLifecycleEvent.h:60
berry::SaveablesLifecycleEvent::POST_CLOSE
static const int POST_CLOSE
Definition:
berrySaveablesLifecycleEvent.h:54
berry::SaveablesLifecycleEvent::GetSaveables
QList< Saveable::Pointer > GetSaveables()
Definition:
berrySaveablesLifecycleEvent.cpp:46
berry::SaveablesLifecycleEvent::GetSource
Object::Pointer GetSource()
Definition:
berrySaveablesLifecycleEvent.cpp:41
berry::SaveablesLifecycleEvent::IsForce
bool IsForce()
Definition:
berrySaveablesLifecycleEvent.cpp:61
berrySaveablesLifecycleEvent.h
git
MITK
Plugins
org.blueberry.ui.qt
src
berrySaveablesLifecycleEvent.cpp
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1