diff options
author | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2016-01-20 15:34:09 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2016-02-04 09:49:48 +0000 |
commit | 706bd3b4960dedf6cd65215f8139f2aaf7ae8ddf (patch) | |
tree | d1082251cc44637054f2573a6ef88115417b528e /examples | |
parent | cc56cd418412342a487c2e351f3b9dfc86d4c65c (diff) |
Introducing Qt mode: the cutest mode since vi mode.
In qt-mode, event names and state id's are expected to be valid C++
identifiers.
Change-Id: If238a6836602bc77b44dc0240b866f717d43c4e7
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'examples')
4 files changed, 14 insertions, 10 deletions
diff --git a/examples/invoke-common/statemachine.scxml b/examples/invoke-common/statemachine.scxml index ad04cb3..b9defeb 100644 --- a/examples/invoke-common/statemachine.scxml +++ b/examples/invoke-common/statemachine.scxml @@ -50,6 +50,7 @@ ** ****************************************************************************/ --> +<!-- enable-qt-mode: yes --> <scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" diff --git a/examples/mediaplayer-common/mediaplayer.scxml b/examples/mediaplayer-common/mediaplayer.scxml index 4944b3b..025245a 100644 --- a/examples/mediaplayer-common/mediaplayer.scxml +++ b/examples/mediaplayer-common/mediaplayer.scxml @@ -50,6 +50,7 @@ ** ****************************************************************************/ --> +<!-- enable-qt-mode: yes --> <scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" diff --git a/examples/mediaplayer-qml-cppdatamodel/mediaplayer-cppdatamodel.scxml b/examples/mediaplayer-qml-cppdatamodel/mediaplayer-cppdatamodel.scxml index e3b1f67..3683c19 100644 --- a/examples/mediaplayer-qml-cppdatamodel/mediaplayer-cppdatamodel.scxml +++ b/examples/mediaplayer-qml-cppdatamodel/mediaplayer-cppdatamodel.scxml @@ -50,6 +50,7 @@ ** ****************************************************************************/ --> +<!-- enable-qt-mode: yes --> <scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" diff --git a/examples/trafficlight-common/statemachine.scxml b/examples/trafficlight-common/statemachine.scxml index 76921d9..4224e81 100644 --- a/examples/trafficlight-common/statemachine.scxml +++ b/examples/trafficlight-common/statemachine.scxml @@ -50,6 +50,7 @@ ** ****************************************************************************/ --> +<!-- enable-qt-mode: yes --> <scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:qt="http://theqtcompany.com/scxml/2015/06/" @@ -60,32 +61,32 @@ <state id="working" initial="yellow"> <state id="red"> <onentry> - <send event="start-going-green" delay="3s"/> + <send event="startGoingGreen" delay="3s"/> </onentry> - <transition event="start-going-green" target="redGoingGreen"/> + <transition event="startGoingGreen" target="redGoingGreen"/> </state> <state id="yellow" initial="greenGoingRed"> <state id="redGoingGreen"> <onentry> - <send event="go-green" delay="1s"/> + <send event="goGreen" delay="1s"/> </onentry> - <transition event="go-green" target="green"/> + <transition event="goGreen" target="green"/> </state> <state id="greenGoingRed"> <onentry> - <send event="go-red" delay="1s"/> + <send event="goRed" delay="1s"/> </onentry> - <transition event="go-red" target="red"/> + <transition event="goRed" target="red"/> </state> </state> <state id="green"> <onentry> - <send event="start-going-red" delay="3s"/> + <send event="startGoingRed" delay="3s"/> </onentry> - <transition event="start-going-red" target="greenGoingRed"/> + <transition event="startGoingRed" target="greenGoingRed"/> </state> <transition event="smash" target="broken"/> @@ -96,10 +97,10 @@ <onentry> <send event="unblink" delay="1s"/> </onentry> - <transition event="unblink" target="not-blinking"/> + <transition event="unblink" target="unblinking"/> </state> - <state id="not-blinking"> + <state id="unblinking"> <onentry> <send event="blink" delay="1s"/> </onentry> |