Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
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
36
class
MITKQTWIDGETS_EXPORT
QmitkMouseModeSwitcher
:
public
QToolBar
37
{
38
Q_OBJECT
39
40
public
:
41
QmitkMouseModeSwitcher
(QWidget *parent = 0);
42
virtual
~
QmitkMouseModeSwitcher
();
43
44
typedef
mitk::MouseModeSwitcher::MouseMode
MouseMode
;
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
;
82
mitk::MouseModeSwitcher
*
m_MouseModeSwitcher
;
83
84
unsigned
long
m_ObserverTag
;
85
86
bool
m_InObservationReaction
;
87
};
88
89
#endif
QmitkMouseModeSwitcher::m_ActionGroup
QActionGroup * m_ActionGroup
Definition:
QmitkMouseModeSwitcher.h:81
QmitkMouseModeSwitcher::m_InObservationReaction
bool m_InObservationReaction
Definition:
QmitkMouseModeSwitcher.h:86
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition:
MitkQtWidgetsExports.h:15
mitkMouseModeSwitcher.h
QmitkMouseModeSwitcher::m_ObserverTag
unsigned long m_ObserverTag
Definition:
QmitkMouseModeSwitcher.h:84
QmitkMouseModeSwitcher::m_MouseModeSwitcher
mitk::MouseModeSwitcher * m_MouseModeSwitcher
Definition:
QmitkMouseModeSwitcher.h:82
QmitkMouseModeSwitcher
Qt toolbar representing mitk::MouseModeSwitcher.
Definition:
QmitkMouseModeSwitcher.h:36
mitk::MouseModeSwitcher
Definition:
mitkMouseModeSwitcher.h:61
QmitkMouseModeSwitcher::MouseMode
mitk::MouseModeSwitcher::MouseMode MouseMode
Definition:
QmitkMouseModeSwitcher.h:44
mitk::MouseModeSwitcher::MouseMode
MouseMode
Definition:
mitkMouseModeSwitcher.h:84
MitkQtWidgetsExports.h
git
MITK
Modules
QtWidgets
include
QmitkMouseModeSwitcher.h
Generated on Fri Feb 3 2017 20:52:13 for Medical Imaging Interaction Toolkit by
1.8.9.1