Re: custom treemodel?
- From: "Jonathon Jongsma" <jonathon jongsma gmail com>
- To: "Andrew E. Makeev" <andrew solvo ru>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: custom treemodel?
- Date: Fri, 19 May 2006 10:20:42 -0500
On 5/19/06, Andrew E. Makeev <andrew solvo ru> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]