Remove obs property & code

This commit is contained in:
WandererFan
2016-07-20 12:44:36 -04:00
committed by wmayer
parent c8a4cf20ad
commit 48bd90004f
5 changed files with 5 additions and 24 deletions

View File

@@ -33,11 +33,11 @@ namespace TechDrawGeometry
class BaseGeom;
}
//TODO: DrawParametricTemplate class is obsolete
namespace TechDraw
{
/** Base class of all View Features in the drawing module
*/
class TechDrawExport DrawParametricTemplate: public TechDraw::DrawTemplate
{
PROPERTY_HEADER(TechDraw::DrawParametricTemplate);

View File

@@ -76,16 +76,6 @@ DrawSVGTemplate::~DrawSVGTemplate()
{
}
/*
std::string DrawSVGTemplate::getSvgIdForEditable(const std::string &editableName)
{
if (editableSvgIds.count(editableName)) {
return editableSvgIds[editableName];
} else {
return "";
}
}*/
PyObject *DrawSVGTemplate::getPyObject(void)
{
if (PythonObject.is(Py::_None())) {

View File

@@ -33,14 +33,12 @@
namespace TechDraw
{
/** Base class of all View Features in the drawing module
*/
class TechDrawExport DrawSVGTemplate: public TechDraw::DrawTemplate
{
PROPERTY_HEADER(TechDraw::DrawSVGTemplate);
public:
DrawSVGTemplate(); /// Constructor
DrawSVGTemplate();
~DrawSVGTemplate();
App::PropertyFileIncluded PageResult;
@@ -59,13 +57,6 @@ public:
return "TechDrawGui::ViewProviderTemplate";
}
/// Returns the SVG ID for editable field with name editableName
/*!
* If editableName isn't known, returns an empty string
*/
// std::string getSvgIdForEditable(const std::string &editableName);
// from base class
virtual PyObject *getPyObject(void);
virtual unsigned int getMemSize(void) const;

View File

@@ -62,7 +62,7 @@ DrawTemplate::DrawTemplate(void)
// Physical Properties inherent to every template class
ADD_PROPERTY_TYPE(Width, (0), group, (App::PropertyType)(App::Prop_None), "Width of page");
ADD_PROPERTY_TYPE(Height, (0), group, (App::PropertyType)(App::Prop_None), "Height of page");
ADD_PROPERTY_TYPE(PaperSize, (""), group, (App::PropertyType)(App::Prop_None), "Paper Format");
//ADD_PROPERTY_TYPE(PaperSize, (""), group, (App::PropertyType)(App::Prop_None), "Paper Format"); //obs?
ADD_PROPERTY_TYPE(EditableTexts, (), group, (App::PropertyType)(App::Prop_None),
"Editable strings in the template");

View File

@@ -47,7 +47,7 @@ public:
App::PropertyLength Width;
App::PropertyLength Height;
App::PropertyEnumeration Orientation;
App::PropertyString PaperSize;
//App::PropertyString PaperSize;
App::PropertyMap EditableTexts;