OpenStructure
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
stage
include
ost
gui
python_shell
state_machine.hh
Go to the documentation of this file.
1
#ifndef PYTHON_SHELL_STATE_MACHINE_HH
2
#define PYTHON_SHELL_STATE_MACHINE_HH
3
4
#include <QObject>
5
6
//fw decl
7
class
QEvent;
8
9
namespace
ost {
namespace
gui {
10
11
//fw decl
12
class
State;
13
14
class
StateMachine
:
public
QObject{
15
Q_OBJECT
16
public
:
17
StateMachine
(QObject* parent);
18
void
addState
(
State
* state);
19
void
setInitialState
(
State
* state);
20
void
start
();
21
bool
isActive
(
State
* state);
22
void
setActive
(
State
* state);
23
bool
eventFilter
(QObject * watched, QEvent * event);
24
protected
:
25
State
*
active_state_
;
26
};
27
28
}}
//ns
29
30
#endif // PYTHON_SHELL_STATE_MACHINE_HH
Generated on Mon Nov 11 2013 09:56:11 for OpenStructure by
1.8.1.1