2003-02-12 02:14:42 +00:00
<Type Name= "About" FullName= "Gnome.About" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "John Luke" Value= "public class About : Gtk.Dialog" />
2003-02-12 02:14:42 +00:00
<AssemblyInfo >
<AssemblyName > gnome-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2005-05-23 20:41:51 +00:00
<AssemblyVersion > 2.0.0.0</AssemblyVersion>
2003-02-12 02:14:42 +00:00
</AssemblyInfo>
2003-02-23 07:26:30 +00:00
<ThreadSafetyStatement > Gtk# is thread aware, but not thread safe; See the <link location= "node:gtk-sharp/programming/threads" > Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-17 03:39:14 +00:00
<summary > Display author, documenter and translator credits for an application.</summary>
<remarks >
2003-07-17 06:38:40 +00:00
<para > The <see cref= "T:Gnome.About" /> widget is used as the standard way of displaying credits in an application.
2003-07-17 03:39:14 +00:00
Typically, it will be called when a user selects the About... option from the Help menu.
With one simple function call, the application can then display all of the appropriate information.</para>
2003-10-09 20:12:10 +00:00
<para > NOTE: The <see cref= "T:Gnome.About" /> widget is destroyed automatically when the close event is called. Therefore, it is not possible to use the same <see cref= "T:Gnome.About" /> more than once.</para>
2003-07-17 06:38:40 +00:00
<para > Compile the following example with: mcs GnomeAboutSample.cs -r gtk-sharp -r gnome-sharp -r gdk-sharp</para>
</remarks>
<example >
<code language= "C#" >
2003-07-17 03:39:14 +00:00
using System;
using Gtk;
using GtkSharp;
using Gnome;
class GnomeAboutSample
{
About ab;
Program program;
static void Main(string[] args)
{
new GnomeAboutSample(args);
}
GnomeAboutSample (string[] args)
{
program =
new Program("GnomeAboutSample", "0.1", Gnome.Modules.UI , args);
App app = new App("sample", "sample");
app.SetDefaultSize (250, 250);
app.DeleteEvent += new DeleteEventHandler (on_app_delete);
Button btn = new Button ("Show About");
btn.Clicked += new EventHandler (on_btn_clicked);
app.Contents = btn;
app.ShowAll();
program.Run();
}
private void on_btn_clicked (object obj, EventArgs args)
{
string[] authors = {"The Author", "Co-Author"};
string[] documenters = {"The Documenters", "Another Documenter"};
Gdk.Pixbuf pixbuf = new Gdk.Pixbuf ("MonoIcon.png");
ab = new Gnome.About ("GnomeAboutTest", "0.1", "Copyright", "Comments",
authors, documenters, "translator", pixbuf);
ab.Close += new EventHandler (OnAboutClose);
ab.Response += new ResponseHandler (OnAboutResponse);
ab.Run ();
}
private void OnAboutClose (object o, EventArgs args)
{
Console.WriteLine ("Close Event");
}
private void OnAboutResponse(object o, ResponseArgs args)
{
Console.WriteLine (args.ResponseId);
}
private void on_app_delete (object o, DeleteEventArgs args)
{
program.Quit ();
}
}
</code>
2003-07-17 06:38:40 +00:00
</example>
2003-02-12 02:14:42 +00:00
</Docs>
<Base >
<BaseTypeName > Gtk.Dialog</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
<Members >
<Member MemberName= "Construct" >
2005-05-23 20:41:51 +00:00
<MemberSignature Language= "C#" Value= "public void Construct (string name, string version, string copyright, string comments, string[] authors, string[] documenters, string translator_credits, Gdk.Pixbuf logo_pixbuf);" />
2003-02-12 02:14:42 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "name" Type= "System.String" />
<Parameter Name= "version" Type= "System.String" />
<Parameter Name= "copyright" Type= "System.String" />
<Parameter Name= "comments" Type= "System.String" />
2005-01-25 18:09:20 +00:00
<Parameter Name= "authors" Type= "System.String[]" />
<Parameter Name= "documenters" Type= "System.String[]" />
2003-09-17 21:56:59 +00:00
<Parameter Name= "translator_credits" Type= "System.String" />
<Parameter Name= "logo_pixbuf" Type= "Gdk.Pixbuf" />
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-17 06:38:40 +00:00
<summary > Construct a credits box for an <see cref= "T:Gnome.Application" /> .</summary>
2005-01-25 18:09:20 +00:00
<param name= "name" > a <see cref= "T:System.String" /> </param>
<param name= "version" > a <see cref= "T:System.String" /> </param>
<param name= "copyright" > a <see cref= "T:System.String" /> </param>
<param name= "comments" > a <see cref= "T:System.String" /> </param>
<param name= "authors" > a <see cref= "T:System.String" /> </param>
<param name= "documenters" > a <see cref= "T:System.String" /> </param>
<param name= "translator_credits" > a <see cref= "T:System.String" /> </param>
<param name= "logo_pixbuf" > a <see cref= "T:Gdk.Pixbuf" /> </param>
2003-07-17 06:38:40 +00:00
<remarks > The <paramref name= "authors" /> array cannot be empty.</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
2005-05-23 21:11:27 +00:00
2003-02-12 02:14:42 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public About (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Internal constructor</summary>
<param name= "raw" > Pointer to the C object.</param>
<remarks >
<para > This is an internal constructor, and should not be used by user code.</para>
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
2005-05-23 21:11:27 +00:00
2003-02-12 02:14:42 +00:00
<Member MemberName= "Name" >
<MemberSignature Language= "C#" Value= "public string Name { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-17 03:39:14 +00:00
<summary > The name of the application.</summary>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:System.String" /> </value>
2003-07-17 03:39:14 +00:00
<remarks />
2003-02-12 02:14:42 +00:00
</Docs>
2005-05-23 20:41:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.Property(Name="name")</AttributeName>
</Attribute>
</Attributes> </Member>
2003-02-12 02:14:42 +00:00
<Member MemberName= "TranslatorCredits" >
<MemberSignature Language= "C#" Value= "public string TranslatorCredits { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-17 03:39:14 +00:00
<summary > The translator for the current locale.</summary>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:System.String" /> </value>
2003-07-17 03:39:14 +00:00
<remarks />
2003-02-12 02:14:42 +00:00
</Docs>
2005-05-23 20:41:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.Property(Name="translator_credits")</AttributeName>
</Attribute>
</Attributes> </Member>
2003-02-12 02:14:42 +00:00
<Member MemberName= "Copyright" >
<MemberSignature Language= "C#" Value= "public string Copyright { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-17 03:39:14 +00:00
<summary > The copyright statement of the application.</summary>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:System.String" /> </value>
2003-07-17 03:39:14 +00:00
<remarks />
2003-02-12 02:14:42 +00:00
</Docs>
2005-05-23 20:41:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.Property(Name="copyright")</AttributeName>
</Attribute>
</Attributes> </Member>
2003-02-12 02:14:42 +00:00
<Member MemberName= "Logo" >
<MemberSignature Language= "C#" Value= "public Gdk.Pixbuf Logo { set; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.Pixbuf</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-17 03:39:14 +00:00
<summary > The logo for the application.</summary>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:Gdk.Pixbuf" /> </value>
2003-07-17 03:39:14 +00:00
<remarks />
2003-02-12 02:14:42 +00:00
</Docs>
2005-05-23 20:41:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.Property(Name="logo")</AttributeName>
</Attribute>
</Attributes> </Member>
2003-02-12 02:14:42 +00:00
<Member MemberName= "Version" >
<MemberSignature Language= "C#" Value= "public string Version { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-17 03:39:14 +00:00
<summary > The version string of the application.</summary>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:System.String" /> </value>
2003-07-17 03:39:14 +00:00
<remarks />
2003-02-12 02:14:42 +00:00
</Docs>
2005-05-23 20:41:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.Property(Name="version")</AttributeName>
</Attribute>
</Attributes> </Member>
2003-02-12 02:14:42 +00:00
<Member MemberName= "Comments" >
<MemberSignature Language= "C#" Value= "public string Comments { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-17 03:39:14 +00:00
<summary > A short miscellaneous string.</summary>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:System.String" /> </value>
2003-07-17 03:39:14 +00:00
<remarks />
2003-02-12 02:14:42 +00:00
</Docs>
2005-05-23 20:41:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.Property(Name="comments")</AttributeName>
</Attribute>
</Attributes> </Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-21 20:14:42 +00:00
<summary > GType Property.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:GLib.GType" /> </value>
2004-06-21 20:14:42 +00:00
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gnome.About" /> .</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2003-03-07 01:30:00 +00:00
<Member MemberName= ".ctor" >
2003-12-24 01:35:30 +00:00
<MemberSignature Language= "C#" Value= "protected About (GLib.GType gtype);" />
2003-03-07 01:30:00 +00:00
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-12-24 01:35:30 +00:00
<Parameter Name= "gtype" Type= "GLib.GType" />
2003-09-17 21:56:59 +00:00
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
2004-06-21 20:33:11 +00:00
<summary > Protected Constructor.</summary>
2003-12-24 01:35:30 +00:00
<param name= "gtype" > a <see cref= "T:GLib.GType" /> </param>
2004-06-21 20:33:11 +00:00
<remarks > Chain to this constructor if you have manually registered a native <see cref= "T:GLib.GType" /> value for your subclass.</remarks>
2003-03-07 01:30:00 +00:00
</Docs>
2005-05-23 20:41:51 +00:00
<Attributes >
<Attribute >
<AttributeName > System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
</Attributes> </Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public About (string name, string version, string copyright, string comments, string[] authors, string[] documenters, string translator_credits, Gdk.Pixbuf logo_pixbuf);" />
<MemberType > Constructor</MemberType>
<Parameters >
<Parameter Name= "name" Type= "System.String" />
<Parameter Name= "version" Type= "System.String" />
<Parameter Name= "copyright" Type= "System.String" />
<Parameter Name= "comments" Type= "System.String" />
<Parameter Name= "authors" Type= "System.String[]" />
<Parameter Name= "documenters" Type= "System.String[]" />
<Parameter Name= "translator_credits" Type= "System.String" />
<Parameter Name= "logo_pixbuf" Type= "Gdk.Pixbuf" />
</Parameters>
<Docs >
<param name= "name" > To be added.</param>
<param name= "version" > To be added.</param>
<param name= "copyright" > To be added.</param>
<param name= "comments" > To be added.</param>
<param name= "authors" > To be added.</param>
<param name= "documenters" > To be added.</param>
<param name= "translator_credits" > To be added.</param>
<param name= "logo_pixbuf" > To be added.</param>
<summary > To be added.</summary>
<remarks > To be added.</remarks>
</Docs>
2003-03-07 01:30:00 +00:00
</Member>
2003-02-12 02:14:42 +00:00
</Members>
2005-01-25 18:09:20 +00:00
</Type>