[Gtk-sharp-list] Sorting and Filtering NodeStore

Adam Tauno Williams adam at morrison-ind.com
Mon Nov 17 16:21:46 EST 2008


On Fri, 2008-11-14 at 15:48 -0500, Adam Tauno Williams wrote:
> > This is a follow up to:
> > http://go-mono.com/forums/#nabble-td19464372
> > Mike Kestner wrote:
> > > Now that we have GInterface registration, I think I'd like to move
> > > NodeStore to use an internal managed TreeModel implementation and get
> > > rid of the glue model it currently utilizes.  Then the TreeSortable
> > > interface could be implemented in managed code as well to provide
> > > sorting on the NodeStore.
> > > Maybe I'll make that an evening and weekend project, or of course, I'd
> > > be happy to work with anyone who wants to take a stab at it and provide
> > > a patch.
> > Any luck?
> Nothing to my knowledge.
> I'm wondering if it wouldn't, in the end, be easier just to kick
> TreeView and NodeView to the curb and try to use the ListView
> implemented by Banshee (the Hyena subproject)
> <http://www.koders.com/csharp/fid17F12F323AA7D9B9E693343447AF53895134E809.aspx>.  

Attached is a demo app that uses the beautiful ListView from Hyena;  it
sorts, selects, and does a popup menu.  IMO, much easier to understand
than TreeView/ListView.  Only thing I haven't done yet is filter.

Item.cs - the object managed by the model
Model.cs - the model used by the view, basically a wrapper around IList
View.cs - the view
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Item.cs
Type: text/x-csharp
Size: 1567 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20081117/0753db47/attachment-0005.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.cs
Type: text/x-csharp
Size: 1152 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20081117/0753db47/attachment-0006.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Model.cs
Type: text/x-csharp
Size: 2627 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20081117/0753db47/attachment-0007.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: View.cs
Type: text/x-csharp
Size: 2277 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20081117/0753db47/attachment-0008.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Window.cs
Type: text/x-csharp
Size: 1761 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20081117/0753db47/attachment-0009.bin 


More information about the Gtk-sharp-list mailing list