fix bulleted list in Fixed.xml

Add First draft for MessageDialog.xml and InputDialog.xml

svn path=/trunk/gtk-sharp/; revision=15015
This commit is contained in:
John Luke 2003-05-31 01:14:01 +00:00
parent 775cae7bb2
commit d77d6bbcea
4 changed files with 108 additions and 41 deletions

View file

@ -1,9 +1,11 @@
2003-05-30 John Luke <jluke@cfl.rr.com>
* en/Gtk/ToggleButton.xml: Fix typo.
* en/Gtk/ToggleButton.xml: Fix typo, bulleted list.
* en/Gtk/Progress.xml: Fix typo.
* en/Gtk/Tooltips.xml: Fix method signature.
* en/Gtk/Button.xml: Add some info.
* en/Gtk/MessageDialog.xml: Add first draft
* en/Gtk/InputDialog: Add first draft
2003-05-29 Lee Mallabone <gnome@fonicmonkey.net>

View file

@ -12,11 +12,12 @@
<para>The <see cref="T:Gtk.Fixed" /> widget is a container which can place child widgets at fixed positions and with fixed sizes, given in pixels. <see cref="T:Gtk.Fixed" /> performs no automatic layout management.</para>
<para>For most applications, you should not use this container! It keeps you from having to learn about the other Gtk# containers, but it results in broken applications. With <see cref="T:Gtk.Fixed" />, the following things will result in truncated text, overlapping widgets, and other display bugs:
<list type="bullet">
<item>Themes, which may change widget sizes.</item>
<item>Fonts other than the one you used to write the app will of course change the size of widgets containing text; keep in mind that users may use a larger font because of difficulty reading the default, or they may be using Windows or the framebuffer port of GTK+, where different fonts are available.</item>
<item>Translation of text into other languages changes its size. Also, display of non-English text will use a different font in many cases.</item>
</list></para>
<para>In addition, the fixed widget can't properly be mirrored in right-to-left languages such as Hebrew and Arabic. i.e. normally GTK+ will flip the interface to put labels to the right of the thing they label, but it can't do that with <see cref="T:Gtk.Fixed" />. So your application will not be usable in right-to-left languages.</para>
<item><term>Themes, which may change widget sizes.</term></item>
<item><term>Fonts other than the one you used to write the app will of course change the size of widgets containing text; keep in mind that users may use a larger font because of difficulty reading the default, or they may be using Windows or the framebuffer port of GTK+, where different fonts are available.</term></item>
<item><term>Translation of text into other languages changes its size. Also, display of non-English text will use a different font in many cases.</term></item>
</list>
</para>
<para>In addition, the fixed widget can't properly be mirrored in right-to-left languages such as Hebrew and Arabic. i.e. normally Gtk# will flip the interface to put labels to the right of the thing they label, but it can't do that with <see cref="T:Gtk.Fixed" />. So your application will not be usable in right-to-left languages.</para>
<para>Finally, fixed positioning makes it kind of annoying to add/remove GUI elements, since you have to reposition all the other elements. This is a long-term maintenance problem for your application.</para>
<para>If you know none of these things are an issue for your application, and prefer the simplicity of <see cref="T:Gtk.Fixed" />, by all means use the widget. But you should be aware of the tradeoffs.</para>
</remarks>

View file

@ -1,5 +1,5 @@
<Type Name="InputDialog" FullName="Gtk.InputDialog">
<TypeSignature Language="C#" Value="public class InputDialog : Gtk.Dialog, Implementor, IWrapper, IWrapper, IDisposable" Maintainer="auto" />
<TypeSignature Language="C#" Value="public class InputDialog : Gtk.Dialog, Implementor, IWrapper, IWrapper, IDisposable" Maintainer="John Luke" />
<AssemblyInfo>
<AssemblyName>gtk-sharp</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
@ -7,8 +7,23 @@
</AssemblyInfo>
<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>
<Docs>
<summary>To be added</summary>
<remarks>To be added</remarks>
<summary>Configure devices for the XInput extension.</summary>
<remarks>
<para>
NOTE: this <see cref="T:Gtk.Widget"/> is considered too specialized/little-used for Gtk#, and will in the future be moved to some other package.
If your application needs this <see cref="T:Gtk.Widget"/>, feel free to use it, as the <see cref="T:Gtk.Widget"/> does work and is useful in some applications; it's just not of general interest.
However, we are not accepting new features for the <see cref="T:Gtk.Widget"/>, and it will eventually move out of the Gtk# distribution.
</para>
<para>
<see cref="T:Gtk.InputDialog"/> displays a <see cref="T:Gtk.Dialog"/> which allows the user to configure XInput extension devices.
For each device, they can control the mode of the device (disabled, screen-relative, or window-relative), the mapping of axes to coordinates, and the mapping of the devices macro keys to key press events.
</para>
<para>
<see cref="T:Gtk.InputDialog"/> contains two <see cref="T:Gtk.Button"/>s to which the application can connect; one for closing the <see cref="T:Gtk.Dialog"/>, and one for saving the changes.
No actions are bound to these by default.
The changes that the user makes take effect immediately.
</para>
</remarks>
</Docs>
<Base>
<BaseTypeName>Gtk.Dialog</BaseTypeName>
@ -63,9 +78,9 @@
<ReturnValue />
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>To be added: an object of type 'Gtk.InputDialog'</returns>
<remarks>To be added</remarks>
<summary>Creates an instance of <see cref="T:Gtk.InputDialog"/></summary>
<returns>an object of type <see cref="T:Gtk.InputDialog"/></returns>
<remarks>Creates an instance of <see cref="T:Gtk.InputDialog"/></remarks>
</Docs>
</Member>
<Member MemberName="GType">
@ -75,8 +90,8 @@
<ReturnType>System.UInt32</ReturnType>
</ReturnValue>
<Docs>
<summary>The GLib Type for Gtk.InputDialog</summary>
<returns>The GLib Type for the Gtk.InputDialog class.</returns>
<summary>The <see cref="T:GLib.Type"/> for <see cref="T:Gtk.InputDialog"/></summary>
<returns>The <see cref="T:GLib.Type"/> for the <see cref="T:Gtk.InputDialog"/> class.</returns>
<remarks />
</Docs>
</Member>
@ -86,8 +101,10 @@
<ReturnValue />
<Parameters />
<Docs>
<summary>To be added</summary>
<remarks>To be added</remarks>
<summary>Emitted when the user changes the mode of a device from a GDK_MODE_SCREEN or GDK_MODE_WINDOW to GDK_MODE_ENABLED.</summary>
<remarks>
This signal is emitted when the user changes the mode of a device from a GDK_MODE_SCREEN or GDK_MODE_WINDOW to GDK_MODE_ENABLED.
</remarks>
</Docs>
</Member>
<Member MemberName="EnableDevice">
@ -96,8 +113,10 @@
<ReturnValue />
<Parameters />
<Docs>
<summary>To be added</summary>
<remarks>To be added</remarks>
<summary>Emitted when the user changes the mode of a device from GDK_MODE_DISABLED to a GDK_MODE_SCREEN or GDK_MODE_WINDOW.</summary>
<remarks>
This signal is emitted when the user changes the mode of a device from GDK_MODE_DISABLED to a GDK_MODE_SCREEN or GDK_MODE_WINDOW.
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
@ -117,4 +136,4 @@
</Docs>
</Member>
</Members>
</Type>
</Type>

View file

@ -1,5 +1,5 @@
<Type Name="MessageDialog" FullName="Gtk.MessageDialog">
<TypeSignature Language="C#" Value="public class MessageDialog : Gtk.Dialog, Implementor, IWrapper, IWrapper, IDisposable" Maintainer="auto" />
<TypeSignature Language="C#" Value="public class MessageDialog : Gtk.Dialog, Implementor, IWrapper, IWrapper, IDisposable" Maintainer="John Luke" />
<AssemblyInfo>
<AssemblyName>gtk-sharp</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
@ -7,8 +7,42 @@
</AssemblyInfo>
<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>
<Docs>
<summary>To be added</summary>
<remarks>To be added</remarks>
<summary>Convenient message window</summary>
<remarks>
<para>
<see cref="T:Gtk.MessageDialog"/> presents a <see cref="T:Gtk.Dialog"/> with an image representing the <see cref="T:Gtk.MessageType"/> (Error, Question, etc.) alongside some message text.
It's simply a convenience <see cref="T:Gtk.Widget"/>; you could construct the equivalent of <see cref="T:Gtk.MessageDialog"/> from <see cref="T:Gtk.Dialog"/> without too much effort, but <see cref="T:Gtk.MessageDialog"/> saves typing.
</para>
<para>
The easiest way to do a modal message dialog is to use <see cref="M:Gtk.Dialog.Run()"/>,
though you can also pass in the <see cref="F:Gtk.DialogFlags.Modal"/> flag, <see cref="M:Gtk.Dialog.Run()"/> automatically makes the <see cref="T:Gtk.MessageDialog"/> from <see cref="T:Gtk.Dialog"/> modal and waits for the user to respond to it.
<see cref="M:Gtk.Dialog.Run()"/> returns when any <see cref="T:Gtk.Button"/> in the <see cref="T:Gtk.Dialog"/> is clicked.
</para>
<para>A modal dialog
<example>
<code lang="C#">
MessageDialog md = new MessageDialog
(parent_window, Gtk.DialogFlags.DestroyWithParent,
Gtk.MessageType.Error, Gtk.ButtonsType.Close, "Error loading file");
md.Run ();
md.Destroy ();
</code>
</example>
</para>
<para>A non-modal dialog
<example>
<code lang="C#">
MessageDialog md = new MessageDialog
(parent_window, Gtk.DialogFlags.DestroyWithParent,
Gtk.MessageType.Error, Gtk.ButtonsType.Close, "Error loading file");
// Destroy the dialog when the user responds to it (e.g. clicks a button)
// ::add signal handler code here::
</code>
</example>
</para>
</remarks>
</Docs>
<Base>
<BaseTypeName>Gtk.Dialog</BaseTypeName>
@ -51,7 +85,7 @@
<Docs>
<summary>Internal constructor</summary>
<param name="raw">Pointer to the C object.</param>
<returns>An instance of MessageDialog, wrapping the C object.</returns>
<returns>An instance of <see cref="T:Gtk.MessageDialog"/>, wrapping the C object.</returns>
<remarks>
<para>This is an internal constructor, and should not be used by user code.</para>
</remarks>
@ -63,9 +97,11 @@
<ReturnValue />
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>To be added: an object of type 'Gtk.MessageDialog'</returns>
<remarks>To be added</remarks>
<summary>Internal constructor</summary>
<returns>an object of type <see cref="T:Gtk.MessageDialog"/></returns>
<remarks>
<para>This is an internal constructor, and should not be used by user code.</para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
@ -80,14 +116,23 @@
<Parameter Name="msg" Type="System.String" />
</Parameters>
<Docs>
<summary>To be added</summary>
<param name="parent_window">To be added: an object of type 'Gtk.Window'</param>
<param name="flags">To be added: an object of type 'Gtk.DialogFlags'</param>
<param name="type">To be added: an object of type 'Gtk.MessageType'</param>
<param name="bt">To be added: an object of type 'Gtk.ButtonsType'</param>
<param name="msg">To be added: an object of type 'string'</param>
<returns>To be added: an object of type 'Gtk.MessageDialog'</returns>
<remarks>To be added</remarks>
<summary>Creates an instance of <see cref="T:Gtk.MessageDialog"/></summary>
<param name="parent_window">an object of type <see cref="T:Gtk.Window"/></param>
<param name="flags">an object of type <see cref="T:Gtk.DialogFlags"/></param>
<param name="type">an object of type <see cref="T:Gtk.MessageType"/></param>
<param name="bt">an object of type <see cref="T:Gtk.ButtonsType"/></param>
<param name="msg">an object of type <see cref="T:System.String"/></param>
<returns>an object of type <see cref="T:Gtk.MessageDialog"/></returns>
<remarks><para>
Creates an instance of <see cref="T:Gtk.MessageDialog"/>
<example>
<code lang="C#">
MessageDialog md = new MessageDialog
(parent_window, Gtk.DialogFlags.DestroyWithParent,
Gtk.MessageType.Error, Gtk.ButtonsType.Close, "Error loading file");
</code>
</example>
</para></remarks>
</Docs>
</Member>
<Member MemberName="GType">
@ -97,8 +142,8 @@
<ReturnType>System.UInt32</ReturnType>
</ReturnValue>
<Docs>
<summary>The GLib Type for Gtk.MessageDialog</summary>
<returns>The GLib Type for the Gtk.MessageDialog class.</returns>
<summary>The <see cref="T:GLib.Type"/> for <see cref="T:Gtk.MessageDialog"/></summary>
<returns>The <see cref="T:GLib.Type"/> for the <see cref="T:Gtk.MessageDialog"/> class.</returns>
<remarks />
</Docs>
</Member>
@ -109,9 +154,9 @@
<ReturnType>Gtk.MessageType</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added</summary>
<returns>To be added: an object of type 'Gtk.MessageType'</returns>
<remarks>To be added</remarks>
<summary>The <see cref="T:Gtk.MessageType"/> of the <see cref="T:Gtk.Dialog"/></summary>
<returns>an object of type <see cref="T:Gtk.MessageDialog"/></returns>
<remarks>The <see cref="T:Gtk.MessageType"/> of the <see cref="T:Gtk.Dialog"/></remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
@ -124,11 +169,11 @@
<Docs>
<summary>Internal constructor</summary>
<param name="gtype">GLib type for the type</param>
<returns>Creates a new instance of MessageDialog, using the GLib-provided type</returns>
<returns>Creates a new instance of <see cref="T:Gtk.MessageDialog"/>, using the GLib-provided type</returns>
<remarks>
<para>This is a constructor used by derivative types of <see cref="T:Gtk.MessageDialog" /> that would have their own GLib type assigned to it. This is not typically used by C# code.</para>
</remarks>
</Docs>
</Member>
</Members>
</Type>
</Type>