RE: [gtkmm] Example of Gtk::TreeModel derivation and encapsulatio n



> I discussed with murrayc on IRC about TreeModel
> 
> I tried to make a very general base class to transforme any 
> class into a flat Gtk::TreeModel(equivalent to 
> Gtk::TreeStore) the prerequisite is that the data are easily 
> integer indexable, it's simpler than an iterator.
> 
> The code is here: http://benjamin.dauvergne.free.fr/gtkmm/
> My goal is to add drag&drop support to this class, then to 
> try to create another one with n-ary tree semantic instead of 
> integer indexed list semantic.

Great. As I said, on irc, I would like to see a normal derived tree model
example, so that I have someway to assess your stuff:
http://bugzilla.gnome.org/show_bug.cgi?id=124297

Even without that, I will try to find the time to look over this properly.

For now, your thing can also be an example, so please don't use the Gtk
namespace. 

> I don't use the CVS version of Gtkmm, does-the vfunc for 
> drag&drop in Gtk::TreeDragSource and Gtk::TreeDragDest dhave 
> been rewritten to use Gtk::SelectionData instead of GtkSelectionData?

Yes, it has changed in gtkmm 2.4. You don't need to worry about that yet if
you don't want to. See this list for information about cvs modules and
branches:
http://www.gtkmm.org/cvs.shtml

Murray Cumming
www.murrayc.com
murrayc usa net



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