Hi All, I probably wont get to work on the image region till weekend, however it is a good idea to think of a roadmap. Martin, to discuss your comments:
<Let the context menu entries just select the default format and create the empty image of appropriate format on the fly when the user double-clicks the region.>
I have done this - found no file found error annoying as well after some use (new .dll is not included yet).
<1. Insert Image
2. try to switch off the image border in the context menu.
this does not work for me, the border is still displayed.>
Unless I am wrong, this is how original image region behaved (I just redownloaded it), do we want to change that?
<If I open the image in the attached sm file, then some objects are invisible in inkscape.>
I am at the stand still here. The plugin only zooms SVG files if no height/width is present inside the file, or if it is set to % (as I did for blank svg). For either of those cases, when inkscape re-opens the svg, the "3D Box" objects were minimized to the bottom left corner (you still can scale them up if desired). If someone can come up with .svg file that both scales in SMath, and is saved/opened correctly by inkscpe I can use it as a blank document in the plugin. It is not a big deal for me though - how often will you sketch those 3D boxes in SMath?
<What is the intent of the different behaviour between cloning and copy/paste?>
This one is tricky. While there is no intent, per say, I am not sure how to change it either. You see, I can define Clone () though the code, while copy/paste just takes the region and creates the exact duplicate (just like Davide mentioned). And while you can edit the formula you copy/pasted, you cannot redefine the filename of the image in the region from SMath.
Davide, do you think there is a conceptual way to change the name of the imbedded image during copy / paste? I cannot think of one..
<Try to disable/suppress region update during resizing>
Will try :-) update / resize functions are used throughout the code and it will take some effort to seprate the two (i.e. resize without re-rendering of svg, unless certain condition). It should be possible, the question is whether I will be succesful at it.
Also I am getting close to the point where I wanted to be for the Image Region development (once I take care of the above, if it proves to be possible / necessary). Do you guys have any major griefs with it, or suggestions? Otherwise I wil wrap it up and publish to the extensions manager.
Edited by user 03 February 2016 18:16:00(UTC)
| Reason: Not specified