12 Oct
2005
12 Oct
'05
10:41 a.m.
This thread is very academical. Ben, why don't you have a look at inkscape's branch named CXXIFICATION_VIEW_AND_WIDGET and discuss that?
There, the model (SPDesktop) is quite happily using a second view (EditWidget) without knowing details, and without a circular dependency, because EditWidget (as well as your usual SPDesktopWidget) adheres to EditWidgetInterface, and SPDesktop only needs a reference to that.
Why?
Because one and the same SPDesktop now drives Gtk+ and Gtkmm. Software reuse par excellence.
Please use this as concrete example and contribute to the code.
ralf