Fw: TreeModel and TreeView



Thanks for reply, Paul
 
But I think that behaviour I want to achieve cannot be done with Gtk::ListStore class (I want to display some data from DB where is about 10.000+ records...so I WANT to fetch a row ON DEMAND... NOT ALL ROWS AT THE BEGINNING - So something like virtual list control on WIN32 API). I think that only soultion is with custom TreeModel but if it can be done with some default TreeModel implementation please could you point to some source ...I would be grateful.

 

thanks

 

Trigve




----- Original Message ----
From: Paul Davis <pjdavis engineering uiowa edu>
To: Trigve Siver <trigves yahoo com>
Cc: gtkmm-list gnome org
Sent: Monday, January 29, 2007 3:05:33 AM
Subject: Re: TreeModel and TreeView

Trigve,

Using custom tree models for this sounds like an overcomplication. I'd
recommend trying a normal tree model and loading data into it instead
of trying to subclass it.

Custom tree models are fairly complicated. I'd avoid using them if possible.

Paul

On 1/28/07, Trigve Siver <trigves yahoo com> wrote:
>
>
>
>
>
> Hi,
>
>
>
>
>
>
> I'm examining the exmaple code from gtkmm sources
> (examples/treemodelcustom). I have compiled and run it and have some
> question. The first operation that is called is
> ExampleTreeModel::get_iter_vfunc(const Path& path,
> iterator& iter) and then "_number_of_rows_" times iter_has_child_vfunc +
> iter_next_vfunc. Then get_value_vfunc is called... so I was thinking that
> get_value_vfunc is called only when TreeView need information for rendering
> the cell...but it looks like that it is called even when only one row is
> visible... So my question is if it is possible somehow to achieve that
> get_value_vfunc is called only when row is to be rendered... I want to
> display some data from DB where is about 10.000+ records...so want to fetch
> row on demand...not all rows at begining
>
> thanks
>
> Trigve
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>


No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.

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