switch PartDesign to Bodies
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
#include <Gui/MenuManager.h>
|
||||
#include <Gui/ToolBarManager.h>
|
||||
#include <Gui/Control.h>
|
||||
#include <Gui/Command.h>
|
||||
|
||||
using namespace PartDesignGui;
|
||||
|
||||
@@ -85,10 +84,10 @@ void Workbench::activated()
|
||||
));
|
||||
|
||||
const char* Face[] = {
|
||||
"Sketcher_NewSketch",
|
||||
"PartDesign_NewSketch",
|
||||
"PartDesign_Fillet",
|
||||
"PartDesign_Chamfer",
|
||||
"PartDesign_Draft",
|
||||
// "PartDesign_Draft",
|
||||
0};
|
||||
Watcher.push_back(new Gui::TaskView::TaskWatcherCommands(
|
||||
"SELECT Part::Feature SUBELEMENT Face COUNT 1",
|
||||
@@ -100,7 +99,7 @@ void Workbench::activated()
|
||||
const char* Faces[] = {
|
||||
"PartDesign_Fillet",
|
||||
"PartDesign_Chamfer",
|
||||
"PartDesign_Draft",
|
||||
// "PartDesign_Draft",
|
||||
0};
|
||||
Watcher.push_back(new Gui::TaskView::TaskWatcherCommands(
|
||||
"SELECT Part::Feature SUBELEMENT Face COUNT 2..",
|
||||
@@ -110,12 +109,10 @@ void Workbench::activated()
|
||||
));
|
||||
|
||||
const char* Sketch[] = {
|
||||
"Sketcher_NewSketch",
|
||||
"Sketcher_EditSketch",
|
||||
"PartDesign_NewSketch",
|
||||
"PartDesign_Pad",
|
||||
"PartDesign_Pocket",
|
||||
"PartDesign_Revolution",
|
||||
"PartDesign_Groove",
|
||||
0};
|
||||
Watcher.push_back(new Gui::TaskView::TaskWatcherCommands(
|
||||
"SELECT Sketcher::SketchObject COUNT 1",
|
||||
@@ -124,22 +121,22 @@ void Workbench::activated()
|
||||
"Part_Box"
|
||||
));
|
||||
|
||||
const char* Transformed[] = {
|
||||
"PartDesign_Mirrored",
|
||||
"PartDesign_LinearPattern",
|
||||
"PartDesign_PolarPattern",
|
||||
// "PartDesign_Scaled",
|
||||
"PartDesign_MultiTransform",
|
||||
0};
|
||||
Watcher.push_back(new Gui::TaskView::TaskWatcherCommands(
|
||||
"SELECT PartDesign::SketchBased",
|
||||
Transformed,
|
||||
"Transformation tools",
|
||||
"PartDesign_MultiTransform"
|
||||
));
|
||||
// const char* Transformed[] = {
|
||||
// "PartDesign_Mirrored",
|
||||
// "PartDesign_LinearPattern",
|
||||
// "PartDesign_PolarPattern",
|
||||
//// "PartDesign_Scaled",
|
||||
// "PartDesign_MultiTransform",
|
||||
// 0};
|
||||
// Watcher.push_back(new Gui::TaskView::TaskWatcherCommands(
|
||||
// "SELECT PartDesign::SketchBased",
|
||||
// Transformed,
|
||||
// "Transformation tools",
|
||||
// "PartDesign_MultiTransform"
|
||||
// ));
|
||||
|
||||
const char* Empty[] = {
|
||||
"Sketcher_NewSketch",
|
||||
"PartDesign_NewSketch",
|
||||
"Part_Box",
|
||||
"Part_Cylinder",
|
||||
0};
|
||||
@@ -184,22 +181,26 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
root->insertItem(item, part);
|
||||
part->setCommand("&Part Design");
|
||||
SketcherGui::addSketcherWorkbenchSketchActions( *part );
|
||||
*part << geom
|
||||
*part << "PartDesign_NewSketch"
|
||||
<< "Sketcher_LeaveSketch"
|
||||
<< "Sketcher_ViewSketch"
|
||||
<< "Sketcher_MapSketch"
|
||||
<< geom
|
||||
<< cons
|
||||
<< consaccel
|
||||
<< "Separator"
|
||||
<< "PartDesign_Pad"
|
||||
<< "PartDesign_Pocket"
|
||||
<< "PartDesign_Revolution"
|
||||
<< "PartDesign_Groove"
|
||||
// << "PartDesign_Groove"
|
||||
<< "PartDesign_Fillet"
|
||||
<< "PartDesign_Chamfer"
|
||||
<< "PartDesign_Draft"
|
||||
<< "PartDesign_Mirrored"
|
||||
<< "PartDesign_LinearPattern"
|
||||
<< "PartDesign_PolarPattern"
|
||||
<< "PartDesign_Chamfer";
|
||||
// << "PartDesign_Draft"
|
||||
// << "PartDesign_Mirrored"
|
||||
// << "PartDesign_LinearPattern"
|
||||
// << "PartDesign_PolarPattern"
|
||||
// << "PartDesign_Scaled"
|
||||
<< "PartDesign_MultiTransform";
|
||||
// << "PartDesign_MultiTransform";
|
||||
// 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.
|
||||
@@ -218,20 +219,23 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
Gui::ToolBarItem* root = StdWorkbench::setupToolBars();
|
||||
Gui::ToolBarItem* part = new Gui::ToolBarItem(root);
|
||||
part->setCommand("Part Design");
|
||||
SketcherGui::addSketcherWorkbenchSketchActions( *part );
|
||||
*part << "Separator"
|
||||
// TODO: reenable features than rebasing
|
||||
// SketcherGui::addSketcherWorkbenchSketchActions( *part );
|
||||
*part << "PartDesign_NewSketch"
|
||||
<< "Sketcher_LeaveSketch"
|
||||
<< "Separator"
|
||||
<< "PartDesign_Pad"
|
||||
<< "PartDesign_Pocket"
|
||||
<< "PartDesign_Revolution"
|
||||
<< "PartDesign_Groove"
|
||||
// << "PartDesign_Groove"
|
||||
<< "PartDesign_Fillet"
|
||||
<< "PartDesign_Chamfer"
|
||||
<< "PartDesign_Draft"
|
||||
<< "PartDesign_Mirrored"
|
||||
<< "PartDesign_LinearPattern"
|
||||
<< "PartDesign_PolarPattern"
|
||||
<< "PartDesign_Chamfer";
|
||||
// << "PartDesign_Draft"
|
||||
// << "PartDesign_Mirrored"
|
||||
// << "PartDesign_LinearPattern"
|
||||
// << "PartDesign_PolarPattern"
|
||||
// << "PartDesign_Scaled"
|
||||
<< "PartDesign_MultiTransform";
|
||||
// << "PartDesign_MultiTransform";
|
||||
|
||||
Gui::ToolBarItem* geom = new Gui::ToolBarItem(root);
|
||||
geom->setCommand("Sketcher geometries");
|
||||
|
||||
Reference in New Issue
Block a user