DrawViewBalloon: add units there as well

since OriginX/Y depend on DrawView base X/Y

- also adapt the balloon test accordingly
This commit is contained in:
donovaly
2019-11-30 19:18:48 +01:00
committed by WandererFan
parent 7ef0d476b5
commit e583b2a468
3 changed files with 38 additions and 14 deletions

View File

@@ -27,6 +27,7 @@
# include <App/DocumentObject.h>
# include <App/FeaturePython.h>
# include <App/PropertyLinks.h>
# include <App/PropertyUnits.h>
#include "DrawView.h"
@@ -53,8 +54,8 @@ public:
App::PropertyEnumeration EndType;
App::PropertyEnumeration Symbol;
App::PropertyFloat SymbolScale;
App::PropertyFloat OriginX;
App::PropertyFloat OriginY;
App::PropertyLength OriginX;
App::PropertyLength OriginY;
App::PropertyBool OriginIsSet;
App::PropertyFloat TextWrapLen;
@@ -79,6 +80,7 @@ public:
protected:
void onChanged(const App::Property* prop);
virtual void onDocumentRestored();
virtual void handleChangedPropertyType(Base::XMLReader &reader, const char *TypeName, App::Property * prop);
private:
};