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