]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Issue 0020512: EDF 1113 OTHER : Using webkit to display documentation
authorvsr <vsr@opencascade.com>
Sun, 16 Oct 2011 20:22:03 +0000 (20:22 +0000)
committervsr <vsr@opencascade.com>
Sun, 16 Oct 2011 20:22:03 +0000 (20:22 +0000)
Additional improvement: provide search capabilities to the help browser

src/LightApp/LightApp_Application.cxx
src/LightApp/resources/LightApp_msg_en.ts

index be59d31e454ecde1c2363ba7a07272dcbba17670..087efc14e675b82a1165b4e507660742484b1a7b 100644 (file)
@@ -270,12 +270,17 @@ LightApp_Application::LightApp_Application()
   SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
   QPixmap aLogo = aResMgr->loadPixmap( "LightApp", tr( "APP_DEFAULT_ICO" ), false );
   
-  QtxWebBrowser::setData("browser:icon",       aResMgr->loadPixmap( "LightApp", tr( "BROWSER_ICON" ) ) );
-  QtxWebBrowser::setData("browser:title",      tr( "BROWSER_TITLE" ) );
-  QtxWebBrowser::setData("toolbar:title",      tr( "BROWSER_TOOLBAR_TITLE" ) );
-  QtxWebBrowser::setData("menu:file:title",    tr( "BROWSER_FILEMENU" ) );
-  QtxWebBrowser::setData("action:close:title", tr( "BROWSER_CLOSE" ) );
-  QtxWebBrowser::setData("action:close:icon",  aResMgr->loadPixmap( "LightApp", tr( "BROWSER_CLOSE_ICON" ) ) );
+  QtxWebBrowser::setData("browser:icon",          aResMgr->loadPixmap( "LightApp", tr( "BROWSER_ICON" ) ) );
+  QtxWebBrowser::setData("browser:title",         tr( "BROWSER_TITLE" ) );
+  QtxWebBrowser::setData("toolbar:title",         tr( "BROWSER_TOOLBAR_TITLE" ) );
+  QtxWebBrowser::setData("menu:file:title",       tr( "BROWSER_FILEMENU" ) );
+  QtxWebBrowser::setData("action:close:title",    tr( "BROWSER_CLOSE" ) );
+  QtxWebBrowser::setData("action:close:icon",     aResMgr->loadPixmap( "LightApp", tr( "BROWSER_CLOSE_ICON" ) ) );
+  QtxWebBrowser::setData("action:back:title",     tr( "BROWSER_BACK" ) );
+  QtxWebBrowser::setData("action:forward:title",  tr( "BROWSER_FORWARD" ) );
+  QtxWebBrowser::setData("action:find:title",     tr( "BROWSER_FIND" ) );
+  QtxWebBrowser::setData("action:findnext:title", tr( "BROWSER_FINDNEXT" ) );
+  QtxWebBrowser::setData("action:findprev:title", tr( "BROWSER_FINDPREV" ) );
 
   desktop()->setWindowIcon( aLogo );
   desktop()->setDockableMenuBar( false );
index 70ebab37e568da5f1d7e971e9cbe5585484ded00..2588b85a7ccf923992b0d455920f675757843cc4 100644 (file)
@@ -66,6 +66,26 @@ CEA/DEN, CEDRAT, EDF R&amp;D, LEG, PRINCIPIA R&amp;D, BUREAU VERITAS</translatio
         <source>BROWSER_CLOSE</source>
         <translation>&amp;Close</translation>
     </message>    
+    <message>
+        <source>BROWSER_BACK</source>
+        <translation>Go Back</translation>
+    </message>    
+    <message>
+        <source>BROWSER_FORWARD</source>
+        <translation>Go Forward</translation>
+    </message>    
+    <message>
+        <source>BROWSER_FIND</source>
+        <translation>&amp;Find...</translation>
+    </message>    
+    <message>
+        <source>BROWSER_FINDNEXT</source>
+        <translation>Find &amp;next</translation>
+    </message>    
+    <message>
+        <source>BROWSER_FINDPREV</source>
+        <translation>Find &amp;previous</translation>
+    </message>    
 </context>
 <context>
     <name>LightApp_Application</name>