Salome HOME
Porting GUI documentation on Doxygen tool.
[modules/smesh.git] / doc / salome / gui / SMESH / whd_nvp20.htm
1 <html>
2 <head>
3 <title>navigation pane</title>
4
5 <meta name="generator" content="RoboHelp by eHelp Corporation   www.ehelp.com">
6 <meta name="description" content="WebHelp 5.50">
7 <script language="javascript" src="whver.js"></script>
8 <script language="javascript1.2" src="whmsg.js"></script>
9 <script language="javascript1.2" src="whproxy.js"></script>
10 <script language="javascript1.2" src="whutils.js"></script>
11 <script language="javascript1.2">
12 <!--
13 var gsInitPane="toc";
14 var gsCurrentPane="";
15 var gbLoading = "unknown";
16 var gbTryTime = 0;
17 var gbMaxTryTime = 6;
18 var gbPassPhase0 = 0;
19 var gbretried = 0;
20 var gbmaxretry = 3;
21 var gbretrytime = new Array();
22
23 var origWidth = 0;
24 var origHeight = 0;
25
26 gbretrytime[0]= 5000;
27 gbretrytime[1]= 30000;
28 gbretrytime[2]= 60000;
29
30 function addPane(sName, sFile)
31 {
32 }
33
34 function setShowPane(sName)
35 {
36         gsInitPane=sName;
37 }
38
39   addPane("toc","whtdhtml.htm");
40   addPane("fts","whfdhtml.htm");
41   addPane("glo","whgdhtml.htm");
42   setShowPane("toc");
43
44
45 function window_unload()
46 {
47         UnRegisterListener2(this, WH_MSG_SHOWTOC);
48         UnRegisterListener2(this, WH_MSG_SHOWIDX);
49         UnRegisterListener2(this, WH_MSG_SHOWFTS);
50         UnRegisterListener2(this, WH_MSG_SHOWGLO);
51         UnRegisterListener2(this, WH_MSG_SYNCTOC);
52         UnRegisterListener2(this, WH_MSG_SEARCHTHIS);
53         UnRegisterListener2(this, WH_MSG_GETPANEINFO);
54 }
55
56 function window_OnLoad()
57 {
58         var bHidePane=false;
59         var oMsg=new whMessage(WH_MSG_GETCMD,this,1,null);
60         if (SendMessage(oMsg))
61         {
62                 if(oMsg.oParam>0)
63                 {
64                         if(oMsg.oParam==1)
65                                 gsInitPane="toc";
66                         else if(oMsg.oParam==2)
67                                 gsInitPane="idx";
68                         else if(oMsg.oParam==3)
69                                 gsInitPane="fts";
70                         else if(oMsg.oParam==4)
71                                 gsInitPane="glo";
72                 }
73                 else if(oMsg.oParam==0)
74                 {
75                         bHidePane=true;
76                 }
77         }
78         if (bHidePane)
79         {
80                 oMsg=new whMessage(WH_MSG_HIDEPANE,this,1,null)
81                 SendMessage(oMsg);
82         }
83         else if (gsInitPane == "toc")
84         {
85                 oMsg=new whMessage(WH_MSG_SHOWTOC,this,1,null)
86                 SendMessage(oMsg);      
87         }
88         else if (gsInitPane=="idx")
89         {
90                 oMsg=new whMessage(WH_MSG_SHOWIDX,this,1,null)
91                 SendMessage(oMsg);      
92         }
93         else if (gsInitPane=="fts")
94         {
95                 oMsg=new whMessage(WH_MSG_SHOWFTS,this,1,null)
96                 SendMessage(oMsg);      
97         }
98         else if (gsInitPane=="glo")
99         {
100                 oMsg=new whMessage(WH_MSG_SHOWGLO,this,1,null)
101                 SendMessage(oMsg);      
102         }
103 }
104
105 function CheckLoadingPhase0()
106 {
107         if (!gbPassPhase0) {
108                 setTimeout("CheckLoadingPhase0()", 1000);
109                 document.applets[0];
110                 gbPassPhase0 = 1;
111         }
112         else {
113                 CheckLoadingPhase1();
114         }
115 }
116
117 function CheckLoadingPhase1()
118 {
119         if (gbNav4) {
120                 if ("unknown" == gbLoading && document.readystate < 4) {
121                         setTimeout("CheckLoadingPhase1()", 1000);
122                 }
123                 else if ("unknown" == gbLoading) {
124                         CheckLoadingPhase2();
125                 }
126         }
127 }
128
129 function CheckLoadingPhase2()
130 {
131         if (gbNav4) {
132                 gbTryTime ++;
133                 if ("unknown" == gbLoading) {
134                         if (gbTryTime <= gbMaxTryTime )
135                                 setTimeout("CheckLoadingPhase2()", 1000);
136                         else {
137                                 if (gnVerMinor != 4.60) {
138                                         alert("Unable to load applet. If you are using an old version of Netscape, the prefs.js file needs to be edited.");
139                                 }
140                         }       
141                 }
142         }
143 }
144
145 function CheckAppletLoaded()
146 {
147         if (typeof(document.webhelp) == "undefined")
148         {
149                 document.location.reload();
150                 if (gbretried < gbmaxretry)
151                 {
152                         gbretried ++;
153                         setTimeout("CheckAppletLoaded();", gbretrytime[gbretried]);
154                 }
155         }
156 }
157
158 function reDo() 
159 {
160         if (innerWidth != origWidth || innerHeight != origHeight)  
161         {
162                 //reloaded applet if nessary
163                 gbretried = 0;
164
165                 if (gnVerMinor == 4.60) 
166                 {
167                         //reload the applet again.
168                         document.location.reload();
169                         gbretried ++;
170                 }
171                 setTimeout("CheckAppletLoaded();", gbretrytime[gbretried]);
172         }
173 }
174
175 function onSendMessage(oMsg)
176 {
177         if (oMsg)
178         {       
179                 var nMsgId = oMsg.nMessageId;
180                 var WebHelpApplet = null;
181                 if (gbNav4)
182                 {
183                         WebHelpApplet = document.applets["WebHelp"];
184                         if (!WebHelpApplet.Command)
185                                 document.location="whgdata/whnvp30.htm";
186                 }
187                 else
188                         WebHelpApplet = WebHelp;
189
190                 if(nMsgId==WH_MSG_GETPANEINFO)
191                 {
192                         oMsg.oParam=gsCurrentPane;
193                         return false;
194                 }
195                 else if (gbLoading!="unknown"||gbNav6)
196                 {
197                         if (nMsgId == WH_MSG_SHOWTOC)
198                         {
199                                 gsCurrentPane="toc";
200                                 WebHelpApplet .Command("Contents", null);
201                                 var onMsg=new whMessage(WH_MSG_PANEINFO, this, 1, "toc");
202                                 SendMessage(onMsg);
203                                 onMsg = new whMessage(WH_MSG_SHOWPANE, this, 1, null);
204                                 SendMessage(onMsg);
205                         }
206                         else if (nMsgId == WH_MSG_SHOWIDX)
207                         {
208                                 gsCurrentPane="idx";
209                                 WebHelpApplet .Command("Index", null);
210                                 var onMsg=new whMessage(WH_MSG_PANEINFO, this, 1, "idx");
211                                 SendMessage(onMsg);
212                                 onMsg = new whMessage(WH_MSG_SHOWPANE, this, 1, null);
213                                 SendMessage(onMsg);
214                         }
215                         else if (nMsgId == WH_MSG_SHOWFTS)
216                         {
217                                 gsCurrentPane="fts";
218                                 WebHelpApplet .Command("Search", null);
219                                 var onMsg=new whMessage(WH_MSG_PANEINFO, this, 1, "fts");
220                                 SendMessage(onMsg);
221                                 onMsg = new whMessage(WH_MSG_SHOWPANE, this, 1, null);
222                                 SendMessage(onMsg);
223                         }
224                         else if (nMsgId == WH_MSG_SHOWGLO)
225                         {
226                                 gsCurrentPane="glo";
227                                 WebHelpApplet .Command("Glossary", null);
228                                 var onMsg=new whMessage(WH_MSG_PANEINFO, this, 1, "glo");
229                                 SendMessage(onMsg);
230                                 onMsg = new whMessage(WH_MSG_SHOWPANE, this, 1, null);
231                                 SendMessage(onMsg);
232                         }
233                         else if (nMsgId == WH_MSG_SYNCTOC)
234                         {
235                                 gsCurrentPane="toc";
236                                 var oTopicParam = oMsg.oParam;
237                                 if (oTopicParam && oTopicParam.aPaths && oTopicParam.aPaths.length > 0 && oTopicParam.sPPath)
238                                 {
239                                         var sPPath = _browserStringToText(oTopicParam.sPPath);
240                                         var sParam = "";
241                                         for (var i = 0; i < oTopicParam.aPaths.length; i ++)
242                                         {
243                                                 sParam += oTopicParam.aPaths[i] + "\r\r";
244                                         }
245                                         WebHelpApplet.Command("SyncToc", sPPath,  sParam);
246                                 }
247                         }
248                         else if(nMsgId==WH_MSG_SEARCHTHIS)
249                         {
250                                 gsCurrentPane="fts";
251                                 WebHelpApplet .Command("Search", oMsg.oParam);
252                                 var onMsg=new whMessage(WH_MSG_PANEINFO, this, 1, "fts");
253                                 SendMessage(onMsg);
254                                 onMsg = new whMessage(WH_MSG_SHOWPANE, this, 1, null);
255                                 SendMessage(onMsg);
256                         }
257                 }
258         }
259         return true;
260 }
261
262 function getInitTocInfo()
263 {
264         // send message ask for the first time sync toc info.
265         var oParam = new Object();
266         oParam.oTocInfo = null;
267         var oMsg = new whMessage(WH_MSG_GETTOCPATHS, this, 1, oParam);
268         if (SendMessage(oMsg ))
269         {
270                 var oTopicParam = oMsg.oParam.oTocInfo;
271                 if (oTopicParam && oTopicParam.aPaths && oTopicParam.aPaths.length > 0 && oTopicParam.sPPath)
272                 {
273                         var sPPath = _browserStringToText(oTopicParam.sPPath);
274                         var sParam = "";
275                         for (var i = 0; i < oTopicParam.aPaths.length; i ++)
276                         {
277                                 sParam += oTopicParam.aPaths[i] + "\r\r";
278                         }
279                         var WebHelpApplet;
280                         if (gbNav4)
281                                 WebHelpApplet = document.applets["WebHelp"];
282                         else
283                                 WebHelpApplet = WebHelp;
284                         WebHelpApplet.Command("SyncToc", sPPath,  sParam);
285                 }
286         }
287 }
288
289 if(window.gbWhUtil&&window.gbWhMsg&&window.gbWhVer&&window.gbWhProxy)
290 {
291         RegisterListener2(this, WH_MSG_SHOWTOC);
292         RegisterListener2(this, WH_MSG_SHOWIDX);
293         RegisterListener2(this, WH_MSG_SHOWFTS);
294         RegisterListener2(this, WH_MSG_SHOWGLO);
295         RegisterListener2(this, WH_MSG_SYNCTOC);
296         RegisterListener2(this, WH_MSG_SEARCHTHIS);
297         RegisterListener2(this, WH_MSG_GETPANEINFO);
298
299         window.onunload = window_unload;
300         window.onload=window_OnLoad;
301         window.onerror = null;
302         var gbWindows = ((gAgent.indexOf("win") != -1) || (gAgent.indexOf("16bit") != -1));
303
304         if (gbNav4 && !gbNav6 && gbWindows) {
305                 setTimeout("CheckLoadingPhase0()", 1000);
306         }
307
308         if (gbNav4) 
309         {
310                 origWidth = innerWidth;
311                 origHeight = innerHeight;
312                 onresize = reDo;
313         }
314 }
315 else
316         document.location.reload();
317
318 if (window.gbNav6)
319 {
320         var oMsg=new whMessage(WH_MSG_RELOADNS6,this, 1,null);
321         SendMessage(oMsg);
322 }
323
324 //-->
325 </script>
326 </head>
327 <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" bgcolor="c0c0c0">
328 <applet code=WebHelp.class name=WebHelp  archive=webhelp.jar width=100% height=100% MAYSCRIPT hspace=0 vspace=0>
329 <PARAM name=ProjectFile value=whproj.xml><PARAM name=ResourceFile value=whres.xml>
330 <PARAM name=Frame value=bsscright>
331 <PARAM name=cabbase value=webhelp.cab>
332 </applet>
333 </body>
334 </html>