Second step for implementing datum features
This commit is contained in:
committed by
Stefan Tröger
parent
90d2508efb
commit
571d5d2b7d
@@ -98,10 +98,24 @@ void Workbench::activated()
|
||||
|
||||
std::vector<Gui::TaskView::TaskWatcher*> Watcher;
|
||||
|
||||
const char* Vertex[] = {
|
||||
"PartDesign_Plane",
|
||||
"PartDesign_Line",
|
||||
"PartDesign_Point",
|
||||
0};
|
||||
Watcher.push_back(new Gui::TaskView::TaskWatcherCommands(
|
||||
"SELECT Part::Feature SUBELEMENT Vertex COUNT 1..",
|
||||
Vertex,
|
||||
"Vertex tools",
|
||||
"Part_Box"
|
||||
));
|
||||
|
||||
const char* Edge[] = {
|
||||
"PartDesign_Fillet",
|
||||
"PartDesign_Chamfer",
|
||||
"PartDesign_Plane",
|
||||
"PartDesign_Line",
|
||||
"PartDesign_Point",
|
||||
0};
|
||||
Watcher.push_back(new Gui::TaskView::TaskWatcherCommands(
|
||||
"SELECT Part::Feature SUBELEMENT Edge COUNT 1..",
|
||||
@@ -111,10 +125,13 @@ void Workbench::activated()
|
||||
));
|
||||
|
||||
const char* Face[] = {
|
||||
"PartDesign_NewSketch",
|
||||
"PartDesign_NewSketch",
|
||||
"PartDesign_Fillet",
|
||||
"PartDesign_Chamfer",
|
||||
"PartDesign_Draft",
|
||||
"PartDesign_Plane",
|
||||
"PartDesign_Line",
|
||||
"PartDesign_Point",
|
||||
0};
|
||||
Watcher.push_back(new Gui::TaskView::TaskWatcherCommands(
|
||||
"SELECT Part::Feature SUBELEMENT Face COUNT 1",
|
||||
@@ -135,6 +152,9 @@ void Workbench::activated()
|
||||
|
||||
const char* Plane1[] = {
|
||||
"PartDesign_NewSketch",
|
||||
"PartDesign_Plane",
|
||||
"PartDesign_Line",
|
||||
"PartDesign_Point",
|
||||
0};
|
||||
Watcher.push_back(new Gui::TaskView::TaskWatcherCommands(
|
||||
"SELECT App::Plane COUNT 1",
|
||||
@@ -144,6 +164,9 @@ void Workbench::activated()
|
||||
));
|
||||
const char* Plane2[] = {
|
||||
"PartDesign_NewSketch",
|
||||
"PartDesign_Plane",
|
||||
"PartDesign_Line",
|
||||
"PartDesign_Point",
|
||||
0};
|
||||
Watcher.push_back(new Gui::TaskView::TaskWatcherCommands(
|
||||
"SELECT PartDesign::Plane COUNT 1",
|
||||
@@ -152,6 +175,30 @@ void Workbench::activated()
|
||||
"Part_Box"
|
||||
));
|
||||
|
||||
const char* Line[] = {
|
||||
"PartDesign_Plane",
|
||||
"PartDesign_Line",
|
||||
"PartDesign_Point",
|
||||
0};
|
||||
Watcher.push_back(new Gui::TaskView::TaskWatcherCommands(
|
||||
"SELECT PartDesign::Line COUNT 1",
|
||||
Line,
|
||||
"Start Part",
|
||||
"Part_Box"
|
||||
));
|
||||
|
||||
const char* Point[] = {
|
||||
"PartDesign_Plane",
|
||||
"PartDesign_Line",
|
||||
"PartDesign_Point",
|
||||
0};
|
||||
Watcher.push_back(new Gui::TaskView::TaskWatcherCommands(
|
||||
"SELECT PartDesign::Point COUNT 1",
|
||||
Point,
|
||||
"Start Part",
|
||||
"Part_Box"
|
||||
));
|
||||
|
||||
const char* NoSel[] = {
|
||||
"PartDesign_Body",
|
||||
0};
|
||||
@@ -276,6 +323,10 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
<< cons
|
||||
<< consaccel
|
||||
<< "Separator"
|
||||
<< "PartDesign_Plane"
|
||||
<< "PartDesign_Line"
|
||||
<< "PartDesign_Point"
|
||||
<< "Separator"
|
||||
<< "PartDesign_Pad"
|
||||
<< "PartDesign_Pocket"
|
||||
<< "PartDesign_Revolution"
|
||||
@@ -313,6 +364,10 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
<< "Sketcher_MapSketch"
|
||||
<< "Sketcher_LeaveSketch"
|
||||
<< "Separator"
|
||||
<< "PartDesign_Plane"
|
||||
<< "PartDesign_Line"
|
||||
<< "PartDesign_Point"
|
||||
<< "Separator"
|
||||
<< "PartDesign_Pad"
|
||||
<< "PartDesign_Pocket"
|
||||
<< "PartDesign_Revolution"
|
||||
|
||||
Reference in New Issue
Block a user