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:
parent
d3c6721f1e
commit
828f30b5a5
6 changed files with 53 additions and 53 deletions
|
@ -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.
|
||||
|
|
|
@ -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>
|
||||
|
@ -785,7 +784,7 @@ All UI components in an application which provide useful information or services
|
|||
</Attribute>
|
||||
</Attributes>
|
||||
</Member>
|
||||
<Member MemberName="OnPropertyChange">
|
||||
<Member MemberName="OnPropertyChange">
|
||||
<MemberSignature Language="C#" Value="protected virtual void OnPropertyChange (Atk.PropertyValues values);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -796,9 +795,9 @@ 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>
|
||||
</Type>
|
||||
</Type>
|
|
@ -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>
|
||||
|
@ -754,11 +752,12 @@
|
|||
</para>
|
||||
</remarks>
|
||||
</Docs>
|
||||
<Attributes>
|
||||
<Attributes>
|
||||
<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>
|
||||
|
@ -775,11 +774,12 @@
|
|||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
<Attributes>
|
||||
<Attributes>
|
||||
<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>
|
||||
|
@ -797,11 +797,12 @@
|
|||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
<Attributes>
|
||||
<Attributes>
|
||||
<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>
|
||||
|
@ -895,11 +895,12 @@
|
|||
<param name="gtype">a <see cref="T:GLib.GType" /></param>
|
||||
<remarks>Chain to this constructor if you have manually registered a native <see cref="T:GLib.GType" /> value for your subclass.</remarks>
|
||||
</Docs>
|
||||
<Attributes>
|
||||
<Attributes>
|
||||
<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>
|
||||
|
@ -925,7 +926,7 @@
|
|||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="W2cAffine">
|
||||
<Member MemberName="W2cAffine">
|
||||
<MemberSignature Language="C#" Value="public void W2cAffine (out double[] affine);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -940,7 +941,7 @@
|
|||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="OnRenderBackground">
|
||||
<Member MemberName="OnRenderBackground">
|
||||
<MemberSignature Language="C#" Value="protected virtual void OnRenderBackground (Gnome.CanvasBuf buf);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -951,9 +952,9 @@
|
|||
</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>
|
||||
</Type>
|
||||
</Type>
|
|
@ -386,7 +386,6 @@
|
|||
</Attribute>
|
||||
</Attributes>
|
||||
</Member>
|
||||
|
||||
<Member MemberName="WaitForImage">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Pixbuf WaitForImage ();" />
|
||||
<MemberType>Method</MemberType>
|
||||
|
@ -479,7 +478,7 @@
|
|||
<since version="Gtk# 2.6" />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="OnOwnerChange">
|
||||
<Member MemberName="OnOwnerChange">
|
||||
<MemberSignature Language="C#" Value="protected virtual void OnOwnerChange (Gdk.EventOwnerChange evnt);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
@ -694,4 +694,4 @@
|
|||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
||||
</Type>
|
|
@ -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;
|
||||
if (sigs.ContainsValue (conn_name.Substring (8)))
|
||||
vms [mi.Name] = conn_name.Substring (8);
|
||||
break;
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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,16 +93,18 @@ 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);
|
||||
}
|
||||
|
||||
api_doc.Save (filename);
|
||||
if (dirty)
|
||||
api_doc.Save (filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue