Add sweep and loft to toolbar
This commit is contained in:
parent
ad6ae5e2bc
commit
6621c00c10
|
@ -948,7 +948,7 @@ CmdPartLoft::CmdPartLoft()
|
|||
sAppModule = "Part";
|
||||
sGroup = QT_TR_NOOP("Part");
|
||||
sMenuText = QT_TR_NOOP("Loft...");
|
||||
sToolTipText = QT_TR_NOOP("Advanced utility to lofts");
|
||||
sToolTipText = QT_TR_NOOP("Utility to loft");
|
||||
sWhatsThis = sToolTipText;
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Part_Loft";
|
||||
|
@ -974,7 +974,7 @@ CmdPartSweep::CmdPartSweep()
|
|||
sAppModule = "Part";
|
||||
sGroup = QT_TR_NOOP("Part");
|
||||
sMenuText = QT_TR_NOOP("Sweep...");
|
||||
sToolTipText = QT_TR_NOOP("Advanced utility to sweep");
|
||||
sToolTipText = QT_TR_NOOP("Utility to sweep");
|
||||
sWhatsThis = sToolTipText;
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Part_Sweep";
|
||||
|
|
|
@ -67,18 +67,12 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
|||
root->insertItem(item, part);
|
||||
part->setCommand("&Part");
|
||||
*part << "Part_Import" << "Part_Export" << "Separator";
|
||||
*part << prim << "Part_Primitives" << "Separator" << "Part_ShapeFromMesh"
|
||||
<< "Part_MakeSolid" << "Part_ReverseShape" << "Part_SimpleCopy"
|
||||
<< "Part_RefineShape" << "Separator"
|
||||
*part << prim << "Part_Primitives" << "Part_Builder" << "Separator"
|
||||
<< "Part_ShapeFromMesh" << "Part_MakeSolid" << "Part_ReverseShape"
|
||||
<< "Part_SimpleCopy" << "Part_RefineShape" << "Separator"
|
||||
<< "Part_Boolean" << "Part_CrossSections" << "Part_Extrude"
|
||||
<< "Part_Revolve" << "Part_Mirror" << "Part_Fillet" << "Part_Chamfer"
|
||||
<< "Part_RuledSurface" << "Part_Loft" << "Part_Sweep"
|
||||
<< "Part_Builder";
|
||||
|
||||
//Gui::MenuItem* partSimple = new Gui::MenuItem;
|
||||
//root->insertItem(item, partSimple);
|
||||
//partSimple->setCommand("&Simple");
|
||||
//*partSimple << "Part_SimpleCylinder";
|
||||
<< "Part_RuledSurface" << "Part_Loft" << "Part_Sweep";
|
||||
|
||||
return root;
|
||||
}
|
||||
|
@ -89,15 +83,18 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
|||
|
||||
Gui::ToolBarItem* solids = new Gui::ToolBarItem(root);
|
||||
solids->setCommand("Solids");
|
||||
*solids << "Part_Box" << "Part_Cylinder" << "Part_Sphere" << "Part_Cone" << "Part_Torus" << "Part_Primitives";
|
||||
*solids << "Part_Box" << "Part_Cylinder" << "Part_Sphere" << "Part_Cone"
|
||||
<< "Part_Torus" << "Part_Primitives" << "Part_Builder";
|
||||
|
||||
Gui::ToolBarItem* tool = new Gui::ToolBarItem(root);
|
||||
tool->setCommand("Part tools");
|
||||
*tool << "Part_Extrude" << "Part_Revolve" << "Part_Mirror" << "Part_Fillet" << "Part_Chamfer" << "Part_RuledSurface";
|
||||
*tool << "Part_Extrude" << "Part_Revolve" << "Part_Mirror" << "Part_Fillet"
|
||||
<< "Part_Chamfer" << "Part_RuledSurface" << "Part_Loft" << "Part_Sweep";
|
||||
|
||||
Gui::ToolBarItem* boolop = new Gui::ToolBarItem(root);
|
||||
boolop->setCommand("Boolean");
|
||||
*boolop << "Part_Boolean" << "Part_Cut" << "Part_Fuse" << "Part_Common" << "Part_Section";
|
||||
*boolop << "Part_Boolean" << "Part_Cut" << "Part_Fuse" << "Part_Common"
|
||||
<< "Part_Section" << "Part_CrossSections";
|
||||
|
||||
return root;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user