add CDATA + role in the gui module
Yann Collette [Thu, 3 Sep 2009 06:38:30 +0000 (08:38 +0200)]
48 files changed:
scilab/modules/gui/help/en_US/about.xml
scilab/modules/gui/help/en_US/addmenu.xml
scilab/modules/gui/help/en_US/close.xml
scilab/modules/gui/help/en_US/createNode.xml
scilab/modules/gui/help/en_US/createTree.xml
scilab/modules/gui/help/en_US/delmenu.xml
scilab/modules/gui/help/en_US/displaytree.xml
scilab/modules/gui/help/en_US/dumpTree.xml
scilab/modules/gui/help/en_US/figure.xml
scilab/modules/gui/help/en_US/findobj.xml
scilab/modules/gui/help/en_US/getinstalledlookandfeels.xml
scilab/modules/gui/help/en_US/getlookandfeel.xml
scilab/modules/gui/help/en_US/getvalue.xml
scilab/modules/gui/help/en_US/messagebox.xml
scilab/modules/gui/help/en_US/printfigure.xml
scilab/modules/gui/help/en_US/progressionbar.xml
scilab/modules/gui/help/en_US/root_properties.xml
scilab/modules/gui/help/en_US/setlookandfeel.xml
scilab/modules/gui/help/en_US/setmenu.xml
scilab/modules/gui/help/en_US/toolbar.xml
scilab/modules/gui/help/en_US/toprint.xml
scilab/modules/gui/help/en_US/uicontrol.xml
scilab/modules/gui/help/en_US/uigetcolor.xml
scilab/modules/gui/help/en_US/uigetdir.xml
scilab/modules/gui/help/en_US/uigetfile.xml
scilab/modules/gui/help/en_US/uigetfont.xml
scilab/modules/gui/help/en_US/uimenu.xml
scilab/modules/gui/help/en_US/uiputfile.xml
scilab/modules/gui/help/en_US/unsetmenu.xml
scilab/modules/gui/help/en_US/usecanvas.xml
scilab/modules/gui/help/en_US/waitbar.xml
scilab/modules/gui/help/en_US/x_choices.xml
scilab/modules/gui/help/en_US/x_choose.xml
scilab/modules/gui/help/en_US/x_choose_modeless.xml
scilab/modules/gui/help/en_US/x_dialog.xml
scilab/modules/gui/help/en_US/x_matrix.xml
scilab/modules/gui/help/en_US/x_mdialog.xml
scilab/modules/gui/help/en_US/x_message.xml
scilab/modules/gui/help/en_US/x_message_modeless.xml
scilab/modules/gui/help/en_US/xgetfile.xml
scilab/modules/gui/help/fr_FR/getvalue.xml
scilab/modules/gui/help/fr_FR/root_properties.xml
scilab/modules/gui/help/fr_FR/x_choices.xml
scilab/modules/gui/help/fr_FR/x_choose.xml
scilab/modules/gui/help/fr_FR/x_dialog.xml
scilab/modules/gui/help/fr_FR/x_mdialog.xml
scilab/modules/gui/help/fr_FR/x_message.xml
scilab/modules/gui/help/fr_FR/x_message_modeless.xml

index 344b1a1..b556716 100644 (file)
@@ -17,8 +17,9 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[about()
-]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+about()
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Authors</title>
index 2c5e381..a0279cd 100644 (file)
@@ -128,8 +128,7 @@ addmenu(gwin,button [,submenus] [,action])</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 addmenu('foo')
 foo='disp(''hello'')'
 
@@ -145,13 +144,13 @@ French_Bye='disp(''Au revoir'')'
 //C defined Callback
 // creating Callback code
 code=[ '#include ""machine.h""'
- 'void foo(char *name,int *win,int *entry)'
- '{'
- '  if (*win==-1) '
- '    sciprint(""menu %s(%i) in Scilab window selected\r\n"",name,*entry+1);'
- '  else'
- '    sciprint(""menu %s(%i) in window %i selected\r\n"",name,*entry+1,*win);'
- '}'];
+       'void foo(char *name,int *win,int *entry)'
+       '{'
+       '  if (*win==-1) '
+       '    sciprint(""menu %s(%i) in Scilab window selected\r\n"",name,*entry+1);'
+       '  else'
+       '    sciprint(""menu %s(%i) in window %i selected\r\n"",name,*entry+1,*win);'
+       '}'];
 //creating foo.c file
 dir=pwd(); chdir(TMPDIR)
 mputl(code,TMPDIR+'/foo.c');
