Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryPropertyChangeEvent.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 
18 
19 namespace berry
20 {
21 
23  const QString& property, Object::Pointer oldValue,
24  Object::Pointer newValue)
25 {
26  this->source = source;
27  this->propertyName = property;
28  this->oldValue = oldValue;
29  this->newValue = newValue;
30 }
31 
33 {
34  return newValue;
35 }
36 
38 {
39  return oldValue;
40 }
41 
43 {
44  return propertyName;
45 }
46 
48 {
49  return source;
50 }
51 
52 }
berryObjectMacro(PropertyChangeEvent) private Object::Pointer oldValue
PropertyChangeEvent(Object::Pointer source, const QString &property, Object::Pointer oldValue, Object::Pointer newValue)