Skip to content
Snippets Groups Projects
Commit f9570ef2 authored by Michael Leuschel's avatar Michael Leuschel
Browse files

add VISB_SVG_EVENTS definition to button_def

parent ba0913a7
Branches
No related tags found
No related merge requests found
...@@ -8,12 +8,13 @@ DEFINITIONS ...@@ -8,12 +8,13 @@ DEFINITIONS
VISB_SVG_UPDATES == rec(`id`:"button", VISB_SVG_UPDATES == rec(`id`:"button",
fill: IF button=TRUE THEN "green" ELSE "red" END); fill: IF button=TRUE THEN "green" ELSE "red" END);
VISB_SVG_HOVERS == rec(`id`:"button", VISB_SVG_HOVERS == rec(`id`:"button",
stroke:"gray", `stroke-width`:"5") stroke:"gray", `stroke-width`:"5");
VISB_SVG_EVENTS == rec(`id`:"button", event:"toggle_button", predicate:"btrue");
VARIABLES button VARIABLES button
INVARIANT button:BOOL INVARIANT button:BOOL
INITIALISATION button := FALSE INITIALISATION button := FALSE
OPERATIONS OPERATIONS
toggle_button = BEGIN toggle_button /* desc change status of button */ = BEGIN
button:= bool(button=FALSE) button:= bool(button=FALSE)
END END
END END
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment