Medical Imaging Interaction Toolkit  2018.4.99-f51274ea
Medical Imaging Interaction Toolkit
mitkDataStorageEditorInput.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 #ifndef MITKDATASTORAGEEDITORINPUT_H_
14 #define MITKDATASTORAGEEDITORINPUT_H_
15 
16 #include <berryIEditorInput.h>
18 
20 
22 
23 namespace mitk
24 {
25 
34 class MITK_GUI_COMMON_PLUGIN DataStorageEditorInput : public berry::IEditorInput //, private berry::IPersistableElement
35 {
36 public:
38 
41 
42  bool Exists() const override;
43  QString GetName() const override;
44  QString GetToolTipText() const override;
45  QIcon GetIcon() const override;
46 
47  const berry::IPersistableElement* GetPersistable() const override;
48  Object* GetAdapter(const QString &adapterType) const override;
49 
50  IDataStorageReference::Pointer GetDataStorageReference();
51 
52  bool operator==(const berry::Object*) const override;
53 
54 private:
55 
56  //QString GetFactoryId() const;
57  //void SaveState(const berry::SmartPointer<berry::IMemento>& memento) const;
58 
59  IDataStorageReference::Pointer m_DataStorageRef;
60 };
61 
62 }
63 
64 #endif /*MITKDATASTORAGEEDITORINPUT_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
DataCollection - Class to facilitate loading/accessing structured data.
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
An editor input based on a mitk::DataStorage.
berry::SmartPointer< Self > Pointer
Definition: berryObject.h:82
#define berryObjectMacro(...)
Definition: berryMacros.h:33
static std::string GetName(std::string fileName, std::string suffix)
#define MITK_GUI_COMMON_PLUGIN