[TD]simplify embedded hatch file handling
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user