Re: custom treemodel?



the one thing that is a little unfortunate about a custom treemodel
based on Gtk/Glib objects is that if you are strict about
Model/View/Controller programming to the extent that you do not allow
your Model implementation to use View-related code (e.g GTK), its not
possible to use the treemodel for your Model data stores.

for example, libardour, the "Model" for ardour, is not permitted to use
any GTK/GDK code (it used to be prohibited to even use Glib, but we've
relaxed that for now). since the View code wants to display the Model
using GTK, it would be very nice if we could just drop the Model's own
data stores into various TreeViews and have it work. But if the custom
treemodel is actually a GTK component (or gtkmm, no significant
difference for this argument), this violates the separation and it can't
be done.

just a thought.

--p





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]