[Mono-docs-list] Problem viewing class members documentation from class members page
Hello: One question about monodoc at http://www.go-mono.com:8080/ http://www.go-mono.com:8080/ ( probably it's already known issue ), when i try to see the doc of a method from the member list page it shows always a empty page, the link seems to generated bad because making click on the same method on the tree view shows the documentation of the method. The link generated from the members page ( that it's not valid ) is: http://www.go-mono.com:8080/monodoc.ashx?link=m:System.Buffer.BlockCopy http://www.go-mono.com:8080/monodoc.ashx?link=m:System.Buffer.BlockCopy(System.Array,System.Int32,System.Array,System.Int32,System.Int32) And from the treeview: http://www.go-mono.com:8080/[EMAIL PROTECTED] http://www.go-mono.com:8080/[EMAIL PROTECTED] -- Best regards Carlos Guzmán Álvarez Vigo-Spain Todos somos muy ignorantes. Lo que ocurre es que no todos ignoramos las mismas cosas. Albert Einstein. ___ Mono-docs-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-docs-list
[Mono-docs-list] Patch for monodoc
Attached is a patch for monodoc adding Alt_L+Left|Right for back and forward functionality. I rarely use a mice *grin* What this patch does is: browser.cs 1. Add an eventhandler for keypress 2. Add keypress_event_cb for dealing with these events history.cs 3. Add internal as an access modifier to BackClicked and ForwardClicked, thus reusing these methods instead of using code duplication. /Richard -- UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. Index: browser.cs === RCS file: /mono/monodoc/browser/browser.cs,v retrieving revision 1.68 diff -u -p -r1.68 browser.cs --- browser.cs 2 Oct 2003 22:59:36 - 1.68 +++ browser.cs 12 Oct 2003 00:01:23 - @@ -149,8 +149,9 @@ class Browser { MainWindow = (Gtk.Window) ui[window1]; MainWindow.DeleteEvent += new DeleteEventHandler (delete_event_cb); - -Stream icon = GetResourceImage (monodoc.png); + MainWindow.KeyPressEvent += new KeyPressEventHandler (keypress_event_cb); + + Stream icon = GetResourceImage (monodoc.png); if (icon != null){ monodoc_pixbuf = new Gdk.Pixbuf (icon); @@ -389,6 +390,24 @@ class Browser { statusbar.Pop (context_id); statusbar.Push (context_id, new_url); last_url = new_url; + } + } + + void keypress_event_cb (object o, KeyPressEventArgs args) + { + switch (args.Event.Key) { + case Gdk.Key.Left: + if (((Gdk.ModifierType) args.Event.state + Gdk.ModifierType.Mod1Mask) !=0) +history.BackClicked (this, EventArgs.Empty); + args.RetVal = true; + break; + case Gdk.Key.Right: + if (((Gdk.ModifierType) args.Event.state + Gdk.ModifierType.Mod1Mask) !=0) + history.ForwardClicked (this, EventArgs.Empty); + args.RetVal = true; + break; } } Index: history.cs === RCS file: /mono/monodoc/browser/history.cs,v retrieving revision 1.5 diff -u -p -r1.5 history.cs --- history.cs 5 Sep 2003 04:31:34 - 1.5 +++ history.cs 12 Oct 2003 00:01:23 - @@ -52,7 +52,7 @@ public class History { p.Go (); } - void BackClicked (object o, EventArgs args) + internal void BackClicked (object o, EventArgs args) { if (pos 1) return; @@ -66,7 +66,7 @@ public class History { forward.Sensitive = true; } - void ForwardClicked (object o, EventArgs args) + internal void ForwardClicked (object o, EventArgs args) { if (pos+1 == history.Count) return;
Re: [Mono-docs-list] Problem viewing class members documentation from class members page
Carlos, I posted the same problem and a fix yesterday. Check the patch in http://lists.ximian.com/archives/public/mono-docs-list/2003-October/000863.html to see if that fixes your problem (it seems to affect at least GECKO browsers and opera but not IE). Regards -fawad Carlos Guzmán Álvarez wrote: Hello: One question about monodoc at http://www.go-mono.com:8080/ http://www.go-mono.com:8080/ ( probably it's already known issue ), when i try to see the doc of a method from the member list page it shows always a empty page, the link seems to generated bad because making click on the same method on the tree view shows the documentation of the method. The link generated from the members page ( that it's not valid ) is: http://www.go-mono.com:8080/monodoc.ashx?link=m:System.Buffer.BlockCopy http://www.go-mono.com:8080/monodoc.ashx?link=m:System.Buffer.BlockCopy(System.Array,System.Int32,System.Array,System.Int32,System.Int32) And from the treeview: http://www.go-mono.com:8080/[EMAIL PROTECTED] http://www.go-mono.com:8080/[EMAIL PROTECTED] ___ Mono-docs-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-docs-list