Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryFileEditorInput.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 BERRYFILEEDITORINPUT_H_
19 #define BERRYFILEEDITORINPUT_H_
20 
21 #include "berryIPathEditorInput.h"
22 
24 
25 #include <QFileInfo>
26 
27 namespace berry {
28 
30 {
31 
32 public:
33 
35 
36  FileEditorInput(const QString& path);
37 
38  QString GetPath() const override;
39 
40  bool Exists() const override;
41 
42  QString GetName() const override ;
43 
44  QString GetToolTipText() const override;
45 
46  QIcon GetIcon() const override;
47 
48  const IPersistableElement* GetPersistable() const override;
49 
50  Object* GetAdapter(const QString &adapterType) const override;
51 
52  bool operator==(const Object* o) const override;
53 
54 private:
55 
56  QFileInfo m_Path;
57 };
58 
59 }
60 
61 #endif /* BERRYFILEEDITORINPUT_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
#define berryObjectMacro(...)
Definition: berryMacros.h:37
static std::string GetName(std::string fileName, std::string suffix)
#define BERRY_UI_QT