Feature tree: Insert mode for SketchBased features

This commit is contained in:
jrheinlaender
2013-04-04 16:33:56 +04:30
committed by Stefan Tröger
parent e9d8c03665
commit 9fc73e6abe
6 changed files with 170 additions and 11 deletions

View File

@@ -36,6 +36,7 @@
#include <Gui/Control.h>
#include <Mod/PartDesign/App/Body.h>
#include <Mod/PartDesign/App/Feature.h>
using namespace PartDesignGui;
@@ -60,6 +61,15 @@ Workbench::~Workbench()
{
}
void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) const
{
if (strcmp(recipient,"Tree") == 0)
{
if (Gui::Selection().countObjectsOfType(PartDesign::Feature::getClassTypeId()) > 0 )
*item << "PartDesign_MoveTip";
}
}
void Workbench::activated()
{
Gui::Workbench::activated();