Salome HOME
*** empty log message ***
[modules/smesh.git] / doc / salome / gui / SMESH / whskin_plist.htm
1 <html>\r
2 <head>\r
3 <title> Navigation Pane </title>\r
4 \r
5 <meta name="generator" content="RoboHelp by eHelp Corporation   www.ehelp.com">\r
6 <meta name="description" content="WebHelp 5.50">\r
7 <script language="javascript" src="whver.js"></script>\r
8 <script language="javascript1.2" src="whmsg.js"></script>\r
9 <script language="javascript1.2" src="whproxy.js"></script>\r
10 </head>\r
11 <script language="javascript">\r
12 <!--\r
13 var strFrmToc="";\r
14 var strFrmNdx="";\r
15 var strFrmFts="";\r
16 var strFrmGls="";\r
17 var strFrmDft="";\r
18 var gstrName="";\r
19 \r
20 //set overwrite here\r
21 function setListFrames(strToc,strNdx,strFts,strGls,strDefault)\r
22 {\r
23         strFrmToc=strToc;\r
24         strFrmNdx=strNdx;\r
25         strFrmFts=strFts;\r
26         strFrmGls=strGls;\r
27         strFrmDft=strDefault;\r
28         if(strFrmDft==strFrmToc)\r
29                 gstrName="toc";\r
30         else if(strFrmDft==strFrmNdx)\r
31                 gstrName="idx";\r
32         else if(strFrmDft==strFrmFts)\r
33                 gstrName="fts";\r
34         else if(strFrmDft==strFrmGls)\r
35                 gstrName="glo";\r
36 }\r
37 \r
38 function setWebHelpPane()\r
39 {\r
40         setListFrames("whgdata/whnvf30.htm","whgdata/whnvf31.htm","whgdata/whnvf32.htm","whgdata/whnvf33.htm","whgdata/whnvf30.htm");\r
41 }\r
42 \r
43 function window_unload()\r
44 {\r
45         if(!gbNav4||gbNav6) // resize will call unload, but the register code will never be called on Netscape 4.\r
46         {\r
47                 UnRegisterListener2(this,WH_MSG_SHOWTOC);\r
48                 UnRegisterListener2(this,WH_MSG_SHOWIDX);\r
49                 UnRegisterListener2(this,WH_MSG_SHOWFTS);\r
50                 UnRegisterListener2(this,WH_MSG_SHOWGLO);\r
51                 UnRegisterListener2(this,WH_MSG_GETPANEINFO);\r
52         }\r
53 }\r
54 \r
55 function window_onload()\r
56 {\r
57         var bHidePane=false;\r
58         var oMsg=new whMessage(WH_MSG_GETCMD,this,1,null);\r
59         if(SendMessage(oMsg))\r
60         {\r
61                 if(oMsg.oParam>0)\r
62                 {\r
63                         if(oMsg.oParam==1)\r
64                                 gstrName="toc";\r
65                         else if(oMsg.oParam==2)\r
66                                 gstrName="idx";\r
67                         else if(oMsg.oParam==3)\r
68                                 gstrName="fts";\r
69                         else if(oMsg.oParam==4)\r
70                                 gstrName="glo";\r
71                         switchNvp(gstrName);\r
72                 }\r
73                 else if(oMsg.oParam==0)\r
74                 {\r
75                         bHidePane=true;\r
76                 }\r
77                 else if(gstrName)\r
78                         switchNvp(gstrName);\r
79         }\r
80         if(bHidePane)\r
81         {\r
82                 oMsg=new whMessage(WH_MSG_HIDEPANE,this,1,null)\r
83                 SendMessage(oMsg);\r
84         }\r
85         else if(gstrName)\r
86         {\r
87                 oMsg=new whMessage(WH_MSG_PANEINFO,this,1,gstrName);\r
88                 SendMessage(oMsg);\r
89         }\r
90         oMsg=new whMessage(WH_MSG_NOSYNC,this,1,null);\r
91         SendMessage(oMsg);\r
92         oMsg=new whMessage(WH_MSG_NOSEARCHINPUT,this,1,null);\r
93         SendMessage(oMsg);\r
94 \r
95 }\r
96 \r
97 function switchNvp(strName)\r
98 {\r
99         var strFile="";\r
100         if(strName=="toc")              strFile=strFrmToc;\r
101         else if(strName=="idx") strFile=strFrmNdx;\r
102         else if(strName=="fts") strFile=strFrmFts;\r
103         else if(strName=="glo") strFile=strFrmGls;\r
104 \r
105         gstrName=strName;\r
106         frames[0].location=strFile;     \r
107 }\r
108 \r
109 function onSendMessage(oMsg)\r
110 {\r
111         if(oMsg)\r
112         {\r
113                 var onMsg=null;\r
114                 var nMsgId=oMsg.nMessageId;\r
115                 if(nMsgId==WH_MSG_SHOWTOC)\r
116                 {\r
117                         switchNvp("toc");\r
118                         onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"toc");\r
119                         SendMessage(onMsg);\r
120                         onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);\r
121                         SendMessage(onMsg);\r
122                 }\r
123                 else if(nMsgId==WH_MSG_SHOWIDX)\r
124                 {\r
125                         switchNvp("idx");\r
126                         onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"idx");\r
127                         SendMessage(onMsg);\r
128                         onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);\r
129                         SendMessage(onMsg);\r
130                 }\r
131                 else if(nMsgId==WH_MSG_SHOWFTS)\r
132                 {\r
133                         switchNvp("fts");\r
134                         onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"fts");\r
135                         SendMessage(onMsg);\r
136                         onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);\r
137                         SendMessage(onMsg);\r
138                 }\r
139                 else if(nMsgId==WH_MSG_SHOWGLO)\r
140                 {\r
141                         switchNvp("glo");\r
142                         onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"glo");\r
143                         SendMessage(onMsg);\r
144                         onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);\r
145                         SendMessage(onMsg);\r
146                 }\r
147                 else if(nMsgId==WH_MSG_GETPANEINFO)\r
148                 {\r
149                         oMsg.oParam=gstrName;\r
150                         return false;\r
151                 }\r
152         }\r
153         return true;\r
154 }\r
155 \r
156 function onResize()\r
157 {\r
158         var oMsg=null;\r
159         if(gbIE4)\r
160         {\r
161                 if(document.body)\r
162                 {\r
163                         if(document.body.clientWidth>1&&document.body.clientHeight>1)\r
164                         {\r
165                                 oMsg=new whMessage(WH_MSG_RESIZEPANE,this,1,null);\r
166                                 SendMessage(oMsg);\r
167                         }\r
168                 }\r
169         }\r
170         else\r
171         {\r
172                 if(window.innerWidth!=0&&window.innerHeight!=0)\r
173                 {\r
174                         oMsg=new whMessage(WH_MSG_RESIZEPANE,this,1,null);\r
175                         SendMessage(oMsg);\r
176                 }\r
177         }\r
178 }\r
179 \r
180 if(window.gbWhMsg&&window.gbWhVer&&window.gbWhProxy)\r
181 {\r
182         var oMsg=new whMessage(WH_MSG_GETPANES,this,1,null);\r
183         if(SendMessage(oMsg))\r
184         {\r
185                 if(oMsg.oParam)\r
186                 {\r
187                         for(var i=0;i<oMsg.oParam.aPanes.length;i++)\r
188                         {\r
189                                 if(oMsg.oParam.aPanes[i].sPaneName=="toc")\r
190                                         strFrmToc=oMsg.oParam.aPanes[i].sPaneURL;\r
191                                 else if(oMsg.oParam.aPanes[i].sPaneName=="idx")\r
192                                         strFrmNdx=oMsg.oParam.aPanes[i].sPaneURL;\r
193                                 else if(oMsg.oParam.aPanes[i].sPaneName=="fts")\r
194                                         strFrmFts=oMsg.oParam.aPanes[i].sPaneURL;\r
195                                 else if(oMsg.oParam.aPanes[i].sPaneName=="glo")\r
196                                         strFrmGls=oMsg.oParam.aPanes[i].sPaneURL;\r
197                                 if(oMsg.oParam.sDefault==oMsg.oParam.aPanes[i].sPaneName)\r
198                                 {\r
199                                         strFrmDft=oMsg.oParam.aPanes[i].sPaneURL;\r
200                                 }\r
201                         }\r
202                 }\r
203                 else\r
204                         setWebHelpPane();\r
205         }\r
206         else\r
207                 setWebHelpPane();\r
208 \r
209         RegisterListener2(this,WH_MSG_SHOWTOC);\r
210         RegisterListener2(this,WH_MSG_SHOWIDX);\r
211         RegisterListener2(this,WH_MSG_SHOWFTS);\r
212         RegisterListener2(this,WH_MSG_SHOWGLO);\r
213         RegisterListener2(this,WH_MSG_GETPANEINFO);\r
214 \r
215         if(gbIE55)\r
216                 window.onresize=onResize;\r
217 \r
218         window.onunload=window_unload;\r
219         window.onload=window_onload;\r
220 \r
221         var strHtml="";\r
222         strHtml+="<frameset rows=\'100%,*\'>";\r
223         strHtml+="<frame name=\'nvplist\' title=\'navpane frame\' src=\'" + strFrmDft +"\'></frame>";\r
224         strHtml+="<frame src=\'whskin_blank.htm\' noresize></frame>";\r
225         strHtml+="</frameset>";\r
226         document.write(strHtml);\r
227 }\r
228 else\r
229         document.location.reload();\r
230 \r
231 if(window.gbNav6)\r
232 {\r
233         var oMsg=new whMessage(WH_MSG_RELOADNS6,this,1,null);\r
234         SendMessage(oMsg);\r
235 }\r
236 //-->\r
237 </script>\r
238 </html>