Re: custom treemodel?
- From: Paul Davis <paul linuxaudiosystems com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: "Andrew E. Makeev" <andrew solvo ru>, gtkmm list <gtkmm-list gnome org>
- Subject: Re: custom treemodel?
- Date: Wed, 17 May 2006 09:17:49 -0400
On Wed, 2006-05-17 at 14:06 +0200, Murray Cumming wrote:
> > On Wed, 2006-05-17 at 09:49 +0200, Murray Cumming wrote:
> >> [snip]
> >> > Actually, I wonder if it is possible that gtkmm provide custom model
> >> > implementation. Developer should just provide data container class
> >> > derived from some Gtk::virtual-base class and reimplement methods to
> >> > get/set data from/to your container by given Gtk::TreeModelPath or
> >> > Gtk::TreeIter, and column index/reference, and methods to sort data if
> >> > needed. Just there is too much code you should rewrite for your custom
> >> > model now.
> >>
> >> This would be cool. It would be best to attempt it outside of gtkmm
> >> first.
> >
> > even cooler if it actually derived from some STL abstract type,
>
> What kind of type do you mean exactly? Standard C++ containers are not
> meant to be used as base classes. They do conform to standard
> types/requirements, but I think those are just concepts rather than actual
> classes.
i do this quite often actually. but what i really meant was to derive
from the abstract classes behind the instances. e.g. Sequence, Container
etc. rather than vector, list. these are real classes i believe.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]