Closed ianrrees closed 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)"
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.
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
"DXF support?"
"Escape user strings + handle SVG errors better (currently throws unhandled exception)"
*\ fixed
Everything on this list except:
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.