Allow booleans of bodies in PartDesign

This commit is contained in:
jrheinlaender
2013-05-22 20:47:31 +04:30
committed by Stefan Tröger
parent ed2657380c
commit 638cfd2682
13 changed files with 1020 additions and 2 deletions

View File

@@ -342,6 +342,16 @@ void Workbench::activated()
"Part_Box"
));
const char* Body2[] = {
"PartDesign_Boolean",
0};
Watcher.push_back(new Gui::TaskView::TaskWatcherCommands(
"SELECT PartDesign::Body COUNT 1..",
Body2,
"Start Boolean",
"Part_Box"
));
const char* Plane1[] = {
"PartDesign_NewSketch",
"PartDesign_Plane",
@@ -520,7 +530,10 @@ Gui::MenuItem* Workbench::setupMenuBar() const
<< "PartDesign_LinearPattern"
<< "PartDesign_PolarPattern"
// << "PartDesign_Scaled"
<< "PartDesign_MultiTransform";
<< "PartDesign_MultiTransform"
<< "Separator"
<< "PartDesign_Boolean";
// 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
// not deployed either hence the check for the existence of the command.
@@ -566,7 +579,9 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
<< "PartDesign_LinearPattern"
<< "PartDesign_PolarPattern"
// << "PartDesign_Scaled"
<< "PartDesign_MultiTransform";
<< "PartDesign_MultiTransform"
<< "Separator"
<< "PartDesign_Boolean";
Gui::ToolBarItem* geom = new Gui::ToolBarItem(root);
geom->setCommand("Sketcher geometries");