17 #ifndef QMITKFUNCTIONALITY_H_
18 #define QMITKFUNCTIONALITY_H_
43 #include <ctkServiceTracker.h>
50 struct IDataStorageService;
54 struct IBerryPreferences;
57 class QmitkFunctionalitySelectionProvider;
104 virtual void ClosePart();
108 virtual void OnSelectionChanged(std::vector<mitk::DataNode*> );
119 void SetHandleMultipleDataStorages(
bool multiple);
123 bool HandlesMultipleDataStorages()
const;
138 virtual void StdMultiWidgetNotAvailable();
143 virtual void Activated();
147 bool IsActivated()
const;
152 virtual void Deactivated();
180 virtual bool IsExclusiveFunctionality()
const;
188 void FireNodesSelected(std::vector<mitk::DataNode*> nodes);
192 virtual void Visible();
196 bool IsVisible()
const;
200 virtual void Hidden();
222 virtual void DataStorageChanged();
227 std::vector<mitk::DataNode*> GetCurrentSelection()
const;
232 std::vector<mitk::DataNode*> GetDataManagerSelection()
const;
267 void HandleException( std::exception& e, QWidget* parent = NULL,
bool showDialog =
true )
const;
272 void HandleException(
const char* str, QWidget* parent = NULL,
bool showDialog =
true )
const;
280 void WaitCursorOff();
288 void BusyCursorOff();
292 void RestoreOverrideCursor();
326 void SetVisible(
bool visible);
330 void SetActivated(
bool activated);
337 void ClosePartProxy();
345 void AfterCreateQtPartControl();
349 void ActivateLastVisibleFunctionality();
384 QmitkFunctionalitySelectionProvider* m_SelectionProvider;
388 QScopedPointer<berry::ISelectionListener> m_BlueBerrySelectionListener;
390 ctkServiceTracker<mitk::IDataStorageService*> m_DataStorageServiceTracker;
396 bool m_HandlesMultipleDataStorages;
400 bool m_InDataStorageChanged;
404 std::set<std::string> m_VisibleFunctionalities;
virtual void SetFocus() override=0
DataCollection - Class to facilitate loading/accessing structured data.
static mitk::DataStorage::Pointer GetDataStorage()
The base class of all MITK related blueberry views (~ in the old version of MITK, this was called "Fu...
#define MITK_QT_COMMON_LEGACY
berryObjectMacro(QtViewPart) void CreatePartControl(QWidget *parent) override
virtual void CreatePartControl(QWidget *parent) override=0
Class for nodes of the DataTree.