remove obsolete class ViewProviderPythonFeaturePy

This commit is contained in:
wmayer 2016-11-09 12:15:15 +01:00
parent ebb174cd02
commit 07a2182674
6 changed files with 1 additions and 79 deletions

View File

@ -119,7 +119,6 @@ generate_from_xml(DocumentPy)
generate_from_xml(PythonWorkbenchPy)
generate_from_xml(ViewProviderPy)
generate_from_xml(ViewProviderDocumentObjectPy)
generate_from_xml(ViewProviderPythonFeaturePy)
generate_from_xml(WorkbenchPy)
generate_from_xml(SelectionObjectPy)
@ -128,7 +127,6 @@ generate_from_py(FreeCADGuiInit GuiInitScript.h)
# The XML files
SET(FreeCADGui_XML_SRCS
ViewProviderDocumentObjectPy.xml
ViewProviderPythonFeaturePy.xml
ViewProviderPy.xml
PythonWorkbenchPy.xml
WorkbenchPy.xml
@ -829,7 +827,6 @@ SET(Viewprovider_CPP_SRCS
ViewProviderDocumentObject.cpp
ViewProviderDocumentObjectGroup.cpp
ViewProviderDocumentObjectPyImp.cpp
ViewProviderPythonFeaturePyImp.cpp
ViewProviderExtern.cpp
ViewProviderFeature.cpp
ViewProviderGeometryObject.cpp

View File

@ -367,9 +367,6 @@ private:
int viewOverrideMode;
std::string _sCurrentMode;
std::map<std::string, int> _sDisplayMaskModes;
// friends
friend class ViewProviderPythonFeaturePy;
};
} // namespace Gui

View File

@ -52,7 +52,6 @@
#endif
#include "ViewProviderPythonFeature.h"
#include "ViewProviderPythonFeaturePy.h"
#include "Tree.h"
#include "Window.h"
#include "Application.h"

View File

@ -25,7 +25,6 @@
#define GUI_VIEWPROVIDERPYTHONFEATURE_H
#include <Gui/ViewProviderGeometryObject.h>
#include <Gui/ViewProviderPythonFeaturePy.h>
#include <App/PropertyPythonObject.h>
#include <App/DynamicProperty.h>
@ -358,10 +357,7 @@ public:
//@}
PyObject* getPyObject() {
if (!ViewProviderT::pyViewObject)
ViewProviderT::pyViewObject = new ViewProviderPythonFeaturePy(this);
ViewProviderT::pyViewObject->IncRef();
return ViewProviderT::pyViewObject;
return ViewProviderT::getPyObject();
}
protected:

View File

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
<PythonExport
Father="ViewProviderDocumentObjectPy"
FatherInclude="Gui/ViewProviderDocumentObjectPy.h"
Name="ViewProviderPythonFeaturePy"
Twin="ViewProviderPythonFeature"
TwinPointer="ViewProviderDocumentObject"
Include="Gui/ViewProviderPythonFeature.h"
Namespace="Gui"
FatherNamespace="Gui">
<Documentation>
<Author Licence="LGPL" Name="Werner Mayer" EMail="wmayer@users.sourceforge.net" />
<UserDocu>This is the view provider class for Python features</UserDocu>
</Documentation>
</PythonExport>
</GenerateModel>

View File

@ -1,50 +0,0 @@
/***************************************************************************
* Copyright (c) 2009 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#endif
#include "Gui/ViewProviderPythonFeature.h"
#include <Base/Interpreter.h>
// inclusion of the generated files (generated out of ViewProviderPythonFeaturePy.xml)
#include "ViewProviderPythonFeaturePy.h"
#include "ViewProviderPythonFeaturePy.cpp"
using namespace Gui;
// returns a string which represents the object e.g. when printed in python
std::string ViewProviderPythonFeaturePy::representation(void) const
{
return "<ViewProviderPythonFeature object>";
}
PyObject *ViewProviderPythonFeaturePy::getCustomAttributes(const char* attr) const
{
return 0;
}
int ViewProviderPythonFeaturePy::setCustomAttributes(const char* attr, PyObject *value)
{
return 0;
}