2005-06-22 Mike Kestner <mkestner@novell.com>

* gen-vm-docs.cs : some monodocer formatting changes and attr lookup
	enhancements.

svn path=/trunk/gtk-sharp/; revision=46377
This commit is contained in:
Mike Kestner 2005-06-22 18:04:17 +00:00
parent d3c6721f1e
commit 828f30b5a5
6 changed files with 53 additions and 53 deletions

View file

@ -1,3 +1,8 @@
2005-06-22 Mike Kestner <mkestner@novell.com>
* gen-vm-docs.cs : some monodocer formatting changes and attr lookup
enhancements.
2005-06-16 Mike Kestner <mkestner@novell.com>
* en/*/*.xml : run the versionator to add since elements for 2.6.

View file

@ -701,7 +701,6 @@ All UI components in an application which provide useful information or services
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Atk.Object.StateChange" /> event.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected Object (GLib.GType gtype);" />
<MemberType>Constructor</MemberType>
@ -796,8 +795,8 @@ All UI components in an application which provide useful information or services
</Parameters>
<Docs>
<param name="values">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
<summary>Default handler for the <see cref="M:Atk.Object.PropertyChange" /> event.</summary>
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Atk.Object.PropertyChange" /> event.</remarks>
</Docs>
</Member>
</Members>

View file

@ -390,7 +390,6 @@
</remarks>
</Docs>
</Member>
<Member MemberName="RequestRedraw">
<MemberSignature Language="C#" Value="public void RequestRedraw (int x1, int y1, int x2, int y2);" />
<MemberType>Method</MemberType>
@ -641,7 +640,6 @@
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Canvas (IntPtr raw);" />
<MemberType>Constructor</MemberType>
@ -758,7 +756,8 @@
<Attribute>
<AttributeName>GLib.Property(Name="aa")</AttributeName>
</Attribute>
</Attributes></Member>
</Attributes>
</Member>
<Member MemberName="DrawBackground">
<MemberSignature Language="C#" Value="public event Gnome.DrawBackgroundHandler DrawBackground;" />
<MemberType>Event</MemberType>
@ -779,7 +778,8 @@
<Attribute>
<AttributeName>GLib.Signal(CName="draw_background")</AttributeName>
</Attribute>
</Attributes></Member>
</Attributes>
</Member>
<Member MemberName="RenderBackground">
<MemberSignature Language="C#" Value="public event Gnome.RenderBackgroundHandler RenderBackground;" />
<MemberType>Event</MemberType>
@ -801,7 +801,8 @@
<Attribute>
<AttributeName>GLib.Signal(CName="render_background")</AttributeName>
</Attribute>
</Attributes></Member>
</Attributes>
</Member>
<Member MemberName="GetScrollRegion">
<MemberSignature Language="C#" Value="public void GetScrollRegion (out double x1, out double y1, out double x2, out double y2);" />
<MemberType>Method</MemberType>
@ -859,7 +860,6 @@
<remarks>Returns the native <see cref="T:GLib.GType" /> value for <see cref="T:Gnome.Canvas" />.</remarks>
</Docs>
</Member>
<Member MemberName="OnDrawBackground">
<MemberSignature Language="C#" Value="protected virtual void OnDrawBackground (Gdk.Drawable drawable, int x, int y, int width, int height);" />
<MemberType>Method</MemberType>
@ -899,7 +899,8 @@
<Attribute>
<AttributeName>System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
</Attributes>
</Member>
<Member MemberName="PixelsPerUnit">
<MemberSignature Language="C#" Value="public double PixelsPerUnit { set; get; };" />
<MemberType>Property</MemberType>
@ -951,8 +952,8 @@
</Parameters>
<Docs>
<param name="buf">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
<summary>Default handler for the <see cref="M:Gnome.Canvas.RenderBackground" /> event.</summary>
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gnome.Canvas.RenderBackground" /> event.</remarks>
</Docs>
</Member>
</Members>

View file

@ -386,7 +386,6 @@
</Attribute>
</Attributes>
</Member>
<Member MemberName="WaitForImage">
<MemberSignature Language="C#" Value="public Gdk.Pixbuf WaitForImage ();" />
<MemberType>Method</MemberType>
@ -489,9 +488,10 @@
<Parameter Name="evnt" Type="Gdk.EventOwnerChange" />
</Parameters>
<Docs>
<param name="evnt">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
<param name="evnt">An event describing the owner change.</param>
<summary>Default handler for the <see cref="M:Gtk.Clipboard.OwnerChange" /> event.</summary>
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.Clipboard.OwnerChange" /> event.</remarks>
<since version="Gtk# 2.6" />
</Docs>
</Member>
</Members>

View file

@ -461,8 +461,8 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
<summary>Default handler for the <see cref="M:Gtk.FileChooserButton.SelectionChanged" /> event.</summary>
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.FileChooserButton.SelectionChanged" /> event.</remarks>
</Docs>
</Member>
<Member MemberName="OnFileActivated">
@ -473,8 +473,8 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
<summary>Default handler for the <see cref="M:Gtk.FileChooserButton.FileActivated" /> event.</summary>
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.FileChooserButton.FileActivated" /> event.</remarks>
</Docs>
</Member>
<Member MemberName="OnUpdatePreview">
@ -485,8 +485,8 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
<summary>Default handler for the <see cref="M:Gtk.FileChooserButton.UpdatePreview" /> event.</summary>
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.FileChooserButton.UpdatePreview" /> event.</remarks>
</Docs>
</Member>
<Member MemberName="OnCurrentFolderChanged">
@ -497,8 +497,8 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
<summary>Default handler for the <see cref="M:Gtk.FileChooserButton.CurrentFolderChanged" /> event.</summary>
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.FileChooserButton.CurrentFolderChanged" /> event.</remarks>
</Docs>
</Member>
<Member MemberName="CurrentFolderUri">

View file

@ -31,7 +31,6 @@ namespace GtkSharp.Docs {
public static int Main (string[] args)
{
string api_filename = "";
XmlDocument api_doc = new XmlDocument ();
BindingFlags flags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly;
@ -51,27 +50,20 @@ namespace GtkSharp.Docs {
Hashtable sigs = new Hashtable ();
foreach (EventInfo ei in t.GetEvents (flags)) {
foreach (Attribute attr in ei.GetCustomAttributes (false)) {
if (attr.ToString () == "GLib.SignalAttribute") {
sigs [((GLib.SignalAttribute) attr).CName] = ei.Name;
break;
}
}
}
foreach (EventInfo ei in t.GetEvents (flags))
foreach (GLib.SignalAttribute attr in ei.GetCustomAttributes (typeof (GLib.SignalAttribute), false))
sigs [attr.CName] = ei.Name;
if (sigs.Count == 0) continue;
Hashtable vms = new Hashtable ();
foreach (MethodInfo mi in t.GetMethods (flags)) {
foreach (Attribute attr in mi.GetCustomAttributes (false)) {
if (attr.ToString () == "GLib.DefaultSignalHandlerAttribute") {
string conn_name = ((GLib.DefaultSignalHandlerAttribute) attr).ConnectionMethod;
foreach (GLib.DefaultSignalHandlerAttribute attr in mi.GetCustomAttributes (typeof (GLib.DefaultSignalHandlerAttribute), false)) {
string conn_name = attr.ConnectionMethod;
if (sigs.ContainsValue (conn_name.Substring (8)))
vms [mi.Name] = conn_name.Substring (8);
break;
}
}
}
@ -91,6 +83,7 @@ namespace GtkSharp.Docs {
XPathNavigator api_nav = api_doc.CreateNavigator ();
bool dirty = false;
foreach (string vm in vms.Keys) {
XPathNodeIterator iter = api_nav.Select ("/Type/Members/Member[@MemberName='" + vm + "']");
@ -100,15 +93,17 @@ namespace GtkSharp.Docs {
XmlElement rem = elem ["Docs"] ["remarks"];
string summary = summ.InnerXml;
string remarks = rem.InnerXml;
if (summary == "To be added" && remarks == "To be added") {
if (summary == "To be added." && remarks == "To be added.") {
summ.InnerXml = "Default handler for the <see cref=\"M:" + t + "." + vms [vm] + "\" /> event.";
rem.InnerXml = "Override this method in a subclass to provide a default handler for the <see cref=\"M:" + t + "." + vms [vm] + "\" /> event.";
dirty = true;
} else
Console.WriteLine ("Member had docs:" + vm);
} else {
Console.WriteLine ("Member not found:" + vm);
}
if (dirty)
api_doc.Save (filename);
}
}