[TD]add line spacing property

- requires Arch PR #10816 to see results
This commit is contained in:
wandererfan
2023-09-30 12:21:30 -04:00
committed by WandererFan
parent e076e4bf31
commit 895d0f0e60
2 changed files with 5 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ DrawViewArch::DrawViewArch()
ADD_PROPERTY_TYPE(FontSize, (12.0), group, App::Prop_None, "Text size for this view");
ADD_PROPERTY_TYPE(CutLineWidth, (0.50), group, App::Prop_None, "Width of cut lines of this view");
ADD_PROPERTY_TYPE(JoinArch ,(false), group, App::Prop_None, "If True, walls and structure will be fused by material");
ADD_PROPERTY_TYPE(LineSpacing, (1.0f), group, App::Prop_None, "The spacing between lines to use for multiline texts");
ScaleType.setValue("Custom");
}
@@ -79,6 +80,7 @@ short DrawViewArch::mustExecute() const
LineWidth.isTouched() ||
FontSize.isTouched() ||
CutLineWidth.isTouched() ||
LineSpacing.isTouched() ||
JoinArch.isTouched()
) {
return 1;
@@ -123,6 +125,7 @@ App::DocumentObjectExecReturn *DrawViewArch::execute()
<< ", rotation=" << Rotation.getValue()
<< ", fillSpaces=" << (FillSpaces.getValue() ? "True" : "False")
<< ", cutlinewidth=" << CutLineWidth.getValue()
<< ", linespacing=" << LineSpacing.getValue()
<< ", joinArch=" << (JoinArch.getValue() ? "True" : "False");
Base::Interpreter().runString("import ArchSectionPlane");

View File

@@ -53,6 +53,8 @@ public:
App::PropertyFloat FontSize;
App::PropertyFloat CutLineWidth;
App::PropertyBool JoinArch;
App::PropertyFloat LineSpacing;
/** @name methods override Feature */
//@{