2003-02-12 02:00:12 +00:00
<Type Name= "FileSelection" FullName= "Gtk.FileSelection" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "Lee Mallabone" Value= "public class FileSelection : Gtk.Dialog" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2007-12-06 18:37:54 +00:00
<AssemblyVersion > 2.12.0.0</AssemblyVersion>
2003-02-12 02:00:12 +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:00:12 +00:00
<Docs >
2003-02-25 14:22:39 +00:00
<summary > Creates a new dialog for the user to select one or more files, directories, or cancel.</summary>
2003-03-07 01:30:00 +00:00
<remarks >
2003-09-17 21:56:59 +00:00
<para >
<see cref= "T:Gtk.FileSelection" /> should be used to retrieve file or directory names from the user. It will create a new dialog window containing a directory list, and a file list corresponding to the current working directory.
2003-02-25 14:22:39 +00:00
</para>
2003-03-07 01:30:00 +00:00
<para >
2003-02-25 14:22:39 +00:00
The filesystem can be navigated using the directory list or the drop-down history menu. Alternatively, the TAB key can be used to navigate using filename completion - common in text based editors such as emacs and jed.</para>
2003-03-07 01:30:00 +00:00
<para >
2003-02-25 14:22:39 +00:00
Simple file operations; create directory, delete file, and rename file, are available from buttons at the top of the dialog.</para>
2003-03-07 01:30:00 +00:00
<para >
2003-09-17 21:56:59 +00:00
The functionality of the <see cref= "T:Gtk.FileSelection" /> can be extended by using the available accessors to the buttons and drop downs.
2003-03-07 01:30:00 +00:00
</para>
2004-06-19 18:25:02 +00:00
<example >
<code lang= "C#" >
2003-07-20 18:11:11 +00:00
using System;
using Gtk;
class FileSelectionSample
{
Label lbl;
2004-11-04 19:34:16 +00:00
FileSelection fs;
2004-06-19 18:25:02 +00:00
2003-07-20 18:11:11 +00:00
static void Main ()
{
2004-06-19 18:25:02 +00:00
new FileSelectionSample ();
2003-07-20 18:11:11 +00:00
}
2004-06-19 18:25:02 +00:00
2003-07-20 18:11:11 +00:00
FileSelectionSample ()
{
Application.Init ();
Window win = new Window ("FileSelectionSample");
win.SetDefaultSize (250,200);
win.DeleteEvent += new DeleteEventHandler (OnWinDelete);
VBox vbox = new VBox (true, 1);
win.Add (vbox);
Button btn = new Button ("Select a file.");
btn.Clicked += new EventHandler (OnButtonClicked);
vbox.Add (btn);
lbl = new Label ("Selected: ");
vbox.Add (lbl);
2004-11-04 19:34:16 +00:00
win.ShowAll ()
fs = new FileSelection ("Choose a file");
fs.Response += new ResponseHandler (OnFileSelectionResponse);
2003-07-20 18:11:11 +00:00
Application.Run ();
}
2004-06-19 18:25:02 +00:00
2003-07-20 18:11:11 +00:00
void OnButtonClicked (object o, EventArgs args)
{
fs.Run ();
fs.Hide ();
}
2004-06-19 18:25:02 +00:00
2004-11-04 19:34:16 +00:00
void OnFileSelectionResponse (object o, ResponseArgs args)
{
if (args.ResponseId == ResponseType.Ok)
{
lbl.Text = "Selected: " + fs.Filename;
}
}
2003-07-20 18:11:11 +00:00
void OnWinDelete (object o, DeleteEventArgs args)
{
Application.Quit ();
}
2004-06-19 18:25:02 +00:00
}
</code>
</example>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Base >
<BaseTypeName > Gtk.Dialog</BaseTypeName>
</Base>
2007-01-16 16:18:05 +00:00
<Interfaces >
</Interfaces>
2003-02-12 02:00:12 +00:00
<Members >
<Member MemberName= "Complete" >
<MemberSignature Language= "C#" Value= "public void Complete (string pattern);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "pattern" Type= "System.String" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-07 01:30:00 +00:00
<summary > Restrict the visible files and directories to those that match the given <paramref name= "pattern" /> .</summary>
2003-02-25 14:22:39 +00:00
<param name= "pattern" > A simple wildcard pattern such as '*.txt'.</param>
2003-03-07 01:30:00 +00:00
<remarks >
2003-09-17 21:56:59 +00:00
<para > This method attempts to match <paramref name= "pattern" /> to a valid filenames or subdirectories in the current directory. If a match can be made, the matched filename will appear in the text entry field of the <see cref= "T:Gtk.FileSelection" /> . If a partial match can be made, the "Files" list will contain those file names which have been partially matched, and the "Folders" list will show those directories with a partial match.</para>
2003-03-07 01:30:00 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "ShowFileopButtons" >
<MemberSignature Language= "C#" Value= "public void ShowFileopButtons ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-02-25 14:22:39 +00:00
<summary > Ensures that the file operation buttons are visible.</summary>
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "HideFileopButtons" >
<MemberSignature Language= "C#" Value= "public void HideFileopButtons ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-02-25 14:22:39 +00:00
<summary > Ensures that the file operation buttons are hidden.</summary>
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public FileSelection (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:00:12 +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:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public FileSelection (string title);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "title" Type= "System.String" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-25 14:22:39 +00:00
<summary > The main way to construct a new file selector.</summary>
<param name= "title" > A title that will appear in the window's title bar.</param>
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "ActionArea" >
<MemberSignature Language= "C#" Value= "public Gtk.HButtonBox ActionArea { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.HButtonBox</ReturnType>
</ReturnValue>
<Docs >
2004-08-06 13:18:10 +00:00
<summary > The widget enclosing the items that can be acted upon.</summary>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:Gtk.HButtonBox" /> </value>
2004-08-06 13:18:10 +00:00
<remarks > (FIXME: how is this different from ButtonArea? Gtk+ docs are thin about this.)</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "ButtonArea" >
<MemberSignature Language= "C#" Value= "public Gtk.HButtonBox ButtonArea { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.HButtonBox</ReturnType>
</ReturnValue>
<Docs >
2004-08-06 13:18:10 +00:00
<summary > A widget to contain all the button objects in this dialog.</summary>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:Gtk.HButtonBox" /> </value>
2004-08-06 13:18:10 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "FileopRenFile" >
<MemberSignature Language= "C#" Value= "public Gtk.Button FileopRenFile { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.Button</ReturnType>
</ReturnValue>
<Docs >
2003-02-25 14:22:39 +00:00
<summary > The 'rename file' button of this file selector.</summary>
2005-05-23 20:41:51 +00:00
<value />
2003-03-07 01:30:00 +00:00
<remarks >
<para > This button may or may not be visible, see <see cref= "M:Gtk.FileSelection.ShowFileopButtons()" /> and <see cref= "M:Gtk.FileSelection.ShowFileopButtons()" /> .</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "FileopDelFile" >
<MemberSignature Language= "C#" Value= "public Gtk.Button FileopDelFile { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.Button</ReturnType>
</ReturnValue>
<Docs >
2003-02-25 14:22:39 +00:00
<summary > The 'delete' button of this file selector.</summary>
2005-05-23 20:41:51 +00:00
<value />
2003-03-07 01:30:00 +00:00
<remarks >
<para > This button may or may not be visible, see <see cref= "M:Gtk.FileSelection.ShowFileopButtons()" /> and <see cref= "M:Gtk.FileSelection.ShowFileopButtons()" /> .</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "FileopCDir" >
<MemberSignature Language= "C#" Value= "public Gtk.Button FileopCDir { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.Button</ReturnType>
</ReturnValue>
<Docs >
2003-02-25 14:22:39 +00:00
<summary > The 'create directory' button of this file selector.</summary>
2005-05-23 20:41:51 +00:00
<value />
2003-03-07 01:30:00 +00:00
<remarks >
<para > This button may or may not be visible, see <see cref= "M:Gtk.FileSelection.ShowFileopButtons()" /> and <see cref= "M:Gtk.FileSelection.ShowFileopButtons()" /> .</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "FileopFile" >
<MemberSignature Language= "C#" Value= "public string FileopFile { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
<Docs >
2004-09-13 05:48:17 +00:00
<summary > The filename selected by this <see cref= "T:Gtk.FileSelection" /> .</summary>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:System.String" /> </value>
2004-11-04 19:34:16 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "FileopEntry" >
<MemberSignature Language= "C#" Value= "public Gtk.Entry FileopEntry { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.Entry</ReturnType>
</ReturnValue>
<Docs >
2003-09-17 21:56:59 +00:00
<summary > The main <see cref= "T:Gtk.Entry" /> widget of this <see cref= "T:Gtk.FileSelection" /> .</summary>
2005-05-23 20:41:51 +00:00
<value />
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "FileopDialog" >
<MemberSignature Language= "C#" Value= "public Gtk.MessageDialog FileopDialog { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.MessageDialog</ReturnType>
</ReturnValue>
<Docs >
2004-09-13 05:48:17 +00:00
<summary > The dialog box for confirming actions, if necessary.</summary>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:Gtk.MessageDialog" /> </value>
2004-11-04 19:34:16 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "HistoryMenu" >
<MemberSignature Language= "C#" Value= "public Gtk.Menu HistoryMenu { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.Menu</ReturnType>
</ReturnValue>
<Docs >
2003-03-07 01:30:00 +00:00
<summary > The <see cref= "T:Gtk.Menu" /> that is displayed by the <see cref= "P:Gtk.FileSelection.HistoryPulldown" /> .</summary>
2005-05-23 20:41:51 +00:00
<value > A menu containing the file system paths higher than the selected directory, and the user's directory history.</value>
2003-03-07 01:30:00 +00:00
<remarks >
2003-09-17 21:56:59 +00:00
<para > Note that this <see cref= "T:Gtk.Widget" /> does not just contain history, it contains a list of directories above the current directory in the filesystem as well as user directory history.</para>
2003-03-07 01:30:00 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "HistoryPulldown" >
<MemberSignature Language= "C#" Value= "public Gtk.OptionMenu HistoryPulldown { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.OptionMenu</ReturnType>
</ReturnValue>
<Docs >
2003-02-25 14:22:39 +00:00
<summary > The drop down menu containing directories in the filesystem above the selected directory, and the user's directory history.</summary>
2005-05-23 20:41:51 +00:00
<value > The <see cref= "T:Gtk.OptionMenu" /> at the top of the file selector.</value>
2003-03-07 01:30:00 +00:00
<remarks >
<para > This widget displays the menu returned by <see cref= "P:Gtk.FileSelection.HistoryMenu" /> .</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "HelpButton" >
<MemberSignature Language= "C#" Value= "public Gtk.Button HelpButton { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.Button</ReturnType>
</ReturnValue>
<Docs >
2003-02-25 14:22:39 +00:00
<summary > A help button, not displayed by default.</summary>
2005-05-23 20:41:51 +00:00
<value />
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "CancelButton" >
<MemberSignature Language= "C#" Value= "public Gtk.Button CancelButton { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.Button</ReturnType>
</ReturnValue>
<Docs >
2003-07-20 18:11:11 +00:00
<summary > The 'cancel' button of this file selector.</summary>
2005-05-23 20:41:51 +00:00
<value />
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "OkButton" >
<MemberSignature Language= "C#" Value= "public Gtk.Button OkButton { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.Button</ReturnType>
</ReturnValue>
<Docs >
2003-02-25 14:22:39 +00:00
<summary > The 'OK' button of this file selector.</summary>
2005-05-23 20:41:51 +00:00
<value />
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "SelectionText" >
<MemberSignature Language= "C#" Value= "public Gtk.Label SelectionText { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.Label</ReturnType>
</ReturnValue>
<Docs >
2004-09-20 03:50:47 +00:00
<summary > The text to display about the file to be selected.</summary>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:Gtk.Label" /> </value>
2004-11-04 19:34:16 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "SelectionEntry" >
<MemberSignature Language= "C#" Value= "public Gtk.Entry SelectionEntry { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.Entry</ReturnType>
</ReturnValue>
<Docs >
2004-09-20 03:50:47 +00:00
<summary > The text-entry widget for entering a filename into.</summary>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:Gtk.Entry" /> </value>
2004-11-04 19:34:16 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "FileList" >
<MemberSignature Language= "C#" Value= "public Gtk.TreeView FileList { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.TreeView</ReturnType>
</ReturnValue>
<Docs >
2003-03-07 01:30:00 +00:00
<summary > The <see cref= "T:Gtk.TreeView" /> widget that displays files in this file selector.</summary>
2005-05-23 20:41:51 +00:00
<value />
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "DirList" >
<MemberSignature Language= "C#" Value= "public Gtk.TreeView DirList { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.TreeView</ReturnType>
</ReturnValue>
<Docs >
2003-03-07 01:30:00 +00:00
<summary > The <see cref= "T:Gtk.TreeView" /> widget that displays directories in this file selector.</summary>
2005-05-23 20:41:51 +00:00
<value />
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
* generator/StructBase.cs: update field-generation logic a bit
* generator/CodeGenerator.cs: add a --glue-includes flag
* generator/GenerationInfo.cs: Accept glue_includes value from
Main and output it to the glue_filename.
* generator/FieldBase.cs (Ignored): handle more ignorable cases.
(CheckGlue): New method to figure out what kind of glue we'll need
for a field.
(GenerateImports): generate appropriate imports per CheckGlue.
(GenerateGlue): Generate C glue for accessing a struct field;
either a fully-C-based accessor, or a method to just return the
field's offset in the struct.
(Generate): Use the generated glue to read the field.
* generator/PropertyBase.cs (CType): if the field is a single bit,
set its type to gboolean.
* generator/ObjectGen.cs (Generate):
* generator/OpaqueGen.cs (Generate): Call GenFields.
* generator/StructField.cs: Use FieldBase's glue-generation code
to handle bitfields. [#54489]
* generator/ObjectField.cs: Generates accessors for public fields
of objects and opaque structs. [#69514]
* generator/ClassBase.cs (ClassBase): Parse <fields> nodes and
create ObjectField objects.
(GenFields): Output field properties
(IgnoreMethod): Ignore Get/Set methods that duplicate fields
* generator/Makefile.am (sources): update
* {gdk,gnome,gtk,pango}/*.metadata: Mark some additional fields as
public. Rename/retype some fields for consistency with earlier
hand-coded bindings.
* {gdk,gnome,gtk,pango}/*.custom: Remove custom methods that can
now be autogenerated.
* {gdk,gnome,gtk,pango}/glue/*.c: Remove glue methods that can now
be autogenerated
* {gdk,glade,gnome,gtk,pango,vte}/Makefile.am
* {gdk,glade,gnome,gtk,pango,vte}/glue/Makefile.am
* {gdk,gnome,gtk,pango}/glue/makefile.win32: Update
svn path=/trunk/gtk-sharp/; revision=44563
2005-05-16 14:28:55 +00:00
<Member MemberName= "MainVBox" >
<MemberSignature Language= "C#" Value= "public Gtk.VBox MainVBox { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.VBox</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > The main <see cref= "T:Gtk.VBox" /> in the file selector.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:Gtk.VBox" /> </value>
* generator/StructBase.cs: update field-generation logic a bit
* generator/CodeGenerator.cs: add a --glue-includes flag
* generator/GenerationInfo.cs: Accept glue_includes value from
Main and output it to the glue_filename.
* generator/FieldBase.cs (Ignored): handle more ignorable cases.
(CheckGlue): New method to figure out what kind of glue we'll need
for a field.
(GenerateImports): generate appropriate imports per CheckGlue.
(GenerateGlue): Generate C glue for accessing a struct field;
either a fully-C-based accessor, or a method to just return the
field's offset in the struct.
(Generate): Use the generated glue to read the field.
* generator/PropertyBase.cs (CType): if the field is a single bit,
set its type to gboolean.
* generator/ObjectGen.cs (Generate):
* generator/OpaqueGen.cs (Generate): Call GenFields.
* generator/StructField.cs: Use FieldBase's glue-generation code
to handle bitfields. [#54489]
* generator/ObjectField.cs: Generates accessors for public fields
of objects and opaque structs. [#69514]
* generator/ClassBase.cs (ClassBase): Parse <fields> nodes and
create ObjectField objects.
(GenFields): Output field properties
(IgnoreMethod): Ignore Get/Set methods that duplicate fields
* generator/Makefile.am (sources): update
* {gdk,gnome,gtk,pango}/*.metadata: Mark some additional fields as
public. Rename/retype some fields for consistency with earlier
hand-coded bindings.
* {gdk,gnome,gtk,pango}/*.custom: Remove custom methods that can
now be autogenerated.
* {gdk,gnome,gtk,pango}/glue/*.c: Remove glue methods that can now
be autogenerated
* {gdk,glade,gnome,gtk,pango,vte}/Makefile.am
* {gdk,glade,gnome,gtk,pango,vte}/glue/Makefile.am
* {gdk,gnome,gtk,pango}/glue/makefile.win32: Update
svn path=/trunk/gtk-sharp/; revision=44563
2005-05-16 14:28:55 +00:00
<remarks >
</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
* generator/StructBase.cs: update field-generation logic a bit
* generator/CodeGenerator.cs: add a --glue-includes flag
* generator/GenerationInfo.cs: Accept glue_includes value from
Main and output it to the glue_filename.
* generator/FieldBase.cs (Ignored): handle more ignorable cases.
(CheckGlue): New method to figure out what kind of glue we'll need
for a field.
(GenerateImports): generate appropriate imports per CheckGlue.
(GenerateGlue): Generate C glue for accessing a struct field;
either a fully-C-based accessor, or a method to just return the
field's offset in the struct.
(Generate): Use the generated glue to read the field.
* generator/PropertyBase.cs (CType): if the field is a single bit,
set its type to gboolean.
* generator/ObjectGen.cs (Generate):
* generator/OpaqueGen.cs (Generate): Call GenFields.
* generator/StructField.cs: Use FieldBase's glue-generation code
to handle bitfields. [#54489]
* generator/ObjectField.cs: Generates accessors for public fields
of objects and opaque structs. [#69514]
* generator/ClassBase.cs (ClassBase): Parse <fields> nodes and
create ObjectField objects.
(GenFields): Output field properties
(IgnoreMethod): Ignore Get/Set methods that duplicate fields
* generator/Makefile.am (sources): update
* {gdk,gnome,gtk,pango}/*.metadata: Mark some additional fields as
public. Rename/retype some fields for consistency with earlier
hand-coded bindings.
* {gdk,gnome,gtk,pango}/*.custom: Remove custom methods that can
now be autogenerated.
* {gdk,gnome,gtk,pango}/glue/*.c: Remove glue methods that can now
be autogenerated
* {gdk,glade,gnome,gtk,pango,vte}/Makefile.am
* {gdk,glade,gnome,gtk,pango,vte}/glue/Makefile.am
* {gdk,gnome,gtk,pango}/glue/makefile.win32: Update
svn path=/trunk/gtk-sharp/; revision=44563
2005-05-16 14:28:55 +00:00
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "Selections" >
2005-05-23 20:41:51 +00:00
<MemberSignature Language= "C#" Value= "public string[] Selections { get; };" />
2003-02-12 02:00:12 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
2005-05-23 20:41:51 +00:00
<ReturnType > System.String[]</ReturnType>
2003-02-12 02:00:12 +00:00
</ReturnValue>
<Docs >
2003-02-25 14:22:39 +00:00
<summary > Get the files that are selected</summary>
2005-05-23 20:41:51 +00:00
<value > An array of file paths</value>
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "ShowFileops" >
<MemberSignature Language= "C#" Value= "public bool ShowFileops { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-25 14:22:39 +00:00
<summary > Manage whether buttons are displayed for doing file operations.</summary>
2005-05-23 20:41:51 +00:00
<value >
<see langword= "true" /> for buttons to be shown, <see langword= "false" /> otherwise.</value>
2003-03-07 01:30:00 +00:00
<remarks >
<para > This manipulates whether the buttons for creating a directory, deleting files and renaming files, are displayed.</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2007-01-16 16:18:05 +00:00
<AttributeName > GLib.Property("show-fileops")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "Filename" >
<MemberSignature Language= "C#" Value= "public string Filename { 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:00:12 +00:00
<Docs >
2003-02-25 14:22:39 +00:00
<summary > Manage the selected filename.</summary>
2005-05-23 20:41:51 +00:00
<value > The selected filename in the on-disk encoding.</value>
2003-03-07 01:30:00 +00:00
<remarks >
<para > If <paramref name= "value" /> includes a directory path, then the requestor will open with that path as its current working directory. The encoding of filename is the on-disk encoding, which may not be UTF-8.</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2007-01-16 16:18:05 +00:00
<AttributeName > GLib.Property("filename")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "SelectMultiple" >
<MemberSignature Language= "C#" Value= "public bool SelectMultiple { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-25 14:22:39 +00:00
<summary > Manage whether more than one file can be selected.</summary>
2005-05-23 20:41:51 +00:00
<value >
<see langword= "true" /> if multiple selections are allowed, <see langword= "false" /> otherwise.</value>
2003-03-07 01:30:00 +00:00
<remarks />
</Docs>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2007-01-16 16:18:05 +00:00
<AttributeName > GLib.Property("select-multiple")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-06-16 18:56:42 +00:00
</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:Gtk.FileSelection" /> .</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 FileSelection (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-02-12 02:00:12 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2007-01-16 16:18:05 +00:00
<AttributeName > System.Obsolete</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2008-02-29 18:27:23 +00:00
<Attributes >
<Attribute >
<AttributeName > System.Obsolete</AttributeName>
</Attribute>
</Attributes>
2005-06-17 18:43:30 +00:00
</Type>