16 Feb
2005
16 Feb
'05
4:30 a.m.
Quoting MenTaLguY <mental@...3...>:
That would be nice. Currently SPDocuments register themselves directly with Inkscape::Application (the class) on creation, which I hate.
Blech!!!!
Also they do refcounting wrong to avoid confusing the aforementioned buggy close dialog code.
Again, another reason that it is "Blech!!!!"
SPDocuments are also currently responsible for Inkscape::Application's lifecycle (via the "keepalive" business in SPDocument), which also strikes me as deeply wrong.
Yes, it is. We want them to be ignorant model classes in a M-VC pattern, and thus should know nothing of the context of their use, or anything higher. They should only care about their internal state and data.