tberman at off.net
Wed Sep 28 03:47:02 EDT 2005
On Wed, 2005-09-28 at 09:30 +0200, Jeroen Zwartepoorte wrote:
> Hey Todd,
> On 9/28/05, Todd Berman <tberman at off.net> wrote:
> > Out of curiosity, why didn't you use the NodeBuilder and TreeViewPad
> > APIs?
> First off, the widget *only* depends on Gtk# atm. It doesn't use any
> MonoDevelop APIs. The idea is that you have an MD addin that embeds
> this widget in a VBox and adds it to the main window using a DockItem
> etc. So this widget can be used out-of-the-box in any Gtk#
> Second, i have no idea that those APIs exist & what they're for :)
> I'll take a look at them shortly.
> > If there are problems with the api exposed there, We would like to know
> > about it and get it fixed. And it would be nice if all of the TreeViews
> > in MD start using this API, as it really is very nice, especially
> > because of how it allows extension points relatively easily.
> See above, my main "goal" is to have a widget that can be reused in
> any Gtk# application, not just MD :)
> > I understand that that would make it less portable for all to use, but
> > for inclusion into MD, I somewhat see it as a must.
> What does using the APIs you mention give you extra? I'd like to keep
> the widget as generic as possible.
I could be wrong (strike that, probably wrong) but my understanding (and
lluis can explain better) is that it:
1) Easily allows for extensions, like if someone wanted to extend the
file-pad to show external servers over sftp or something, or add a new
right click menu option, etc.
2) Handles all of the lovely lazyloading for you. So a lot less code
3) Hooks easily into our Command structure, that would allow you to
redirect commands (Like cut, copy, or whatever) to your pad if it has
focus, and do the right thing.
Those are the 3 bigthings, there are prolly more, but in general it is
pretty cool, and people that have used it seem to enjoy it.
More information about the Monodevelop-list