Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 
41  static const int PROP_DIRTY; // = IWorkbenchPartConstants.PROP_DIRTY;
42 
59  virtual void DoSave(/*IProgressMonitor monitor*/) = 0;
60 
74  virtual void DoSaveAs() = 0;
75 
90  virtual bool IsDirty() const = 0;
91 
98  virtual bool IsSaveAsAllowed() const = 0;
99 
107  virtual bool IsSaveOnCloseNeeded() const = 0;
108 };
109 
110 }
111 
112 Q_DECLARE_INTERFACE(berry::ISaveablePart, "org.blueberry.ui.ISaveablePart")
113 
114 
115 #endif /* BERRYISAVEABLEPART_H_ */
berry::ISaveablePart::PROP_DIRTY
static const int PROP_DIRTY
Definition: berryISaveablePart.h:41
org_blueberry_ui_qt_Export.h
berryMacros.h
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
berry::ISaveablePart
Definition: berryISaveablePart.h:33
berryObject.h
berry
Definition: QmitkPropertyItemModel.h:24