Medical Imaging Interaction Toolkit  2016.11.0
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,
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 #ifndef MITKDATASTORAGEEDITORINPUT_H_
18 #define MITKDATASTORAGEEDITORINPUT_H_
19 
20 #include <berryIEditorInput.h>
22 
24 
26 
27 namespace mitk
28 {
29 
38 class MITK_GUI_COMMON_PLUGIN DataStorageEditorInput : public berry::IEditorInput //, private berry::IPersistableElement
39 {
40 public:
42 
45 
46  bool Exists() const override;
47  QString GetName() const override;
48  QString GetToolTipText() const override;
49  QIcon GetIcon() const override;
50 
51  const berry::IPersistableElement* GetPersistable() const override;
52  Object* GetAdapter(const QString &adapterType) const override;
53 
54  IDataStorageReference::Pointer GetDataStorageReference();
55 
56  bool operator==(const berry::Object*) const override;
57 
58 private:
59 
60  //QString GetFactoryId() const;
61  //void SaveState(const berry::SmartPointer<berry::IMemento>& memento) const;
62 
63  IDataStorageReference::Pointer m_DataStorageRef;
64 };
65 
66 }
67 
68 #endif /*MITKDATASTORAGEEDITORINPUT_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
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:88
#define berryObjectMacro(...)
Definition: berryMacros.h:37
static std::string GetName(std::string fileName, std::string suffix)
#define MITK_GUI_COMMON_PLUGIN