Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkInteractionSchemeToolBar.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 QMITKINTERACTIONSCHEMETOOLBAR_H
14
#define QMITKINTERACTIONSCHEMETOOLBAR_H
15
16
#include "
MitkQtWidgetsExports.h
"
17
18
// mitk core
19
#include "
mitkInteractionSchemeSwitcher.h
"
20
21
#include <QActionGroup>
22
#include <QToolBar>
23
29
class
MITKQTWIDGETS_EXPORT
QmitkInteractionSchemeToolBar
:
public
QToolBar
30
{
31
Q_OBJECT
32
33
public
:
34
35
using
InteractionScheme
=
mitk::InteractionSchemeSwitcher::InteractionScheme
;
36
37
QmitkInteractionSchemeToolBar
(QWidget* parent =
nullptr
);
38
~
QmitkInteractionSchemeToolBar
()
override
;
39
40
void
SetInteractionEventHandler(
mitk::InteractionEventHandler::Pointer
interactionEventHandler);
41
42
protected
slots:
43
44
void
OnInteractionSchemeChanged();
45
void
AddButton(
InteractionScheme
id
,
const
QString& toolName,
const
QIcon& icon,
bool
on =
false
);
46
47
private
:
48
49
QActionGroup* m_ActionGroup;
50
51
mitk::InteractionSchemeSwitcher::Pointer
m_InteractionSchemeSwitcher;
52
mitk::InteractionEventHandler::Pointer
m_InteractionEventHandler;
53
54
};
55
56
#endif // QMITKINTERACTIONSCHEMETOOLBAR_H
mitk::InteractionSchemeSwitcher::InteractionScheme
InteractionScheme
Definition:
mitkInteractionSchemeSwitcher.h:75
QmitkInteractionSchemeToolBar
Definition:
QmitkInteractionSchemeToolBar.h:29
mitkInteractionSchemeSwitcher.h
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition:
MitkQtWidgetsExports.h:15
itk::SmartPointer< Self >
MitkQtWidgetsExports.h
Source
Modules
QtWidgets
include
QmitkInteractionSchemeToolBar.h
Generated on Thu Mar 12 2020 10:24:10 for Medical Imaging Interaction Toolkit by
1.8.13