WandererFan / FreeCAD-TechDraw

This repo is obsolete. Please use FreeCAD/FreeCAD.
Other
3 stars 1 forks source link

Finish edition of template texts #18

Closed ianrrees closed 8 years ago

ianrrees commented 8 years ago

Moving this over from ianrrees/FreeCAD_tinkering - was made ~6 months ago, so there's a good chance some of these items have been taken care of.

WandererFan commented 8 years ago
WandererFan commented 8 years ago

"Python interface - changing strings, also setting view orientation while there"

"Bigger minimum size for template string dialog"

"Show PropertyMap in PropertyEditor?"

"Escape user strings + handle SVG errors better (currently throws unhandled exception)"

ianrrees commented 8 years ago

View Orientation - I'm not sure if it's important anymore, but there's a Property associated with the template orientation. Was thinking we should have Python methods for manipulating that (or do those come for free?)

Escaping user strings and handling SVG errors - For instance, try changing a drawing/template title to "Hello <!--" - it'll crash the Qt SVG renderer. We should both catch the exception thrown in this case (as it could occur when a corrupt SVG is opened) and also escape the string so that it's OK to put those sort of characters in to the text fields. I imagine there's something built in to Qt for that sort of escaping already, haven't looked.

WandererFan commented 8 years ago

App.ActiveDocument.myPage.Template.ViewOrientation = "Landscape" should work (or ... = 1 since it is an enum).

Might need recompute() after to see results.

OK, I understand the SVG thing now.

Thanks.

On Wed, May 18, 2016 at 4:16 AM, Ian notifications@github.com wrote:

View Orientation - I'm not sure if it's important anymore, but there's a Property associated with the template orientation. Was thinking we should have Python methods for manipulating that (or do those come for free?)

Escaping user strings and handling SVG errors - For instance, try changing a drawing/template title to "Hello <!--" - it'll crash the Qt SVG renderer. We should both catch the exception thrown in this case (as it could occur when a corrupt SVG is opened) and also escape the string so that it's OK to put those sort of characters in to the text fields. I imagine there's something built in to Qt for that sort of escaping already, haven't looked.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/WandererFan/FreeCAD-TechDraw/issues/18#issuecomment-219957202

WandererFan commented 8 years ago

"DXF support?"

WandererFan commented 8 years ago

"Escape user strings + handle SVG errors better (currently throws unhandled exception)"

*\ fixed

WandererFan commented 8 years ago

Everything on this list except: