Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
20 #include <nlohmann/json.hpp>
21 
22 // qt
23 #include <QToolBar>
24 
27 
34 {
35  Q_OBJECT
36 
37 public:
38 
41 
42 Q_SIGNALS:
43 
44  void LayoutSet(int row, int column);
45  void SaveLayout(std::ostream* outStream);
46  void LoadLayout(const nlohmann::json* jsonData);
47  void Synchronized(bool synchronized);
48  void InteractionSchemeChanged(mitk::InteractionSchemeSwitcher::InteractionScheme scheme);
49 
50 protected Q_SLOTS:
51 
52  void OnSetLayout();
53  void OnSynchronize();
54  void OnInteractionSchemeChanged();
55 
56 private:
57 
58  void InitializeToolBar();;
59  void AddButtons();
60 
61  QmitkAbstractMultiWidget* m_MultiWidget;
62 
63  QAction* m_SynchronizeAction;
64  QAction* m_InteractionSchemeChangeAction;
65 
66  QmitkMultiWidgetLayoutSelectionWidget* m_LayoutSelectionPopup;
67 
68 };
69 
70 #endif
mitk::InteractionSchemeSwitcher::InteractionScheme
InteractionScheme
Definition: mitkInteractionSchemeSwitcher.h:114
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
QmitkMultiWidgetLayoutSelectionWidget
Definition: QmitkMultiWidgetLayoutSelectionWidget.h:30
QmitkMultiWidgetConfigurationToolBar
Definition: QmitkMultiWidgetConfigurationToolBar.h:33
mitkInteractionSchemeSwitcher.h
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