Skip to content

Commit

Permalink
update tooltips, menu order
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed Jan 30, 2017
1 parent 299ac94 commit 42bb647
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
9 changes: 4 additions & 5 deletions src/Mod/TechDraw/Gui/CommandDecorate.cpp
Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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();
Expand Down
12 changes: 3 additions & 9 deletions src/Mod/TechDraw/Gui/Workbench.cpp
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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";

Expand Down

0 comments on commit 42bb647

Please sign in to comment.