Re: custom treemodel and cell renderers



Sorry for the noise.
1) is for the Treeview to access the treemodel
2) is for the treemodel to access the data

eric jrdn2 wrote:
Hi all,
i'm building a treeview on a custom treemodel based on std::vector.
My wish is to build it without knowing the number and the type of the treecolumns at build time. I decided to come back to more fondamental widgets to do it, i.e. implementing this with cellrenderers. My question is this one. I don't know if i give you enough informations to have an answer. Sorry for my misunderstanding. I'm lost in the documentation.

Why does the data access must be implemented in two methods?

1) m_TreeviewColum.set_cell_data_func(m_CellRendererText,sigc::mem_fun(*this,&class::access));
for each CellRenderer to access the data


and
2) virtual void get_value_vfunc(const TreeModel::iterator& iter, int column, Glib::ValueBase& value) const;
which should be overwritten when implementing a customtreemodel?

Eric


	

	
		
___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list



	
	
		
___________________________________________________________________________ Avez-vous essayé le nouveau Yahoo! Mail ? Plus rapide, plus efficace... simplement révolutionnaire ! Découvrez-le.
Lien :http://fr.mail.yahoo.com



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