[TD] Use PropertyLength for LineWidths

- contributed by @uwe

- also assure that the LineStyle is restricted to the range 0-5

fix another conversion routine mistake
This commit is contained in:
donovaly
2020-01-26 16:30:45 +01:00
committed by WandererFan
parent bfe865579b
commit f44eeae863
8 changed files with 112 additions and 28 deletions

View File

@@ -48,9 +48,9 @@ public:
/// destructor
virtual ~ViewProviderLeader();
App::PropertyFloat LineWidth;
App::PropertyInteger LineStyle;
App::PropertyColor Color;
App::PropertyLength LineWidth;
App::PropertyIntegerConstraint LineStyle;
App::PropertyColor Color;
virtual void attach(App::DocumentObject *);
/* virtual void setDisplayMode(const char* ModeName);*/
@@ -70,6 +70,11 @@ public:
protected:
double getDefLineWeight(void);
App::Color getDefLineColor(void);
virtual void handleChangedPropertyType(Base::XMLReader &reader, const char *TypeName, App::Property * prop);
private:
static App::PropertyIntegerConstraint::Constraints LineStyleRange;
};
} // namespace TechDrawGui