Igor and Murray, thank you for your answers. Making the Liststore the canonical store for my datas was the solution i was complaining about. It was too slow when loading something like 30Mo of simple X,Y,description datas. I'm going to write the new code using a custom TreeModel with vectors. I compiled the treemodelcustom example of gtkmm with 1 million datas. This worked fine and fast, so I guess this is the solution of my problem. My understanding of lower levels functions of gtkmm is not yet very fine but i think this is worth to do.
--- Murray Cumming <[EMAIL PROTECTED]> a écrit : > > > Hello all, > > I would like to build a specific tabler/data > display > > with Gtkmm. > > > > Data displaying is done with a drawing area and > there > > is no problem with this. When I do not need to > view > > the content of the data (ie just draw them) i use > a > > stl vector<double> which is fast and easy to use, > > even if the number of data equals something like > > 100000 or 1 million. But I need to delete datas > with a > > right click on a spreadsheet, which requires a > > Treeview and a ListStore : it is too slow for this > > task. Does it exist any replacement of them, more > > compatible with the stl vector class? Faster? > > > > The drawing area is linked with the data. The left > and > > right arrows move a cursor on the screen following > the > > datas. This is simple to do with a stl vector. How > can > > I browse the data counter back in a ListStore? > > > > For now, I duplicate(!) the datas : the same datas > are > > in a ListeStore and in a stl vector (this is > > inefficient, that's why I ask you for a > solution...), > > and I use the one or the other if I have to do > > something or something else. Problem arises when i > > want to delete some datas and keep the two > > synchronised. Does anyone know how to solve this > and > > avoid this stupid duplication of datas? > > > > Thank you in advance for your answers. > > Eric > > Avoiding duplication of large amounts of data > usually requires a custom > treemodel. There's a simple example in > gtkmm/examples, and some real-world > examples such as in Glom (and, I think, in > gnome-db). > > You might also try to make the ListStore the > canonical store for your > data, though it would obviously not be as efficient > as the std::vector. > > > Murray Cumming > [EMAIL PROTECTED] > www.murrayc.com > www.openismus.com > > ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com _______________________________________________ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list