Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryPropertyChangeEvent.h
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 
18 #ifndef BERRYPROPERTYCHANGEEVENT_H_
19 #define BERRYPROPERTYCHANGEEVENT_H_
20 
21 #include <berryMacros.h>
22 #include <berryObject.h>
23 
25 
26 namespace berry {
27 
46 {
47 
48 public:
49 
51 
52 private:
53 
57  QString propertyName;
58 
63  Object::Pointer oldValue;
64 
69  Object::Pointer newValue;
70 
74  Object::Pointer source;
75 
76 public:
77 
86  PropertyChangeEvent(Object::Pointer source, const QString& property, Object::Pointer oldValue,
87  Object::Pointer newValue);
88 
95  Object::Pointer GetNewValue();
96 
104  Object::Pointer GetOldValue();
105 
116  QString GetProperty();
117 
123  Object::Pointer GetSource();
124 
125 };
126 
127 }
128 
129 #endif /* BERRYPROPERTYCHANGEEVENT_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT