OpenStructure
Signals | Public Member Functions | Protected Attributes
State Class Reference

#include <state.hh>

Inherits QObject.

Signals

void entered ()
 
void exited ()
 

Public Member Functions

 State ()
 
void addTransition (SignalTransition *transition)
 
void addTransition (MouseEventTransition *transition)
 
void addTransition (KeyEventTransition *transition)
 
void addTransition (AutomaticTransition *transition)
 
bool isActive ()
 
void setActive ()
 
bool checkEvent (QKeyEvent *event)
 
bool checkEvent (QMouseEvent *event)
 
bool checkAutomaticTransitions ()
 
virtual void onEntry ()
 
virtual void onExit ()
 

Protected Attributes

QList< MouseEventTransition * > mouse_event_transitions_
 
QList< KeyEventTransition * > key_event_transitions_
 
QList< AutomaticTransition * > automatic_transitions_
 

Detailed Description

Definition at line 38 of file state.hh.

Constructor & Destructor Documentation

◆ State()

State ( )

Member Function Documentation

◆ addTransition() [1/4]

void addTransition ( AutomaticTransition transition)

◆ addTransition() [2/4]

void addTransition ( KeyEventTransition transition)

◆ addTransition() [3/4]

void addTransition ( MouseEventTransition transition)

◆ addTransition() [4/4]

void addTransition ( SignalTransition transition)

◆ checkAutomaticTransitions()

bool checkAutomaticTransitions ( )

◆ checkEvent() [1/2]

bool checkEvent ( QKeyEvent *  event)

◆ checkEvent() [2/2]

bool checkEvent ( QMouseEvent *  event)

◆ entered

void entered ( )
signal

◆ exited

void exited ( )
signal

◆ isActive()

bool isActive ( )

◆ onEntry()

virtual void onEntry ( )
virtual

◆ onExit()

virtual void onExit ( )
virtual

◆ setActive()

void setActive ( )

Field Documentation

◆ automatic_transitions_

QList<AutomaticTransition*> automatic_transitions_
protected

Definition at line 59 of file state.hh.

◆ key_event_transitions_

QList<KeyEventTransition*> key_event_transitions_
protected

Definition at line 58 of file state.hh.

◆ mouse_event_transitions_

QList<MouseEventTransition*> mouse_event_transitions_
protected

Definition at line 57 of file state.hh.


The documentation for this class was generated from the following file: