[TD]implement view stacking

This commit is contained in:
wandererfan
2022-09-07 11:03:14 -04:00
committed by WandererFan
parent d1d38b779d
commit d8be4398e3
15 changed files with 3339 additions and 0 deletions

View File

@@ -153,6 +153,14 @@ Gui::MenuItem* Workbench::setupMenuBar() const
*annotations << "TechDraw_RichTextAnnotation";
*annotations << "TechDraw_Balloon";
// stacking
Gui::MenuItem* stacking = new Gui::MenuItem;
stacking->setCommand("Stacking");
*stacking << "TechDraw_StackTop";
*stacking << "TechDraw_StackBottom";
*stacking << "TechDraw_StackUp";
*stacking << "TechDraw_StackDown";
// lines
Gui::MenuItem* lines = new Gui::MenuItem;
lines->setCommand("Add Lines");
@@ -192,6 +200,8 @@ Gui::MenuItem* Workbench::setupMenuBar() const
*draw << "Separator";
*draw << "TechDraw_MoveView";
*draw << "TechDraw_ShareView";
*draw << "Separator";
*draw << stacking;
*draw << dimensions;
*draw << toolattrib;
*draw << toolcenter;
@@ -249,6 +259,10 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
*clips << "TechDraw_ClipGroupAdd";
*clips << "TechDraw_ClipGroupRemove";
Gui::ToolBarItem *stacking = new Gui::ToolBarItem(root);
stacking->setCommand("TechDraw Stacking");
*stacking << "TechDraw_StackGroup";
Gui::ToolBarItem *dims = new Gui::ToolBarItem(root);
dims->setCommand("TechDraw Dimensions");
*dims << "TechDraw_LengthDimension";
@@ -391,6 +405,10 @@ Gui::ToolBarItem* Workbench::setupCommandBars() const
*clips << "TechDraw_ClipGroupAdd";
*clips << "TechDraw_ClipGroupRemove";
Gui::ToolBarItem *stacking = new Gui::ToolBarItem(root);
stacking->setCommand("TechDraw Stacking");
*stacking << "TechDraw_StackGroup";
Gui::ToolBarItem *dims = new Gui::ToolBarItem(root);
dims->setCommand("TechDraw Dimensions");
*dims << "TechDraw_LengthDimension";