Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryISaveablePart.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 BERRYISAVEABLEPART_H_
19 #define BERRYISAVEABLEPART_H_
20 
21 #include <berryMacros.h>
22 #include <berryObject.h>
23 
25 
26 #include <QtPlugin>
27 
28 namespace berry {
29 
37 struct BERRY_UI_QT ISaveablePart : public virtual Object
38 {
39 
41 
42 
45  static const int PROP_DIRTY; // = IWorkbenchPartConstants.PROP_DIRTY;
46 
65  virtual void DoSave(/*IProgressMonitor monitor*/) = 0;
66 
80  virtual void DoSaveAs() = 0;
81 
96  virtual bool IsDirty() const = 0;
97 
104  virtual bool IsSaveAsAllowed() const = 0;
105 
113  virtual bool IsSaveOnCloseNeeded() const = 0;
114 };
115 
116 }
117 
118 Q_DECLARE_INTERFACE(berry::ISaveablePart, "org.blueberry.ui.ISaveablePart")
119 
120 
121 #endif /* BERRYISAVEABLEPART_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT