]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update regarding the new icons management mechanism. origin/cgt/box
authorClarisse Genrault <clarisse.genrault@cea.fr>
Tue, 19 Apr 2016 09:20:26 +0000 (11:20 +0200)
committerClarisse Genrault <clarisse.genrault@cea.fr>
Tue, 19 Apr 2016 09:20:26 +0000 (11:20 +0200)
src/PartSet/PartSet_icons.qrc
src/PartSet/icons/box.png [deleted file]
src/PartSet/icons/box_2pt_32x32.png [deleted file]
src/PartSet/icons/box_dxyz_32x32.png [deleted file]
src/PrimitivesPlugin/CMakeLists.txt
src/PrimitivesPlugin/box_widget.xml
src/PrimitivesPlugin/icons/box.png [new file with mode: 0644]
src/PrimitivesPlugin/icons/box_2pt_32x32.png [new file with mode: 0644]
src/PrimitivesPlugin/icons/box_dxyz_32x32.png [new file with mode: 0644]
src/PrimitivesPlugin/icons/point.png [new file with mode: 0755]
src/PrimitivesPlugin/plugin-Primitives.xml

index 0dc7ccf6fae989bacc521859aad64e5fb153d7da..270a9428fe5b213cbd4e21455904b45b8e2d052b 100644 (file)
@@ -2,9 +2,6 @@
  <qresource>
      <file>icons/activate.png</file>
      <file>icons/angle_32x32.png</file>
-     <file>icons/box.png</file>
-     <file>icons/box_2pt_32x32.png</file>
-     <file>icons/box_dxyz_32x32.png</file>
      <file>icons/color.png</file>
      <file>icons/deactivate.png</file>
      <file>icons/edit.png</file>
diff --git a/src/PartSet/icons/box.png b/src/PartSet/icons/box.png
deleted file mode 100644 (file)
index 104a1ed..0000000
Binary files a/src/PartSet/icons/box.png and /dev/null differ
diff --git a/src/PartSet/icons/box_2pt_32x32.png b/src/PartSet/icons/box_2pt_32x32.png
deleted file mode 100644 (file)
index 874d20c..0000000
Binary files a/src/PartSet/icons/box_2pt_32x32.png and /dev/null differ
diff --git a/src/PartSet/icons/box_dxyz_32x32.png b/src/PartSet/icons/box_dxyz_32x32.png
deleted file mode 100644 (file)
index 26ce8aa..0000000
Binary files a/src/PartSet/icons/box_dxyz_32x32.png and /dev/null differ
index 2203b6201590ced56cac51b4205a4c091c836627..0518f2e0ac6489767e91b611b63e9739de624d63 100644 (file)
@@ -34,6 +34,7 @@ TARGET_LINK_LIBRARIES(PrimitivesPlugin ${PROJECT_LIBRARIES})
 
 INSTALL(TARGETS PrimitivesPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
+INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Primitives)
 
 ADD_UNIT_TESTS(UnitTestBox.py
                UseTestBox.py)
\ No newline at end of file
index 9034c482ae95a21d401d6a62eef833d563881fbd..987bb52e5484fa7e26d0eeb25b8d9302bbf9ecf7 100644 (file)
@@ -2,7 +2,7 @@
 
 <source>
   <toolbox id="CreationMethod">
-    <box id="BoxByDimensions" title="By dimensions" icon=":icons/box_dxyz_32x32.png">
+    <box id="BoxByDimensions" title="By dimensions" icon="icons/Primitives/box_dxyz_32x32.png">
       <doublevalue
         id="dx"
         label="DX"
         tooltip="Dimension in Z">
       </doublevalue>
     </box>
-    <box id="BoxByTwoPoints" title="By two points" icon=":icons/box_2pt_32x32.png">
+    <box id="BoxByTwoPoints" title="By two points" icon="icons/Primitives/box_2pt_32x32.png">
       <shape_selector id="FirstPoint"
         label="First point"
-        icon=":icons/point.png"
+        icon="icons/Primitives/point.png"
         tooltip="Select a first point"
         shape_types="vertex">
         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
       </shape_selector>
       <shape_selector id="SecondPoint"
         label="Second point"
-        icon=":icons/point.png"
+        icon="icons/Primitives/point.png"
         tooltip="Select a second point"
         shape_types="vertex">
         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
diff --git a/src/PrimitivesPlugin/icons/box.png b/src/PrimitivesPlugin/icons/box.png
new file mode 100644 (file)
index 0000000..104a1ed
Binary files /dev/null and b/src/PrimitivesPlugin/icons/box.png differ
diff --git a/src/PrimitivesPlugin/icons/box_2pt_32x32.png b/src/PrimitivesPlugin/icons/box_2pt_32x32.png
new file mode 100644 (file)
index 0000000..874d20c
Binary files /dev/null and b/src/PrimitivesPlugin/icons/box_2pt_32x32.png differ
diff --git a/src/PrimitivesPlugin/icons/box_dxyz_32x32.png b/src/PrimitivesPlugin/icons/box_dxyz_32x32.png
new file mode 100644 (file)
index 0000000..26ce8aa
Binary files /dev/null and b/src/PrimitivesPlugin/icons/box_dxyz_32x32.png differ
diff --git a/src/PrimitivesPlugin/icons/point.png b/src/PrimitivesPlugin/icons/point.png
new file mode 100755 (executable)
index 0000000..96149eb
Binary files /dev/null and b/src/PrimitivesPlugin/icons/point.png differ
index f26ce3a3ab2fc3e00c6307297d3123261ba3baa5..cbc0af066ceb5f488d793ca2583c0980983a31a8 100644 (file)
@@ -3,7 +3,7 @@
 <plugin> 
   <workbench id="Primitives" document="Part">
     <group id="Primitives">
-      <feature id="Box" title="Create a box" tooltip="Create a box" icon=":icons/box.png">
+      <feature id="Box" title="Create a box" tooltip="Create a box" icon="icons/Primitives/box.png">
         <source path="box_widget.xml"/>
       </feature>
     </group>