Salome HOME
Merging with WPdev
[modules/smesh.git] / doc / salome / gui / SMESH / whibody.htm
1 <html>
2 <head>
3 <title>Index content</title>
4
5 <meta name="generator" content="RoboHelp by eHelp Corporation   www.ehelp.com">
6 <meta name="description" content="WebHelp 5.50">
7 <base target="bsscright">
8 <script language="javascript" src="whver.js"></script>
9 <script language="javascript1.2" src="whmozemu.js"></script>
10 <script language="javascript1.2" src="whmsg.js"></script>
11 <script language="javascript1.2" src="whproxy.js"></script>
12 <script language="javascript1.2" src="whlang.js"></script>
13 <script language="javascript1.2" src="whutils.js"></script>
14 <script language="javascript1.2" src="whhost.js"></script>
15 <script language="javascript1.2" src="whihost.js"></script>
16 <script language="javascript1.2">
17 <!--
18 var goPopup = null;
19 var gbPopupMenuTimeoutExpired=false;
20 var gBsClientWidth=640;
21 var gBsClientHeight=480;
22 var g_bIsPopupMenuInit=false;
23
24 function WritePopupMenuLayer()
25 {
26         if (!g_bIsPopupMenuInit)
27         {
28                 document.write("<DIV ID='PopupMenu' STYLE='position:absolute; left:0px; top:0px; z-index:4; visibility:hidden;'></DIV>");
29                 document.write("<STYLE TYPE='text/css'>");
30                 if (gbMac && gbIE4) {
31                         document.write(".PopupOver {font-family:'Arial'; color:white; background:navy; font-size:10pt; text-decoration:none;}");
32                         document.write(".PopupNotOver {font-family:'Arial'; color:black; background:#c0c0c0; font-size:10pt; text-decoration:none;}");
33                 } else {
34                         document.write(".PopupOver {font-family:'Arial'; color:white; background:navy; font-size:8pt; text-decoration:none;}");
35                         document.write(".PopupNotOver {font-family:'Arial'; color:black; background:#c0c0c0; font-size:8pt; text-decoration:none;}");
36                 }
37                 document.write("</STYLE>");
38         }
39         g_bIsPopupMenuInit = true;
40 }
41
42 function PopupMenu_Invoke()
43 {
44         if (gbNav6)
45                 resetHighLight();
46         
47         if (!gbNav6  && document.readyState != "complete")
48                 return false;
49         var fn_arguments = PopupMenu_Invoke.arguments; 
50         // Make sure we have reasonable arguments
51         var argLen = fn_arguments.length;
52         if (argLen < 3) {
53                 return false;
54         }
55
56         // Check to see if we only have one target
57         var strTarget = "";
58         
59         strTarget = "TARGET='" + fn_arguments[1] + "'";
60         
61         if (argLen < 5) {
62                 // Get the place that we will be putting the topic into
63                 var strURL = fn_arguments[3];
64
65                 if (fn_arguments[1] != null && typeof(fn_arguments[1]) != "undefined")
66                         window.open(strURL, fn_arguments[1]);
67                 else
68                         window.open(strURL);
69                         
70                 return false;
71         }
72         
73         var strMenu = '<TABLE STYLE="border:2px outset white;" CELLSPACING=0';
74         if (gbMac && gbIE4) {
75                 strMenu += ' CELLPADDING=4';
76         } else {
77                 strMenu += ' CELLPADDING=2';
78         }       
79         strMenu += ' BGCOLOR=#c0c0c0>';
80
81         // Add each of the items
82         if (gbIE55)
83         {
84                 var i = 2;
85                 while (i <= argLen - 1) {
86                         strMenu += '<TR><TD><NOBR>'
87                         strMenu += '<DIV STYLE="padding-left:3pt; padding-right:3pt;"><A ';
88                         strMenu += ' onclick="parent.PopupMenu_2HandleClick(\'' + excapeSingleQuotandSlash(fn_arguments[i + 1]) + '\', \'' + fn_arguments[1] + '\');"';
89                         strMenu += ' onmouseover="parent.PopupMenu_Over(event);"';
90                         strMenu += ' onmouseout="parent.PopupMenu_Out(event);"';
91                         strMenu += '>';
92                         strMenu += '<SPAN CLASS="PopupNotOver">' + fn_arguments[i] + '</SPAN>';
93                         strMenu += '</A></DIV></NOBR></TD></TR>';
94                         i += 2;
95                 }
96         }
97         else
98         {
99                 var i = 2;
100                 while (i <= argLen - 1) {
101                         strMenu += '<TR><TD><NOBR>'
102                         strMenu += '<DIV STYLE="padding-left:3pt; padding-right:3pt;"><A HREF="' + fn_arguments[i + 1] + '" ' + strTarget;
103                         strMenu += ' onclick="PopupMenu_HandleClick(event);"';
104                         strMenu += ' onmouseover="PopupMenu_Over(event);"';
105                         strMenu += ' onmouseout="PopupMenu_Out(event);"';
106                         strMenu += '>';
107                         strMenu += '<SPAN CLASS="PopupNotOver">' + excapeSingleQuotandSlash(fn_arguments[i]) + '</SPAN>';
108                         strMenu += '</A></DIV></NOBR></TD></TR>';
109                         i += 2;
110                 }
111         }
112         strMenu += "</TABLE>";
113
114         if (gbMac && gbIE4) {
115         // ie5 in mac need something. </TABLE> is one of them.
116                 strMenu +="<TABLE></TABLE>";
117         }
118
119         var layerPopup = null;
120         var stylePopup = null;
121         var nEventX = 0;
122         var nEventY = 0;
123         var nWindowWidth = 0;
124         if (gbIE4||gbOpera7)
125         {
126                 layerPopup = document.all["PopupMenu"];
127                 layerPopup.innerHTML = strMenu;
128                 stylePopup = layerPopup.style;
129
130                 _BSPSGetClientSize();
131
132                 // Get the position of the item causing the event (relative to its parent)
133                 nEventX = window.event.clientX;
134                 nEventY = window.event.clientY;
135                 
136                 if (nEventY + layerPopup.scrollHeight + 10 < gBsClientHeight) {
137                         nEventY += document.body.scrollTop + 10;
138                 } else {
139                         nEventY = (document.body.scrollTop + gBsClientHeight) - layerPopup.scrollHeight - 20;
140                 }
141                 stylePopup.top = nEventY;
142
143                 if (nEventX + layerPopup.scrollWidth + 20 > gBsClientWidth) {
144                         if (gBsClientWidth - layerPopup.scrollWidth < 5) {
145                                 stylePopup.left = 5;
146                         } else {
147                                 stylePopup.left = gBsClientWidth - layerPopup.scrollWidth - 5;
148                         }
149                 } else {
150                         stylePopup.left = nEventX + document.body.scrollLeft + 20;
151                 }
152
153                 if (gbIE55) {
154                         var nPosX = window.event.clientX;
155                         var nPosY = window.event.clientY;
156                         if (window.event.srcElement)
157                         {
158                                 nPosX = window.event.srcElement.offsetLeft + window.event.srcElement.offsetWidth - document.body.scrollLeft;
159                                 nPosY = window.event.srcElement.offsetTop + window.event.srcElement.offsetHeight - document.body.scrollTop;
160                         }
161                         goPopup = window.createPopup();
162                         var oPopupBody = goPopup.document.body;
163                         goPopup.document.createStyleSheet();
164                         goPopup.document.styleSheets[0].addRule(".PopupOver", "{font-family:\"Arial\"; cursor: hand;color:white; background:navy; font-size:8pt; text-decoration:none;}");
165                         goPopup.document.styleSheets[0].addRule(".PopupNotOver", "{font-family:\"Arial\"; color:black; background:#c0c0c0; font-size:8pt; text-decoration:none;}");
166                         oPopupBody.insertAdjacentHTML("afterBegin", strMenu);
167                         goPopup.show(nPosX, nPosY, layerPopup.scrollWidth, layerPopup.scrollHeight, document.body);
168                 }
169                 else 
170                 {
171                         stylePopup.visibility = "visible";
172                         document.onclick = PopupMenu_HandleClick;
173                 }
174         } else if (gbNav6) {
175                 layerPopup = document.getElementById("PopupMenu");
176                 layerPopup.style.visibility = "hidden";
177         
178                 var e = fn_arguments[0];
179                 nEventX = e.pageX;
180                 nEventY = e.pageY;
181                 _BSPSGetClientSize();
182                 layerPopup.innerHTML = strMenu;
183
184                 if (nEventY + layerPopup.offsetHeight + 20  <  window.pageYOffset + gBsClientHeight) {
185                         nEventY += 20;
186                 } else {
187                         nEventY = gBsClientHeight + window.pageYOffset - layerPopup.offsetHeight - 20;
188                 }
189
190                 if (nEventX + layerPopup.offsetWidth + 20 > gBsClientWidth + window.pageXOffset) {
191                         if (gBsClientWidth + window.pageXOffset - layerPopup.offsetWidth < 20) {
192                                 nEventX = 5;
193                         } else {
194                                 nEventX = gBsClientWidth + window.pageXOffset - layerPopup.offsetWidth - 20;
195                         }
196                 } else {
197                         nEventX += 20;
198                 }
199                 layerPopup.style.top = nEventY;
200                 layerPopup.style.left = nEventX;
201
202                 // set again to avoid the frash in netscape 6.
203                 layerPopup.innerHTML = strMenu;
204                 layerPopup.style.visibility = "visible";
205                 window.onclick = PopupMenu_HandleClick;
206         } 
207
208         window.gbPopupMenuTimeoutExpired = false;
209         setTimeout("PopupMenu_Timeout();", 100);
210         return false;
211 }
212
213 function PopupMenu_Timeout()
214 {
215         window.gbPopupMenuTimeoutExpired = true;
216 }
217
218 function PopupMenu_Over(e)
219 {
220         if (gbIE4||gbOpera7)
221                 e.srcElement.className = "PopupOver";
222         else if (gbNav6)
223                 e.target.parentNode.className = "PopupOver";
224 }
225
226 function PopupMenu_Out(e)
227 {
228         if (gbIE4||gbOpera7)
229                 e.srcElement.className = "PopupNotOver";
230         else if (gbNav6)
231                 e.target.parentNode.className = "PopupNotOver";
232 }
233
234 function PopupMenu_2HandleClick(surl, starget)
235 {
236         window.open(surl, starget);
237         goPopup.hide();
238 }
239
240 function PopupMenu_HandleClick(e)
241 {
242         if (!window.gbPopupMenuTimeoutExpired) {
243                 return;
244         }
245
246         var layerPopup = getElement("PopupMenu");
247         layerPopup.style.visibility = "hidden";
248
249         return;
250 }
251
252 //Get client size info
253 function _BSPSGetClientSize()
254 {
255         gBsClientWidth  = document.body.clientWidth;
256         gBsClientHeight = document.body.clientHeight;
257 }
258
259 if (window.gbWhIHost)
260 {
261         
262         
263         setFont("Normal", "Arial","9pt","#000000","normal","normal","none");
264         setFont("Empty", "Arial","9pt","#000000","normal","normal","none");
265         setFont("Hover", "Arial","9pt","#007f00","normal","normal","underline");
266         setActiveBgColor("#cccccc");
267         setMargin("0pt");
268         setIndent("9pt");
269         IndexWriteClassStyle();
270 }
271 else
272         document.location.reload();
273 //-->
274 </script>
275 </head>
276 <body topmargin="2" leftmargin="2" marginwidth="0" marginheight="0" bgproperties="fixed" scroll="auto" bgcolor="white">
277 <script languageE="JavaScript">
278 <!--
279 WritePopupMenuLayer();
280 //-->
281 </script>
282 </body>
283 </html>
284