]> SALOME platform Git repositories - tools/yacsgen.git/commitdiff
Salome HOME
Update the template for the SalomeApp.xml file (to take into account recent changes...
authorgdd <gdd>
Tue, 26 Jun 2012 13:34:33 +0000 (13:34 +0000)
committergdd <gdd>
Tue, 26 Jun 2012 13:34:33 +0000 (13:34 +0000)
TODO: take into account version of a module

module_generator/gui_tmpl.py

index 6c9edb38b603c4aa3af997207de9364b3920bd71..4cfc9fa31b590acb2d4caf4fb8621121af61b0bf 100644 (file)
@@ -39,10 +39,15 @@ pysalomeapp="""
     <parameter name="name" value="${module}"/>
     <parameter name="icon" value="${module}.png"/>
     <parameter name="library" value="SalomePyQtGUI"/>
+    <parameter name="documentation" value="${lmodule}_help"/>
   </section>
   <section name="resources">
     <parameter name="${module}" value="$${${module}_ROOT_DIR}/share/salome/resources/${lmodule}"/>
   </section>
+  <section name="${lmodule}_help" >
+    <parameter name="sub_menu"          value="%1 module"/>
+    <parameter name="User's Guide"      value="%${module}_ROOT_DIR%/share/doc/salome/gui/${lmodule}/index.html"/>
+  </section>
 </document>
 """
 pysalomeapp=Template(pysalomeapp)
@@ -78,10 +83,15 @@ cppsalomeapp="""
   <section name="${module}">
     <parameter name="name" value="${module}"/>
     <parameter name="icon" value="${module}.png"/>
+    <parameter name="documentation" value="${lmodule}_help"/>
   </section>
   <section name="resources">
     <parameter name="${module}" value="$${${module}_ROOT_DIR}/share/salome/resources/${lmodule}"/>
   </section>
+  <section name="${lmodule}_help" >
+    <parameter name="sub_menu"          value="%1 module"/>
+    <parameter name="User's Guide"      value="%${module}_ROOT_DIR%/share/doc/salome/gui/${lmodule}/index.html"/>
+  </section>
 </document>
 """
 cppsalomeapp=Template(cppsalomeapp)