PartDesign: tweaks to Gui/Workbench.cpp formatting
This commit is contained in:
@@ -491,34 +491,50 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
// datums
|
||||
Gui::MenuItem* datums = new Gui::MenuItem;
|
||||
datums->setCommand("Create a datum");
|
||||
*datums << "PartDesign_Point" << "PartDesign_Line"
|
||||
<< "PartDesign_Plane";
|
||||
|
||||
*datums << "PartDesign_Point"
|
||||
<< "PartDesign_Line"
|
||||
<< "PartDesign_Plane";
|
||||
|
||||
// additives
|
||||
Gui::MenuItem* additives = new Gui::MenuItem;
|
||||
additives->setCommand("Create an additive feature");
|
||||
*additives << "PartDesign_Pad" << "PartDesign_Revolution"
|
||||
<< "PartDesign_AdditiveLoft" << "PartDesign_AdditivePipe" << "PartDesign_AdditiveHelix";
|
||||
|
||||
*additives << "PartDesign_Pad"
|
||||
<< "PartDesign_Revolution"
|
||||
<< "PartDesign_AdditiveLoft"
|
||||
<< "PartDesign_AdditivePipe"
|
||||
<< "PartDesign_AdditiveHelix";
|
||||
|
||||
// subtractives
|
||||
Gui::MenuItem* subtractives = new Gui::MenuItem;
|
||||
subtractives->setCommand("Create a subtractive feature");
|
||||
*subtractives << "PartDesign_Pocket" << "PartDesign_Hole"
|
||||
<< "PartDesign_Groove" << "PartDesign_SubtractiveLoft"
|
||||
<< "PartDesign_SubtractivePipe" << "PartDesign_SubtractiveHelix";
|
||||
|
||||
*subtractives << "PartDesign_Pocket"
|
||||
<< "PartDesign_Hole"
|
||||
<< "PartDesign_Groove"
|
||||
<< "PartDesign_SubtractiveLoft"
|
||||
<< "PartDesign_SubtractivePipe"
|
||||
<< "PartDesign_SubtractiveHelix";
|
||||
|
||||
// transformations
|
||||
Gui::MenuItem* transformations = new Gui::MenuItem;
|
||||
transformations->setCommand("Apply a pattern");
|
||||
*transformations << "PartDesign_Mirrored" << "PartDesign_LinearPattern"
|
||||
<< "PartDesign_PolarPattern" << "PartDesign_MultiTransform";
|
||||
//<< "PartDesign_Scaled"
|
||||
|
||||
*transformations << "PartDesign_Mirrored"
|
||||
<< "PartDesign_LinearPattern"
|
||||
<< "PartDesign_PolarPattern"
|
||||
<< "PartDesign_MultiTransform";
|
||||
// << "PartDesign_Scaled"
|
||||
|
||||
// dressups
|
||||
Gui::MenuItem* dressups = new Gui::MenuItem;
|
||||
dressups->setCommand("Apply a dress-up feature");
|
||||
*dressups << "PartDesign_Fillet" << "PartDesign_Chamfer"
|
||||
<< "PartDesign_Draft" << "PartDesign_Thickness";
|
||||
|
||||
*dressups << "PartDesign_Fillet"
|
||||
<< "PartDesign_Chamfer"
|
||||
<< "PartDesign_Draft"
|
||||
<< "PartDesign_Thickness";
|
||||
|
||||
*part << "PartDesign_Body"
|
||||
<< "Separator"
|
||||
@@ -548,14 +564,15 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
Gui::MenuItem* measure = new Gui::MenuItem;
|
||||
root->insertItem(item, measure);
|
||||
measure->setCommand("Measure");
|
||||
|
||||
*measure << "Part_Measure_Linear"
|
||||
<< "Part_Measure_Angular"
|
||||
<< "Separator"
|
||||
<< "Part_Measure_Refresh"
|
||||
<< "Part_Measure_Clear_All"
|
||||
<< "Part_Measure_Toggle_All"
|
||||
<< "Part_Measure_Toggle_3D"
|
||||
<< "Part_Measure_Toggle_Delta";
|
||||
<< "Part_Measure_Angular"
|
||||
<< "Separator"
|
||||
<< "Part_Measure_Refresh"
|
||||
<< "Part_Measure_Clear_All"
|
||||
<< "Part_Measure_Toggle_All"
|
||||
<< "Part_Measure_Toggle_3D"
|
||||
<< "Part_Measure_Toggle_Delta";
|
||||
|
||||
// For 0.13 a couple of python packages like numpy, matplotlib and others
|
||||
// are not deployed with the installer on Windows. Thus, the WizardShaft is
|
||||
@@ -580,6 +597,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
Gui::ToolBarItem* root = StdWorkbench::setupToolBars();
|
||||
Gui::ToolBarItem* part = new Gui::ToolBarItem(root);
|
||||
part->setCommand("Part Design Helper");
|
||||
|
||||
*part << "PartDesign_Body"
|
||||
<< "PartDesign_NewSketch"
|
||||
<< "Sketcher_EditSketch"
|
||||
@@ -595,6 +613,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
|
||||
part = new Gui::ToolBarItem(root);
|
||||
part->setCommand("Part Design Modeling");
|
||||
|
||||
*part << "PartDesign_Pad"
|
||||
<< "PartDesign_Revolution"
|
||||
<< "PartDesign_AdditiveLoft"
|
||||
@@ -626,14 +645,15 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
// use Part's measure features also for PartDesign
|
||||
Gui::ToolBarItem* measure = new Gui::ToolBarItem(root);
|
||||
measure->setCommand("Measure");
|
||||
|
||||
*measure << "Part_Measure_Linear"
|
||||
<< "Part_Measure_Angular"
|
||||
<< "Separator"
|
||||
<< "Part_Measure_Refresh"
|
||||
<< "Part_Measure_Clear_All"
|
||||
<< "Part_Measure_Toggle_All"
|
||||
<< "Part_Measure_Toggle_3D"
|
||||
<< "Part_Measure_Toggle_Delta";
|
||||
<< "Part_Measure_Angular"
|
||||
<< "Separator"
|
||||
<< "Part_Measure_Refresh"
|
||||
<< "Part_Measure_Clear_All"
|
||||
<< "Part_Measure_Toggle_All"
|
||||
<< "Part_Measure_Toggle_3D"
|
||||
<< "Part_Measure_Toggle_Delta";
|
||||
|
||||
return root;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user