@@ -161,8 +160,7 @@ exec('loader.sce');
 chdir(dir);
 //add menu
 addmenu('foo',['a','b','c'],list(1,'foo'))
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 418b072..64911cb 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 h=figure();
 // creates  figure number 1.  
 uicontrol( h, 'style','text', ...
- 'string','scilab is great', ...
- 'position',[50 70 100 100], ...
- 'fontsize',15);
+              'string','scilab is great', ...
+              'position',[50 70 100 100], ...
+              'fontsize',15);
 // put a clever text in figure 1
 figure();
 // create figure 2
 uicontrol( 'style','text', ...
- 'string','Really great', 'position',[50 70 100 100], 'fontsize',15);
+           'string','Really great', 'position',[50 70 100 100], 'fontsize',15);
 // put a text in figure 2
 close();
 // close the current graphic window (ie fig. 2)
 close(h);
 // close figure 1
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index ead801d..35ddef3 100644 (file)
@@ -1 +1 @@
-<?xml version="1.0" encoding="UTF-8"?>\r<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="createNode">\r  <info>\r    <pubdate>$LastChangedDate$</pubdate>\r  </info>\r  <refnamediv>\r    <refname>createNode</refname>\r    <refpurpose> Creation of node (for Scilab Tree) </refpurpose>\r  </refnamediv>\r  <refsynopsisdiv>\r    <title>Calling Sequence</title>\r    <synopsis>myNode = createNode(label[, icon[, callback]])\r    </synopsis>\r  </refsynopsisdiv>\r  <refsection>\r    <title>Input parameters</title>\r    <variablelist>\r      <varlistentry>\r        <term>label</term>\r        <listitem>\r          <para>a string matrix which gives the label of the nodes.</para>\r        </listitem>\r      </varlistentry>\r      <varlistentry>\r        <term>icon (optional)</term>\r        <listitem>\r          <para>a string matrix which gives the icon image of the nodes.</para>\r        </listitem>\r      </varlistentry>\r     <varlistentry>\r        <term>callback (optional)</term>\r        <listitem>\r          <para>a string matrix which gives the callback instruction of the nodes.</para>\r        </listitem>\r      </varlistentry>  \r     </variablelist>\r  </refsection>\r  <refsection>\r <title>Output parameters</title>\r       <variablelist>\r   <varlistentry>\r        <term>myNode</term>\r        <listitem>\r          <para>a node of type Tree</para>\r        </listitem>\r      </varlistentry>\r    </variablelist>\r  </refsection>\r  <refsection>\r    <title>Description</title>\r    <para>Creates a node(a node or a leaf) of type Tree.</para>\r  </refsection>\r  <refsection>\r    <title>Examples</title>\r    <programlisting role="example"><![CDATA[\r\rleaf11 = createNode('leaf 1.1', 'iconLeaf1.1', 'callbackLeaf1.1')\rleaf12 = createNode('leaf 1.2', 'iconLeaf1.2', 'callbackLeaf1.2')\rleaf31 = createNode('leaf 3.1', 'iconLeaf3.1', 'callbackLeaf3.1')\rleaf32 = createNode('leaf 3.2', 'iconLeaf3.2', 'callbackLeaf3.2')\rnode1 = createNode('Node 1', 'iconNode1', 'callbackNode1')\rnode2 = createNode('Node 2', 'iconNode2', 'callbackNode2')\rnode3 = createNode('Node 3', 'iconNode3', 'callbackNode3')\rroot = createNode('Root', 'iconRoot', 'callbackRoot')\r \r  ]]></programlisting>\r  </refsection>\r  <refsection>\r    <title>See Also</title>\r    <simplelist type="inline">\r      <member>\r        <link linkend="createTree">createTree</link> \r      </member>\r   <member>\r        <link linkend="dumpTree">dumpTree</link> \r      </member>\r    </simplelist>\r  </refsection>\r</refentry>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>\r<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="createNode">\r  <info>\r    <pubdate>$LastChangedDate$</pubdate>\r  </info>\r  <refnamediv>\r    <refname>createNode</refname>\r    <refpurpose> Creation of node (for Scilab Tree) </refpurpose>\r  </refnamediv>\r  <refsynopsisdiv>\r    <title>Calling Sequence</title>\r    <synopsis>myNode = createNode(label[, icon[, callback]])\r    </synopsis>\r  </refsynopsisdiv>\r  <refsection>\r    <title>Input parameters</title>\r    <variablelist>\r      <varlistentry>\r        <term>label</term>\r        <listitem>\r          <para>a string matrix which gives the label of the nodes.</para>\r        </listitem>\r      </varlistentry>\r      <varlistentry>\r        <term>icon (optional)</term>\r        <listitem>\r          <para>a string matrix which gives the icon image of the nodes.</para>\r        </listitem>\r      </varlistentry>\r     <varlistentry>\r        <term>callback (optional)</term>\r        <listitem>\r          <para>a string matrix which gives the callback instruction of the nodes.</para>\r        </listitem>\r      </varlistentry>  \r     </variablelist>\r  </refsection>\r  <refsection>\r <title>Output parameters</title>\r       <variablelist>\r   <varlistentry>\r        <term>myNode</term>\r        <listitem>\r          <para>a node of type Tree</para>\r        </listitem>\r      </varlistentry>\r    </variablelist>\r  </refsection>\r  <refsection>\r    <title>Description</title>\r    <para>Creates a node(a node or a leaf) of type Tree.</para>\r  </refsection>\r  <refsection>\r    <title>Examples</title>\r    <programlisting role="example"><![CDATA[ \rleaf11 = createNode('leaf 1.1', 'iconLeaf1.1', 'callbackLeaf1.1')\rleaf12 = createNode('leaf 1.2', 'iconLeaf1.2', 'callbackLeaf1.2')\rleaf31 = createNode('leaf 3.1', 'iconLeaf3.1', 'callbackLeaf3.1')\rleaf32 = createNode('leaf 3.2', 'iconLeaf3.2', 'callbackLeaf3.2')\rnode1 = createNode('Node 1', 'iconNode1', 'callbackNode1')\rnode2 = createNode('Node 2', 'iconNode2', 'callbackNode2')\rnode3 = createNode('Node 3', 'iconNode3', 'callbackNode3')\rroot = createNode('Root', 'iconRoot', 'callbackRoot')\r ]]></programlisting>\r  </refsection>\r  <refsection>\r    <title>See Also</title>\r    <simplelist type="inline">\r      <member>\r        <link linkend="createTree">createTree</link> \r      </member>\r      <member>\r        <link linkend="dumpTree">dumpTree</link> \r      </member>\r    </simplelist>\r  </refsection>\r</refentry>\r
\ No newline at end of file
index 7eb92c8..4abbb46 100644 (file)
@@ -1 +1 @@
-<?xml version="1.0" encoding="UTF-8"?>\r<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="createTree">\r  <info>\r    <pubdate>$LastChangedDate$</pubdate>\r  </info>\r  <refnamediv>\r    <refname>createTree</refname>\r    <refpurpose> Creation of a Tree </refpurpose>\r  </refnamediv>\r  <refsynopsisdiv>\r    <title>Calling Sequence</title>\r    <synopsis>myTree = createTree(myParentTree, mySubTree1, mySubTree2,...,mySubTreeN)\r  </synopsis>\r  </refsynopsisdiv>\r  <refsection>\r    <title>Input parameters</title>\r    <variablelist>\r      <varlistentry>\r        <term>myParentTree</term>\r        <listitem>\r          <para>a Tree.</para>\r        </listitem>\r      </varlistentry>\r      <varlistentry>\r        <term>mySubTree(s)</term>\r        <listitem>\r          <para>one or many trees</para>\r        </listitem>\r      </varlistentry>\r  </variablelist>\r  </refsection>\r  <refsection>\r <title>Output parameters</title>\r       <variablelist>\r   <varlistentry>\r        <term>myTree</term>\r        <listitem>\r          <para>a Tree</para>\r        </listitem>\r      </varlistentry>\r    </variablelist>\r  </refsection>\r  <refsection>\r    <title>Description</title>\r    <para>Creates a Treein which myParentTree will have children(mySubTree1, mySubTree2,...,mySubTreeN).</para>\r  </refsection>\r  <refsection>\r    <title>Examples</title>\r    <programlisting role="example"><![CDATA[\r// We should create nodes(subTrees) before creating trees     \rleaf11 = createNode('leaf 1.1', 'iconLeaf1.1', 'callbackLeaf1.1')\rleaf12 = createNode('leaf 1.2', 'iconLeaf1.2', 'callbackLeaf1.2')\rleaf31 = createNode('leaf 3.1', 'iconLeaf3.1', 'callbackLeaf3.1')\rleaf32 = createNode('leaf 3.2', 'iconLeaf3.2', 'callbackLeaf3.2')\rnode1 = createNode('Node 1', 'iconNode1', 'callbackNode1')\rnode2 = createNode('Node 2', 'iconNode2', 'callbackNode2')\rnode3 = createNode('Node 3', 'iconNode3', 'callbackNode3')\rroot = createNode('Root', 'iconRoot', 'callbackRoot')\r\rtreeNode1 = createTree(node1, leaf11,leaf12)\rtreeNode3 = createTree(node3, leaf31,leaf32)\rtreeRoot = createTree(root, node1,node2,node3)\r \r  ]]></programlisting>\r  </refsection>\r  <refsection>\r    <title>See Also</title>\r    <simplelist type="inline">\r      <member>\r        <link linkend="createNode">createNode</link> \r      </member>\r        <member>\r        <link linkend="dumpTree">dumpTree</link> \r      </member>\r    </simplelist>\r  </refsection>\r</refentry>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>\r<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="createTree">\r  <info>\r    <pubdate>$LastChangedDate$</pubdate>\r  </info>\r  <refnamediv>\r    <refname>createTree</refname>\r    <refpurpose> Creation of a Tree </refpurpose>\r  </refnamediv>\r  <refsynopsisdiv>\r    <title>Calling Sequence</title>\r    <synopsis>myTree = createTree(myParentTree, mySubTree1, mySubTree2,...,mySubTreeN)\r  </synopsis>\r  </refsynopsisdiv>\r  <refsection>\r    <title>Input parameters</title>\r    <variablelist>\r      <varlistentry>\r        <term>myParentTree</term>\r        <listitem>\r          <para>a Tree.</para>\r        </listitem>\r      </varlistentry>\r      <varlistentry>\r        <term>mySubTree(s)</term>\r        <listitem>\r          <para>one or many trees</para>\r        </listitem>\r      </varlistentry>\r  </variablelist>\r  </refsection>\r  <refsection>\r <title>Output parameters</title>\r       <variablelist>\r   <varlistentry>\r        <term>myTree</term>\r        <listitem>\r          <para>a Tree</para>\r        </listitem>\r      </varlistentry>\r    </variablelist>\r  </refsection>\r  <refsection>\r    <title>Description</title>\r    <para>Creates a Treein which myParentTree will have children(mySubTree1, mySubTree2,...,mySubTreeN).</para>\r  </refsection>\r  <refsection>\r    <title>Examples</title>\r    <programlisting role="example"><![CDATA[ \r// We should create nodes(subTrees) before creating trees    \rleaf11 = createNode('leaf 1.1', 'iconLeaf1.1', 'callbackLeaf1.1')\rleaf12 = createNode('leaf 1.2', 'iconLeaf1.2', 'callbackLeaf1.2')\rleaf31 = createNode('leaf 3.1', 'iconLeaf3.1', 'callbackLeaf3.1')\rleaf32 = createNode('leaf 3.2', 'iconLeaf3.2', 'callbackLeaf3.2')\rnode1 = createNode('Node 1', 'iconNode1', 'callbackNode1')\rnode2 = createNode('Node 2', 'iconNode2', 'callbackNode2')\rnode3 = createNode('Node 3', 'iconNode3', 'callbackNode3')\rroot = createNode('Root', 'iconRoot', 'callbackRoot')\r\rtreeNode1 = createTree(node1, leaf11,leaf12)\rtreeNode3 = createTree(node3, leaf31,leaf32)\rtreeRoot = createTree(root, node1,node2,node3)\r ]]></programlisting>\r  </refsection>\r  <refsection>\r    <title>See Also</title>\r    <simplelist type="inline">\r      <member>\r        <link linkend="createNode">createNode</link> \r      </member>\r   <member>\r        <link linkend="dumpTree">dumpTree</link> \r      </member>\r    </simplelist>\r  </refsection>\r</refentry>\r
\ No newline at end of file
index 524e169..d18afcc 100644 (file)
@@ -41,12 +41,10 @@ delmenu(gwin,button)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 addmenu('foo')
 delmenu('foo')
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index b393dfa..e1c9a61 100644 (file)
@@ -1,4 +1,64 @@
-<?xml version="1.0" encoding="UTF-8"?>\r<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.1-subset Scilab" xml:lang="en" xml:id="displaytree">\r  <info>\r    <pubdate>$LastChangedDate$</pubdate>\r  </info>\r  <refnamediv>\r    <refname>displaytree</refname>\r    <refpurpose> Printing a Tree in GUI mode</refpurpose>\r  </refnamediv>\r  <refsynopsisdiv>\r    <title>Calling Sequence</title>\r    <synopsis>displaytree(tree)\r       </synopsis>\r  </refsynopsisdiv>\r  <refsection>\r    <title>Input parameters</title>\r    <variablelist>\r      <varlistentry>\r        <term>tree</term>\r        <listitem>\r          <para>a Tree.</para>\r        </listitem>\r      </varlistentry>\r    </variablelist>\r  </refsection>\r  <refsection>\r    <title>Description</title>\r    <para>Display a tree into the a graphic window.</para>\r  </refsection>\r  <refsection>\r    <title>Examples</title>\r    <programlisting role="example"><![CDATA[\r// We should create nodes(subTrees) before creating trees \rleaf11 = createNode('leaf 1.1')\rleaf12 = createNode('leaf 1.2')\rleaf31 = createNode('leaf 3.1')\rleaf32 = createNode('leaf 3.2')\rnode1 = createNode('Node 1')\rnode2 = createNode('Node 2')\rnode3 = createNode('Node 3')\rroot = createNode('Root')\r\rtreeNode1 = createTree(node1, leaf11,leaf12)\rtreeNode3 = createTree(node3, leaf31,leaf32)\rtreeRoot = createTree(root, node1,node2,node3)
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.1-subset Scilab" xml:lang="en" xml:id="displaytree">
+  <info>
+    <pubdate>$LastChangedDate$</pubdate>
+  </info>
+  <refnamediv>
+    <refname>displaytree</refname>
+    <refpurpose> Printing a Tree in GUI mode</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <title>Calling Sequence</title>
+    <synopsis>displaytree(tree)
+       </synopsis>
+  </refsynopsisdiv>
+  <refsection>
+    <title>Input parameters</title>
+    <variablelist>
+      <varlistentry>
+        <term>tree</term>
+        <listitem>
+          <para>a Tree.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refsection>
+  <refsection>
+    <title>Description</title>
+    <para>Display a tree into the a graphic window.</para>
+  </refsection>
+  <refsection>
+    <title>Examples</title>
+    <programlisting role="example"><![CDATA[ 
+// We should create nodes(subTrees) before creating trees      
+leaf11 = createNode('leaf 1.1')
+leaf12 = createNode('leaf 1.2')
+leaf31 = createNode('leaf 3.1')
+leaf32 = createNode('leaf 3.2')
+node1 = createNode('Node 1')
+node2 = createNode('Node 2')
+node3 = createNode('Node 3')
+root = createNode('Root')
 
-displaytree(treeRoot)\r \r  ]]></programlisting>\r  </refsection>\r  <refsection>\r    <title>See Also</title>\r    <simplelist type="inline">\r      <member>\r        <link linkend="createNode">createNode</link> \r      </member>\r      <member>\r        <link linkend="createTree">createTree</link> \r      </member>
-      <member>\r        <link linkend="dumpTree">dumpTree</link> \r      </member>\r    </simplelist>\r  </refsection>\r</refentry>
+treeNode1 = createTree(node1, leaf11,leaf12)
+treeNode3 = createTree(node3, leaf31,leaf32)
+treeRoot = createTree(root, node1,node2,node3)
+
+displaytree(treeRoot)
+ ]]></programlisting>
+  </refsection>
+  <refsection>
+    <title>See Also</title>
+    <simplelist type="inline">
+      <member>
+        <link linkend="createNode">createNode</link> 
+      </member>
+      <member>
+        <link linkend="createTree">createTree</link> 
+      </member>
+      <member>
+        <link linkend="dumpTree">dumpTree</link>
+      </member>
+    </simplelist>
+  </refsection>
+</refentry>
index 4eb79ab..186262d 100644 (file)
@@ -1 +1 @@
-<?xml version="1.0" encoding="UTF-8"?>\r<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="dumpTree">\r  <info>\r    <pubdate>$LastChangedDate$</pubdate>\r  </info>\r  <refnamediv>\r    <refname>dumpTree</refname>\r    <refpurpose> Printing a Tree in the console (text mode)</refpurpose>\r  </refnamediv>\r  <refsynopsisdiv>\r    <title>Calling Sequence</title>\r    <synopsis>dumpTree(tree[,b])\r     </synopsis>\r  </refsynopsisdiv>\r  <refsection>\r    <title>Input parameters</title>\r    <variablelist>\r      <varlistentry>\r        <term>tree</term>\r        <listitem>\r          <para>a Tree.</para>\r        </listitem>\r      </varlistentry>\r      <varlistentry>\r        <term>b(optional)</term>\r        <listitem>\r          <para>display features of each node of the tree. By default b is '%F'.</para>\r        </listitem>\r      </varlistentry>\r    </variablelist>\r  </refsection>\r  <refsection>\r    <title>Description</title>\r    <para>Display a tree into the console(text mode).</para>\r  </refsection>\r  <refsection>\r    <title>Examples</title>\r    <programlisting role="example"><![CDATA[\r// We should create nodes(subTrees) before creating trees    \rleaf11 = createNode('leaf 1.1', 'iconLeaf1.1', 'callbackLeaf1.1')\rleaf12 = createNode('leaf 1.2', 'iconLeaf1.2', 'callbackLeaf1.2')\rleaf31 = createNode('leaf 3.1', 'iconLeaf3.1', 'callbackLeaf3.1')\rleaf32 = createNode('leaf 3.2', 'iconLeaf3.2', 'callbackLeaf3.2')\rnode1 = createNode('Node 1', 'iconNode1', 'callbackNode1')\rnode2 = createNode('Node 2', 'iconNode2', 'callbackNode2')\rnode3 = createNode('Node 3', 'iconNode3', 'callbackNode3')\rroot = createNode('Root', 'iconRoot', 'callbackRoot')\r\rtreeNode1 = createTree(node1, leaf11,leaf12)\rtreeNode3 = createTree(node3, leaf31,leaf32)\rtreeRoot = createTree(root, node1,node2,node3)\r\rdumpTree(treeRoot)\r \r  ]]></programlisting>\r  </refsection>\r  <refsection>\r    <title>See Also</title>\r    <simplelist type="inline">\r      <member>\r        <link linkend="createNode">createNode</link> \r      </member>\r    <member>\r        <link linkend="createTree">createTree</link> \r      </member>\r    </simplelist>\r  </refsection>\r</refentry>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>\r<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="dumpTree">\r  <info>\r    <pubdate>$LastChangedDate$</pubdate>\r  </info>\r  <refnamediv>\r    <refname>dumpTree</refname>\r    <refpurpose> Printing a Tree in the console (text mode)</refpurpose>\r  </refnamediv>\r  <refsynopsisdiv>\r    <title>Calling Sequence</title>\r    <synopsis>dumpTree(tree[,b])\r     </synopsis>\r  </refsynopsisdiv>\r  <refsection>\r    <title>Input parameters</title>\r    <variablelist>\r      <varlistentry>\r        <term>tree</term>\r        <listitem>\r          <para>a Tree.</para>\r        </listitem>\r      </varlistentry>\r      <varlistentry>\r        <term>b(optional)</term>\r        <listitem>\r          <para>display features of each node of the tree. By default b is '%F'.</para>\r        </listitem>\r      </varlistentry>\r    </variablelist>\r  </refsection>\r  <refsection>\r    <title>Description</title>\r    <para>Display a tree into the console(text mode).</para>\r  </refsection>\r  <refsection>\r    <title>Examples</title>\r    <programlisting role="example"><![CDATA[ \r// We should create nodes(subTrees) before creating trees   \rleaf11 = createNode('leaf 1.1', 'iconLeaf1.1', 'callbackLeaf1.1')\rleaf12 = createNode('leaf 1.2', 'iconLeaf1.2', 'callbackLeaf1.2')\rleaf31 = createNode('leaf 3.1', 'iconLeaf3.1', 'callbackLeaf3.1')\rleaf32 = createNode('leaf 3.2', 'iconLeaf3.2', 'callbackLeaf3.2')\rnode1 = createNode('Node 1', 'iconNode1', 'callbackNode1')\rnode2 = createNode('Node 2', 'iconNode2', 'callbackNode2')\rnode3 = createNode('Node 3', 'iconNode3', 'callbackNode3')\rroot = createNode('Root', 'iconRoot', 'callbackRoot')\r\rtreeNode1 = createTree(node1, leaf11,leaf12)\rtreeNode3 = createTree(node3, leaf31,leaf32)\rtreeRoot = createTree(root, node1,node2,node3)\r\rdumpTree(treeRoot)\r ]]></programlisting>\r  </refsection>\r  <refsection>\r    <title>See Also</title>\r    <simplelist type="inline">\r      <member>\r        <link linkend="createNode">createNode</link> \r      </member>\r       <member>\r        <link linkend="createTree">createTree</link> \r      </member>\r    </simplelist>\r  </refsection>\r</refentry>\r
\ No newline at end of file
index c6a8572..27fe521 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 // Create figure having figure_id==3
 h=figure(3);
 // Add a text uicontrol in figure 3
@@ -118,7 +117,6 @@ uicontrol(h, "style", "text", ...
              "position", [50 70 100 100], ...
              "fontsize",15);
 
-
 // Create figure having figure_id==1
 figure();
 // Add a text uicontrol in figure 1
@@ -131,8 +129,7 @@ uicontrol("style", "text", ...
 close();
 // close figure 3
 close(h);
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index ac5bd30..6a08316 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 // Create a figure
 h=figure();
 // Put a text in the figure
 uicontrol(h, "style","text", ...
- "string","This is a figure", ...
- "position",[50 70 100 100], ...
- "fontsize",15, ...
- "tag","Alabel");
+             "string","This is a figure", ...
+             "position",[50 70 100 100], ...
+             "fontsize",15, ...
+             "tag","Alabel");
 // Find the object which "tag" value is "Alabel"
 lab=findobj("tag","Alabel");
 disp("The text of the label is """+lab.string+"""");
 // Close the figure
 close();
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index ba9601c..eb424f3 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 getinstalledlookandfeels()
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index c4d3a4b..30aa2bc 100644 (file)
@@ -34,7 +34,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 currentlnf = getlookandfeel();
 
 // Look and feel CDE/Motif
@@ -48,8 +48,7 @@ setlookandfeel("javax.swing.plaf.metal.MetalLookAndFeel")
 sleep(3000);
 
 setlookandfeel(currentlnf)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 628c7d8..3c47e8a 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 labels=["magnitude";"frequency";"phase    "];
 [ok,mag,freq,ph]=getvalue("define sine signal",labels,...
      list("vec",1,"vec",1,"vec",1),["0.85";"10^2";"%pi/3"])
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 43eda82..a7724b4 100644 (file)
@@ -88,8 +88,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 // Simple example
 messagebox("Single line message")
 
@@ -104,8 +103,7 @@ messagebox("Have you seen this beautiful message", "modal", "info", ["Yes" "No"]
 
 // "modal" given as fifth input argument
 messagebox("An error message", "Error", "error", ["Continue" "Stop"], "modal")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index e830111..f42b136 100644 (file)
@@ -48,10 +48,10 @@ status = printfigure(figid)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example">
-<![CDATA[plot2d();
+    <programlisting role="example"><![CDATA[ 
+plot2d();
 printfigure(get(gcf(), "figure_id"));
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 11ac7d2..955213e 100644 (file)
@@ -47,15 +47,15 @@ progressionbar(winId[,mes])</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 winId=progressionbar('Do something');
 realtimeinit(0.3);
 for j=0:0.1:1,
-    realtime(3*j);
-    progressionbar(winId);
+  realtime(3*j);
+  progressionbar(winId);
 end
 winclose(winId);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Authors</title>
index 9b88f6c..dac890c 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-    get(0, "screensize_px")
-    get(0, "screendepth")
-]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+get(0, "screensize_px")
+get(0, "screendepth")
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index e4ccd5d..7d8cfeb 100644 (file)
@@ -36,7 +36,7 @@ bok=setlookandfeel(lnf)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 currentlnf = getlookandfeel();
 
 // Look and feel Windows Classic
@@ -73,8 +73,7 @@ sleep(3000);
 
 // restore previous look and feel
 setlookandfeel(currentlnf)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 737fcb4..0636591 100644 (file)
@@ -43,13 +43,11 @@ setmenu(gwin,button [,nsub])</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-addmenu('foo')   //New button made in main scilab window
-unsetmenu('foo')   //button foo cannot be activated (grey string)
-setmenu('foo')     //button foo can be activated (black string)
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+addmenu('foo')   // New button made in main scilab window
+unsetmenu('foo') // button foo cannot be activated (grey string)
+setmenu('foo')   // button foo can be activated (black string)
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 1a1e15d..19ce163 100644 (file)
@@ -41,14 +41,14 @@ state1=toolbar(winnum)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[toolbar(-1,'off')
+    <programlisting role="example"><![CDATA[ 
+toolbar(-1,'off')
 state=toolbar(-1,'on')
 
 plot3d();
 h=gcf();
 toolbar(h.figure_id,'off')
-
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Authors</title>
index 39e80a2..5e96a88 100644 (file)
@@ -78,15 +78,14 @@ status = toprint(figid,output)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example">
-<![CDATA[
+    <programlisting role="example"><![CDATA[ 
 toprint(SCI+"/etc/scilab.start");
 toprint(['Test','toprint primitive'],'Scilab page header');
 scf(4);
 plot();
 toprint(4);
 toprint(4,"pos");
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index a8f0a11..b75cdac 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 f=figure();
 // create a figure
 h=uicontrol(f,'style','listbox', ...
@@ -501,7 +501,7 @@ set(h, 'value', [1 3]);
 // select item 1 and 3 in the list
 close(f);
 // close the figure
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index bb61832..f5f8f74 100644 (file)
@@ -84,14 +84,12 @@ RGB = uigetcolor([title,] defaultRed, defaultGreen, defaultBlue)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 uigetcolor()
 [R, G, B] = uigetcolor([255 128 0])
 RBG = uigetcolor(0, 128, 255)
 RBG = uigetcolor("My color chooser", 0, 128, 255)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 8bb82ae..f41f13e 100644 (file)
@@ -42,13 +42,11 @@ directory = uigetdir(start_path [,title])</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 uigetdir()
 uigetdir("SCI/modules/")
 uigetdir("SCI/modules/", "Choose a directory")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index c97111a..899dad6 100644 (file)
@@ -73,16 +73,14 @@ PathFileName=uigetfile([file_mask[,dir[,boxTitle[,multiple]]]])
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 uigetfile(["*.bin";"*.sce";"*.cos*"])
 uigetfile(["*.sci";"*.bin"],"SCI/modules/gui/macros/")
 uigetfile(["*.sc*";"*.bin"],"SCI/modules/gui/macros/")
 uigetfile(["*.x*","X files";"*.bin","BIN files"],"SCI/modules/gui/macros/")
 uigetfile(["*.sce";"*.bin"],"SCI/modules/gui/macros/", "Choose a file name"", %t); 
 uigetfile(["*.sce";"*.bin"],"SCI/modules/gui/macros/", "Choose a file name"", %f); 
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 5961d30..029e2c6 100644 (file)
@@ -76,15 +76,13 @@ uigetfont()
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 uigetfont()
 uigetfont("arial")
 uigetfont("arial", 24)
 uigetfont("arial", 24, %T)
 uigetfont("arial", 24, %T, %F)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index d9352c1..46d203d 100644 (file)
@@ -169,8 +169,7 @@ h=uimenu(parent,[prop1, val1] [,prop2, val2] ...)</synopsis>
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 f=figure('position', [10 10 300 200]);
 // create a figure
 m=uimenu(f,'label', 'windows');
@@ -183,8 +182,7 @@ m12=uimenu(m1,'label', 'clear  window', 'callback',"xbasc()");
 // create a submenu to the item "operations"
 close(f);
 // close the figure
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index cea6418..d5779f8 100644 (file)
@@ -67,15 +67,13 @@ PathFileName=uiputfile([file_mask[,dir[,boxTitle]]])
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 uiputfile(["*.bin";"*.sce";"*.cos*"])
 uiputfile(["*.sci";"*.bin"],"SCI/modules/gui/macros/")
 uiputfile(["*.sc*";"*.bin"],"SCI/modules/gui/macros/")
 uiputfile(["*.x*","X files";"*.bin","BIN files"],"SCI/modules/gui/macros/")
 uiputfile(["*.sce";"*.bin"],"SCI/modules/gui/macros/", "Choose a file name"); 
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index acc0407..b351f84 100644 (file)
@@ -43,13 +43,11 @@ unsetmenu(gwin,button,[nsub])</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-//addmenu('foo')
-//unsetmenu('foo')
-//unsetmenu('File',2)
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+addmenu('foo')
+unsetmenu('foo')
+unsetmenu('File',2)
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 57d0511..0d0f30c 100644 (file)
     </itemizedlist>
     
     <para>There is a workaround for Linux to tackle this issue, but a solution is to use a software accelerated driver. To do it, in <literal>/etc/X11/xorg.conf</literal>, look for the <emphasis role="italic">Section "Device"</emphasis> and change the option <emphasis role="italic">Driver</emphasis> to <emphasis role="italic">vesa</emphasis>: </para>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 Section "Device"
         Identifier      "Your Graphic card"
         Driver  "vesa"
 [...]
 EndSection
-
-  ]]></programlisting>
+ ]]></programlisting>
     <para>Unfortunately, this solution makes Scilab pretty slow. </para>
 
     <para>Under Windows, video cards manufacturers update regularly and <literal>pbuffers</literal> are managed. Please download recent drivers at:</para>
@@ -171,8 +169,7 @@ EndSection
 
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 // Example using GLJPanel (Mixing uicontrols and graphics is available)
 usecanvas(%F);
 plot2d();
@@ -184,8 +181,7 @@ usecanvas(%T);
 plot2d();
 uicontrol("String", "Close the window", "Position", [10 10 100, 25], "Callback", "delete(gcf())");
 messagebox("You can''t see any button on the figure.", "Usecanvas example", "info");
-
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Authors</title>
index 97af02f..15d7a5e 100644 (file)
@@ -60,15 +60,15 @@ waitbar(x,mes,winId)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 winId=waitbar('This is an example');
 realtimeinit(0.3);
 for j=0:0.1:1,
-    realtime(3*j);
-    waitbar(j,winId);
+  realtime(3*j);
+  waitbar(j,winId);
 end
 winclose(winId);
-]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Authors</title>
index 1a1204a..a3f8e19 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-l1=list('choice 1',1,['toggle c1','toggle c2','toggle c3']);
-l2=list('choice 2',2,['toggle d1','toggle d2','toggle d3']);
-l3=list('choice 3',3,['toggle e1','toggle e2']);
-rep=x_choices('Toggle Menu',list(l1,l2,l3));
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+l1  = list('choice 1',1,['toggle c1','toggle c2','toggle c3']);
+l2  = list('choice 2',2,['toggle d1','toggle d2','toggle d3']);
+l3  = list('choice 3',3,['toggle e1','toggle e2']);
+rep = x_choices('Toggle Menu',list(l1,l2,l3));
+ ]]></programlisting>
   </refsection>
 </refentry>
index bb68f50..12d1aec 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-n=x_choose(['item1';'item2';'item3'],['that is a comment';'for the dialog'])
-n=x_choose(['item1';'item2';'item3'],['that is a comment'],'Return')
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+n = x_choose(['item1';'item2';'item3'],['that is a comment';'for the dialog'])
+n = x_choose(['item1';'item2';'item3'],['that is a comment'],'Return')
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 912ad13..0870941 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-n=x_choose_modeless(['item1';'item2';'item3'],['that is a comment';'for the dialog'])
-n=x_choose_modeless(['item1';'item2';'item3'],['that is a comment'],'Return')
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+n = x_choose_modeless(['item1';'item2';'item3'],['that is a comment';'for the dialog'])
+n = x_choose_modeless(['item1';'item2';'item3'],['that is a comment'],'Return')
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 1233104..fcf640e 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 gain=evstr(x_dialog('value of gain ?','0.235'))
 x_dialog(['Method';'enter sampling period'],'1')
 m=evstr(x_dialog('enter a  3x3 matrix ',['[0 0 0';'0 0 0';'0 0 0]']))
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index f3eb31d..45af4dc 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-//m=evstr(x_matrix('enter a  3x3 matrix ',rand(3,3)))
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+m=evstr(x_matrix('enter a  3x3 matrix ',rand(3,3)))
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 5d6fac7..c9ad2bd 100644 (file)
@@ -73,18 +73,16 @@ result=x_mdialog(title,labelsv,labelsh,default_input_matrix)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
+txt = ['magnitude';'frequency';'phase    '];
+sig = x_mdialog('enter sine signal',txt,['1';'10';'0'])
+mag = evstr(sig(1))
+frq = evstr(sig(2))
+ph  = evstr(sig(3))
 
- txt=['magnitude';'frequency';'phase    '];
- sig=x_mdialog('enter sine signal',txt,['1';'10';'0'])
- mag=evstr(sig(1))
- frq=evstr(sig(2))
- ph=evstr(sig(3))
-
- rep=x_mdialog(['System Simulation';'with PI regulator'],...
-                      ['P gain';'I gain '],[' ';' '])
-  ]]></programlisting>
+rep = x_mdialog(['System Simulation';'with PI regulator'],...
+                 ['P gain';'I gain '],[' ';' '])
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 1655274..98d5381 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
+gain = 0.235;x_message('value of gain is :'+string(gain))
+x_message(['singular matrix';'use least squares'])
 
- gain=0.235;x_message('value of gain is :'+string(gain))
- x_message(['singular matrix';'use least squares'])
-
- r=x_message(['Your problem is ill conditioned';
-             'continue ?'],['Yes','No'])
-  ]]></programlisting>
+r = x_message(['Your problem is ill conditioned';
+               'continue ?'],['Yes','No'])
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 7c2309e..14c1f5b 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
- x_message_modeless(['This is a modeless message'
-                     'Scilab may continue computation'
-                     ' '
-                     'Click on ""Ok"" to close the message'])
- x_message_modeless('Now two message windows are opened')
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+x_message_modeless(['This is a modeless message'
+                    'Scilab may continue computation'
+                    ' '
+                    'Click on ""Ok"" to close the message'])
+x_message_modeless('Now two message windows are opened')
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 39a133f..39eb7fc 100644 (file)
@@ -50,8 +50,7 @@ path=xgetfile(file_mask,dir,'string')</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 xgetfile()
 xgetfile(title="Choose a file name")
 xgetfile("*.sci")
@@ -59,8 +58,7 @@ xgetfile("*.sci", title="Choose a file name")
 xgetfile("*.sci", "SCI/modules/gui/macros/")
 xgetfile("*.sci", "SCI/modules/gui/macros/", title="Choose a file name")
 xgetfile("*.sci", "SCI/modules/gui/macros/", "Choose a file name")
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 26245da..9318f0f 100644 (file)
   </refsection>
   <refsection>
     <title>Exemples</title>
-    <programlisting role="example"><![CDATA[
-    labels=["module";"frequence";"phase    "];
-    [ok,mag,freq,ph]=getvalue("signal sinusoidal",labels,...
-    list("vec",1,"vec",1,"vec",1),["0.85";"10^2";"%pi/3"])
-    ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+labels=["module";"frequence";"phase    "];
+[ok,mag,freq,ph]=getvalue("signal sinusoidal",labels,...
+list("vec",1,"vec",1,"vec",1),["0.85";"10^2";"%pi/3"])
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Voir Aussi</title>
index a028fc8..3939fdb 100644 (file)
   </refsection>
   <refsection>
     <title>Exemples</title>
-    <programlisting role="example"><![CDATA[
-    get(0, "screensize_px")
-    get(0, "screeendepth")
-]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+get(0, "screensize_px")
+get(0, "screeendepth")
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>Voir aussi</title>
index f6130e6..abecdc4 100644 (file)
@@ -48,7 +48,7 @@
   </refsection>
   <refsection>
     <title>Exemples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 l1=list('choix 1',1,['article c1','article c2','article c3']);
 l2=list('choix 2',2,['article d1','article d2','article d3']);
 l3=list('choix 3',3,['article e1','article e2']);
index c650c43..44c3ca6 100644 (file)
@@ -52,7 +52,7 @@
   </refsection>
   <refsection>
     <title>Exemples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 n=x_choose(['item1';'item2';'item3'],['ceci est un commentaire';'pour la boite de dialogue'])
 n=x_choose(['item1';'item2';'item3'],['ceci est un commentaire'],'Terminer')
  ]]></programlisting>
index 87a8ed4..a7354c7 100644 (file)
@@ -45,7 +45,7 @@
   </refsection>
   <refsection>
     <title>Exemples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 gain=evstr(x_dialog('valeur du gain ?','0.235'))
 x_dialog(['Methode';'entrer la periode d''echantillonnage'],'1')
 m=evstr(x_dialog('entrer une matrice 3x3',['[0 0 0';'0 0 0';'0 0 0]']))
index 9129c10..e591717 100644 (file)
@@ -75,15 +75,15 @@ result=x_mdialog(title,labelsv,labelsh,default_input_matrix)</synopsis>
   </refsection>
   <refsection>
     <title>Exemples</title>
-    <programlisting role="example"><![CDATA[ txt=['module';'frequence';'phase    '];
- sig=x_mdialog('choisir le signal sinusoidal',txt,['1';'10';'0'])
- mag=evstr(sig(1))
- frq=evstr(sig(2))
- ph=evstr(sig(3))
-
- rep=x_mdialog(['Simulation d''un systeme';'avec un regulateur PI'],...
-                      ['gain P';'gain I'],[' ';' '])
+    <programlisting role="example"><![CDATA[ 
+txt=['module';'frequence';'phase    '];
+sig=x_mdialog('choisir le signal sinusoidal',txt,['1';'10';'0'])
+mag=evstr(sig(1))
+frq=evstr(sig(2))
+ph=evstr(sig(3))
 
+rep=x_mdialog(['Simulation d''un systeme';'avec un regulateur PI'],...
+              ['gain P';'gain I'],[' ';' '])
  ]]></programlisting>
   </refsection>
   <refsection>
index 7919d16..8b7eb5f 100644 (file)
   </refsection>
   <refsection>
     <title>Exemples</title>
-    <programlisting role="example"><![CDATA[
- gain=0.235;x_message('La valeur du gain est :'+string(gain))
- x_message(['matrice singuliere';'utiliser les moindres carres'])
+    <programlisting role="example"><![CDATA[ 
+gain=0.235;x_message('La valeur du gain est :'+string(gain))
+x_message(['matrice singuliere';'utiliser les moindres carres'])
 
- r=x_message(['Votre probleme est mal conditionne';
+r=x_message(['Votre probleme est mal conditionne';
              'continuer ?'],['Oui','Non'])
  ]]></programlisting>
   </refsection>
index a558722..b42a8f3 100644 (file)
   </refsection>
   <refsection>
     <title>Exemples</title>
-    <programlisting role="example"><![CDATA[
- x_message_modeless(['Ceci est un message non modal'
-                     'Scilab peut continuer a travailler'
-                     ' '
-                     'Cliquer sur ""Ok"" pour fermer le message'])
- x_message_modeless('Voici un deuxieme message')
+    <programlisting role="example"><![CDATA[ 
+x_message_modeless(['Ceci est un message non modal'
+                    'Scilab peut continuer a travailler'
+                    ' '
+                    'Cliquer sur ""Ok"" pour fermer le message'])
+x_message_modeless('Voici un deuxieme message')
  ]]></programlisting>
   </refsection>
   <refsection>