From 42bb64736df95a72207dd482c62b5fdf041a865a Mon Sep 17 00:00:00 2001 From: WandererFan Date: Wed, 25 Jan 2017 17:47:07 -0500 Subject: [PATCH] update tooltips, menu order --- src/Mod/TechDraw/Gui/CommandDecorate.cpp | 9 ++++----- src/Mod/TechDraw/Gui/Workbench.cpp | 12 +++--------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/Mod/TechDraw/Gui/CommandDecorate.cpp b/src/Mod/TechDraw/Gui/CommandDecorate.cpp index 6f4b6473c..cf217b7e5 100644 --- a/src/Mod/TechDraw/Gui/CommandDecorate.cpp +++ b/src/Mod/TechDraw/Gui/CommandDecorate.cpp @@ -76,8 +76,8 @@ CmdTechDrawNewHatch::CmdTechDrawNewHatch() { sAppModule = "TechDraw"; sGroup = QT_TR_NOOP("TechDraw"); - sMenuText = QT_TR_NOOP("Insert a hatched area into a view"); - sToolTipText = QT_TR_NOOP("Insert a hatched area into a view"); + sMenuText = QT_TR_NOOP("Hatch a Face using image file"); + sToolTipText = QT_TR_NOOP("Hatch a Face using image file"); sWhatsThis = "TechDraw_NewHatch"; sStatusTip = sToolTipText; sPixmap = "actions/techdraw-hatch"; @@ -138,8 +138,8 @@ CmdTechDrawNewCrosshatch::CmdTechDrawNewCrosshatch() { sAppModule = "TechDraw"; sGroup = QT_TR_NOOP("TechDraw"); - sMenuText = QT_TR_NOOP("Insert a crosshatched area into a view"); - sToolTipText = QT_TR_NOOP("Insert a crosshatched area into a view"); + sMenuText = QT_TR_NOOP("Apply geometric hatch to a Face"); + sToolTipText = QT_TR_NOOP("Apply geometric hatch to a Face"); sWhatsThis = "TechDraw_NewCrosshatch"; sStatusTip = sToolTipText; sPixmap = "actions/techdraw-crosshatch"; @@ -173,7 +173,6 @@ void CmdTechDrawNewCrosshatch::activated(int iMsg) crosshatch->Source.setValue(objFeat, subNames); commitCommand(); - Base::Console().Message("TRACE - cmd::newCrossHatch - complete\n"); //Horrible hack to force Tree update ??still required?? double x = objFeat->X.getValue(); diff --git a/src/Mod/TechDraw/Gui/Workbench.cpp b/src/Mod/TechDraw/Gui/Workbench.cpp index 816420245..6b2ab1690 100644 --- a/src/Mod/TechDraw/Gui/Workbench.cpp +++ b/src/Mod/TechDraw/Gui/Workbench.cpp @@ -78,12 +78,6 @@ Gui::MenuItem* Workbench::setupMenuBar() const *draw << "TechDraw_ArchView"; *draw << "TechDraw_ExportPage"; *draw << "TechDraw_Image"; - //*draw << "TechDraw_Open"; - //*part << "TechDraw_NewA3Landscape"; - //*part << "TechDraw_OpenBrowserView"; - //*part << "TechDraw_DraftView"; - //*draw << "Separator"; - //*draw << "TechDraw_ProjectShape"; return root; } @@ -128,12 +122,12 @@ Gui::ToolBarItem* Workbench::setupToolBars() const Gui::ToolBarItem *file = new Gui::ToolBarItem(root); file->setCommand("TechDraw File Access"); *file << "TechDraw_ExportPage"; - *file << "TechDraw_Symbol"; Gui::ToolBarItem *decor = new Gui::ToolBarItem(root); decor->setCommand("TechDraw Decoration"); *decor << "TechDraw_NewHatch"; *decor << "TechDraw_NewCrosshatch"; + *decor << "TechDraw_Symbol"; *decor << "TechDraw_Image"; *decor << "TechDraw_ToggleFrame"; return root; @@ -178,12 +172,12 @@ Gui::ToolBarItem* Workbench::setupCommandBars() const Gui::ToolBarItem *file = new Gui::ToolBarItem(root); file->setCommand("TechDraw File Access"); *file << "TechDraw_ExportPage"; - *file << "TechDraw_Symbol"; - + Gui::ToolBarItem *decor = new Gui::ToolBarItem(root); decor->setCommand("TechDraw Decoration"); *decor << "TechDraw_NewHatch"; *decor << "TechDraw_NewCrosshatch"; + *decor << "TechDraw_Symbol"; *decor << "TechDraw_Image"; *decor << "TechDraw_ToggleFrame";