mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-12 06:45:40 +00:00
Contributions from ddollar@blueshiftdesign.com and bis0n@mail.ru
svn path=/trunk/gtk-sharp/; revision=35651
This commit is contained in:
parent
cac3c4a368
commit
fe6aad5317
|
@ -30,6 +30,7 @@ using Gtk;
|
||||||
class FileSelectionSample
|
class FileSelectionSample
|
||||||
{
|
{
|
||||||
Label lbl;
|
Label lbl;
|
||||||
|
FileSelection fs;
|
||||||
|
|
||||||
static void Main ()
|
static void Main ()
|
||||||
{
|
{
|
||||||
|
@ -49,18 +50,28 @@ class FileSelectionSample
|
||||||
vbox.Add (btn);
|
vbox.Add (btn);
|
||||||
lbl = new Label ("Selected: ");
|
lbl = new Label ("Selected: ");
|
||||||
vbox.Add (lbl);
|
vbox.Add (lbl);
|
||||||
win.ShowAll ();
|
win.ShowAll ()
|
||||||
|
|
||||||
|
fs = new FileSelection ("Choose a file");
|
||||||
|
fs.Response += new ResponseHandler (OnFileSelectionResponse);
|
||||||
|
|
||||||
Application.Run ();
|
Application.Run ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnButtonClicked (object o, EventArgs args)
|
void OnButtonClicked (object o, EventArgs args)
|
||||||
{
|
{
|
||||||
FileSelection fs = new FileSelection ("Choose a file");
|
|
||||||
fs.Run ();
|
fs.Run ();
|
||||||
lbl.Text = "Selected: " + fs.SelectionEntry.Text;
|
|
||||||
fs.Hide ();
|
fs.Hide ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OnFileSelectionResponse (object o, ResponseArgs args)
|
||||||
|
{
|
||||||
|
if (args.ResponseId == ResponseType.Ok)
|
||||||
|
{
|
||||||
|
lbl.Text = "Selected: " + fs.Filename;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void OnWinDelete (object o, DeleteEventArgs args)
|
void OnWinDelete (object o, DeleteEventArgs args)
|
||||||
{
|
{
|
||||||
Application.Quit ();
|
Application.Quit ();
|
||||||
|
@ -247,7 +258,7 @@ class FileSelectionSample
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>The filename selected by this <see cref="T:Gtk.FileSelection" />.</summary>
|
<summary>The filename selected by this <see cref="T:Gtk.FileSelection" />.</summary>
|
||||||
<returns>an object of type <see cref="T:System.String" /></returns>
|
<returns>an object of type <see cref="T:System.String" /></returns>
|
||||||
<remarks/>
|
<remarks />
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="FileopEntry">
|
<Member MemberName="FileopEntry">
|
||||||
|
@ -271,7 +282,7 @@ class FileSelectionSample
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>The dialog box for confirming actions, if necessary.</summary>
|
<summary>The dialog box for confirming actions, if necessary.</summary>
|
||||||
<returns>an object of type <see cref="T:Gtk.MessageDialog" /></returns>
|
<returns>an object of type <see cref="T:Gtk.MessageDialog" /></returns>
|
||||||
<remarks/>
|
<remarks />
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="HistoryMenu">
|
<Member MemberName="HistoryMenu">
|
||||||
|
@ -347,7 +358,7 @@ class FileSelectionSample
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>The text to display about the file to be selected.</summary>
|
<summary>The text to display about the file to be selected.</summary>
|
||||||
<returns>an object of type <see cref="T:Gtk.Label" /></returns>
|
<returns>an object of type <see cref="T:Gtk.Label" /></returns>
|
||||||
<remarks/>
|
<remarks />
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="SelectionEntry">
|
<Member MemberName="SelectionEntry">
|
||||||
|
@ -359,7 +370,7 @@ class FileSelectionSample
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>The text-entry widget for entering a filename into.</summary>
|
<summary>The text-entry widget for entering a filename into.</summary>
|
||||||
<returns>an object of type <see cref="T:Gtk.Entry" /></returns>
|
<returns>an object of type <see cref="T:Gtk.Entry" /></returns>
|
||||||
<remarks/>
|
<remarks />
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="FileList">
|
<Member MemberName="FileList">
|
||||||
|
|
|
@ -442,7 +442,7 @@
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>
|
<summary>
|
||||||
Calls <see cref="M:Gtk.TextTagTable.Lookup(System.String)" /> on the buffer's tag table to get a <see cref="T:Gtk.TextTag" />, then calls
|
Calls <see cref="M:Gtk.TextTagTable.Lookup(System.String)" /> on the buffer's tag table to get a <see cref="T:Gtk.TextTag" />, then calls
|
||||||
<see cref="Gtk.TextBuffer.RemoveTag((Gtk.TextTag,Gtk.TextIter,Gtk.TextIter)" /></summary>
|
<see cref="M:Gtk.TextBuffer.RemoveTag(Gtk.TextTag,Gtk.TextIter,Gtk.TextIter)" /></summary>
|
||||||
<param name="name">the name of the tag</param>
|
<param name="name">the name of the tag</param>
|
||||||
<param name="start">the beginning of the buffer to be untagged</param>
|
<param name="start">the beginning of the buffer to be untagged</param>
|
||||||
<param name="end">the end of the buffer to be untagged</param>
|
<param name="end">the end of the buffer to be untagged</param>
|
||||||
|
@ -764,7 +764,7 @@
|
||||||
<returns>a string containing the text from the specified range</returns>
|
<returns>a string containing the text from the specified range</returns>
|
||||||
<remarks>
|
<remarks>
|
||||||
<para>
|
<para>
|
||||||
Returns the text in the range specified by <paramref name="start" /> and <paramref name="end" />. Excludes
|
Returns the text in the range specified by <see paremref="start" /> and <see paremref="end" />. Excludes
|
||||||
undisplayed text (text marked with tags that set the
|
undisplayed text (text marked with tags that set the
|
||||||
invisibility attribute) if <paramref name="include_hidden_chars" /> is <see langword="false" />. Does not include characters
|
invisibility attribute) if <paramref name="include_hidden_chars" /> is <see langword="false" />. Does not include characters
|
||||||
representing embedded images, so byte and character
|
representing embedded images, so byte and character
|
||||||
|
@ -772,7 +772,7 @@
|
||||||
and character indexes into the buffer.
|
and character indexes into the buffer.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Contrast this with <see cref="Gtk.TextBuffer.GetSlice(Gtk.TextIter,Gtk.TextIter,
 System.Boolean)" />.
|
Contrast this with <see cref="M:Gtk.TextBuffer.GetSlice(Gtk.TextIter,Gtk.TextIter,System.Boolean)" />.
|
||||||
</para>
|
</para>
|
||||||
</remarks>
|
</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
|
|
Loading…
Reference in a new issue