]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3122: Move Measurement item to Inspection menu
authorvsv <vsv@opencascade.com>
Thu, 12 Dec 2019 12:41:50 +0000 (15:41 +0300)
committervsv <vsv@opencascade.com>
Thu, 12 Dec 2019 12:41:50 +0000 (15:41 +0300)
src/FeaturesPlugin/plugin-Features.xml
src/SHAPERGUI/SHAPERGUI.cpp

index 428f0031445938fe0354cc5f09dc6f0b3a0ebcf2..a61e26b672425c2b8ef74f5271ab313b1028869a 100644 (file)
         <source path="multirotation_widget.xml"/>
       </feature>
     </group>
+  </workbench>
+  <workbench id="Inspection">
     <group id="Measurement">
       <feature id="Measurement" title="Measurement" tooltip="Calculate properties of objects"
                icon="icons/Features/measurement.png" helpfile="measurementFeature.html" abort_confirmation="false">
index bfac1ab628b70ac844930099f6fa4bddcbeaf581..8577d8da136970b014b0e89103155d4cb52cc702 100644 (file)
@@ -168,7 +168,7 @@ void SHAPERGUI::initialize(CAM_Application* theApp)
   }
 
   int aMenu = createMenu(tr("Inspection"), -1, -1, 30);
-  int aSubMenu = createMenu(tr("Information"), aMenu);
+  int aSubMenu = createMenu(tr("Information"), aMenu, -1, -1, 0);
 
   int aId = getNextCommandId();
   myActionsList.append(aId);
@@ -180,7 +180,7 @@ void SHAPERGUI::initialize(CAM_Application* theApp)
   myWhatIsAction->setData("INSPECTION_CMD");
   createMenu(aId, aSubMenu, 0);
 
-  QString aToolName = tr("Inspection tool");
+  QString aToolName = tr("Inspection");
   int aTool = createTool(aToolName);
   int aToolId = createTool(myWhatIsAction, aTool);
   registerCommandToolbar(aToolName, aId);