]> SALOME platform Git repositories - modules/superv.git/blob - doc/salome/gui/SUPERV/whdata/whtdata.js
Salome HOME
DCQ : Merge with Ecole_Ete_a6.
[modules/superv.git] / doc / salome / gui / SUPERV / whdata / whtdata.js
1 var gTEA = new Array();\r
2 function aTE()\r
3 {\r
4         gTEA[gTEA.length] = new tocEntry(aTE.arguments);\r
5 }\r
6 \r
7 function tocEntry(fn_arguments) \r
8 {\r
9         if (fn_arguments.length < 3)    \r
10         {\r
11                 alert ("data format wrong!!!");\r
12                 return;\r
13         }\r
14         \r
15         this.nType = fn_arguments[0];\r
16         this.nContents = fn_arguments[1];\r
17         this.sItemName = fn_arguments[2];\r
18         \r
19         if (this.nType == 1 || this.nType == 2 || this.nType == 16)\r
20         {\r
21                 if (fn_arguments.length > 3)\r
22                 {\r
23                         this.sItemURL = fn_arguments[3];\r
24                         if (fn_arguments.length > 4)\r
25                         {\r
26                                 this.sTarget = fn_arguments[4];\r
27                                 if (fn_arguments.length > 5)\r
28                                         this.sIconRef = fn_arguments[5];\r
29                         }\r
30                 }\r
31         }\r
32         if (this.nType == 4 || this.nType == 8)\r
33         {\r
34                 if (fn_arguments.length > 3)\r
35                 {\r
36                         this.sRefURL = fn_arguments[3];\r
37                         if (fn_arguments.length > 4)\r
38                         {\r
39                                 this.sItemURL = fn_arguments[4];\r
40                                 if (fn_arguments.length > 5)\r
41                                 {\r
42                                         this.sTarget = fn_arguments[5];\r
43                                         if (fn_arguments.length > 6)\r
44                                                 this.sIconRef = fn_arguments[6];\r
45                                 }\r
46                         }\r
47                 }\r
48         }\r
49 }\r
50 \r
51 \r
52 function window_OnLoad()\r
53 {\r
54         if (parent && parent != this && parent.putData) {\r
55                 parent.putData(gTEA);\r
56         }\r
57 }\r
58 window.onload = window_OnLoad;