Add event demonstrations for Xcos. 06/3506/6
Bruno JOFRET [Fri, 11 Mar 2011 09:05:43 +0000 (10:05 +0100)]
Change-Id: Idf5f818639164f0a80526744e848a2a290ad5897

scilab/CHANGES_5.5.X
scilab/modules/xcos/demos/Event/event_and.dem.sce [new file with mode: 0644]
scilab/modules/xcos/demos/Event/event_and.zcos [new file with mode: 0644]
scilab/modules/xcos/demos/Event/event_if_then_else.dem.sce [new file with mode: 0644]
scilab/modules/xcos/demos/Event/if_then_else.zcos [new file with mode: 0644]
scilab/modules/xcos/demos/event.dem.gateway.sce [new file with mode: 0644]
scilab/modules/xcos/demos/xcos.dem.gateway.sce

index bf2fff4..a1592b5 100644 (file)
@@ -158,6 +158,8 @@ Xcos
 
 * tbx_build_pal_loader function added to ease external module creation (See SEP #120).
 
+* A demo sub-panel has been added for event demos.
+
 
 Obsolete & Removed Functions
 ============================
diff --git a/scilab/modules/xcos/demos/Event/event_and.dem.sce b/scilab/modules/xcos/demos/Event/event_and.dem.sce
new file mode 100644 (file)
index 0000000..21711f6
--- /dev/null
@@ -0,0 +1,6 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2011-2011 - DIGITEO
+//
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+xcos("SCI/modules/xcos/demos/Event/event_and.zcos");
diff --git a/scilab/modules/xcos/demos/Event/event_and.zcos b/scilab/modules/xcos/demos/Event/event_and.zcos
new file mode 100644 (file)
index 0000000..77e7cfb
Binary files /dev/null and b/scilab/modules/xcos/demos/Event/event_and.zcos differ
diff --git a/scilab/modules/xcos/demos/Event/event_if_then_else.dem.sce b/scilab/modules/xcos/demos/Event/event_if_then_else.dem.sce
new file mode 100644 (file)
index 0000000..9bd1b7c
--- /dev/null
@@ -0,0 +1,6 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2011-2011 - DIGITEO
+//
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+xcos("SCI/modules/xcos/demos/Event/if_then_else.zcos");
diff --git a/scilab/modules/xcos/demos/Event/if_then_else.zcos b/scilab/modules/xcos/demos/Event/if_then_else.zcos
new file mode 100644 (file)
index 0000000..a0fd256
Binary files /dev/null and b/scilab/modules/xcos/demos/Event/if_then_else.zcos differ
diff --git a/scilab/modules/xcos/demos/event.dem.gateway.sce b/scilab/modules/xcos/demos/event.dem.gateway.sce
new file mode 100644 (file)
index 0000000..6b2ce1b
--- /dev/null
@@ -0,0 +1,11 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA
+// Copyright (C) 2009-2010 - DIGITEO
+//
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+subdemolist = [_("If Then Else") , "Event/event_if_then_else.dem.sce"; ...
+               _("And")          , "Event/event_and.dem.sce"         ; ...
+              ];
+
+subdemolist(:,2) = SCI + "/modules/xcos/demos/" + subdemolist(:,2);
index ff05890..c74bf74 100644 (file)
@@ -21,6 +21,7 @@ function subdemolist = demo_gateway()
     end
 
     subdemolist = [subdemolist; ..
+    _("Event demos")         , "event.dem.gateway.sce" ; ..
     _("Old demos")           , "old_demos.dem.gateway.sce"];
 
     subdemolist(:,2) = demopath + subdemolist(:,2);