* Bug #5539 fixed - sylv() help page was wrong in the discrete-time case.
+* Bug #5616 fixed - typeof(uiCreateTree(...)) returned "Tree" instead of "uitree".
+
* Bug #5779 fixed - xnumb number format was too small (+ unit test added).
* Bug #6168 fixed - Help for zpbutt, zpch1, zpch2 and zpell were unclear.
M = mlist(['V','name','value'],['a','b','c'],[1 2 3]);
M1=getfield(1,M);
assert_checkequal(typeof(M),M1(1));
-// rational, state-space
+// rational, state-space, uitree
assert_checkequal(typeof(1/poly(0,"s")),"rational");
A=[0,1;0,0];B=[1;1];C=[1,1];
S1=syslin('c',A,B,C);
S3=syslin(1,A,B,C);
assert_checkequal(typeof(S3),"state-space");
assert_checkequal(typeof(tf2ss(1/poly(0,"s"))),"state-space");
+l1 = uiCreateNode("CONST_m","default","");
+assert_checkequal(typeof(l1),"uitree");
+tree = uiCreateTree(l1);
+assert_checkequal(typeof(tree),"uitree");
// hypermat
assert_checkequal(typeof(hypermat([2 3 2 2],1:24)),"hypermat");
A=[1,2,3;4,5,6];
M1=getfield(1,M);
assert_checkequal(typeof(M),M1(1));
-// rational, state-space
+// rational, state-space, uitree
assert_checkequal(typeof(1/poly(0,"s")),"rational");
A=[0,1;0,0];B=[1;1];C=[1,1];
S1=syslin('c',A,B,C);
S3=syslin(1,A,B,C);
assert_checkequal(typeof(S3),"state-space");
assert_checkequal(typeof(tf2ss(1/poly(0,"s"))),"state-space");
+l1 = uiCreateNode("CONST_m","default","");
+assert_checkequal(typeof(l1),"uitree");
+tree = uiCreateTree(l1);
+assert_checkequal(typeof(tree),"uitree");
// hypermat
assert_checkequal(typeof(hypermat([2 3 2 2],1:24)),"hypermat");
<note>
Please note that, for some variables, <function>type</function> will return <literal>tlist</literal>
or <literal>mlist</literal> due to the internal data structure. This is the case of
- <emphasis role="italic">rational</emphasis> and <emphasis role="italic">state-space</emphasis> matrices, <emphasis role="italic">hypermat</emphasis> and <emphasis role="italic">struct</emphasis>. Please considering the use of
+ <emphasis role="italic">rational</emphasis> and <emphasis role="italic">state-space</emphasis> matrices,
+ <emphasis role="italic">uitree</emphasis>, <emphasis role="italic">hypermat</emphasis> and <emphasis role="italic">struct</emphasis>. Please considering the use of
<link linkend="typeof">typeof</link> instead.
</note>
</para>
</variablelist>
<para>Note: pour certaines variables, à cause de la représentation
interne, <emphasis role="italic">type(x)</emphasis> retournera
- tlist (16) ou mlist (17). C'est le cas de <emphasis role="italic">rational</emphasis>, <emphasis role="italic">state-space</emphasis>, <emphasis role="italic">hypermat</emphasis> et <emphasis role="italic">struct</emphasis>. Merci de considérer l'utilisation
+ tlist (16) ou mlist (17). C'est le cas de <emphasis role="italic">rational</emphasis>, <emphasis role="italic">state-space</emphasis>,
+<emphasis role="italic">uitree</emphasis>, <emphasis role="italic">hypermat</emphasis> et <emphasis role="italic">struct</emphasis>. Merci de considérer l'utilisation
de <link linkend="typeof">typeof</link> à la place.
</para>
</refsection>
-title = Tree
+title = uitree
<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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="uiConcatTree">
<refnamediv>
<refname>uiConcatTree</refname>
- <refpurpose>Concatenation of Trees </refpurpose>
+ <refpurpose>Concatenation of trees </refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<varlistentry>
<term>tree1, tree2</term>
<listitem>
- <para>are of type Tree</para>
+ <para>are of type uitree</para>
</listitem>
</varlistentry>
</variablelist>
<varlistentry>
<term>concatenatedTree</term>
<listitem>
- <para>a Tree, which is the concatenation of tree1 and tree2</para>
+ <para>an uitree, which is the concatenation of tree1 and tree2</para>
</listitem>
</varlistentry>
</variablelist>
<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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="uiCreateNode">
<refnamediv>
<refname>uiCreateNode</refname>
- <refpurpose>Creation of node (for Scilab Tree) </refpurpose>
+ <refpurpose>Creation of node (for Scilab uitree) </refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<varlistentry>
<term>myNode</term>
<listitem>
- <para>a node of type Tree</para>
+ <para>a node of type uitree</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>Description</title>
- <para>Creates a node(a node or a leaf) of type Tree.</para>
+ <para>Creates a node(a node or a leaf) of type uitree.</para>
</refsection>
<refsection>
<title>Examples</title>
<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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="uiCreateTree">
<refnamediv>
<refname>uiCreateTree</refname>
- <refpurpose>Creation of a Tree </refpurpose>
+ <refpurpose>Creation of an uitree </refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<varlistentry>
<term>myParentTree</term>
<listitem>
- <para>a Tree.</para>
+ <para>an uitree.</para>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry>
<term>myTree</term>
<listitem>
- <para>a Tree</para>
+ <para>an uitree</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>Description</title>
- <para>Creates a Tree in which myParentTree will have children(mySubTree1, mySubTree2,...,mySubTreeN).</para>
+ <para>Creates an uitree in which myParentTree will have children(mySubTree1, mySubTree2,...,mySubTreeN).</para>
</refsection>
<refsection>
<title>Examples</title>
<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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="uiDeleteNode">
<refnamediv>
<refname>uiDeleteNode</refname>
- <refpurpose>Deletion in a Tree </refpurpose>
+ <refpurpose>Deletion in an uitree </refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<varlistentry>
<term>tree</term>
<listitem>
- <para>Tree were we do the deletion</para>
+ <para>uitree where we do the deletion</para>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry>
<term>delTree</term>
<listitem>
- <para>a Tree without the deleted node</para>
+ <para>an uitree without the deleted node</para>
</listitem>
</varlistentry>
</variablelist>
<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="uiDisplayTree">
<refnamediv>
<refname>uiDisplayTree</refname>
- <refpurpose>Printing a Tree in GUI mode</refpurpose>
+ <refpurpose>Printing an uitree in GUI mode</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<varlistentry>
<term>tree</term>
<listitem>
- <para>a Tree.</para>
+ <para>an uitree</para>
</listitem>
</varlistentry>
</variablelist>
<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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="uiDumpTree">
<refnamediv>
<refname>uiDumpTree</refname>
- <refpurpose>Printing a Tree in the console (text mode)</refpurpose>
+ <refpurpose>Printing an uitree in the console (text mode)</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<varlistentry>
<term>tree</term>
<listitem>
- <para>a Tree.</para>
+ <para>an uitree</para>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry>
<term>tree1, tree2</term>
<listitem>
- <para>are of type Tree</para>
+ <para>are of type uitree</para>
</listitem>
</varlistentry>
</variablelist>
<refsection>
<title>Description</title>
<para>
- Compare two trees structures.
+ Compare two uitree structures.
</para>
</refsection>
<refsection>
<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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="uiFindNode">
<refnamediv>
<refname>uiFindNode</refname>
- <refpurpose>Find node in Tree </refpurpose>
+ <refpurpose>Find node in an uitree </refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<varlistentry>
<term>tree</term>
<listitem>
- <para>Tree in which we find the node</para>
+ <para>uitree in which we find the node</para>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry>
<term>tree</term>
<listitem>
- <para>Tree in which we look for children node(s)</para>
+ <para>uitree in which we look for children node(s)</para>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry>
<term>tree</term>
<listitem>
- <para>Tree in which we look for position(s) of a node</para>
+ <para>uitree in which we look for position(s) of a node</para>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry>
<term>tree</term>
<listitem>
- <para>Tree in which we look for parent of a node</para>
+ <para>uitree in which we look for parent of a node</para>
</listitem>
</varlistentry>
<varlistentry>
<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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="uiInsertNode">
<refnamediv>
<refname>uiInsertNode</refname>
- <refpurpose>Insertion in a Tree </refpurpose>
+ <refpurpose>Insertion in a uitree </refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<varlistentry>
<term>tree</term>
<listitem>
- <para>Tree were we do the insertion</para>
+ <para>uitree where we do the insertion</para>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry>
<term>insertTree</term>
<listitem>
- <para>a Tree with the node inserted</para>
+ <para>an uitree with the node inserted</para>
</listitem>
</varlistentry>
</variablelist>
// Check 1st and 2nd inputs : tree1 & tree2
if rhs == 2 then
- if (typeof(tree1) == "Tree") then
+ if (typeof(tree1) == "uitree") then
myTree1 = tree1;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree expected.\n"), "uiConcatTree",1));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree expected.\n"), "uiConcatTree",1));
return;
end
- if (typeof(tree2) == "Tree") then
+ if (typeof(tree2) == "uitree") then
myTree2 = tree2;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree expected.\n"), "uiConcatTree",2));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree expected.\n"), "uiConcatTree",2));
return;
end
end
// Creation of the node
node = struct("label",myLabel,"icon",myIcon,"callback",myCallback)
- myNode = tlist("Tree", node)
+ myNode = tlist("uitree", node)
endfunction
if rhs >=1 then
// Check if parentNode is a Tree
- if (typeof(parentNode) == "Tree") then
- myTree = tlist("Tree", parentNode(2));
+ if (typeof(parentNode) == "uitree") then
+ myTree = tlist("uitree", parentNode(2));
// Add subTrees into myTree
for subTreesIndex = 1:size(varargin)
- if (typeof(varargin(subTreesIndex)) == "Tree") then
+ if (typeof(varargin(subTreesIndex)) == "uitree") then
myTree(subTreesIndex + 2) = varargin(subTreesIndex)
else
- error(msprintf(gettext("%s: Wrong type for input arguments from #%d: Tree expected.\n"), "uiCreateTree",2));
+ error(msprintf(gettext("%s: Wrong type for input arguments from #%d: uitree expected.\n"), "uiCreateTree",2));
return;
end
end
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree expected.\n"), "uiCreateTree",1));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree expected.\n"), "uiCreateTree",1));
return;
end
end
// Check 1st and 2nd inputs : tree & (position or node)
if rhs == 2 then
- if (typeof(tree) == "Tree") then
+ if (typeof(tree) == "uitree") then
myTree = tree;
isPosition = %F;
isNode = %F;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree expected.\n"), "uiDeleteNode",1));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree expected.\n"), "uiDeleteNode",1));
return;
end
myPosition = position;
isPosition = %T;
- elseif (typeof(position) == "Tree") then
+ elseif (typeof(position) == "uitree") then
myNode = position;
isNode = %T;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: String or Tree expected.\n"), "uiDeleteNode",2));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: String or uitree expected.\n"), "uiDeleteNode",2));
return;
end
end
// Check 1st input : tree
if rhs >= 1 then
- if (typeof(tree) == "Tree") then
+ if (typeof(tree) == "uitree") then
myTree = tree;
myB = %F;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree expected.\n"), "uiDumpTree",1));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree expected.\n"), "uiDumpTree",1));
return;
end
// Check 2nd input : b
-
// Check 1st and 2nd inputs : tree1 & tree2
if rhs == 2 then
- if (typeof(tree1) == "Tree") then
+ if (typeof(tree1) == "uitree") then
myTree1 = tree1;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree expected.\n"), "uiEqualsTree",1));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree expected.\n"), "uiEqualsTree",1));
return;
end
- if (typeof(tree2) == "Tree") then
+ if (typeof(tree2) == "uitree") then
myTree2 = tree2;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree expected.\n"), "uiEqualsTree",2));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree expected.\n"), "uiEqualsTree",2));
return;
end
end
// Check 1st and 2nd inputs : tree & (node or property)
if rhs >= 2 then
- if (typeof(tree) == "Tree") then
+ if (typeof(tree) == "uitree") then
myTree = tree;
isNode = %F;
isPosition = %F;
isProperty = %F;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree expected.\n"), "uiFindNode",1));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree expected.\n"), "uiFindNode",1));
return;
end
- if (typeof(node) == "Tree") then
+ if (typeof(node) == "uitree") then
myNode = node;
isNode = %T;
isPosition = %T;
end
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree or String expected.\n"), "uiFindNode",2));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree or String expected.\n"), "uiFindNode",2));
return;
end
// Check 1st and 2nd inputs : tree & (node or position)
if rhs == 2 then
- if (typeof(tree) == "Tree") then
+ if (typeof(tree) == "uitree") then
myTree = tree;
isNode = %F;
isPosition = %F;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree expected.\n"), "uiGetChildrenNode",1));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree expected.\n"), "uiGetChildrenNode",1));
return;
end
- if (typeof(node) == "Tree") then
+ if (typeof(node) == "uitree") then
myNode = node;
isNode = %T;
isPosition = %T;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree or String expected.\n"), "uiGetChildrenNode",2));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree or String expected.\n"), "uiGetChildrenNode",2));
return;
end
end
// Check 1st and 2nd inputs : tree & node
if rhs == 2 then
- if (typeof(tree) == "Tree") then
+ if (typeof(tree) == "uitree") then
myTree = tree;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree expected.\n"), "uiGetNodePosition",1));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree expected.\n"), "uiGetNodePosition",1));
return;
end
- if (typeof(node) == "Tree") then
+ if (typeof(node) == "uitree") then
myNode = node;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree expected.\n"), "uiGetNodePosition",2));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree expected.\n"), "uiGetNodePosition",2));
return;
end
end
// Check 1st and 2nd inputs : tree & (node or position)
if rhs == 2 then
- if (typeof(tree) == "Tree") then
+ if (typeof(tree) == "uitree") then
myTree = tree;
isNode = %F;
isPosition = %F;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree expected.\n"), "uiGetParentNode",1));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree expected.\n"), "uiGetParentNode",1));
return;
end
- if (typeof(node) == "Tree") then
+ if (typeof(node) == "uitree") then
myNode = node;
isNode = %T;
isPosition = %T;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree or String expected.\n"), "uiGetParentNode",2));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree or String expected.\n"), "uiGetParentNode",2));
return;
end
end
// Check 1st, 2nd and 3rd inputs : tree, (position or parent node) & node
if rhs == 3 then
- if (typeof(tree) == "Tree") then
+ if (typeof(tree) == "uitree") then
myTree = tree;
isPosition = %F;
isParentNode = %F;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree expected.\n"), "uiInsertNode",1));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree expected.\n"), "uiInsertNode",1));
return;
end
myPosition = position;
isPosition = %T;
- elseif (typeof(position) == "Tree") then
+ elseif (typeof(position) == "uitree") then
myParentNode = position;
isParentNode = %T;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: String or Tree expected.\n"), "uiInsertNode",2));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: String or uitree expected.\n"), "uiInsertNode",2));
return;
end
- if (typeof(node) == "Tree") then
+ if (typeof(node) == "uitree") then
myNode = node;
else
- error(msprintf(gettext("%s: Wrong type for input argument #%d: Tree expected.\n"), "uiInsertNode",3));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: uitree expected.\n"), "uiInsertNode",3));
return;
end
end
using namespace std;
-#define TREE_REF_NAME "Tree"
+#define TREE_REF_NAME "uitree"
bool bParseListItem(void* _pvApiCtx, int *_piCurrentItem, int icountItem, std::vector<std::string> *_pvStructList, std::string _szLevel);
ans(1)
- Tree
+ uitree
ans(2)
ans(3)(1)
- Tree
+ uitree
ans(3)(2)
--- /dev/null
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- Non-regression test for bug 5616 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=5616
+//
+// <-- Short Description -->
+// typeof(uiCreateTree(...)) returns "Tree" instead of "uitree"
+l1 = uiCreateNode("CONST_m","default","");
+root1 = uiCreateNode("Sources");
+tree = uiCreateTree(root1,l1);
+assert_checkequal(typeof(tree),"uitree");
+assert_checkequal(typeof(l1),"uitree");
--- /dev/null
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- Non-regression test for bug 5616 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=5616
+//
+// <-- Short Description -->
+// typeof(uiCreateTree(...)) returns "Tree" instead of "uitree"
+
+l1 = uiCreateNode("CONST_m","default","");
+root1 = uiCreateNode("Sources");
+tree = uiCreateTree(root1,l1);
+assert_checkequal(typeof(tree),"uitree");
+assert_checkequal(typeof(l1),"uitree");
myNode(1)
- Tree
+ uitree
myNode(2)
myNode(1)
- Tree
+ uitree
myNode(2)
myNode(1)
- Tree
+ uitree
myNode(2)
leaf11(1)
- Tree
+ uitree
leaf11(2)
leaf12(1)
- Tree
+ uitree
leaf12(2)
leaf31(1)
- Tree
+ uitree
leaf31(2)
leaf32(1)
- Tree
+ uitree
leaf32(2)
node1(1)
- Tree
+ uitree
node1(2)
node2(1)
- Tree
+ uitree
node2(2)
node3(1)
- Tree
+ uitree
node3(2)
root(1)
- Tree
+ uitree
root(2)
treeOnlyNode1(1)
- Tree
+ uitree
treeOnlyNode1(2)
treeNode1(1)
- Tree
+ uitree
treeNode1(2)
treeNode1(3)(1)
- Tree
+ uitree
treeNode1(3)(2)
treeNode3(1)
- Tree
+ uitree
treeNode3(2)
treeNode3(3)(1)
- Tree
+ uitree
treeNode3(3)(2)
treeRoot(1)
- Tree
+ uitree
treeRoot(2)
treeRoot(3)(1)
- Tree
+ uitree
treeRoot(3)(2)
leaf11(1)
- Tree
+ uitree
leaf11(2)
leaf12(1)
- Tree
+ uitree
leaf12(2)
leaf31(1)
- Tree
+ uitree
leaf31(2)
leaf32(1)
- Tree
+ uitree
leaf32(2)
node1(1)
- Tree
+ uitree
node1(2)
node2(1)
- Tree
+ uitree
node2(2)
node3(1)
- Tree
+ uitree
node3(2)
root(1)
- Tree
+ uitree
root(2)
// right inputs
uiDumpTree(leaf11)
|_./ leaf 1.1
-
uiDumpTree(leaf11,%F)
|_./ leaf 1.1
-
uiDumpTree(leaf11,%T)
|_./ leaf 1.1
-
| `- iconLeaf1.1
-
| `- callbackLeaf1.1
-
// wrong inputs
if( execstr("uiDumpTree(leaf11,123)","errcatch") == 0 ) then bugmes();quit;end
// node creation with errors
treeOnlyNode1(1)
- Tree
+ uitree
treeOnlyNode1(2)
// right inputs
uiDumpTree(treeOnlyNode1)
|_./ Node 1
-
uiDumpTree(treeOnlyNode1,%F)
|_./ Node 1
-
uiDumpTree(treeOnlyNode1,%T)
|_./ Node 1
-
| `- iconNode1
-
| `- callbackNode1
-
// wrong inputs
if( execstr("uiDumpTree(treeOnlyNode1,123)","errcatch") == 0 ) then bugmes();quit;end
treeNode1 = uiCreateTree(node1, leaf11,leaf12)
treeNode1(1)
- Tree
+ uitree
treeNode1(2)
treeNode1(3)(1)
- Tree
+ uitree
treeNode1(3)(2)
treeNode3(1)
- Tree
+ uitree
treeNode3(2)
treeNode3(3)(1)
- Tree
+ uitree
treeNode3(3)(2)
treeRoot(1)
- Tree
+ uitree
treeRoot(2)
treeRoot(3)(1)
- Tree
+ uitree
treeRoot(3)(2)
// right inputs
uiDumpTree(treeRoot)
|_./ Root
-
| |_./ Node 1
-
| |_./ Node 2
-
| |_./ Node 3
-
uiDumpTree(treeRoot,%F)
|_./ Root
-
| |_./ Node 1
-
| |_./ Node 2
-
| |_./ Node 3
-
uiDumpTree(treeRoot,%T)
|_./ Root
-
| `- iconRoot
-
| `- callbackRoot
-
| |_./ Node 1
-
| | `- iconNode1
-
| | `- callbackNode1
-
| |_./ Node 2
-
| | `- iconNode2
-
| | `- callbackNode2
-
| |_./ Node 3
-
| | `- iconNode3
-
| | `- callbackNode3
-
// wrong inputs
if( execstr("uiDumpTree(treeRoot,123)","errcatch") == 0 ) then bugmes();quit;end
// tree creation with wrong inputs