On 5/19/06, Andrew E. Makeev <[EMAIL PROTECTED]> wrote:
That is may way of creating custom models:
class CommonModel // class with common data handling and sorting
methods for my data-container
{...}
class DataListTreeModel
: public Glib::Object
, public Gtk::TreeModel
, public Gtk::TreeSortable
, public CommonModel
{...}
class BROWSER_DLL_EXP_IMP DataTreeTreeModel
: public Glib::Object
, public Gtk::TreeModel
, public Gtk::TreeSortable
, public CommonModel
{...}
CommonModel::CommonModel( DataSet* ds )
{...}
DataListTreeModel::DataListTreeModel( DataSet* ds )
: Glib::ObjectBase( typeid( DataListTreeModel ) )
, Glib::Object()
, CommonModel( ds )
{...}
DataTreeTreeModel::DataTreeTreeModel( DataSet* ds )
: Glib::ObjectBase( typeid( DataTreeTreeModel ) )
, Glib::Object()
, CommonModel( ds )
{...}
there is no warning nor crash.
Regards,
-andrew
Thanks, that's helpful information. I'll keep investigating.
Jonner
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list