Medical Imaging Interaction Toolkit  2016.11.0
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,
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 #ifndef QmitkMouseModeSwitcher_h
18 #define QmitkMouseModeSwitcher_h
19 
20 #include "MitkQtWidgetsExports.h"
21 
22 #include "mitkMouseModeSwitcher.h"
23 
24 #include <QActionGroup>
25 #include <QToolBar>
26 
37 {
38  Q_OBJECT
39 
40 public:
41  QmitkMouseModeSwitcher(QWidget *parent = 0);
42  virtual ~QmitkMouseModeSwitcher();
43 
45 
46 public slots:
47 
56  void setMouseModeSwitcher(mitk::MouseModeSwitcher *);
57 
58 signals:
59 
68  void MouseModeSelected(mitk::MouseModeSwitcher::MouseMode id); // TODO change int to enum of MouseModeSwitcher
69 
70 protected slots:
71 
72  void modeSelectedByUser();
73  void addButton(MouseMode id,
74  const QString &toolName,
75  const QIcon &icon,
76  bool on = false); // TODO change int to enum of MouseModeSwitcher
77 
78 protected:
79  void OnMouseModeChanged(const itk::EventObject &);
80 
81  QActionGroup *m_ActionGroup;
83 
84  unsigned long m_ObserverTag;
85 
87 };
88 
89 #endif
#define MITKQTWIDGETS_EXPORT
mitk::MouseModeSwitcher * m_MouseModeSwitcher
Qt toolbar representing mitk::MouseModeSwitcher.
mitk::MouseModeSwitcher::MouseMode MouseMode