Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkMultiWidgetConfigurationToolBar.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 QmitkMultiWidgetConfigurationToolBar_h
14 #define QmitkMultiWidgetConfigurationToolBar_h
15 
16 #include <MitkQtWidgetsExports.h>
17 
19 #include <mitkDataStorage.h>
20 
21 #include <nlohmann/json.hpp>
22 
23 // qt
24 #include <QToolBar>
25 
28 
35 {
36  Q_OBJECT
37 
38 public:
39 
42  void SetDataStorage(mitk::DataStorage::Pointer dataStorage);
43 
44 Q_SIGNALS:
45 
46  void LayoutSet(int row, int column);
47  void SaveLayout(std::ostream* outStream);
48  void LoadLayout(const nlohmann::json* jsonData);
49  void SetDataBasedLayout(const QList<mitk::DataNode::Pointer>& nodes);
50  void Synchronized(bool synchronized);
51  void InteractionSchemeChanged(mitk::InteractionSchemeSwitcher::InteractionScheme scheme);
52 
53 protected Q_SLOTS:
54 
55  void OnSetLayout();
56  void OnSynchronize();
57  void OnInteractionSchemeChanged();
58 
59 private:
60 
61  void InitializeToolBar();;
62  void AddButtons();
63 
64  QmitkAbstractMultiWidget* m_MultiWidget;
65 
66  QAction* m_SynchronizeAction;
67  QAction* m_InteractionSchemeChangeAction;
68 
69  QmitkMultiWidgetLayoutSelectionWidget* m_LayoutSelectionPopup;
70 
71 };
72 
73 #endif
mitk::InteractionSchemeSwitcher::InteractionScheme
InteractionScheme
Definition: mitkInteractionSchemeSwitcher.h:114
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
QmitkMultiWidgetLayoutSelectionWidget
Definition: QmitkMultiWidgetLayoutSelectionWidget.h:35
QmitkMultiWidgetConfigurationToolBar
Definition: QmitkMultiWidgetConfigurationToolBar.h:34
mitkDataStorage.h
mitkInteractionSchemeSwitcher.h
itk::SmartPointer< Self >
json
nlohmann::json json
Definition: mitkModelTestFixture.h:29
MitkQtWidgetsExports.h
QmitkAbstractMultiWidget
The 'QmitkAbstractMultiWidget' is a 'QWidget' that can be subclassed to display multiple render windo...
Definition: QmitkAbstractMultiWidget.h:53