Re: Support for column/row grouping



On Thu, 2011-10-06 at 15:48 +0200, Markus Elfring wrote:
> > This might be possible by using the Gtk::CellLayout interface of
> > Gtk::TreeViewColumn, I don't know for sure.
> 
> Can anything be reused for row/column groups with gtkmm means from other class
> libraries?
> 
> Examples:
> http://www.w3.org/TR/html4/struct/tables.html#h-11.2.4
> https://developer.mozilla.org/en/DOM/HTMLTableColElement
> http://eclipse.org/nebula/widgets/grid/grid.php
> https://bugs.kde.org/show_bug.cgi?id=144376

Very possibly. A Gtk::TreeModel can contain just about any copyable type
via the Gtk::TreeModel::Column<> template. You'd have to try. You can
use the cell_data_func() to set the "inconsistent" property.

I don't personally believe that the Gtk::CellRenderToggle's
"inconsistent" property will be used often enough to justify introducing
a new 3-value type and a Gtk::TreeView::append_column() convenience
method that uses it.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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