mail-archives/gtk-sharp-list/2005-September/006416.html

116 строки
4.5 KiB
HTML
Исходник Обычный вид История

2019-06-06 22:02:55 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Re: [MonoDevelop] VfsNodeView
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Re%3A%20%5BMonoDevelop%5D%20VfsNodeView&In-Reply-To=2b11ca9005092800303a6f0198%40mail.gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="006415.html">
<LINK REL="Next" HREF="006417.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Re: [MonoDevelop] VfsNodeView</H1>
<B>Todd Berman</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Re%3A%20%5BMonoDevelop%5D%20VfsNodeView&In-Reply-To=2b11ca9005092800303a6f0198%40mail.gmail.com"
TITLE="[Gtk-sharp-list] Re: [MonoDevelop] VfsNodeView">tberman at off.net
</A><BR>
<I>Wed Sep 28 03:47:02 EDT 2005</I>
<P><UL>
<LI>Previous message: <A HREF="006415.html">[Gtk-sharp-list] Re: [MonoDevelop] VfsNodeView
</A></li>
<LI>Next message: <A HREF="006417.html">[Gtk-sharp-list] Re: [MonoDevelop] VfsNodeView
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6416">[ date ]</a>
<a href="thread.html#6416">[ thread ]</a>
<a href="subject.html#6416">[ subject ]</a>
<a href="author.html#6416">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Wed, 2005-09-28 at 09:30 +0200, Jeroen Zwartepoorte wrote:
&gt;<i> Hey Todd,
</I>&gt;<i>
</I>&gt;<i> On 9/28/05, Todd Berman &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">tberman at off.net</A>&gt; wrote:
</I>&gt;<i> &gt; Out of curiosity, why didn't you use the NodeBuilder and TreeViewPad
</I>&gt;<i> &gt; APIs?
</I>&gt;<i>
</I>&gt;<i> First off, the widget *only* depends on Gtk# atm. It doesn't use any
</I>&gt;<i> MonoDevelop APIs. The idea is that you have an MD addin that embeds
</I>&gt;<i> this widget in a VBox and adds it to the main window using a DockItem
</I>&gt;<i> etc. So this widget can be used out-of-the-box in any Gtk#
</I>&gt;<i> application.
</I>
Absolutely understood.
&gt;<i>
</I>&gt;<i> Second, i have no idea that those APIs exist &amp; what they're for :)
</I>&gt;<i> I'll take a look at them shortly.
</I>&gt;<i>
</I>&gt;<i> &gt; If there are problems with the api exposed there, We would like to know
</I>&gt;<i> &gt; about it and get it fixed. And it would be nice if all of the TreeViews
</I>&gt;<i> &gt; in MD start using this API, as it really is very nice, especially
</I>&gt;<i> &gt; because of how it allows extension points relatively easily.
</I>&gt;<i>
</I>&gt;<i> See above, my main &quot;goal&quot; is to have a widget that can be reused in
</I>&gt;<i> any Gtk# application, not just MD :)
</I>&gt;<i>
</I>&gt;<i> &gt; I understand that that would make it less portable for all to use, but
</I>&gt;<i> &gt; for inclusion into MD, I somewhat see it as a must.
</I>&gt;<i>
</I>&gt;<i> What does using the APIs you mention give you extra? I'd like to keep
</I>&gt;<i> the widget as generic as possible.
</I>
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
duplication
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.
--Todd
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="006415.html">[Gtk-sharp-list] Re: [MonoDevelop] VfsNodeView
</A></li>
<LI>Next message: <A HREF="006417.html">[Gtk-sharp-list] Re: [MonoDevelop] VfsNodeView
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6416">[ date ]</a>
<a href="thread.html#6416">[ thread ]</a>
<a href="subject.html#6416">[ subject ]</a>
<a href="author.html#6416">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
mailing list</a><br>
</body></html>