Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
3b991980
Commit
3b991980
authored
Oct 03, 2015
by
Maxime Perrotin
Browse files
Start design of the SDL Scene
parent
68d172c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
design/sdl_scene.asn
0 → 100644
View file @
3b991980
Scene DEFINITIONS ::=
BEGIN
Undefined ::= NULL
QUndoStack ::= NULL
Context ::= ENUMERATED {
sdl-process,
sdl-procedure,
sdl-block,
statechart,
lander
}
String ::= IA5String
END
design/sdl_scene.pr
0 → 100644
View file @
3b991980
SYSTEM sdl_scene;
/* CIF TEXT (250, 19), (289, 152) */
-- SDL Scene behaviour
use datatypes comment 'sdl_scene.asn';
-- events that can be received by a scene
signal mousePressEvent;
signal mouseReleaseEvent;
signal mouseMoveEvent;
/* CIF ENDTEXT */
CHANNEL c
FROM ENV TO sdl_scene WITH mousePressEvent,
mouseMoveEvent,
mouseReleaseEvent;
ENDCHANNEL;
BLOCK sdl_scene;
SIGNALROUTE r
FROM ENV TO sdl_scene WITH mousePressEvent,
mouseMoveEvent,
mouseReleaseEvent;
CONNECT c AND r;
/* CIF PROCESS (287, 201), (150, 75) */
PROCESS sdl_scene;
/* CIF TEXT (65, 86), (392, 584) */
-- Scene static data
dcl parent_scene Undefined;
-- Context can be process, procedure, block...
dcl context Context;
-- Depending on the context
dcl allowed_symbols Undefined;
dcl all_possible_actions Undefined;
dcl actions Undefined;
-- Handle Undo/Redo commands
dcl undo_stack QUndoStack;
-- To store selected symbol until next click on the scene
-- to place the symbol
dcl button_selected Undefined;
-- Pointer to place messages on the log window
dcl messages_window Undefined;
dcl click_coordinates Undefined;
dcl orig_pos Undefined;
dcl process_name String := 'opengeode';
-- Used to update the tab window name when scene changes
dcl name String;
dcl search_item Undefined;
dcl search_pattern Undefined;
/* CIF ENDTEXT */
/* CIF START (467, 73), (70, 35) */
START;
/* CIF NEXTSTATE (467, 123), (70, 35) */
NEXTSTATE idle;
/* CIF STATE (547, 92), (70, 35) */
STATE idle;
ENDSTATE;
ENDPROCESS sdl_scene;
ENDBLOCK;
ENDSYSTEM;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment