[gtkmm] Navigating treeview??
- From: ZHOU DX <zhou_dx yahoo com>
- To: gtkmm-list gnome org
- Subject: [gtkmm] Navigating treeview??
- Date: Wed, 12 Feb 2003 01:33:34 -0800 (PST)
Hi folks,
I plan to write a function that can
encode the content of a tree view into a HTML table.
It involves with navigating the tree view. If I know
the everything about Gtk::TreeModel::ColumnRecord, it
is not big deal. I can do it as follows:
Gtk::TreeModel::Children children=
m_list_store->children();
for(Gtk::TreeModel::Children::iterator
iter=children.begin(); iter!=children.end();++iter)
{
Gtk::TreeModel::Row row = *iter;
int index = row[m_list_columns.m_index]
//...output index
......
}
I expect the function in a generic form like this:
std::string tree_to_html(Gtk::TreeView* tree), so it
can adapt to any tree view.
I still can not figure out a proper way to iterate the
tree view without extra information.
(Can we directly access a cell in the tree view with
gtkmm?)
Have any idea on this?
Cheers,
Dan
=====
----------------------------------------------------------
Have fun!
__________________________________________________________
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]