Computer Assited Medical Intervention Tool Kit
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
applications
actionstatemachine
ActionTransition.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* $CAMITK_LICENCE_BEGIN$
3
*
4
* CamiTK - Computer Assisted Medical Intervention ToolKit
5
* (c) 2001-2013 UJF-Grenoble 1, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
6
*
7
* Visit http://camitk.imag.fr for more information
8
*
9
* This file is part of CamiTK.
10
*
11
* CamiTK is free software: you can redistribute it and/or modify
12
* it under the terms of the GNU Lesser General Public License version 3
13
* only, as published by the Free Software Foundation.
14
*
15
* CamiTK is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Lesser General Public License version 3 for more details.
19
*
20
* You should have received a copy of the GNU Lesser General Public License
21
* version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22
*
23
* $CAMITK_LICENCE_END$
24
****************************************************************************/
25
#ifndef ACTIONTRANSITION_H
26
#define ACTIONTRANSITION_H
27
28
#include <QSignalTransition>
29
#include <QString>
30
#include <QTime>
31
#include <QMap>
32
#include <QTextStream>
33
34
class
ActionState
;
35
class
ActionTransition
:
public
QSignalTransition {
36
37
public
:
38
39
ActionTransition
(QObject * sender,
40
const
char
* signal,
41
QState * sourceState = 0,
42
QString
buttonText
=
""
,
43
bool
applyPreviousAction
=
true
,
44
QTextStream *
logStream
= NULL);
45
46
47
void
addComponentToClose
(QString compName, QString compType);
48
49
virtual
void
onTransition
(QEvent *e);
50
51
void
setButtonText
(QString
buttonText
);
52
53
QString
getButtonText
();
54
55
56
private
:
57
58
QString
buttonText
;
59
60
bool
applyPreviousAction
;
61
62
QMap<QString, QString>
componentsToClose
;
63
64
QTextStream *
logStream
;
65
67
QTime *
startTime
;
68
69
70
};
71
#endif // ACTIONTRANSITION_H
Generated on Sat Feb 16 2013 16:59:42 for Computer Assited Medical Intervention Tool Kit by
1.8.1.2