]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
try icon and toolbar on SMESH plugin MeshCut: OK
authorPaul RASCLE <paul.rascle@edf.fr>
Mon, 10 Dec 2018 13:59:11 +0000 (14:59 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Mon, 10 Dec 2018 13:59:11 +0000 (14:59 +0100)
resources/CMakeLists.txt
resources/mesh_plugins_meshcut.png [new file with mode: 0644]
src/Tools/smesh_plugins.py

index 638e99c3027cd8410615a22c3134326f0bc9f718..5108b904732fd022e276602f0ca8213081b9d1b7 100755 (executable)
@@ -77,6 +77,7 @@ SET(SMESH_RESOURCES_FILES
   mesh_octahedron.png
   mesh_orientation.png
   mesh.png
+  mesh_plugins_meshcut.png
   mesh_polygon.png
   mesh_polyhedron.png
   mesh_pyramid_n.png
diff --git a/resources/mesh_plugins_meshcut.png b/resources/mesh_plugins_meshcut.png
new file mode 100644 (file)
index 0000000..59145bf
Binary files /dev/null and b/resources/mesh_plugins_meshcut.png differ
index 8393e6a8b8117e7da6c4711964e569af217a4b36..3ee272dd2effdf0855cfd186999c3074bf12a4d2 100644 (file)
@@ -21,6 +21,7 @@
 #
 import salome_pluginsmanager
 import os
+from qtsalome import QIcon
 
 try:
   from spadderPlugin import runSpadderPlugin
@@ -33,9 +34,10 @@ except Exception as e:
 
 try:
   from meshcut_plugin import MeshCut
+  icon_file = os.path.join(os.getenv('SMESH_ROOT_DIR'),'share', 'salome', 'resources', 'smesh', 'mesh_plugins_meshcut.png')
   salome_pluginsmanager.AddFunction('MeshCut',
                                     'Cut a tetrahedron mesh by a plane',
-                                    MeshCut)
+                                    MeshCut, icon=QIcon(icon_file))
 
 except Exception as e:
   salome_pluginsmanager.logger.info('ERROR: MeshCut plug-in is unavailable: {}'.format(e))