[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user