+ 0000144: Add several tools to Part module

+ fix file guard in TaskShapeBuilder.h

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5028 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
wmayer
2011-10-15 13:31:58 +00:00
parent 174b75c2f7
commit 25fa55d155
12 changed files with 689 additions and 5 deletions

View File

@@ -58,6 +58,7 @@
#include "Mirroring.h"
#include "ViewProvider.h"
#include "TaskShapeBuilder.h"
#include "TaskLoft.h"
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -903,6 +904,31 @@ bool CmdPartBuilder::isActive(void)
//--------------------------------------------------------------------------------------
DEF_STD_CMD_A(CmdPartLoft);
CmdPartLoft::CmdPartLoft()
: Command("Part_Loft")
{
sAppModule = "Part";
sGroup = QT_TR_NOOP("Part");
sMenuText = QT_TR_NOOP("Loft...");
sToolTipText = QT_TR_NOOP("Advanced utility to lofts");
sWhatsThis = sToolTipText;
sStatusTip = sToolTipText;
}
void CmdPartLoft::activated(int iMsg)
{
Gui::Control().showDialog(new PartGui::TaskLoft());
}
bool CmdPartLoft::isActive(void)
{
return (hasActiveDocument() && !Gui::Control().activeDialog());
}
//--------------------------------------------------------------------------------------
DEF_STD_CMD_A(CmdShapeInfo);
CmdShapeInfo::CmdShapeInfo()
@@ -1133,5 +1159,6 @@ void CreatePartCommands(void)
rcCmdMgr.addCommand(new CmdShapeInfo());
rcCmdMgr.addCommand(new CmdPartRuledSurface());
rcCmdMgr.addCommand(new CmdPartBuilder());
rcCmdMgr.addCommand(new CmdPartLoft());
}