Salome HOME
DCQ : Merge with Ecole_Ete_a6.
[modules/smesh.git] / doc / salome / gui / SMESH / whfform.htm
diff --git a/doc/salome/gui/SMESH/whfform.htm b/doc/salome/gui/SMESH/whfform.htm
new file mode 100755 (executable)
index 0000000..e40b10b
--- /dev/null
@@ -0,0 +1,136 @@
+<html>\r
+<head>\r
+<title>Search Form</title>\r
+<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">\r
+<meta name="generator" content="RoboHelp by eHelp Corporation   www.ehelp.com">\r
+<meta name "description" content="WebHelp 2002">\r
+</head>\r
+<style>\r
+<!--\r
+body {margin:0;}\r
+-->\r
+</style>\r
+<body bgcolor="#c0c0c0">\r
+<script language="javascript" src="whver.js"></script>\r
+<script language="javascript1.2" src="whmsg.js"></script>\r
+<script language="javascript1.2" src="whproxy.js"></script>\r
+<script language="javascript1.2" src="whutils.js"></script>\r
+<script language="javascript1.2" src="whform.js"></script>\r
+<script language="javascript1.2">\r
+<!--\r
+var gstrInput = "";\r
+function ftsLookup(bCR)\r
+{\r
+       if (bCR)\r
+       {\r
+               var strInput = document.FtsInputForm.keywordField.value.toUpperCase();\r
+               if (strInput != "") {\r
+                       var oMsg = new whMessage(WH_MSG_SEARCHFTSKEY, this, 1, strInput);\r
+                       if (!SendMessage(oMsg))\r
+                       {\r
+                               gstrInput = strInput;\r
+                       }\r
+                       else\r
+                               gstrInput = "";\r
+               }\r
+\r
+               if (gbMac) {\r
+                       document.FtsInputForm.keywordField.focus();\r
+               }\r
+       }\r
+       return;\r
+}\r
+\r
+function beforeInit()\r
+{\r
+       var oParam = new Object();\r
+       oParam.sValue = "";\r
+       var oMsg = new whMessage(WH_MSG_GETSEARCHS, this, 1, oParam);\r
+       if (SendMessage(oMsg))\r
+       {\r
+               if (oParam.sValue != "" && oParam.sValue != "- Search -")\r
+               {\r
+                       document.FtsInputForm.keywordField.value = oParam.sValue;\r
+                       gfunLookUp(true);\r
+               }\r
+       }\r
+       init(); \r
+}\r
+\r
+function window_unload()\r
+{\r
+       UnRegisterListener2(this, WH_MSG_SHOWTOC);\r
+       UnRegisterListener2(this, WH_MSG_SHOWIDX);\r
+       UnRegisterListener2(this, WH_MSG_SHOWFTS);\r
+       UnRegisterListener2(this, WH_MSG_SHOWGLO);\r
+       UnRegisterListener2(this, WH_MSG_SEARCHTHIS);\r
+       UnRegisterListener2(this, WH_MSG_BACKUPSEARCH);\r
+}\r
+\r
+function onSendMessage(oMsg)\r
+{\r
+       if (oMsg.nMessageId == WH_MSG_SHOWFTS)\r
+       {\r
+               document.FtsInputForm.keywordField.focus();\r
+       }\r
+       else if (oMsg.nMessageId == WH_MSG_SHOWIDX ||\r
+               oMsg.nMessageId == WH_MSG_SHOWTOC || \r
+               oMsg.nMessageId == WH_MSG_SHOWGLO)\r
+       {\r
+               document.FtsInputForm.keywordField.blur();\r
+       }\r
+       else if (oMsg.nMessageId == WH_MSG_SEARCHTHIS)\r
+       {\r
+               if (oMsg.oParam != "- Search -")\r
+               {\r
+                       document.FtsInputForm.keywordField.value = oMsg.oParam;\r
+                       gfunLookUp(true);\r
+               }\r
+       }\r
+       else if (oMsg.nMessageId == WH_MSG_BACKUPSEARCH)\r
+       {\r
+               if (gstrInput)\r
+               {\r
+                       oMsg.oParam = gstrInput;\r
+                       gstrInput = "";\r
+                       return false;\r
+               }\r
+       }\r
+       return true;\r
+}\r
+\r
+if (window.gbWhForm)\r
+{\r
+       RegisterListener2(this, WH_MSG_SHOWTOC);\r
+       RegisterListener2(this, WH_MSG_SHOWIDX);\r
+       RegisterListener2(this, WH_MSG_SHOWFTS);\r
+       RegisterListener2(this, WH_MSG_SHOWGLO);\r
+       RegisterListener2(this, WH_MSG_SEARCHTHIS);\r
+       RegisterListener2(this, WH_MSG_BACKUPSEARCH);\r
+       gfunLookUp = ftsLookup;\r
+       gfunInit = null;\r
+       gstrFormName = "FtsInputForm"\r
+       gsTitle = "Type in the word(s) to search for:";\r
+       gsTitle = "Type in the word(s) to search for:";\r
+       setGoImage1("wht_go.gif");\r
+       setBackgroundcolor("White");\r
+       \r
+       setBtnType("image");\r
+       \r
+       \r
+       \r
+       setGoText("Go");\r
+       setFont("Title", "Tahoma","8pt","Navy","Normal","Normal","none");\r
+       \r
+       \r
+       document.write(getFormHTML());\r
+       writeFormStyle();\r
+       window.onload = beforeInit;\r
+       window.onunload=window_unload;\r
+}\r
+else\r
+       document.location.reload();\r
+//-->\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file