Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
berryISaveablePart.h
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 
14 #ifndef BERRYISAVEABLEPART_H_
15 #define BERRYISAVEABLEPART_H_
16 
17 #include <berryMacros.h>
18 #include <berryObject.h>
19 
21 
22 #include <QtPlugin>
23 
24 namespace berry {
25 
33 struct BERRY_UI_QT ISaveablePart : public virtual Object
34 {
35 
37 
38 
41  static const int PROP_DIRTY; // = IWorkbenchPartConstants.PROP_DIRTY;
42 
61  virtual void DoSave(/*IProgressMonitor monitor*/) = 0;
62 
76  virtual void DoSaveAs() = 0;
77 
92  virtual bool IsDirty() const = 0;
93 
100  virtual bool IsSaveAsAllowed() const = 0;
101 
109  virtual bool IsSaveOnCloseNeeded() const = 0;
110 };
111 
112 }
113 
114 Q_DECLARE_INTERFACE(berry::ISaveablePart, "org.blueberry.ui.ISaveablePart")
115 
116 
117 #endif /* BERRYISAVEABLEPART_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
#define berryObjectMacro(...)
Definition: berryMacros.h:33
#define BERRY_UI_QT