TD renaming tools, part 2/2
as discussed in https://forum.freecadweb.org/viewtopic.php?p=344899#p344800 we need a more consistent naming for the Wiki
This commit is contained in:
@@ -47,19 +47,44 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
{
|
||||
Gui::MenuItem* root = StdWorkbench::setupMenuBar();
|
||||
Gui::MenuItem* item = root->findItem("&Windows");
|
||||
|
||||
Gui::MenuItem* draw = new Gui::MenuItem;
|
||||
root->insertItem(item, draw);
|
||||
draw->setCommand("TechDraw");
|
||||
|
||||
// dimensions
|
||||
Gui::MenuItem* dimensions = new Gui::MenuItem;
|
||||
dimensions->setCommand("Dimensions");
|
||||
*dimensions << "TechDraw_LengthDimension" << "TechDraw_DistanceHorizontalDimension" << "TechDraw_DistanceVerticalDimension"
|
||||
<< "TechDraw_RadiusDimension" << "TechDraw_DiameterDimension" << "TechDraw_AngleDimension"
|
||||
<< "TechDraw_HorizontalExtentDimension" << "TechDraw_VerticalExtentDimension" << "TechDraw_LinkDimension";
|
||||
|
||||
// annotations
|
||||
Gui::MenuItem* annotations = new Gui::MenuItem;
|
||||
annotations->setCommand("Annotations");
|
||||
*annotations << "TechDraw_Annotation" << "TechDraw_RichTextAnnotation" << "TechDraw_Balloon";
|
||||
|
||||
// lines
|
||||
Gui::MenuItem* lines = new Gui::MenuItem;
|
||||
lines->setCommand("Add Lines");
|
||||
*lines << "TechDraw_LeaderLine" << "TechDraw_FaceCenterLine"
|
||||
<< "TechDraw_2LineCenterLine" << "TechDraw_2PointCenterLine";
|
||||
|
||||
// vertices
|
||||
Gui::MenuItem* vertices = new Gui::MenuItem;
|
||||
vertices->setCommand("Add Vertices");
|
||||
*vertices << "TechDraw_CosmeticVertex" << "TechDraw_Midpoints"
|
||||
<< "TechDraw_Quadrant";
|
||||
|
||||
// main menu
|
||||
draw->setCommand("TechDraw");
|
||||
*draw << "TechDraw_PageDefault";
|
||||
*draw << "TechDraw_PageTemplate";
|
||||
*draw << "TechDraw_Redraw";
|
||||
*draw << "TechDraw_RedrawPage";
|
||||
*draw << "Separator";
|
||||
*draw << "TechDraw_View";
|
||||
*draw << "TechDraw_ActiveView";
|
||||
*draw << "TechDraw_ProjectionGroup";
|
||||
*draw << "TechDraw_ViewSection";
|
||||
*draw << "TechDraw_ViewDetail";
|
||||
*draw << "TechDraw_SectionView";
|
||||
*draw << "TechDraw_DetailView";
|
||||
*draw << "Separator";
|
||||
*draw << "TechDraw_DraftView";
|
||||
*draw << "TechDraw_ArchView";
|
||||
@@ -69,35 +94,20 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
*draw << "TechDraw_ClipGroupAdd";
|
||||
*draw << "TechDraw_ClipGroupRemove";
|
||||
*draw << "Separator";
|
||||
*draw << "TechDraw_NewLengthDimension";
|
||||
*draw << "TechDraw_NewDistanceXDimension";
|
||||
*draw << "TechDraw_NewDistanceYDimension";
|
||||
*draw << "TechDraw_NewRadiusDimension";
|
||||
*draw << "TechDraw_NewDiameterDimension";
|
||||
*draw << "TechDraw_NewAngleDimension";
|
||||
*draw << "TechDraw_HorizontalExtent";
|
||||
*draw << "TechDraw_VerticalExtent";
|
||||
*draw << "TechDraw_LinkDimension";
|
||||
*draw << "TechDraw_Balloon";
|
||||
*draw << dimensions;
|
||||
*draw << "Separator";
|
||||
*draw << "TechDraw_ExportPageSVG";
|
||||
*draw << "TechDraw_ExportPageDXF";
|
||||
*draw << "Separator";
|
||||
*draw << "TechDraw_NewHatch";
|
||||
*draw << "TechDraw_NewGeomHatch";
|
||||
*draw << "TechDraw_Hatch";
|
||||
*draw << "TechDraw_GeometricHatch";
|
||||
*draw << "TechDraw_Symbol";
|
||||
*draw << "TechDraw_Image";
|
||||
*draw << "TechDraw_ToggleFrame";
|
||||
*draw << "Separator";
|
||||
*draw << "TechDraw_Annotation";
|
||||
*draw << "TechDraw_LeaderLine";
|
||||
*draw << "TechDraw_RichAnno";
|
||||
*draw << "TechDraw_CosmeticVertex";
|
||||
*draw << "TechDraw_Midpoints";
|
||||
*draw << "TechDraw_Quadrant";
|
||||
*draw << "TechDraw_FaceCenterLine";
|
||||
*draw << "TechDraw_2LineCenterLine";
|
||||
*draw << "TechDraw_2PointCenterLine";
|
||||
*draw << annotations;
|
||||
*draw << lines;
|
||||
*draw << vertices;
|
||||
*draw << "TechDraw_CosmeticEraser";
|
||||
*draw << "TechDraw_DecorateLine";
|
||||
*draw << "TechDraw_ShowAll";
|
||||
@@ -112,15 +122,15 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
pages->setCommand("TechDraw Pages");
|
||||
*pages << "TechDraw_PageDefault";
|
||||
*pages << "TechDraw_PageTemplate";
|
||||
*pages << "TechDraw_Redraw";
|
||||
*pages << "TechDraw_RedrawPage";
|
||||
|
||||
Gui::ToolBarItem *views = new Gui::ToolBarItem(root);
|
||||
views->setCommand("TechDraw Views");
|
||||
*views << "TechDraw_View";
|
||||
*views << "TechDraw_ActiveView";
|
||||
*views << "TechDraw_ProjectionGroup";
|
||||
*views << "TechDraw_ViewSection";
|
||||
*views << "TechDraw_ViewDetail";
|
||||
*views << "TechDraw_SectionView";
|
||||
*views << "TechDraw_DetailView";
|
||||
*views << "TechDraw_DraftView";
|
||||
*views << "TechDraw_ArchView";
|
||||
*views << "TechDraw_SpreadsheetView";
|
||||
@@ -133,19 +143,19 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
|
||||
Gui::ToolBarItem *dims = new Gui::ToolBarItem(root);
|
||||
dims->setCommand("TechDraw Dimensions");
|
||||
*dims << "TechDraw_NewLengthDimension";
|
||||
*dims << "TechDraw_NewDistanceXDimension";
|
||||
*dims << "TechDraw_NewDistanceYDimension";
|
||||
*dims << "TechDraw_NewRadiusDimension";
|
||||
*dims << "TechDraw_NewDiameterDimension";
|
||||
*dims << "TechDraw_NewAngleDimension";
|
||||
*dims << "TechDraw_NewAngle3PtDimension";
|
||||
*dims << "TechDraw_ExtentGrp";
|
||||
// *dims << "TechDraw_HorizontalExtent";
|
||||
// *dims << "TechDraw_VerticalExtent";
|
||||
*dims << "TechDraw_LengthDimension";
|
||||
*dims << "TechDraw_DistanceHorizontalDimension";
|
||||
*dims << "TechDraw_DistanceVerticalDimension";
|
||||
*dims << "TechDraw_RadiusDimension";
|
||||
*dims << "TechDraw_DiameterDimension";
|
||||
*dims << "TechDraw_AngleDimension";
|
||||
*dims << "TechDraw_3PtAngleDimension";
|
||||
*dims << "TechDraw_ExtentGroup";
|
||||
// *dims << "TechDraw_HorizontalExtentDimension";
|
||||
// *dims << "TechDraw_VerticalExtentDimension";
|
||||
*dims << "TechDraw_LinkDimension";
|
||||
*dims << "TechDraw_Balloon";
|
||||
// *dims << "TechDraw_NewDimension"
|
||||
// *dims << "TechDraw_Dimension"
|
||||
|
||||
Gui::ToolBarItem *file = new Gui::ToolBarItem(root);
|
||||
file->setCommand("TechDraw File Access");
|
||||
@@ -154,8 +164,8 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
|
||||
Gui::ToolBarItem *decor = new Gui::ToolBarItem(root);
|
||||
decor->setCommand("TechDraw Decoration");
|
||||
*decor << "TechDraw_NewHatch";
|
||||
*decor << "TechDraw_NewGeomHatch";
|
||||
*decor << "TechDraw_Hatch";
|
||||
*decor << "TechDraw_GeometricHatch";
|
||||
*decor << "TechDraw_Symbol";
|
||||
*decor << "TechDraw_Image";
|
||||
*decor << "TechDraw_ToggleFrame";
|
||||
@@ -164,9 +174,9 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
anno->setCommand("TechDraw Annotation");
|
||||
*anno << "TechDraw_Annotation";
|
||||
*anno << "TechDraw_LeaderLine";
|
||||
*anno << "TechDraw_RichAnno";
|
||||
*anno << "TechDraw_CosmeticVertexGrp";
|
||||
*anno << "TechDraw_CenterLineGrp";
|
||||
*anno << "TechDraw_RichTextAnnotation";
|
||||
*anno << "TechDraw_CosmeticVertexGroup";
|
||||
*anno << "TechDraw_CenterLineGroup";
|
||||
// *anno << "TechDraw_FaceCenterLine";
|
||||
// *anno << "TechDraw_2LineCenterLine";
|
||||
// *anno << "TechDraw_2PointCenterLine";
|
||||
@@ -184,7 +194,7 @@ Gui::ToolBarItem* Workbench::setupCommandBars() const
|
||||
pages->setCommand("TechDraw Pages");
|
||||
*pages << "TechDraw_PageDefault";
|
||||
*pages << "TechDraw_PageTemplate";
|
||||
*pages << "TechDraw_Redraw";
|
||||
*pages << "TechDraw_RedrawPage";
|
||||
|
||||
Gui::ToolBarItem *views = new Gui::ToolBarItem(root);
|
||||
views->setCommand("Views");
|
||||
@@ -192,8 +202,8 @@ Gui::ToolBarItem* Workbench::setupCommandBars() const
|
||||
*views << "TechDraw_ActiveView";
|
||||
// *views << "TechDraw_NewMulti"; //deprecated
|
||||
*views << "TechDraw_ProjectionGroup";
|
||||
*views << "TechDraw_ViewSection";
|
||||
*views << "TechDraw_ViewDetail";
|
||||
*views << "TechDraw_SectionView";
|
||||
*views << "TechDraw_DetailView";
|
||||
*views << "TechDraw_DraftView";
|
||||
*views << "TechDraw_SpreadsheetView";
|
||||
|
||||
@@ -205,19 +215,19 @@ Gui::ToolBarItem* Workbench::setupCommandBars() const
|
||||
|
||||
Gui::ToolBarItem *dims = new Gui::ToolBarItem(root);
|
||||
dims->setCommand("TechDraw Dimensions");
|
||||
*dims << "TechDraw_NewLengthDimension";
|
||||
*dims << "TechDraw_NewDistanceXDimension";
|
||||
*dims << "TechDraw_NewDistanceYDimension";
|
||||
*dims << "TechDraw_NewRadiusDimension";
|
||||
*dims << "TechDraw_NewDiameterDimension";
|
||||
*dims << "TechDraw_NewAngleDimension";
|
||||
*dims << "TechDraw_NewAngle3PtDimension";
|
||||
*dims << "TechDraw_ExtentGrp";
|
||||
// *dims << "TechDraw_HorizontalExtent";
|
||||
// *dims << "TechDraw_VerticalExtent";
|
||||
*dims << "TechDraw_LengthDimension";
|
||||
*dims << "TechDraw_DistanceHorizontalDimension";
|
||||
*dims << "TechDraw_DistanceVerticalDimension";
|
||||
*dims << "TechDraw_RadiusDimension";
|
||||
*dims << "TechDraw_DiameterDimension";
|
||||
*dims << "TechDraw_AngleDimension";
|
||||
*dims << "TechDraw_3PtAngleDimension";
|
||||
*dims << "TechDraw_ExtentGroup";
|
||||
// *dims << "TechDraw_HorizontalExtentDimension";
|
||||
// *dims << "TechDraw_VerticalExtentDimension";
|
||||
*dims << "TechDraw_LinkDimension";
|
||||
*dims << "TechDraw_Balloon";
|
||||
// *dims << "TechDraw_NewDimension";
|
||||
// *dims << "TechDraw_Dimension";
|
||||
|
||||
Gui::ToolBarItem *file = new Gui::ToolBarItem(root);
|
||||
file->setCommand("TechDraw File Access");
|
||||
@@ -226,8 +236,8 @@ Gui::ToolBarItem* Workbench::setupCommandBars() const
|
||||
|
||||
Gui::ToolBarItem *decor = new Gui::ToolBarItem(root);
|
||||
decor->setCommand("TechDraw Decoration");
|
||||
*decor << "TechDraw_NewHatch";
|
||||
*decor << "TechDraw_NewGeomHatch";
|
||||
*decor << "TechDraw_Hatch";
|
||||
*decor << "TechDraw_GeometricHatch";
|
||||
*decor << "TechDraw_Symbol";
|
||||
*decor << "TechDraw_Image";
|
||||
*decor << "TechDraw_ToggleFrame";
|
||||
@@ -236,9 +246,9 @@ Gui::ToolBarItem* Workbench::setupCommandBars() const
|
||||
anno->setCommand("TechDraw Annotation");
|
||||
*anno << "TechDraw_Annotation";
|
||||
*anno << "TechDraw_LeaderLine";
|
||||
*anno << "TechDraw_RichAnno";
|
||||
*anno << "TechDraw_CosmeticVertexGrp";
|
||||
*anno << "TechDraw_CenterLineGrp";
|
||||
*anno << "TechDraw_RichTextAnnotation";
|
||||
*anno << "TechDraw_CosmeticVertexGroup";
|
||||
*anno << "TechDraw_CenterLineGroup";
|
||||
// *anno << "TechDraw_FaceCenterLine";
|
||||
// *anno << "TechDraw_2LineCenterLine";
|
||||
// *anno << "TechDraw_2PointCenterLine";
|
||||
|
||||
Reference in New Issue
Block a user