X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FVISU%2Fwhskin_papplet.htm;h=5f8296ad64ae5154d7979c87df82b0d338098291;hb=ab526e7ae271b0ba2850108f583fad61383e30ab;hp=aab44ddea6f53f3dc56d2dec191d475a2b88009d;hpb=0740c05126ec54c2e989a9bca3f551a644cfb745;p=modules%2Fvisu.git diff --git a/doc/salome/gui/VISU/whskin_papplet.htm b/doc/salome/gui/VISU/whskin_papplet.htm index aab44dde..5f8296ad 100755 --- a/doc/salome/gui/VISU/whskin_papplet.htm +++ b/doc/salome/gui/VISU/whskin_papplet.htm @@ -1,10 +1,9 @@ Navigation Pane - + - - + @@ -58,24 +57,49 @@ function window_unload() function window_OnLoad() { - if (gsInitPane == "toc") + var bHidePane=false; + var oMsg=new whMessage(WH_MSG_GETCMD,this,1,null); + if (SendMessage(oMsg)) + { + if(oMsg.oParam>0) + { + if(oMsg.oParam==1) + gsInitPane="toc"; + else if(oMsg.oParam==2) + gsInitPane="idx"; + else if(oMsg.oParam==3) + gsInitPane="fts"; + else if(oMsg.oParam==4) + gsInitPane="glo"; + } + else if(oMsg.oParam==0) + { + bHidePane=true; + } + } + if (bHidePane) { - var oMsg=new whMessage(WH_MSG_SHOWTOC,this,1,null) + oMsg=new whMessage(WH_MSG_HIDEPANE,this,1,null) + SendMessage(oMsg); + } + else if (gsInitPane == "toc") + { + oMsg=new whMessage(WH_MSG_SHOWTOC,this,1,null) SendMessage(oMsg); } else if (gsInitPane=="idx") { - var oMsg=new whMessage(WH_MSG_SHOWIDX,this,1,null) + oMsg=new whMessage(WH_MSG_SHOWIDX,this,1,null) SendMessage(oMsg); } else if (gsInitPane=="fts") { - var oMsg=new whMessage(WH_MSG_SHOWFTS,this,1,null) + oMsg=new whMessage(WH_MSG_SHOWFTS,this,1,null) SendMessage(oMsg); } else if (gsInitPane=="glo") { - var oMsg=new whMessage(WH_MSG_SHOWGLO,this,1,null) + oMsg=new whMessage(WH_MSG_SHOWGLO,this,1,null) SendMessage(oMsg); } @@ -83,13 +107,14 @@ function window_OnLoad() function onResize() { + var oMsg=null; if (gbIE4) { if(document.body) { if(document.body.clientWidth > 1 && document.body.clientHeight>1) { - var oMsg = new whMessage(WH_MSG_RESIZEPANE, this, 1, null); + oMsg = new whMessage(WH_MSG_RESIZEPANE,this,1,null); SendMessage(oMsg); } } @@ -98,7 +123,7 @@ function onResize() { if (window.innerWidth != 0 && window.innerHeight != 0) { - var oMsg = new whMessage(WH_MSG_RESIZEPANE, this, 1, null); + oMsg = new whMessage(WH_MSG_RESIZEPANE,this,1,null); SendMessage(oMsg); } } @@ -137,11 +162,7 @@ function CheckLoadingPhase2() setTimeout("CheckLoadingPhase2()", 1000); else { if (gnVerMinor != 4.60) { - if (gnVerMinor >= 4.06) - document.location.href = "nsdnsfix.htm" - else { - alert("Unable to load applet. If you are using an old version of Netscape, the prefs.js file needs to be edited."); - } + alert("Unable to load applet. If you are using an old version of Netscape, the prefs.js file needs to be edited."); } } } @@ -193,102 +214,78 @@ function onSendMessage(oMsg) else WebHelpApplet = window.WebHelp; - if (nMsgId == WH_MSG_SHOWTOC) + if(nMsgId==WH_MSG_GETPANEINFO) { - gsCurrentPane="toc"; - WebHelpApplet.Command("Contents",null); - var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"toc"); - SendMessage(onMsg); - onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null); - SendMessage(onMsg); - } - else if(nMsgId==WH_MSG_SHOWIDX) - { - gsCurrentPane="idx"; - WebHelpApplet.Command("Index",null); - var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"idx"); - SendMessage(onMsg); - onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null); - SendMessage(onMsg); - } - else if(nMsgId==WH_MSG_SHOWFTS) - { - gsCurrentPane="fts"; - WebHelpApplet.Command("Search",null); - var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"fts"); - SendMessage(onMsg); - onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null); - SendMessage(onMsg); - } - else if(nMsgId==WH_MSG_SHOWGLO) - { - gsCurrentPane="glo"; - WebHelpApplet.Command("Glossary",null); - var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"glo"); - SendMessage(onMsg); - onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null); - SendMessage(onMsg); + oMsg.oParam=gsCurrentPane; + return false; } - else if(nMsgId==WH_MSG_SYNCTOC) + else if(gbLoading!="unknown" || gbNav6) { - gsCurrentPane="toc"; - var oTopicParam=oMsg.oParam; - if(oTopicParam&&oTopicParam.aPaths&&oTopicParam.aPaths.length>0&&oTopicParam.sPPath) + if (nMsgId == WH_MSG_SHOWTOC) + { + gsCurrentPane="toc"; + WebHelpApplet.Command("Contents",null); + var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"toc"); + SendMessage(onMsg); + onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null); + SendMessage(onMsg); + } + else if(nMsgId==WH_MSG_SHOWIDX) + { + gsCurrentPane="idx"; + WebHelpApplet.Command("Index",null); + var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"idx"); + SendMessage(onMsg); + onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null); + SendMessage(onMsg); + } + else if(nMsgId==WH_MSG_SHOWFTS) { - var sPPath=_browserURLToAppletURL(oTopicParam.sPPath); - var sParam=""; - for(var i=0;i0&&oTopicParam.sPPath) { - sParam+=oTopicParam.aPaths[i]+"\r\r"; - } - if(gbLoading!="unknown") + var sPPath=_browserStringToText(oTopicParam.sPPath); + var sParam=""; + for(var i=0;i='0'&&sBURL.charAt(i)<='9') - { - sNum+=sBURL.charAt(i++); - } - if(sNum!="") - { - var nNum=parseInt(sNum,16); - sAURL+=String.fromCharCode(nNum); - sBURL=sBURL.substring(i); - } - nPos=sBURL.indexOf('%'); - } - sAURL+=sBURL; - return sAURL; -} - function getInitTocInfo() { var oParam=new Object(); @@ -299,7 +296,7 @@ function getInitTocInfo() var oTopicParam=oMsg.oParam.oTocInfo; if(oTopicParam&&oTopicParam.aPaths&&oTopicParam.aPaths.length>0&&oTopicParam.sPPath) { - var sPPath=_browserURLToAppletURL(oTopicParam.sPPath); + var sPPath=_browserStringToText(oTopicParam.sPPath); var sParam=""; for(var i=0;i