PCH: Path GUI

This commit is contained in:
Abdullah Tahiri
2019-05-03 14:19:10 +02:00
committed by abdullahtahiriyo
parent c03424c70e
commit 36f512abce
2 changed files with 12 additions and 11 deletions

View File

@@ -23,10 +23,9 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <TopExp_Explorer.hxx>
#endif
#include <TopExp_Explorer.hxx>
#include <Base/Console.h>
#include <App/Application.h>
#include <Gui/Application.h>
@@ -92,9 +91,9 @@ void CmdPathArea::activated(int iMsg)
std::string sub_fname = getUniqueObjectName(subname.str().c_str());
std::ostringstream cmd;
cmd << "FreeCAD.activeDocument().addObject('Part::Feature','" << sub_fname <<
"').Shape = PathCommands.findShape(FreeCAD.activeDocument()." <<
pcObj->getNameInDocument() << ".Shape,'" << name << "'";
cmd << "FreeCAD.activeDocument().addObject('Part::Feature','" << sub_fname <<
"').Shape = PathCommands.findShape(FreeCAD.activeDocument()." <<
pcObj->getNameInDocument() << ".Shape,'" << name << "'";
if(!name.compare(0,4,"Edge"))
cmd << ",'Wires'";
cmd << ')';
@@ -150,7 +149,7 @@ void CmdPathAreaWorkplane::activated(int iMsg)
std::string areaName;
std::string planeSubname;
std::string planeName;
for(Gui::SelectionObject &selObj :
getSelection().getSelectionEx(NULL, Part::Feature::getClassTypeId()))
{
@@ -311,8 +310,8 @@ void CmdPathShape::activated(int iMsg)
std::string sub_fname = getUniqueObjectName(subname.str().c_str());
std::ostringstream cmd;
cmd << "FreeCAD.activeDocument().addObject('Part::Feature','" << sub_fname <<
"').Shape = PathCommands.findShape(FreeCAD.activeDocument()." <<
cmd << "FreeCAD.activeDocument().addObject('Part::Feature','" << sub_fname <<
"').Shape = PathCommands.findShape(FreeCAD.activeDocument()." <<
pcObj->getNameInDocument() << ".Shape,'" << name << "'";
if(!name.compare(0,4,"Edge"))
cmd << ",'Wires'";

View File

@@ -45,8 +45,8 @@
#endif
#ifdef _PreComp_
// Python
// Python
#include <Python.h>
// standard
@@ -69,12 +69,14 @@
# include <windows.h>
#endif
// OCC
#include <TopExp_Explorer.hxx>
// Qt Toolkit
#ifndef __Qt4All__
# include <Gui/Qt4All.h>
#endif
#endif //_PreComp_
#endif // PATHGUI_PRECOMPILED_H