FYI, the CVS code now has a fix such that the initial file dialogs for load,
save as and export use the path of the current diagram, and print to file
prints to the directory of the current diagram (unless the file name is
absolute).  I would like the dialogs to remember directory changes, but
since one dialog is shared between all diagrams, that's not feasible.

I'm currently looking at having an image object automatically open a file
browser on creation.  A couple problems have turned up:  The image object
cannot know of the diagram, so it can't get the current directory.  There
is a problematic interaction between the image file dialog and initial
dragging of the image -- basically, you cannot have both without losing the
dragging result to aspect ratio fixing.  I can either allow dragging
immediately (while the file browser is open), or just open the file browser
and then I don't see a good way to allow dragging after the image is
selected (other than the normal post-selection size change).

What would you like to see as the image creation interaction?  How do other
programs do this better?

In addition, the image change isn't reflected on the diagram because it
happens outside the normal event cycle (callback from image_create), but
there's probably some way around that that I haven't considered.

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause) | H�rdgrim of Numenor
"I do not agree with a word that you say, but I    | Retainer of Sir Kegg
will defend to the death your right to say it."    |   of Westfield
    --Evelyn Beatrice Hall paraphrasing Voltaire   | Chaos Berserker of Khorne

Reply via email to