[TD]simplify embedded hatch file handling

This commit is contained in:
wandererfan
2022-11-09 14:36:08 -05:00
committed by WandererFan
parent 1cf51ec1c3
commit a2976bcfbc
9 changed files with 131 additions and 212 deletions

View File

@@ -43,18 +43,18 @@ class TechDrawExport DrawHatch : public App::DocumentObject
public:
DrawHatch();
~DrawHatch() = default;
~DrawHatch() override = default;
App::PropertyLinkSub Source; // the dvp & face this hatch belongs to
App::PropertyFile HatchPattern;
App::PropertyFileIncluded SvgIncluded;
App::DocumentObjectExecReturn *execute() override;
short mustExecute() const override;
const char* getViewProviderName() const override {
return "TechDrawGui::ViewProviderHatch";
}
void setupObject() override;
void unsetupObject() override;
//return PyObject as DrawHatchPy
@@ -74,9 +74,6 @@ public:
protected:
void onChanged(const App::Property* prop) override;
void onDocumentRestored() override;
void setupObject() override;
void setupFileIncluded();
void replaceFileIncluded(std::string newSvgFile);
private: