Part/PD: modernize C++: redundant void arg
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
using namespace Part;
|
||||
|
||||
// returns a string which represents the object e.g. when printed in python
|
||||
std::string BSplineSurfacePy::representation(void) const
|
||||
std::string BSplineSurfacePy::representation() const
|
||||
{
|
||||
return "<BSplineSurface object>";
|
||||
}
|
||||
@@ -1553,7 +1553,7 @@ PyObject* BSplineSurfacePy::buildFromNSections(PyObject *args)
|
||||
}
|
||||
}
|
||||
|
||||
Py::Long BSplineSurfacePy::getUDegree(void) const
|
||||
Py::Long BSplineSurfacePy::getUDegree() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -1561,7 +1561,7 @@ Py::Long BSplineSurfacePy::getUDegree(void) const
|
||||
return Py::Long(deg);
|
||||
}
|
||||
|
||||
Py::Long BSplineSurfacePy::getVDegree(void) const
|
||||
Py::Long BSplineSurfacePy::getVDegree() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -1569,42 +1569,42 @@ Py::Long BSplineSurfacePy::getVDegree(void) const
|
||||
return Py::Long(deg);
|
||||
}
|
||||
|
||||
Py::Long BSplineSurfacePy::getMaxDegree(void) const
|
||||
Py::Long BSplineSurfacePy::getMaxDegree() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
return Py::Long(surf->MaxDegree());
|
||||
}
|
||||
|
||||
Py::Long BSplineSurfacePy::getNbUPoles(void) const
|
||||
Py::Long BSplineSurfacePy::getNbUPoles() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
return Py::Long(surf->NbUPoles());
|
||||
}
|
||||
|
||||
Py::Long BSplineSurfacePy::getNbVPoles(void) const
|
||||
Py::Long BSplineSurfacePy::getNbVPoles() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
return Py::Long(surf->NbVPoles());
|
||||
}
|
||||
|
||||
Py::Long BSplineSurfacePy::getNbUKnots(void) const
|
||||
Py::Long BSplineSurfacePy::getNbUKnots() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
return Py::Long(surf->NbUKnots());
|
||||
}
|
||||
|
||||
Py::Long BSplineSurfacePy::getNbVKnots(void) const
|
||||
Py::Long BSplineSurfacePy::getNbVKnots() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
return Py::Long(surf->NbVKnots());
|
||||
}
|
||||
|
||||
Py::Object BSplineSurfacePy::getFirstUKnotIndex(void) const
|
||||
Py::Object BSplineSurfacePy::getFirstUKnotIndex() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -1612,7 +1612,7 @@ Py::Object BSplineSurfacePy::getFirstUKnotIndex(void) const
|
||||
return Py::Long(index);
|
||||
}
|
||||
|
||||
Py::Object BSplineSurfacePy::getLastUKnotIndex(void) const
|
||||
Py::Object BSplineSurfacePy::getLastUKnotIndex() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -1620,7 +1620,7 @@ Py::Object BSplineSurfacePy::getLastUKnotIndex(void) const
|
||||
return Py::Long(index);
|
||||
}
|
||||
|
||||
Py::Object BSplineSurfacePy::getFirstVKnotIndex(void) const
|
||||
Py::Object BSplineSurfacePy::getFirstVKnotIndex() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -1628,7 +1628,7 @@ Py::Object BSplineSurfacePy::getFirstVKnotIndex(void) const
|
||||
return Py::Long(index);
|
||||
}
|
||||
|
||||
Py::Object BSplineSurfacePy::getLastVKnotIndex(void) const
|
||||
Py::Object BSplineSurfacePy::getLastVKnotIndex() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -1636,7 +1636,7 @@ Py::Object BSplineSurfacePy::getLastVKnotIndex(void) const
|
||||
return Py::Long(index);
|
||||
}
|
||||
|
||||
Py::List BSplineSurfacePy::getUKnotSequence(void) const
|
||||
Py::List BSplineSurfacePy::getUKnotSequence() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -1658,7 +1658,7 @@ Py::List BSplineSurfacePy::getUKnotSequence(void) const
|
||||
return list;
|
||||
}
|
||||
|
||||
Py::List BSplineSurfacePy::getVKnotSequence(void) const
|
||||
Py::List BSplineSurfacePy::getVKnotSequence() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
//short mustExecute();
|
||||
|
||||
/// returns the type name of the view provider
|
||||
const char* getViewProviderName(void) const override = 0;
|
||||
const char* getViewProviderName() const override = 0;
|
||||
|
||||
/// Return a shape including Placement representing the datum feature
|
||||
virtual TopoDS_Shape getShape() const;
|
||||
|
||||
@@ -42,7 +42,7 @@ Chamfer::Chamfer()
|
||||
{
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Chamfer::execute(void)
|
||||
App::DocumentObjectExecReturn *Chamfer::execute()
|
||||
{
|
||||
App::DocumentObject* link = Base.getValue();
|
||||
if (!link)
|
||||
|
||||
@@ -73,10 +73,10 @@ public:
|
||||
/** @name methods override feature */
|
||||
//@{
|
||||
/// recalculate the feature
|
||||
App::DocumentObjectExecReturn *execute(void) override;
|
||||
App::DocumentObjectExecReturn *execute() override;
|
||||
short mustExecute() const override;
|
||||
/// returns the type name of the view provider
|
||||
const char* getViewProviderName(void) const override {
|
||||
const char* getViewProviderName() const override {
|
||||
return "PartGui::ViewProviderExtrusion";
|
||||
}
|
||||
//@}
|
||||
|
||||
@@ -42,9 +42,9 @@ public:
|
||||
/** @name methods override Feature */
|
||||
//@{
|
||||
/// recalculate the Feature
|
||||
App::DocumentObjectExecReturn *execute(void) override;
|
||||
App::DocumentObjectExecReturn *execute() override;
|
||||
/// returns the type name of the ViewProvider
|
||||
const char* getViewProviderName(void) const override {
|
||||
const char* getViewProviderName() const override {
|
||||
return "PartGui::ViewProviderGeometrySet";
|
||||
}
|
||||
//@}
|
||||
|
||||
@@ -76,7 +76,7 @@ short Offset::mustExecute() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Offset::execute(void)
|
||||
App::DocumentObjectExecReturn *Offset::execute()
|
||||
{
|
||||
App::DocumentObject* source = Source.getValue();
|
||||
if (!source)
|
||||
@@ -130,7 +130,7 @@ short Offset2D::mustExecute() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Offset2D::execute(void)
|
||||
App::DocumentObjectExecReturn *Offset2D::execute()
|
||||
{
|
||||
App::DocumentObject* source = Source.getValue();
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ short Circle::mustExecute() const
|
||||
return Part::Primitive::mustExecute();
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Circle::execute(void)
|
||||
App::DocumentObjectExecReturn *Circle::execute()
|
||||
{
|
||||
gp_Circ circle;
|
||||
circle.SetRadius(this->Radius.getValue());
|
||||
|
||||
@@ -41,10 +41,10 @@ public:
|
||||
/** @name methods override Feature */
|
||||
//@{
|
||||
/// recalculate the Feature
|
||||
App::DocumentObjectExecReturn *execute(void) override;
|
||||
App::DocumentObjectExecReturn *execute() override;
|
||||
short mustExecute() const override;
|
||||
/// returns the type name of the ViewProvider
|
||||
const char* getViewProviderName(void) const override {
|
||||
const char* getViewProviderName() const override {
|
||||
return "PartGui::ViewProviderImport";
|
||||
}
|
||||
//@}
|
||||
|
||||
@@ -34,7 +34,7 @@ using namespace Part;
|
||||
PROPERTY_SOURCE(Part::Section, Part::Boolean)
|
||||
|
||||
|
||||
Section::Section(void)
|
||||
Section::Section()
|
||||
{
|
||||
ADD_PROPERTY_TYPE(Approximation,(false),"Section",App::Prop_None,"Approximate the output edges");
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ using namespace Part;
|
||||
extern const char* gce_ErrorStatusText(gce_ErrorType et);
|
||||
|
||||
// returns a string which represents the object e.g. when printed in python
|
||||
std::string ArcOfHyperbola2dPy::representation(void) const
|
||||
std::string ArcOfHyperbola2dPy::representation() const
|
||||
{
|
||||
return "<ArcOfHyperbola2d object>";
|
||||
}
|
||||
@@ -86,7 +86,7 @@ int ArcOfHyperbola2dPy::PyInit(PyObject* args, PyObject* /*kwds*/)
|
||||
return -1;
|
||||
}
|
||||
|
||||
Py::Float ArcOfHyperbola2dPy::getMajorRadius(void) const
|
||||
Py::Float ArcOfHyperbola2dPy::getMajorRadius() const
|
||||
{
|
||||
return Py::Float(getGeom2dArcOfHyperbolaPtr()->getMajorRadius());
|
||||
}
|
||||
@@ -96,7 +96,7 @@ void ArcOfHyperbola2dPy::setMajorRadius(Py::Float arg)
|
||||
getGeom2dArcOfHyperbolaPtr()->setMajorRadius((double)arg);
|
||||
}
|
||||
|
||||
Py::Float ArcOfHyperbola2dPy::getMinorRadius(void) const
|
||||
Py::Float ArcOfHyperbola2dPy::getMinorRadius() const
|
||||
{
|
||||
return Py::Float(getGeom2dArcOfHyperbolaPtr()->getMinorRadius());
|
||||
}
|
||||
@@ -106,7 +106,7 @@ void ArcOfHyperbola2dPy::setMinorRadius(Py::Float arg)
|
||||
getGeom2dArcOfHyperbolaPtr()->setMinorRadius((double)arg);
|
||||
}
|
||||
|
||||
Py::Object ArcOfHyperbola2dPy::getHyperbola(void) const
|
||||
Py::Object ArcOfHyperbola2dPy::getHyperbola() const
|
||||
{
|
||||
Handle(Geom2d_TrimmedCurve) trim = Handle(Geom2d_TrimmedCurve)::DownCast
|
||||
(getGeom2dArcOfHyperbolaPtr()->handle());
|
||||
|
||||
@@ -41,7 +41,7 @@ using namespace Part;
|
||||
extern const char* gce_ErrorStatusText(gce_ErrorType et);
|
||||
|
||||
// returns a string which represents the object e.g. when printed in python
|
||||
std::string LineSegmentPy::representation(void) const
|
||||
std::string LineSegmentPy::representation() const
|
||||
{
|
||||
std::stringstream str;
|
||||
Base::Vector3d start = getGeomLineSegmentPtr()->getStartPoint();
|
||||
@@ -198,7 +198,7 @@ PyObject* LineSegmentPy::setParameterRange(PyObject *args)
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
Py::Object LineSegmentPy::getStartPoint(void) const
|
||||
Py::Object LineSegmentPy::getStartPoint() const
|
||||
{
|
||||
Handle(Geom_TrimmedCurve) this_curve = Handle(Geom_TrimmedCurve)::DownCast
|
||||
(this->getGeomLineSegmentPtr()->handle());
|
||||
@@ -254,7 +254,7 @@ void LineSegmentPy::setStartPoint(Py::Object arg)
|
||||
}
|
||||
}
|
||||
|
||||
Py::Object LineSegmentPy::getEndPoint(void) const
|
||||
Py::Object LineSegmentPy::getEndPoint() const
|
||||
{
|
||||
Handle(Geom_TrimmedCurve) this_curve = Handle(Geom_TrimmedCurve)::DownCast
|
||||
(this->getGeomLineSegmentPtr()->handle());
|
||||
|
||||
@@ -68,7 +68,7 @@ Part2DObject::Part2DObject()
|
||||
}
|
||||
|
||||
|
||||
App::DocumentObjectExecReturn *Part2DObject::execute(void)
|
||||
App::DocumentObjectExecReturn *Part2DObject::execute()
|
||||
{
|
||||
return Feature::execute();
|
||||
}
|
||||
@@ -83,7 +83,7 @@ void Part2DObject::transformPlacement(const Base::Placement &transform)
|
||||
}
|
||||
}
|
||||
|
||||
int Part2DObject::getAxisCount(void) const
|
||||
int Part2DObject::getAxisCount() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -286,10 +286,10 @@ void Part2DObject::handleChangedPropertyName(Base::XMLReader &reader,
|
||||
namespace App {
|
||||
/// @cond DOXERR
|
||||
PROPERTY_SOURCE_TEMPLATE(Part::Part2DObjectPython, Part::Part2DObject)
|
||||
template<> const char* Part::Part2DObjectPython::getViewProviderName(void) const {
|
||||
template<> const char* Part::Part2DObjectPython::getViewProviderName() const {
|
||||
return "PartGui::ViewProvider2DObjectPython";
|
||||
}
|
||||
template<> PyObject* Part::Part2DObjectPython::getPyObject(void) {
|
||||
template<> PyObject* Part::Part2DObjectPython::getPyObject() {
|
||||
if (PythonObject.is(Py::_None())) {
|
||||
// ref counter is set to 1
|
||||
PythonObject = Py::Object(new FeaturePythonPyT<Part::Part2DObjectPy>(this),true);
|
||||
|
||||
@@ -75,7 +75,7 @@ void PropertyPartShape::setValue(const TopoDS_Shape& sh)
|
||||
hasSetValue();
|
||||
}
|
||||
|
||||
const TopoDS_Shape& PropertyPartShape::getValue(void)const
|
||||
const TopoDS_Shape& PropertyPartShape::getValue() const
|
||||
{
|
||||
return _Shape.getShape();
|
||||
}
|
||||
@@ -133,7 +133,7 @@ void PropertyPartShape::transformGeometry(const Base::Matrix4D &rclTrf)
|
||||
hasSetValue();
|
||||
}
|
||||
|
||||
PyObject *PropertyPartShape::getPyObject(void)
|
||||
PyObject *PropertyPartShape::getPyObject()
|
||||
{
|
||||
Base::PyObjectBase* prop = static_cast<Base::PyObjectBase*>(_Shape.getPyObject());
|
||||
if (prop)
|
||||
@@ -154,7 +154,7 @@ void PropertyPartShape::setPyObject(PyObject *value)
|
||||
}
|
||||
}
|
||||
|
||||
App::Property *PropertyPartShape::Copy(void) const
|
||||
App::Property *PropertyPartShape::Copy() const
|
||||
{
|
||||
PropertyPartShape *prop = new PropertyPartShape();
|
||||
prop->_Shape = this->_Shape;
|
||||
@@ -173,7 +173,7 @@ void PropertyPartShape::Paste(const App::Property &from)
|
||||
hasSetValue();
|
||||
}
|
||||
|
||||
unsigned int PropertyPartShape::getMemSize (void) const
|
||||
unsigned int PropertyPartShape::getMemSize () const
|
||||
{
|
||||
return _Shape.getMemSize();
|
||||
}
|
||||
@@ -435,7 +435,7 @@ void PropertyShapeHistory::setValues(const std::vector<ShapeHistory>& values)
|
||||
hasSetValue();
|
||||
}
|
||||
|
||||
PyObject *PropertyShapeHistory::getPyObject(void)
|
||||
PyObject *PropertyShapeHistory::getPyObject()
|
||||
{
|
||||
return Py::new_reference_to(Py::None());
|
||||
}
|
||||
@@ -460,7 +460,7 @@ void PropertyShapeHistory::RestoreDocFile(Base::Reader &)
|
||||
{
|
||||
}
|
||||
|
||||
App::Property *PropertyShapeHistory::Copy(void) const
|
||||
App::Property *PropertyShapeHistory::Copy() const
|
||||
{
|
||||
PropertyShapeHistory *p= new PropertyShapeHistory();
|
||||
p->_lValueList = _lValueList;
|
||||
@@ -503,7 +503,7 @@ void PropertyFilletEdges::setValues(const std::vector<FilletElement>& values)
|
||||
hasSetValue();
|
||||
}
|
||||
|
||||
PyObject *PropertyFilletEdges::getPyObject(void)
|
||||
PyObject *PropertyFilletEdges::getPyObject()
|
||||
{
|
||||
Py::List list(getSize());
|
||||
std::vector<FilletElement>::const_iterator it;
|
||||
@@ -576,7 +576,7 @@ void PropertyFilletEdges::RestoreDocFile(Base::Reader &reader)
|
||||
setValues(values);
|
||||
}
|
||||
|
||||
App::Property *PropertyFilletEdges::Copy(void) const
|
||||
App::Property *PropertyFilletEdges::Copy() const
|
||||
{
|
||||
PropertyFilletEdges *p= new PropertyFilletEdges();
|
||||
p->_lValueList = _lValueList;
|
||||
|
||||
@@ -86,7 +86,7 @@ void CmdPartCylinder::activated(int iMsg)
|
||||
runCommand(Gui, "Gui.SendMsgToActiveView(\"ViewFit\")");
|
||||
}
|
||||
|
||||
bool CmdPartCylinder::isActive(void)
|
||||
bool CmdPartCylinder::isActive()
|
||||
{
|
||||
if (getActiveGuiDocument())
|
||||
return true;
|
||||
@@ -128,7 +128,7 @@ void CmdPartBox::activated(int iMsg)
|
||||
runCommand(Gui, "Gui.SendMsgToActiveView(\"ViewFit\")");
|
||||
}
|
||||
|
||||
bool CmdPartBox::isActive(void)
|
||||
bool CmdPartBox::isActive()
|
||||
{
|
||||
if (getActiveGuiDocument())
|
||||
return true;
|
||||
@@ -170,7 +170,7 @@ void CmdPartSphere::activated(int iMsg)
|
||||
runCommand(Gui, "Gui.SendMsgToActiveView(\"ViewFit\")");
|
||||
}
|
||||
|
||||
bool CmdPartSphere::isActive(void)
|
||||
bool CmdPartSphere::isActive()
|
||||
{
|
||||
if (getActiveGuiDocument())
|
||||
return true;
|
||||
@@ -212,7 +212,7 @@ void CmdPartCone::activated(int iMsg)
|
||||
runCommand(Gui, "Gui.SendMsgToActiveView(\"ViewFit\")");
|
||||
}
|
||||
|
||||
bool CmdPartCone::isActive(void)
|
||||
bool CmdPartCone::isActive()
|
||||
{
|
||||
if (getActiveGuiDocument())
|
||||
return true;
|
||||
@@ -254,7 +254,7 @@ void CmdPartTorus::activated(int iMsg)
|
||||
runCommand(Gui, "Gui.SendMsgToActiveView(\"ViewFit\")");
|
||||
}
|
||||
|
||||
bool CmdPartTorus::isActive(void)
|
||||
bool CmdPartTorus::isActive()
|
||||
{
|
||||
if (getActiveGuiDocument())
|
||||
return true;
|
||||
@@ -265,7 +265,7 @@ bool CmdPartTorus::isActive(void)
|
||||
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
void CreateParamPartCommands(void)
|
||||
void CreateParamPartCommands()
|
||||
{
|
||||
Gui::CommandManager &rcCmdMgr = Gui::Application::Instance->commandManager();
|
||||
rcCmdMgr.addCommand(new CmdPartCylinder());
|
||||
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
{
|
||||
return "";
|
||||
}
|
||||
std::vector<std::string> getDisplayModes(void) const override
|
||||
std::vector<std::string> getDisplayModes() const override
|
||||
{
|
||||
return std::vector<std::string>();
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
QString text = QString::fromLatin1("Attachment"), VisibilityFunction func = 0);
|
||||
~TaskAttacher() override;
|
||||
|
||||
bool getFlip(void) const;
|
||||
bool getFlip() const;
|
||||
|
||||
/**
|
||||
* @brief getActiveMapMode returns either the default mode for selected
|
||||
@@ -89,7 +89,7 @@ private Q_SLOTS:
|
||||
void onButtonRef2(const bool checked = true);
|
||||
void onButtonRef3(const bool checked = true);
|
||||
void onButtonRef4(const bool checked = true);
|
||||
void onModeSelect(void);
|
||||
void onModeSelect();
|
||||
void visibilityAutomation(bool opening_not_closing);
|
||||
|
||||
protected:
|
||||
@@ -168,11 +168,11 @@ public:
|
||||
/// is called by the framework if the dialog is rejected (Cancel)
|
||||
bool reject() override;
|
||||
/// is called by the framework if the user presses the help button
|
||||
bool isAllowedAlterDocument(void) const override
|
||||
bool isAllowedAlterDocument() const override
|
||||
{ return false; }
|
||||
|
||||
/// returns for Close and Help button
|
||||
QDialogButtonBox::StandardButtons getStandardButtons(void) const override
|
||||
QDialogButtonBox::StandardButtons getStandardButtons() const override
|
||||
{ return QDialogButtonBox::Ok|QDialogButtonBox::Cancel; }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -51,7 +51,7 @@ public:
|
||||
ViewProviderPart();
|
||||
/// destructor
|
||||
~ViewProviderPart() override;
|
||||
bool doubleClicked(void) override;
|
||||
bool doubleClicked() override;
|
||||
|
||||
protected:
|
||||
void applyColor(const Part::ShapeHistory& hist,
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
/// destructor
|
||||
~ViewProviderCircleParametric() override;
|
||||
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ ViewProviderCompound::~ViewProviderCompound()
|
||||
{
|
||||
}
|
||||
|
||||
std::vector<App::DocumentObject*> ViewProviderCompound::claimChildren(void) const
|
||||
std::vector<App::DocumentObject*> ViewProviderCompound::claimChildren() const
|
||||
{
|
||||
return static_cast<Part::Compound*>(getObject())->Links.getValues();
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ public:
|
||||
void attach(App::DocumentObject *) override;
|
||||
void setDisplayMode(const char* ModeName) override;
|
||||
/// returns a list of all possible modes
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
/// Update the view representation
|
||||
void reload();
|
||||
/// If no other task is pending it opens a dialog to allow to change face colors
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
*/
|
||||
//@{
|
||||
/// indicates if the ViewProvider use the new Selection model
|
||||
bool useNewSelectionModel(void) const override {return true;}
|
||||
bool useNewSelectionModel() const override {return true;}
|
||||
/// return a hit element to the selection path or 0
|
||||
std::string getElement(const SoDetail*) const override;
|
||||
SoDetail* getDetail(const char*) const override;
|
||||
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
~ViewProviderExtrusion() override;
|
||||
|
||||
/// grouping handling
|
||||
std::vector<App::DocumentObject*> claimChildren(void)const override;
|
||||
std::vector<App::DocumentObject*> claimChildren() const override;
|
||||
};
|
||||
|
||||
} // namespace PartGui
|
||||
|
||||
@@ -46,7 +46,7 @@ ViewProviderHelixParametric::~ViewProviderHelixParametric()
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderHelixParametric::getDisplayModes(void) const
|
||||
std::vector<std::string> ViewProviderHelixParametric::getDisplayModes() const
|
||||
{
|
||||
// add your own modes
|
||||
std::vector<std::string> StrList;
|
||||
@@ -77,7 +77,7 @@ ViewProviderSpiralParametric::~ViewProviderSpiralParametric()
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderSpiralParametric::getDisplayModes(void) const
|
||||
std::vector<std::string> ViewProviderSpiralParametric::getDisplayModes() const
|
||||
{
|
||||
// add your own modes
|
||||
std::vector<std::string> StrList;
|
||||
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
ViewProviderHelixParametric();
|
||||
/// destructor
|
||||
~ViewProviderHelixParametric() override;
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
void setupContextMenu(QMenu*, QObject*, const char*) override;
|
||||
|
||||
private:
|
||||
@@ -55,7 +55,7 @@ public:
|
||||
ViewProviderSpiralParametric();
|
||||
/// destructor
|
||||
~ViewProviderSpiralParametric() override;
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
void setupContextMenu(QMenu*, QObject*, const char*) override;
|
||||
|
||||
private:
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
/// destructor
|
||||
~ViewProviderLineParametric() override;
|
||||
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
/// destructor
|
||||
~ViewProviderRuledSurface() override;
|
||||
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
std::vector<App::DocumentObject*> claimChildren() const override;
|
||||
void updateData(const App::Property*) override;
|
||||
bool onDelete(const std::vector<std::string> &) override;
|
||||
|
||||
@@ -38,7 +38,7 @@ public:
|
||||
/// destructor
|
||||
~ViewProviderSphereParametric() override;
|
||||
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
ViewProviderEllipsoid();
|
||||
/// destructor
|
||||
~ViewProviderEllipsoid() override;
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
};
|
||||
|
||||
} // namespace PartGui
|
||||
|
||||
@@ -68,7 +68,7 @@ ViewProviderSpline::~ViewProviderSpline()
|
||||
{
|
||||
}
|
||||
|
||||
QIcon ViewProviderSpline::getIcon(void) const
|
||||
QIcon ViewProviderSpline::getIcon() const
|
||||
{
|
||||
return Gui::BitmapFactory().pixmap(sPixmap);
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ ViewProviderTorusParametric::~ViewProviderTorusParametric()
|
||||
|
||||
// **********************************************************************************
|
||||
|
||||
std::vector<std::string> ViewProviderTorusParametric::getDisplayModes(void) const
|
||||
std::vector<std::string> ViewProviderTorusParametric::getDisplayModes() const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList;
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
/// destructor
|
||||
~ViewProviderTorusParametric() override;
|
||||
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -97,10 +97,10 @@ void FeatureAddSub::getAddSubShape(Part::TopoShape &addShape, Part::TopoShape &s
|
||||
namespace App {
|
||||
/// @cond DOXERR
|
||||
PROPERTY_SOURCE_TEMPLATE(PartDesign::FeatureAddSubPython, PartDesign::FeatureAddSub)
|
||||
template<> const char* PartDesign::FeatureAddSubPython::getViewProviderName(void) const {
|
||||
template<> const char* PartDesign::FeatureAddSubPython::getViewProviderName() const {
|
||||
return "PartDesignGui::ViewProviderPython";
|
||||
}
|
||||
template<> PyObject* PartDesign::FeatureAddSubPython::getPyObject(void) {
|
||||
template<> PyObject* PartDesign::FeatureAddSubPython::getPyObject() {
|
||||
if (PythonObject.is(Py::_None())) {
|
||||
// ref counter is set to 1
|
||||
PythonObject = Py::Object(new FeaturePythonPyT<PartDesign::FeaturePy>(this),true);
|
||||
|
||||
@@ -44,10 +44,10 @@ public:
|
||||
/** @name methods override feature */
|
||||
//@{
|
||||
/// recalculate the feature
|
||||
App::DocumentObjectExecReturn *execute(void) override;
|
||||
App::DocumentObjectExecReturn *execute() override;
|
||||
short mustExecute() const override;
|
||||
/// returns the type name of the view provider
|
||||
const char* getViewProviderName(void) const override {
|
||||
const char* getViewProviderName() const override {
|
||||
return "PartDesignGui::ViewProviderFillet";
|
||||
}
|
||||
//@}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
using namespace PartDesign;
|
||||
|
||||
// returns a string which represent the object e.g. when printed in python
|
||||
std::string FeaturePy::representation(void) const
|
||||
std::string FeaturePy::representation() const
|
||||
{
|
||||
App::DocumentObject* object = this->getFeaturePtr();
|
||||
std::stringstream str;
|
||||
|
||||
@@ -64,9 +64,9 @@
|
||||
|
||||
|
||||
// use a different name to CreateCommand()
|
||||
void CreatePartDesignCommands(void);
|
||||
void CreatePartDesignBodyCommands(void);
|
||||
void CreatePartDesignPrimitiveCommands(void);
|
||||
void CreatePartDesignCommands();
|
||||
void CreatePartDesignBodyCommands();
|
||||
void CreatePartDesignPrimitiveCommands();
|
||||
|
||||
void loadPartDesignResource()
|
||||
{
|
||||
|
||||
@@ -137,7 +137,7 @@ void CmdPrimtiveCompAdditive::activated(int iMsg)
|
||||
PartDesignGui::setEdit(prm,pcActiveBody);
|
||||
}
|
||||
|
||||
Gui::Action * CmdPrimtiveCompAdditive::createAction(void)
|
||||
Gui::Action * CmdPrimtiveCompAdditive::createAction()
|
||||
{
|
||||
Gui::ActionGroup* pcAction = new Gui::ActionGroup(this, Gui::getMainWindow());
|
||||
pcAction->setDropDownMenu(true);
|
||||
@@ -229,7 +229,7 @@ void CmdPrimtiveCompAdditive::languageChange()
|
||||
arc8->setStatusTip(arc8->toolTip());
|
||||
}
|
||||
|
||||
bool CmdPrimtiveCompAdditive::isActive(void)
|
||||
bool CmdPrimtiveCompAdditive::isActive()
|
||||
{
|
||||
return (hasActiveDocument() && !Gui::Control().activeDialog());
|
||||
}
|
||||
@@ -293,7 +293,7 @@ void CmdPrimtiveCompSubtractive::activated(int iMsg)
|
||||
PartDesignGui::setEdit(Feat,pcActiveBody);
|
||||
}
|
||||
|
||||
Gui::Action * CmdPrimtiveCompSubtractive::createAction(void)
|
||||
Gui::Action * CmdPrimtiveCompSubtractive::createAction()
|
||||
{
|
||||
Gui::ActionGroup* pcAction = new Gui::ActionGroup(this, Gui::getMainWindow());
|
||||
pcAction->setDropDownMenu(true);
|
||||
@@ -385,7 +385,7 @@ void CmdPrimtiveCompSubtractive::languageChange()
|
||||
arc8->setStatusTip(arc8->toolTip());
|
||||
}
|
||||
|
||||
bool CmdPrimtiveCompSubtractive::isActive(void)
|
||||
bool CmdPrimtiveCompSubtractive::isActive()
|
||||
{
|
||||
return (hasActiveDocument() && !Gui::Control().activeDialog());
|
||||
}
|
||||
@@ -394,7 +394,7 @@ bool CmdPrimtiveCompSubtractive::isActive(void)
|
||||
// Initialization
|
||||
//===========================================================================
|
||||
|
||||
void CreatePartDesignPrimitiveCommands(void)
|
||||
void CreatePartDesignPrimitiveCommands()
|
||||
{
|
||||
Gui::CommandManager &rcCmdMgr = Gui::Application::Instance->commandManager();
|
||||
|
||||
|
||||
@@ -235,7 +235,7 @@ void TaskBooleanParameters::onTypeChanged(int index)
|
||||
pcBoolean->getDocument()->recomputeFeature(pcBoolean);
|
||||
}
|
||||
|
||||
const std::vector<std::string> TaskBooleanParameters::getBodies(void) const
|
||||
const std::vector<std::string> TaskBooleanParameters::getBodies() const
|
||||
{
|
||||
std::vector<std::string> result;
|
||||
for (int i = 0; i < ui->listWidgetBodies->count(); i++)
|
||||
@@ -243,12 +243,12 @@ const std::vector<std::string> TaskBooleanParameters::getBodies(void) const
|
||||
return result;
|
||||
}
|
||||
|
||||
int TaskBooleanParameters::getType(void) const
|
||||
int TaskBooleanParameters::getType() const
|
||||
{
|
||||
return ui->comboType->currentIndex();
|
||||
}
|
||||
|
||||
void TaskBooleanParameters::onBodyDeleted(void)
|
||||
void TaskBooleanParameters::onBodyDeleted()
|
||||
{
|
||||
PartDesign::Boolean* pcBoolean = static_cast<PartDesign::Boolean*>(BooleanView->getObject());
|
||||
std::vector<App::DocumentObject*> bodies = pcBoolean->Group.getValues();
|
||||
|
||||
@@ -50,8 +50,8 @@ private Q_SLOTS:
|
||||
void onSize2Changed(double);
|
||||
void onAngleChanged(double);
|
||||
void onFlipDirection(bool);
|
||||
void onRefDeleted(void) override;
|
||||
void onAddAllEdges(void);
|
||||
void onRefDeleted() override;
|
||||
void onAddAllEdges();
|
||||
void onCheckBoxUseAllEdgesToggled(bool checked);
|
||||
|
||||
protected:
|
||||
@@ -60,11 +60,11 @@ protected:
|
||||
void changeEvent(QEvent *e) override;
|
||||
void onSelectionChanged(const Gui::SelectionChanges& msg) override;
|
||||
|
||||
int getType(void) const;
|
||||
double getSize(void) const;
|
||||
double getSize2(void) const;
|
||||
double getAngle(void) const;
|
||||
bool getFlipDirection(void) const;
|
||||
int getType() const;
|
||||
double getSize() const;
|
||||
double getSize2() const;
|
||||
double getAngle() const;
|
||||
bool getFlipDirection() const;
|
||||
|
||||
private:
|
||||
void setUpUI(PartDesign::Chamfer* pcChamfer);
|
||||
|
||||
@@ -196,7 +196,7 @@ void TaskDraftParameters::onButtonLine(bool checked)
|
||||
}
|
||||
}
|
||||
|
||||
void TaskDraftParameters::onRefDeleted(void)
|
||||
void TaskDraftParameters::onRefDeleted()
|
||||
{
|
||||
TaskDressUpParameters::deleteRef(ui->listWidgetReferences);
|
||||
}
|
||||
@@ -230,7 +230,7 @@ void TaskDraftParameters::onAngleChanged(double angle)
|
||||
hideOnError();
|
||||
}
|
||||
|
||||
double TaskDraftParameters::getAngle(void) const
|
||||
double TaskDraftParameters::getAngle() const
|
||||
{
|
||||
return ui->draftAngle->value().getValue();
|
||||
}
|
||||
@@ -245,7 +245,7 @@ void TaskDraftParameters::onReversedChanged(const bool on) {
|
||||
hideOnError();
|
||||
}
|
||||
|
||||
bool TaskDraftParameters::getReversed(void) const
|
||||
bool TaskDraftParameters::getReversed() const
|
||||
{
|
||||
return ui->checkReverse->isChecked();
|
||||
}
|
||||
|
||||
@@ -362,7 +362,7 @@ void TaskDressUpParameters::showObject()
|
||||
}
|
||||
}
|
||||
|
||||
Part::Feature* TaskDressUpParameters::getBase(void) const
|
||||
Part::Feature* TaskDressUpParameters::getBase() const
|
||||
{
|
||||
PartDesign::DressUp* pcDressUp = static_cast<PartDesign::DressUp*>(DressUpView->getObject());
|
||||
// Unlikely but this may throw an exception in case we are started to edit an object which base feature
|
||||
|
||||
@@ -49,8 +49,8 @@ public:
|
||||
TaskDressUpParameters(ViewProviderDressUp *DressUpView, bool selectEdges, bool selectFaces, QWidget* parent = nullptr);
|
||||
~TaskDressUpParameters() override;
|
||||
|
||||
const std::vector<std::string> getReferences(void) const;
|
||||
Part::Feature *getBase(void) const;
|
||||
const std::vector<std::string> getReferences() const;
|
||||
Part::Feature *getBase() const;
|
||||
|
||||
void hideObject();
|
||||
void showObject();
|
||||
@@ -68,7 +68,7 @@ protected Q_SLOTS:
|
||||
void doubleClicked(QListWidgetItem* item);
|
||||
void setSelection(QListWidgetItem* current);
|
||||
void itemClickedTimeout();
|
||||
virtual void onRefDeleted(void) = 0;
|
||||
virtual void onRefDeleted() = 0;
|
||||
void createDeleteAction(QListWidget* parentList);
|
||||
void createAddAllEdgesAction(QListWidget* parentList);
|
||||
|
||||
|
||||
@@ -102,24 +102,24 @@ protected:
|
||||
App::PropertyLinkSub* propReferenceAxis;
|
||||
void getReferenceAxis(App::DocumentObject*& obj, std::vector<std::string>& sub) const;
|
||||
|
||||
double getOffset(void) const;
|
||||
bool getAlongSketchNormal(void) const;
|
||||
bool getCustom(void) const;
|
||||
std::string getReferenceAxis(void) const;
|
||||
double getXDirection(void) const;
|
||||
double getYDirection(void) const;
|
||||
double getZDirection(void) const;
|
||||
bool getReversed(void) const;
|
||||
bool getMidplane(void) const;
|
||||
int getMode(void) const;
|
||||
QString getFaceName(void) const;
|
||||
double getOffset() const;
|
||||
bool getAlongSketchNormal() const;
|
||||
bool getCustom() const;
|
||||
std::string getReferenceAxis() const;
|
||||
double getXDirection() const;
|
||||
double getYDirection() const;
|
||||
double getZDirection() const;
|
||||
bool getReversed() const;
|
||||
bool getMidplane() const;
|
||||
int getMode() const;
|
||||
QString getFaceName() const;
|
||||
void onSelectionChanged(const Gui::SelectionChanges& msg) override;
|
||||
virtual void translateModeList(int index);
|
||||
virtual void updateUI(int index);
|
||||
void updateDirectionEdits(void);
|
||||
void updateDirectionEdits();
|
||||
void setDirectionMode(int index);
|
||||
void handleLineFaceNameClick(void);
|
||||
void handleLineFaceNameNo(void);
|
||||
void handleLineFaceNameClick();
|
||||
void handleLineFaceNameNo();
|
||||
|
||||
private:
|
||||
void tryRecomputeFeature();
|
||||
|
||||
@@ -123,13 +123,13 @@ public:
|
||||
/// is called by the framework if the dialog is rejected (Cancel)
|
||||
bool reject() override;
|
||||
/// is called by the framework if the user presses the help button
|
||||
bool isAllowedAlterDocument(void) const override
|
||||
bool isAllowedAlterDocument() const override
|
||||
{ return false; }
|
||||
|
||||
void showExternal(bool val);
|
||||
|
||||
/// returns for Close and Help button
|
||||
QDialogButtonBox::StandardButtons getStandardButtons(void) const override
|
||||
QDialogButtonBox::StandardButtons getStandardButtons() const override
|
||||
{ return QDialogButtonBox::Ok|QDialogButtonBox::Cancel; }
|
||||
|
||||
|
||||
|
||||
@@ -359,7 +359,7 @@ void TaskLinearPatternParameters::onUpdateView(bool on)
|
||||
}
|
||||
}
|
||||
|
||||
void TaskLinearPatternParameters::onFeatureDeleted(void)
|
||||
void TaskLinearPatternParameters::onFeatureDeleted()
|
||||
{
|
||||
PartDesign::Transformed* pcTransformed = getObject();
|
||||
std::vector<App::DocumentObject*> originals = pcTransformed->Originals.getValues();
|
||||
@@ -382,17 +382,17 @@ void TaskLinearPatternParameters::getDirection(App::DocumentObject*& obj, std::v
|
||||
sub = lnk.getSubValues();
|
||||
}
|
||||
|
||||
bool TaskLinearPatternParameters::getReverse(void) const
|
||||
bool TaskLinearPatternParameters::getReverse() const
|
||||
{
|
||||
return ui->checkReverse->isChecked();
|
||||
}
|
||||
|
||||
double TaskLinearPatternParameters::getLength(void) const
|
||||
double TaskLinearPatternParameters::getLength() const
|
||||
{
|
||||
return ui->spinLength->value().getValue();
|
||||
}
|
||||
|
||||
unsigned TaskLinearPatternParameters::getOccurrences(void) const
|
||||
unsigned TaskLinearPatternParameters::getOccurrences() const
|
||||
{
|
||||
return ui->spinOccurrences->value();
|
||||
}
|
||||
|
||||
@@ -358,7 +358,7 @@ void TaskPolarPatternParameters::onUpdateView(bool on)
|
||||
}
|
||||
}
|
||||
|
||||
void TaskPolarPatternParameters::onFeatureDeleted(void)
|
||||
void TaskPolarPatternParameters::onFeatureDeleted()
|
||||
{
|
||||
PartDesign::Transformed* pcTransformed = getObject();
|
||||
std::vector<App::DocumentObject*> originals = pcTransformed->Originals.getValues();
|
||||
@@ -381,17 +381,17 @@ void TaskPolarPatternParameters::getAxis(App::DocumentObject*& obj, std::vector<
|
||||
sub = lnk.getSubValues();
|
||||
}
|
||||
|
||||
bool TaskPolarPatternParameters::getReverse(void) const
|
||||
bool TaskPolarPatternParameters::getReverse() const
|
||||
{
|
||||
return ui->checkReverse->isChecked();
|
||||
}
|
||||
|
||||
double TaskPolarPatternParameters::getAngle(void) const
|
||||
double TaskPolarPatternParameters::getAngle() const
|
||||
{
|
||||
return ui->polarAngle->value().getValue();
|
||||
}
|
||||
|
||||
unsigned TaskPolarPatternParameters::getOccurrences(void) const
|
||||
unsigned TaskPolarPatternParameters::getOccurrences() const
|
||||
{
|
||||
return ui->spinOccurrences->value();
|
||||
}
|
||||
|
||||
@@ -961,7 +961,7 @@ bool TaskPrimitiveParameters::reject()
|
||||
return true;
|
||||
}
|
||||
|
||||
QDialogButtonBox::StandardButtons TaskPrimitiveParameters::getStandardButtons(void) const {
|
||||
QDialogButtonBox::StandardButtons TaskPrimitiveParameters::getStandardButtons() const {
|
||||
return Gui::TaskView::TaskDialog::getStandardButtons();
|
||||
}
|
||||
|
||||
|
||||
@@ -208,7 +208,7 @@ void TaskScaledParameters::onUpdateView(bool on)
|
||||
}
|
||||
}
|
||||
|
||||
void TaskScaledParameters::onFeatureDeleted(void)
|
||||
void TaskScaledParameters::onFeatureDeleted()
|
||||
{
|
||||
PartDesign::Transformed* pcTransformed = getObject();
|
||||
std::vector<App::DocumentObject*> originals = pcTransformed->Originals.getValues();
|
||||
@@ -223,12 +223,12 @@ void TaskScaledParameters::onFeatureDeleted(void)
|
||||
recomputeFeature();
|
||||
}
|
||||
|
||||
double TaskScaledParameters::getFactor(void) const
|
||||
double TaskScaledParameters::getFactor() const
|
||||
{
|
||||
return ui->spinFactor->value().getValue();
|
||||
}
|
||||
|
||||
unsigned TaskScaledParameters::getOccurrences(void) const
|
||||
unsigned TaskScaledParameters::getOccurrences() const
|
||||
{
|
||||
return ui->spinOccurrences->value();
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ void TaskThicknessParameters::setButtons(const selectionModes mode)
|
||||
ui->buttonRefSel->setText(mode == refSel ? btnPreviewStr() : btnSelectStr());
|
||||
}
|
||||
|
||||
void TaskThicknessParameters::onRefDeleted(void)
|
||||
void TaskThicknessParameters::onRefDeleted()
|
||||
{
|
||||
TaskDressUpParameters::deleteRef(ui->listWidgetReferences);
|
||||
}
|
||||
@@ -172,7 +172,7 @@ void TaskThicknessParameters::onModeChanged(int mode) {
|
||||
hideOnError();
|
||||
}
|
||||
|
||||
double TaskThicknessParameters::getValue(void) const
|
||||
double TaskThicknessParameters::getValue() const
|
||||
{
|
||||
return ui->Value->value().getValue();
|
||||
}
|
||||
@@ -187,7 +187,7 @@ void TaskThicknessParameters::onReversedChanged(const bool on) {
|
||||
hideOnError();
|
||||
}
|
||||
|
||||
bool TaskThicknessParameters::getReversed(void) const
|
||||
bool TaskThicknessParameters::getReversed() const
|
||||
{
|
||||
return ui->checkReverse->isChecked();
|
||||
}
|
||||
@@ -201,17 +201,17 @@ void TaskThicknessParameters::onIntersectionChanged(const bool on) {
|
||||
hideOnError();
|
||||
}
|
||||
|
||||
bool TaskThicknessParameters::getIntersection(void) const
|
||||
bool TaskThicknessParameters::getIntersection() const
|
||||
{
|
||||
return ui->checkIntersection->isChecked();
|
||||
}
|
||||
|
||||
int TaskThicknessParameters::getJoinType(void) const {
|
||||
int TaskThicknessParameters::getJoinType() const {
|
||||
|
||||
return ui->joinComboBox->currentIndex();
|
||||
}
|
||||
|
||||
int TaskThicknessParameters::getMode(void) const {
|
||||
int TaskThicknessParameters::getMode() const {
|
||||
|
||||
return ui->modeComboBox->currentIndex();
|
||||
}
|
||||
|
||||
@@ -41,11 +41,11 @@ public:
|
||||
|
||||
void apply() override;
|
||||
|
||||
double getValue(void) const;
|
||||
bool getReversed(void) const;
|
||||
bool getIntersection(void) const;
|
||||
int getMode(void) const;
|
||||
int getJoinType(void) const;
|
||||
double getValue() const;
|
||||
bool getReversed() const;
|
||||
bool getIntersection() const;
|
||||
int getMode() const;
|
||||
int getJoinType() const;
|
||||
|
||||
private Q_SLOTS:
|
||||
void onValueChanged(double angle);
|
||||
@@ -53,7 +53,7 @@ private Q_SLOTS:
|
||||
void onJoinTypeChanged(int join);
|
||||
void onReversedChanged(bool reversed);
|
||||
void onIntersectionChanged(bool intersection);
|
||||
void onRefDeleted(void) override;
|
||||
void onRefDeleted() override;
|
||||
|
||||
protected:
|
||||
void setButtons(const selectionModes mode) override;
|
||||
|
||||
@@ -98,7 +98,7 @@ public:
|
||||
*/
|
||||
int setCurrentLink(const App::PropertyLinkSub &lnk);
|
||||
|
||||
QComboBox& combo(void) const {assert(_combo); return *_combo;}
|
||||
QComboBox& combo() const {assert(_combo); return *_combo;}
|
||||
|
||||
~ComboLinks() {_combo = nullptr; clear();}
|
||||
private:
|
||||
@@ -129,7 +129,7 @@ public:
|
||||
~TaskTransformedParameters() override;
|
||||
|
||||
/// Returns the originals property of associated top feeature object
|
||||
const std::vector<App::DocumentObject*> & getOriginals(void) const;
|
||||
const std::vector<App::DocumentObject*> & getOriginals() const;
|
||||
|
||||
/// Get the TransformedFeature object associated with this task
|
||||
// Either through the ViewProvider or the currently active subFeature of the parentTask
|
||||
@@ -177,7 +177,7 @@ protected Q_SLOTS:
|
||||
virtual void onSubTaskButtonOK() {}
|
||||
void onButtonAddFeature(const bool checked);
|
||||
void onButtonRemoveFeature(const bool checked);
|
||||
virtual void onFeatureDeleted(void)=0;
|
||||
virtual void onFeatureDeleted() = 0;
|
||||
void indexesMoved();
|
||||
|
||||
protected:
|
||||
|
||||
@@ -180,7 +180,7 @@ PartDesign::Body * makeBodyActive(App::DocumentObject *body, App::Document *doc,
|
||||
return dynamic_cast<PartDesign::Body*>(body);
|
||||
}
|
||||
|
||||
void needActiveBodyError(void)
|
||||
void needActiveBodyError()
|
||||
{
|
||||
QMessageBox::warning( Gui::getMainWindow(),
|
||||
QObject::tr("Active Body Required"),
|
||||
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
/// destructor
|
||||
~ViewProvider() override;
|
||||
|
||||
bool doubleClicked(void) override;
|
||||
bool doubleClicked() override;
|
||||
void updateData(const App::Property*) override;
|
||||
void onChanged(const App::Property* prop) override;
|
||||
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
//Returns the ViewProvider of the body the feature belongs to, or NULL, if not in a body
|
||||
ViewProviderBody* getBodyViewProvider();
|
||||
|
||||
PyObject* getPyObject(void) override;
|
||||
PyObject* getPyObject() override;
|
||||
|
||||
QIcon mergeColorfulOverlayIcons (const QIcon & orig) const override;
|
||||
|
||||
|
||||
@@ -56,10 +56,10 @@ public:
|
||||
|
||||
void attach(App::DocumentObject *) override;
|
||||
|
||||
bool doubleClicked(void) override;
|
||||
bool doubleClicked() override;
|
||||
void setupContextMenu(QMenu* menu, QObject* receiver, const char* member) override;
|
||||
|
||||
std::vector< std::string > getDisplayModes(void) const override;
|
||||
std::vector< std::string > getDisplayModes() const override;
|
||||
void setDisplayMode(const char* ModeName) override;
|
||||
void setOverrideMode(const std::string& mode) override;
|
||||
|
||||
|
||||
@@ -54,14 +54,14 @@ public:
|
||||
|
||||
void attach(App::DocumentObject *) override;
|
||||
bool onDelete(const std::vector<std::string> &) override;
|
||||
bool doubleClicked(void) override;
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
bool doubleClicked() override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
void setDisplayMode(const char* ModeName) override;
|
||||
|
||||
/// indicates if the ViewProvider use the new Selection model
|
||||
bool useNewSelectionModel(void) const override { return true; }
|
||||
bool useNewSelectionModel() const override { return true; }
|
||||
/// indicates if the ViewProvider can be selected
|
||||
bool isSelectable(void) const override;
|
||||
bool isSelectable() const override;
|
||||
/// return a hit element to the selection path or 0
|
||||
std::string getElement(const SoDetail *) const override;
|
||||
SoDetail* getDetail(const char*) const override;
|
||||
|
||||
@@ -61,7 +61,7 @@ TaskDlgFeatureParameters *ViewProviderHelix::getEditDialog()
|
||||
return new TaskDlgHelixParameters( this );
|
||||
}
|
||||
|
||||
QIcon ViewProviderHelix::getIcon(void) const {
|
||||
QIcon ViewProviderHelix::getIcon() const {
|
||||
QString str = QString::fromLatin1("PartDesign_");
|
||||
auto* prim = static_cast<PartDesign::Helix*>(getObject());
|
||||
if(prim->getAddSubType() == PartDesign::FeatureAddSub::Additive)
|
||||
@@ -90,7 +90,7 @@ void ViewProviderHelix::unsetEdit(int ModNum)
|
||||
PartDesignGui::ViewProvider::unsetEdit(ModNum);
|
||||
}
|
||||
|
||||
std::vector<App::DocumentObject*> ViewProviderHelix::claimChildren(void) const {
|
||||
std::vector<App::DocumentObject*> ViewProviderHelix::claimChildren() const {
|
||||
std::vector<App::DocumentObject*> temp;
|
||||
App::DocumentObject* sketch = static_cast<PartDesign::ProfileBased*>(getObject())->Profile.getValue();
|
||||
if (sketch && sketch->isDerivedFrom(Part::Part2DObject::getClassTypeId()))
|
||||
|
||||
@@ -42,12 +42,12 @@ public:
|
||||
void setupContextMenu(QMenu*, QObject*, const char*) override;
|
||||
|
||||
/// grouping handling
|
||||
std::vector<App::DocumentObject*> claimChildren(void)const override;
|
||||
std::vector<App::DocumentObject*> claimChildren() const override;
|
||||
|
||||
bool onDelete(const std::vector<std::string> &) override;
|
||||
|
||||
protected:
|
||||
QIcon getIcon(void) const override;
|
||||
QIcon getIcon() const override;
|
||||
|
||||
/// Returns a newly created TaskDlgHelixParameters
|
||||
TaskDlgFeatureParameters *getEditDialog() override;
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
~ViewProviderLoft() override;
|
||||
|
||||
/// grouping handling
|
||||
std::vector<App::DocumentObject*> claimChildren(void)const override;
|
||||
std::vector<App::DocumentObject*> claimChildren() const override;
|
||||
void setupContextMenu(QMenu*, QObject*, const char*) override;
|
||||
|
||||
bool onDelete(const std::vector<std::string> &) override;
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
void highlightReferences(Reference mode, bool on);
|
||||
|
||||
protected:
|
||||
QIcon getIcon(void) const override;
|
||||
QIcon getIcon() const override;
|
||||
bool setEdit(int ModNum) override;
|
||||
void unsetEdit(int ModNum) override;
|
||||
TaskDlgFeatureParameters* getEditDialog() override;
|
||||
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
void updateData(const App::Property*) override;
|
||||
|
||||
protected:
|
||||
QIcon getIcon(void) const override;
|
||||
QIcon getIcon() const override;
|
||||
void setupContextMenu(QMenu* menu, QObject* receiver, const char* member) override;
|
||||
bool setEdit(int ModNum) override;
|
||||
void unsetEdit(int ModNum) override;
|
||||
|
||||
@@ -402,7 +402,7 @@ void ViewProviderSubShapeBinder::updatePlacement(bool transaction) {
|
||||
App::GetApplication().closeActiveTransaction(true);
|
||||
}
|
||||
|
||||
std::vector<App::DocumentObject*> ViewProviderSubShapeBinder::claimChildren(void) const {
|
||||
std::vector<App::DocumentObject*> ViewProviderSubShapeBinder::claimChildren() const {
|
||||
std::vector<App::DocumentObject*> ret;
|
||||
auto self = Base::freecad_dynamic_cast<PartDesign::SubShapeBinder>(getObject());
|
||||
if (self && self->ClaimChildren.getValue() && self->Support.getValue()) {
|
||||
|
||||
Reference in New Issue
Block a user