Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkMouseModeSwitcher.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 QmitkMouseModeSwitcher_h
14 #define QmitkMouseModeSwitcher_h
15 
16 #include "MitkQtWidgetsExports.h"
17 
18 #include "mitkMouseModeSwitcher.h"
19 
20 #include <QActionGroup>
21 #include <QToolBar>
22 
33 {
34  Q_OBJECT
35 
36 public:
37 
38  QmitkMouseModeSwitcher(QWidget* parent = nullptr);
39  ~QmitkMouseModeSwitcher() override;
40 
42 
43 public slots:
44 
53  void setMouseModeSwitcher(mitk::MouseModeSwitcher*);
54 
55 signals:
56 
65  void MouseModeSelected(MouseMode id);
66 
67 protected slots:
68 
69  void OnMouseModeChangedViaButton();
70  void addButton(MouseMode id, const QString& toolName, const QIcon& icon, bool on = false);
71 
72 protected:
73 
74  void OnMouseModeChangedViaCommand(const itk::EventObject&);
75 
76  QActionGroup* m_ActionGroup;
78 
79  unsigned long m_ObserverTag;
80 
82 };
83 
84 #endif
#define MITKQTWIDGETS_EXPORT
mitk::MouseModeSwitcher * m_MouseModeSwitcher
Qt toolbar representing mitk::MouseModeSwitcher.
mitk::MouseModeSwitcher::MouseMode MouseMode