On Jul 5, 2011, at 5:39 PM, Krzysztof Kosiński wrote:
W dniu 6 lipca 2011 01:48 użytkownik Josh Andler <scislac@...400...> napisał:
While I'm not a huge fan of multiple windows like that, I see where it's useful, and typically that's where someone will just open another view of the same document.
Opening the same file two times is perfectly OK and there are valid use cases for this. What's not OK is propagating changes between those two "views", which appears to be the intention of the separation between "documents" and "windows" and Jon's implicit suggestion that one document (in the sense of SP tree, not a file) can be edited in more than one window.
I hope someone understands what I'm talking about. It's not about opening the same file two times, which is OK, it is about something like synchronizing the view of this file in those two windows, and I think it's very bad. At the moment Inkscape does not do the latter, but there are some code structures intended to allow it.
I think it comes down to your personal preference not to work that way, but for the users out there who desire that workflow, we *need* to be sure it is properly supported.
A *key* to most all modern software is separation and modularity so the abstract (a 'document' in this case) can be reused in multiple ways (including multiple 'views' in this case). Every single piece of modern software that I have checked has supported this multi-view workflow, including GIMP, Photoshop, Illustrator, OpenOffice, and even Microsoft Word.
*ALL* of these apps propagate changes between the views simultaneously in realtime. Stating that it is not desired or is very bad is actually misunderstanding the problem. Many people need this workflow, and the applications all support it for those who chose to work that way. If one does not like to work that way, one just does not need to open additional views/windows. *However* if one *does* work that way, then the application needs to support that.
SP trees are also supposed to be easy to update in multiple views. That is a key point of our architecture. That does require one to do the proper thing at the proper level... but it is how Inkscape has worked and is supposed to work. If it does not work for editing a single SP Tree in more than one window then bugs have been introduced and need to be fixed.
For some helpful diagrams, the Java classes used for document editing are quite good:
http://download.oracle.com/javase/6/docs/api/javax/swing/text/Document.html (notice the section on "Notification" and its corresponding diagram)
http://download.oracle.com/javase/6/docs/api/javax/swing/text/JTextComponent... (take note of the model/view separation and diagram)