TD: add units for line widths

- this also prevents negative values
- also fix an issue in DrawViewBalloon introduced by me recently
This commit is contained in:
donovaly
2019-12-07 04:26:15 +01:00
committed by WandererFan
parent 2fa9369d42
commit de1be3b381
3 changed files with 38 additions and 6 deletions

View File

@@ -43,10 +43,10 @@ public:
/// destructor
virtual ~ViewProviderViewPart();
App::PropertyFloat LineWidth;
App::PropertyFloat HiddenWidth;
App::PropertyFloat IsoWidth;
App::PropertyFloat ExtraWidth;
App::PropertyLength LineWidth;
App::PropertyLength HiddenWidth;
App::PropertyLength IsoWidth;
App::PropertyLength ExtraWidth;
App::PropertyBool ArcCenterMarks;
App::PropertyFloat CenterScale;
App::PropertyBool HorizCenterLine;
@@ -64,6 +64,8 @@ public:
public:
virtual void onChanged(const App::Property *prop);
virtual void updateData(const App::Property*);
virtual void handleChangedPropertyType(Base::XMLReader &reader, const char *TypeName, App::Property * prop);
virtual std::vector<App::DocumentObject*> claimChildren(void) const;