Re: [gtkmm] iterating through the contents of a tree



How to iterate over rows:
http://www.gtkmm.org/gtkmm2/docs/tutorial/html/ch08s03.html
this is marvellous, but i only want to iterate over the selected rows, or iterate over all the rows and ignore the unselected ones somehow. i could create a 'selected' bool in my Gtk::TreeModel::ColumnRecord which gets set/unset as the rows are selected and then filter on that as i iterate over the rows. this would feel slightly redundant though, since the TreeModel must know which rows have been selected.



bevis





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