[TechDraw] Remove uneeded redefinitions of inherited functions
This commit is contained in:
committed by
WandererFan
parent
42fbc0f58d
commit
23966513c7
@@ -47,25 +47,6 @@ ViewProviderAnnotation::~ViewProviderAnnotation()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderAnnotation::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
// call parent attach method
|
||||
ViewProviderDrawingView::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderAnnotation::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderDrawingView::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderAnnotation::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList = ViewProviderDrawingView::getDisplayModes();
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
void ViewProviderAnnotation::updateData(const App::Property* prop)
|
||||
{
|
||||
if (prop == &(getViewObject()->Text) ||
|
||||
|
||||
@@ -42,12 +42,7 @@ public:
|
||||
/// destructor
|
||||
virtual ~ViewProviderAnnotation();
|
||||
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual void setDisplayMode(const char* ModeName);
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const;
|
||||
virtual void updateData(const App::Property*);
|
||||
|
||||
virtual TechDraw::DrawViewAnnotation* getViewObject() const;
|
||||
|
||||
@@ -70,25 +70,6 @@ ViewProviderBalloon::~ViewProviderBalloon()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderBalloon::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
// call parent attach method
|
||||
ViewProviderDrawingView::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderBalloon::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderDrawingView::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderBalloon::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList = ViewProviderDrawingView::getDisplayModes();
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
bool ViewProviderBalloon::doubleClicked(void)
|
||||
{
|
||||
startDefaultEditMode();
|
||||
|
||||
@@ -50,11 +50,7 @@ public:
|
||||
App::PropertyBool LineVisible;
|
||||
App::PropertyColor Color;
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual void setDisplayMode(const char* ModeName);
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const;
|
||||
virtual void updateData(const App::Property*);
|
||||
virtual void onChanged(const App::Property* p);
|
||||
virtual void setupContextMenu(QMenu*, QObject*, const char*);
|
||||
|
||||
@@ -50,11 +50,6 @@ QIcon ViewProviderCosmeticExtension::extensionMergeGreyableOverlayIcons(const QI
|
||||
return mergedicon;
|
||||
}
|
||||
|
||||
void ViewProviderCosmeticExtension::extensionUpdateData(const App::Property* prop)
|
||||
{
|
||||
Gui::ViewProviderExtension::extensionUpdateData(prop);
|
||||
}
|
||||
|
||||
namespace Gui {
|
||||
EXTENSION_PROPERTY_SOURCE_TEMPLATE(TechDrawGui::ViewProviderCosmeticExtensionPython, TechDrawGui::ViewProviderCosmeticExtension)
|
||||
|
||||
|
||||
@@ -38,9 +38,6 @@ public:
|
||||
virtual ~ViewProviderCosmeticExtension() = default;
|
||||
|
||||
virtual QIcon extensionMergeGreyableOverlayIcons(const QIcon & orig) const override;
|
||||
|
||||
virtual void extensionUpdateData(const App::Property*) override;
|
||||
|
||||
};
|
||||
|
||||
typedef Gui::ViewProviderExtensionPythonT<TechDrawGui::ViewProviderCosmeticExtension> ViewProviderCosmeticExtensionPython;
|
||||
|
||||
@@ -102,19 +102,6 @@ void ViewProviderDimension::attach(App::DocumentObject *pcFeat)
|
||||
}
|
||||
}
|
||||
|
||||
void ViewProviderDimension::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderDrawingView::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderDimension::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList = ViewProviderDrawingView::getDisplayModes();
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
bool ViewProviderDimension::doubleClicked(void)
|
||||
{
|
||||
startDefaultEditMode();
|
||||
|
||||
@@ -68,10 +68,7 @@ public:
|
||||
App::PropertyFloat GapFactorASME;
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual void setDisplayMode(const char* ModeName);
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const;
|
||||
virtual void updateData(const App::Property*);
|
||||
virtual void onChanged(const App::Property* p);
|
||||
virtual void setupContextMenu(QMenu*, QObject*, const char*);
|
||||
|
||||
@@ -84,17 +84,6 @@ void ViewProviderDrawingView::attach(App::DocumentObject *pcFeat)
|
||||
}
|
||||
}
|
||||
|
||||
void ViewProviderDrawingView::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderDocumentObject::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderDrawingView::getDisplayModes(void) const
|
||||
{
|
||||
std::vector<std::string> StrList = ViewProviderDocumentObject::getDisplayModes();
|
||||
return StrList;
|
||||
}
|
||||
|
||||
void ViewProviderDrawingView::onChanged(const App::Property *prop)
|
||||
{
|
||||
App::DocumentObject* obj = getObject();
|
||||
|
||||
@@ -53,10 +53,7 @@ public:
|
||||
App::PropertyBool KeepLabel;
|
||||
|
||||
virtual void attach(App::DocumentObject *) override;
|
||||
virtual void setDisplayMode(const char* ModeName) override;
|
||||
virtual bool useNewSelectionModel(void) const override {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const override;
|
||||
/// Hide the object in the view
|
||||
virtual void hide(void) override;
|
||||
/// Show the object in the view
|
||||
|
||||
@@ -70,25 +70,6 @@ ViewProviderGeomHatch::~ViewProviderGeomHatch()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderGeomHatch::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
// call parent attach method
|
||||
ViewProviderDocumentObject::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderGeomHatch::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderDocumentObject::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderGeomHatch::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList = ViewProviderDocumentObject::getDisplayModes();
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
bool ViewProviderGeomHatch::setEdit(int ModNum)
|
||||
{
|
||||
Q_UNUSED(ModNum);
|
||||
|
||||
@@ -51,15 +51,12 @@ public:
|
||||
App::PropertyFloat WeightPattern;
|
||||
App::PropertyColor ColorPattern;
|
||||
|
||||
virtual void attach(App::DocumentObject *) override;
|
||||
virtual void updateData(const App::Property*) override;
|
||||
virtual void onChanged(const App::Property *prop) override;
|
||||
virtual bool setEdit(int ModNum) override;
|
||||
virtual void unsetEdit(int ModNum) override;
|
||||
virtual bool doubleClicked(void) override;
|
||||
virtual bool useNewSelectionModel(void) const override {return false;}
|
||||
virtual void setDisplayMode(const char* ModeName) override;
|
||||
virtual std::vector<std::string> getDisplayModes(void) const override;
|
||||
void updateGraphic(void);
|
||||
void getParameters(void);
|
||||
virtual bool canDelete(App::DocumentObject* obj) const override;
|
||||
|
||||
@@ -71,25 +71,6 @@ ViewProviderHatch::~ViewProviderHatch()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderHatch::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
// call parent attach method
|
||||
ViewProviderDocumentObject::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderHatch::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderDocumentObject::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderHatch::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList = ViewProviderDocumentObject::getDisplayModes();
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
bool ViewProviderHatch::setEdit(int ModNum)
|
||||
{
|
||||
if (ModNum != ViewProvider::Default) {
|
||||
@@ -134,11 +115,6 @@ void ViewProviderHatch::onChanged(const App::Property* prop)
|
||||
}
|
||||
}
|
||||
|
||||
void ViewProviderHatch::updateData(const App::Property* prop)
|
||||
{
|
||||
Gui::ViewProviderDocumentObject::updateData(prop);
|
||||
}
|
||||
|
||||
TechDraw::DrawHatch* ViewProviderHatch::getViewObject() const
|
||||
{
|
||||
return dynamic_cast<TechDraw::DrawHatch*>(pcObject);
|
||||
|
||||
@@ -49,16 +49,11 @@ public:
|
||||
App::PropertyColor HatchColor;
|
||||
App::PropertyFloatConstraint HatchScale;
|
||||
|
||||
virtual void attach(App::DocumentObject *) override;
|
||||
virtual void setDisplayMode(const char* ModeName) override;
|
||||
virtual bool useNewSelectionModel(void) const override {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const override;
|
||||
virtual void onChanged(const App::Property* prop) override;
|
||||
virtual bool setEdit(int ModNum) override;
|
||||
virtual void unsetEdit(int ModNum) override;
|
||||
virtual bool doubleClicked(void) override;
|
||||
virtual void updateData(const App::Property*) override;
|
||||
virtual bool canDelete(App::DocumentObject* obj) const override;
|
||||
|
||||
TechDraw::DrawHatch* getViewObject() const;
|
||||
|
||||
@@ -49,25 +49,6 @@ ViewProviderImage::~ViewProviderImage()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderImage::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
// call parent attach method
|
||||
ViewProviderDrawingView::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderImage::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderDrawingView::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderImage::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList = ViewProviderDrawingView::getDisplayModes();
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
void ViewProviderImage::updateData(const App::Property* prop)
|
||||
{
|
||||
if (prop == &(getViewObject()->Width) ||
|
||||
|
||||
@@ -43,11 +43,8 @@ public:
|
||||
|
||||
App::PropertyBool Crop; //crop to feature width x height
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual void setDisplayMode(const char* ModeName);
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const;
|
||||
virtual void updateData(const App::Property*);
|
||||
virtual void onChanged(const App::Property *prop);
|
||||
|
||||
|
||||
@@ -77,11 +77,6 @@ ViewProviderLeader::~ViewProviderLeader()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderLeader::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
ViewProviderDrawingView::attach(pcFeat);
|
||||
}
|
||||
|
||||
bool ViewProviderLeader::setEdit(int ModNum)
|
||||
{
|
||||
// Base::Console().Message("VPL::setEdit(%d)\n",ModNum);
|
||||
|
||||
@@ -52,7 +52,6 @@ public:
|
||||
App::PropertyEnumeration LineStyle;
|
||||
App::PropertyColor Color;
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
/* virtual void setDisplayMode(const char* ModeName);*/
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
/* virtual std::vector<std::string> getDisplayModes(void) const;*/
|
||||
|
||||
@@ -59,17 +59,6 @@ ViewProviderProjGroup::~ViewProviderProjGroup()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderProjGroup::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
// call parent attach method
|
||||
ViewProviderDrawingView::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderProjGroup::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderDrawingView::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderProjGroup::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
@@ -78,16 +67,6 @@ std::vector<std::string> ViewProviderProjGroup::getDisplayModes(void) const
|
||||
return StrList;
|
||||
}
|
||||
|
||||
void ViewProviderProjGroup::updateData(const App::Property* prop)
|
||||
{
|
||||
ViewProviderDrawingView::updateData(prop);
|
||||
}
|
||||
|
||||
void ViewProviderProjGroup::onChanged(const App::Property *prop)
|
||||
{
|
||||
ViewProviderDrawingView::onChanged(prop);
|
||||
}
|
||||
|
||||
void ViewProviderProjGroup::setupContextMenu(QMenu* menu, QObject* receiver, const char* member)
|
||||
{
|
||||
Q_UNUSED(menu);
|
||||
|
||||
@@ -39,8 +39,6 @@ public:
|
||||
ViewProviderProjGroup(); /// constructor
|
||||
~ViewProviderProjGroup(); /// destructor
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual void setDisplayMode(const char* ModeName);
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const;
|
||||
@@ -51,12 +49,10 @@ public:
|
||||
/// Is called by the tree if the user double click on the object
|
||||
virtual bool doubleClicked(void);
|
||||
void setupContextMenu(QMenu*, QObject*, const char*);
|
||||
virtual void updateData(const App::Property*);
|
||||
|
||||
TechDraw::DrawProjGroup* getObject() const;
|
||||
virtual TechDraw::DrawProjGroup* getViewObject() const;
|
||||
void unsetEdit(int ModNum);
|
||||
virtual void onChanged(const App::Property *prop);
|
||||
virtual bool onDelete(const std::vector<std::string> &);
|
||||
virtual bool canDelete(App::DocumentObject* obj) const;
|
||||
|
||||
|
||||
@@ -51,17 +51,6 @@ ViewProviderProjGroupItem::~ViewProviderProjGroupItem()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderProjGroupItem::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
// call parent attach method
|
||||
ViewProviderViewPart::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderProjGroupItem::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderViewPart::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderProjGroupItem::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
|
||||
@@ -40,8 +40,6 @@ public:
|
||||
ViewProviderProjGroupItem();
|
||||
~ViewProviderProjGroupItem();
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual void setDisplayMode(const char* ModeName);
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const;
|
||||
|
||||
@@ -72,11 +72,6 @@ ViewProviderRichAnno::~ViewProviderRichAnno()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderRichAnno::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
ViewProviderDrawingView::attach(pcFeat);
|
||||
}
|
||||
|
||||
bool ViewProviderRichAnno::setEdit(int ModNum)
|
||||
{
|
||||
// Base::Console().Message("VPRA::setEdit(%d)\n",ModNum);
|
||||
|
||||
@@ -50,7 +50,6 @@ public:
|
||||
App::PropertyEnumeration LineStyle;
|
||||
App::PropertyColor LineColor;
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
virtual void updateData(const App::Property*);
|
||||
virtual void onChanged(const App::Property* p);
|
||||
|
||||
@@ -45,30 +45,6 @@ ViewProviderSpreadsheet::~ViewProviderSpreadsheet()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderSpreadsheet::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
// call parent attach method
|
||||
ViewProviderSymbol::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderSpreadsheet::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderSymbol::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderSpreadsheet::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList = ViewProviderSymbol::getDisplayModes();
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
void ViewProviderSpreadsheet::updateData(const App::Property* prop)
|
||||
{
|
||||
ViewProviderSymbol::updateData(prop);
|
||||
}
|
||||
|
||||
TechDraw::DrawViewSpreadsheet* ViewProviderSpreadsheet::getViewObject() const
|
||||
{
|
||||
return dynamic_cast<TechDraw::DrawViewSpreadsheet*>(pcObject);
|
||||
|
||||
@@ -41,13 +41,7 @@ public:
|
||||
/// destructor
|
||||
virtual ~ViewProviderSpreadsheet();
|
||||
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual void setDisplayMode(const char* ModeName);
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const;
|
||||
virtual void updateData(const App::Property*);
|
||||
|
||||
virtual TechDraw::DrawViewSpreadsheet* getViewObject() const;
|
||||
};
|
||||
|
||||
@@ -46,25 +46,6 @@ ViewProviderSymbol::~ViewProviderSymbol()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderSymbol::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
// call parent attach method
|
||||
ViewProviderDrawingView::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderSymbol::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderDrawingView::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderSymbol::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList = ViewProviderDrawingView::getDisplayModes();
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
void ViewProviderSymbol::updateData(const App::Property* prop)
|
||||
{
|
||||
if (prop == &getViewObject()->Scale) {
|
||||
|
||||
@@ -43,12 +43,7 @@ public:
|
||||
/// destructor
|
||||
virtual ~ViewProviderSymbol();
|
||||
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual void setDisplayMode(const char* ModeName);
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const;
|
||||
virtual void updateData(const App::Property*);
|
||||
|
||||
virtual TechDraw::DrawViewSymbol* getViewObject() const;
|
||||
|
||||
@@ -67,25 +67,6 @@ ViewProviderTemplate::~ViewProviderTemplate()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderTemplate::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
// call parent attach method
|
||||
ViewProviderDocumentObject::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderTemplate::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderDocumentObject::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderTemplate::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList = ViewProviderDocumentObject::getDisplayModes();
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
void ViewProviderTemplate::updateData(const App::Property* prop)
|
||||
{
|
||||
if (getTemplate()->isDerivedFrom(TechDraw::DrawSVGTemplate::getClassTypeId())) {
|
||||
|
||||
@@ -42,11 +42,7 @@ public:
|
||||
/// destructor
|
||||
virtual ~ViewProviderTemplate();
|
||||
|
||||
virtual void attach(App::DocumentObject *) override;
|
||||
virtual void setDisplayMode(const char* ModeName) override;
|
||||
virtual bool useNewSelectionModel(void) const override {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const override;
|
||||
virtual void updateData(const App::Property*) override;
|
||||
virtual void onChanged(const App::Property *prop) override;
|
||||
virtual void hide(void) override;
|
||||
|
||||
@@ -45,30 +45,6 @@ ViewProviderTile::~ViewProviderTile()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderTile::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
// call parent attach method
|
||||
ViewProviderDocumentObject::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderTile::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderDocumentObject::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderTile::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList = ViewProviderDocumentObject::getDisplayModes();
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
void ViewProviderTile::updateData(const App::Property* prop)
|
||||
{
|
||||
ViewProviderDocumentObject::updateData(prop);
|
||||
}
|
||||
|
||||
//TechDraw::DrawTile* ViewProviderTile::getViewObject() const
|
||||
//{
|
||||
// return dynamic_cast<TechDraw::DrawTile*>(pcObject);
|
||||
|
||||
@@ -38,13 +38,7 @@ public:
|
||||
/// destructor
|
||||
virtual ~ViewProviderTile();
|
||||
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual void setDisplayMode(const char* ModeName);
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const;
|
||||
virtual void updateData(const App::Property*);
|
||||
virtual bool canDelete(App::DocumentObject *obj) const;
|
||||
|
||||
/* virtual TechDraw::DrawTile* getViewObject() const;*/
|
||||
|
||||
@@ -50,29 +50,6 @@ ViewProviderViewClip::~ViewProviderViewClip()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderViewClip::updateData(const App::Property* prop)
|
||||
{
|
||||
ViewProviderDrawingView::updateData(prop);
|
||||
}
|
||||
|
||||
void ViewProviderViewClip::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
// call parent attach method
|
||||
ViewProviderDrawingView::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderViewClip::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderDrawingView::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderViewClip::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList;
|
||||
return StrList;
|
||||
}
|
||||
|
||||
std::vector<App::DocumentObject*> ViewProviderViewClip::claimChildren(void) const
|
||||
{
|
||||
// Collect any child views
|
||||
|
||||
@@ -41,15 +41,10 @@ public:
|
||||
/// destructor
|
||||
virtual ~ViewProviderViewClip();
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual void setDisplayMode(const char* ModeName);
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const;
|
||||
|
||||
virtual TechDraw::DrawViewClip* getViewObject() const;
|
||||
TechDraw::DrawViewClip* getObject() const;
|
||||
virtual void updateData(const App::Property* prop);
|
||||
|
||||
/// Hide the object in the view
|
||||
virtual void hide(void);
|
||||
|
||||
@@ -127,11 +127,6 @@ ViewProviderViewPart::~ViewProviderViewPart()
|
||||
|
||||
}
|
||||
|
||||
void ViewProviderViewPart::updateData(const App::Property* prop)
|
||||
{
|
||||
ViewProviderDrawingView::updateData(prop);
|
||||
}
|
||||
|
||||
void ViewProviderViewPart::onChanged(const App::Property* prop)
|
||||
{
|
||||
if (prop == &(LineWidth) ||
|
||||
@@ -172,20 +167,6 @@ void ViewProviderViewPart::attach(App::DocumentObject *pcFeat)
|
||||
ViewProviderDrawingView::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderViewPart::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderDrawingView::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderViewPart::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList = ViewProviderDrawingView::getDisplayModes();
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
|
||||
std::vector<App::DocumentObject*> ViewProviderViewPart::claimChildren(void) const
|
||||
{
|
||||
// Collect any child Document Objects and put them in the right place in the Feature tree
|
||||
|
||||
@@ -61,10 +61,7 @@ public:
|
||||
static const char* LineStyleEnums[];
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual void setDisplayMode(const char* ModeName);
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const;
|
||||
virtual bool onDelete(const std::vector<std::string> &);
|
||||
virtual bool canDelete(App::DocumentObject* obj) const;
|
||||
virtual bool setEdit(int ModNum);
|
||||
@@ -73,7 +70,6 @@ public:
|
||||
|
||||
public:
|
||||
virtual void onChanged(const App::Property *prop);
|
||||
virtual void updateData(const App::Property*);
|
||||
virtual void handleChangedPropertyType(Base::XMLReader &reader, const char *TypeName, App::Property * prop);
|
||||
App::Color prefSectionColor(void);
|
||||
App::Color prefHighlightColor(void);
|
||||
|
||||
@@ -76,25 +76,6 @@ ViewProviderViewSection::~ViewProviderViewSection()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderViewSection::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
// call parent attach method
|
||||
ViewProviderViewPart::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderViewSection::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderViewPart::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderViewSection::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList = ViewProviderViewPart::getDisplayModes();
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
//for VP properties
|
||||
void ViewProviderViewSection::onChanged(const App::Property* prop)
|
||||
{
|
||||
@@ -123,11 +104,6 @@ void ViewProviderViewSection::updateData(const App::Property* prop)
|
||||
ViewProviderViewPart::updateData(prop);
|
||||
}
|
||||
|
||||
std::vector<App::DocumentObject*> ViewProviderViewSection::claimChildren(void) const
|
||||
{
|
||||
return ViewProviderViewPart::claimChildren();
|
||||
}
|
||||
|
||||
void ViewProviderViewSection::updateGraphic(void)
|
||||
{
|
||||
// redraw QGIVP
|
||||
|
||||
@@ -48,19 +48,12 @@ public:
|
||||
App::PropertyColor GeomHatchColor;
|
||||
App::PropertyFloat WeightPattern;
|
||||
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual void setDisplayMode(const char* ModeName);
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const;
|
||||
virtual void updateData(const App::Property*);
|
||||
virtual void onChanged(const App::Property *prop);
|
||||
virtual bool setEdit(int ModNum);
|
||||
virtual void unsetEdit(int ModNum);
|
||||
virtual bool doubleClicked(void);
|
||||
|
||||
virtual std::vector<App::DocumentObject*> claimChildren(void) const;
|
||||
|
||||
void updateGraphic(void);
|
||||
void getParameters(void);
|
||||
virtual bool canDelete(App::DocumentObject* obj) const;
|
||||
|
||||
@@ -63,30 +63,6 @@ ViewProviderWeld::~ViewProviderWeld()
|
||||
{
|
||||
}
|
||||
|
||||
void ViewProviderWeld::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
// call parent attach method
|
||||
ViewProviderDrawingView::attach(pcFeat);
|
||||
}
|
||||
|
||||
void ViewProviderWeld::setDisplayMode(const char* ModeName)
|
||||
{
|
||||
ViewProviderDrawingView::setDisplayMode(ModeName);
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderWeld::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList = ViewProviderDrawingView::getDisplayModes();
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
void ViewProviderWeld::updateData(const App::Property* prop)
|
||||
{
|
||||
ViewProviderDrawingView::updateData(prop);
|
||||
}
|
||||
|
||||
void ViewProviderWeld::onChanged(const App::Property* p)
|
||||
{
|
||||
QGIView* qgiv = getQView();
|
||||
|
||||
@@ -46,12 +46,7 @@ public:
|
||||
App::PropertyLength FontSize;
|
||||
App::PropertyLength TileFontSize;
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual void setDisplayMode(const char* ModeName);
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
/// returns a list of all possible modes
|
||||
virtual std::vector<std::string> getDisplayModes(void) const;
|
||||
virtual void updateData(const App::Property*);
|
||||
virtual void onChanged(const App::Property* p);
|
||||
virtual std::vector<App::DocumentObject*> claimChildren(void) const;
|
||||
virtual bool setEdit(int ModNum);
|
||||
|
||||
Reference in New Issue
Block a user