Salome HOME
Merging with WPdev
[modules/smesh.git] / doc / salome / gui / SMESH / whskin_homepage.htm
1 <html>
2 <head>
3 <title>Mesh Module Reference Manual</title>
4
5 <meta name="generator" content="RoboHelp by eHelp Corporation   www.ehelp.com">
6 <meta name="description" content="WebHelp 5.50">
7 </head>
8 <script language="javascript1.2" src="whutils.js"></script>
9 <script language="javascript1.2" src="whmsg.js"></script>
10 <script language="javascript" src="whver.js"></script>
11 <script language="javascript1.2" src="whstub.js"></script><script language="javascript1.2" src="whstart.js"></script>
12 <script language="javascript">
13 <!--
14 var strDefaultTopic = "about:blank";
15 var nWebhelpNavPaneMode = 1;                    //1: DHTML 2:Applet 3:PureHTML 4:Noframeset
16 var bNoApplet  = false;
17 var strPaneDHTML  = "whd_nvp10.htm";            //whd_nvp10.htm  if tab enabled, whnframe.htm if tab disabled.
18 var strPaneApplet = "whd_nvp20.htm";
19 var strPaneList   = "whgdata/whnvp30.htm";
20
21 var strHTML = "";
22 var strPane = "";
23 var nViewFrameType = -1;
24
25 function CMRServer()
26 {
27   this.m_cAgents = new Array;
28 }
29 var cMRServer = new CMRServer;
30
31 //figure out which mode is the best
32 if (!window.gAgent)
33 {
34         // low end browser, we don't even try to determine it.
35         document.location = "whnjs.htm";
36 }
37 else
38 {
39         if (!gbNav4&&!gbIE4&&!gbOpera7&&!gbSafari)
40                 document.location = "whnjs.htm";
41         else if (gbNav4 && !gbNav6 && ((gnVerMinor <= 4.06)))
42                 document.location = "whnjs.htm";
43         else if (gbMac && gbIE4 && !gbIE5)
44                 document.location = "whnjs.htm";
45         //figure out which mode is the best
46         else 
47         {
48                 nViewFrameType=nWebhelpNavPaneMode;
49                 if (nWebhelpNavPaneMode==1||nWebhelpNavPaneMode == 2)
50                 {
51                         var gbDHTML=(nWebhelpNavPaneMode==1);
52                         if (gbNav4)                                                                             nViewFrameType = 2;
53                         if (gbNav4&&(gnVerMinor < 4.1))                                         nViewFrameType = 3;
54                         if (gbNav4&&(gnVerMinor == 4.6))                                        nViewFrameType = 3;
55                         if (gbIE4&&gbDHTML)                                                                     nViewFrameType = 1;
56                         if (gbIE4&&gbSunOS&&nWebhelpNavPaneMode==2)                     nViewFrameType = 3;
57                         if (gbNav6&&gbDHTML)                                                            nViewFrameType = 1;
58                         if (gbNav6&&!gbNav61&&nWebhelpNavPaneMode == 2)         nViewFrameType = 3;
59                         if (gbMac)                                                                                      nViewFrameType = 3;
60                         if (gbOpera7&&nViewFrameType == 2)                                      nViewFrameType = 3;
61                         if ((bNoApplet)&&(nViewFrameType == 2))                         nViewFrameType = 3;
62                 }
63         }
64 }
65
66 if (nViewFrameType!=-1)
67 {
68         var gbWindows = ((gAgent.indexOf("win") != -1) || (gAgent.indexOf("16bit") != -1));
69         //The colordepth of the 16 color on Windows is 1. 
70         if ((gbWindows) && (gbNav4) && (window.screen) && (window.screen.colorDepth <= 4))
71         {
72            alert("WebHelp has detected that your display is set to 16 colors. For full WebHelp support, please set your display to use 256 or more colors.");
73            nViewFrameType = 3;
74         }
75
76         //figure out which one is navpane
77         if (nViewFrameType == 1)
78                 strPane = strPaneDHTML;
79         else if (nViewFrameType == 2)
80                 strPane = strPaneApplet;
81         else 
82                 strPane = strPaneList;
83
84         var oParam = new Object();
85         oParam.sTopic = "";
86         var oMsg = new whMessage(WH_MSG_GETDEFAULTTOPIC, window, 1, oParam);
87         if (SendMessage(oMsg) && oParam.sTopic != "")
88                 strDefaultTopic =  oParam.sTopic;
89
90
91         if (nViewFrameType == 1)
92         {
93                 //DHTML (iframe or xml based)
94                 strHTML += "<frameset  id=\"whPfset\" cols=\"260,*\" frameborder=\"1\">";
95                 strHTML += "<frame name=\"bsscleft\" title=\"navigation frame\" src=\"" + strPane + "\" scrolling=\"no\"></frame>";
96                 strHTML += "<frame name=\"bsscright\" title=\"topic frame\" src=\"" + strDefaultTopic + "\" scrolling=\"auto\"></frame></frameset>";
97         }
98         else if (nViewFrameType == 2)
99         {
100                 //applet (xml based)
101                 strHTML += "<frameset  id=\"whPfset\" cols=\"260,*\" framespacing=\"0\" frameborder=\"0\" border=\"0\">";
102                 strHTML += "<frame name=\"bsscleft\" title=\"navigation frame\" src=\"" + strPane+ "\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\"></frame>";
103                 strHTML += "<frame name=\"bsscright\" title=\"topic frame\" src=\"" + strDefaultTopic + "\" scrolling=\"auto\"></frame></frameset>";
104         }
105         else if (nViewFrameType == 3)
106         {
107                 //generic html (pure html based)
108                 strHTML += "<frameset  id=\"whPfset\" cols=\"260,*\">";
109                 strHTML += "<frame title=\"navigation frame\" src=\"" + strPane + "\" name=\"bsscleft\"  scrolling=\"no\"></frame>";
110                 strHTML += "<frame title=\"topic frame\" src=\"" + strDefaultTopic + "\" name=\"bsscright\" scrolling=\"auto\"></frame>";
111                 strHTML += "</frameset>";
112         } 
113         else if (nViewFrameType == 4)
114         {
115                 //no navipane at all
116                 strHTML += "<frameset  id=\"whPfset\" border=\"0\" cols=\"100%,*\">";
117                 strHTML += "<frame title=\"topic frame\" src=\"" + strDefaultTopic + "\" name=\"bsscright\" framespacing=\"0\" frameborder=\"0\" border=\"0\" scrolling=\"auto\">";
118                 strHTML += "</frameset>";
119         }
120
121         document.write(strHTML);
122
123         RegisterListener2(window, WH_MSG_SHOWPANE);
124         RegisterListener2(window, WH_MSG_HIDEPANE);
125         RegisterListener2(window, WH_MSG_ISPANEVISIBLE);
126         window.onunload = window_unload;
127 }
128
129 function window_unload()
130 {
131         UnRegisterListener2(window, WH_MSG_SHOWPANE);
132         UnRegisterListener2(window, WH_MSG_HIDEPANE);
133         UnRegisterListener2(window, WH_MSG_ISPANEVISIBLE);
134 }
135
136
137 function onSendMessage(oMsg)
138 {
139         var nMsgId = oMsg.nMessageId;
140         if (nMsgId == WH_MSG_SHOWPANE)
141         {
142                 getElement("whPfset").cols = "260,*";
143                 var onMsg = new whMessage(WH_MSG_PANESTATUE, this, 1, "visible");
144                 SendMessage(onMsg);
145                 onMsg = new whMessage(WH_MSG_GETPANEINFO, this, 1, "");
146                 if (SendMessage(onMsg))
147                 {
148                         onMsg = new whMessage(WH_MSG_PANEINFO, this, 1, onMsg.oParam);
149                         SendMessage(onMsg);
150                 }
151                 return false;
152         }
153         else if (nMsgId == WH_MSG_HIDEPANE)
154         {
155                 getElement("whPfset").cols = "0,*";
156                 var onMsg = new whMessage(WH_MSG_PANESTATUE, this, 1, "invisible");
157                 SendMessage(onMsg);
158                 onMsg = new whMessage(WH_MSG_PANEINFO, this, 1, "");
159                 SendMessage(onMsg);
160                 return false;
161         }
162         else if (nMsgId == WH_MSG_ISPANEVISIBLE)
163         {
164                 var n = parseInt(getElement("whPfset").cols);
165                 if (n > 0)
166                 {
167                         oMsg.oParam.bVisible = true;
168                 }
169                 return false;
170         }
171         return true;
172 }
173 //-->
174 </script>
175 <body>
176 <noscript>
177         <p> It seems javascript is disabled in your browser, please enable it and reload again, or click <a href="whnjs.htm">here</a> to view without javascript</p>
178 </noscript>
179 </body>
180 </html>