On Tue, 2005-02-15 at 23:15, jon@...18... wrote:
The ViewManager could track and notice when the last ViewSet capable of 'owning' a document save was closed.
Or... if we don't toss in a ViewManager, then the UIApplication could track it. And at first perhaps we won't have ViewSet, but it would be good to work towards it.
Probably leave it to the Application object for the short-term. That already gets notified of all existing views and documents.
Hmmm.... then there's the case of command-line invocation and such. Maybe we'd want some abstract interface like 'DocumentHolder' that may be a UI ViewSet or may be just an internal non-UI thing.
That would be nice. Currently SPDocuments register themselves directly with Inkscape::Application (the class) on creation, which I hate. Also they do refcounting wrong to avoid confusing the aforementioned buggy close dialog code.
SPDocuments are also currently responsible for Inkscape::Application's lifecycle (via the "keepalive" business in SPDocument), which also strikes me as deeply wrong.
-mental