diff --git a/ChangeLog b/ChangeLog index e982221cd..9adabb4d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-02-19 Duncan Mak + + * sources/Gtk.metadata: Add GetLayoutOffsets to the rule for out params. + + * gtk/FileSelection.custom (Button): Rename to FSButton, so that + we won't wipe out our original Gtk.Button docs. + 2003-02-19 Mike Kestner * generator/GenBase.cs : mark #line 1 for .customs diff --git a/doc/en/Gtk/Button.xml b/doc/en/Gtk/Button.xml index 3715972e1..cee396ddb 100644 --- a/doc/en/Gtk/Button.xml +++ b/doc/en/Gtk/Button.xml @@ -1,5 +1,5 @@ - - + + gtk-sharp 0.0.0.0 @@ -7,11 +7,18 @@ To be added - To be added - To be added + A widget that creates a signal when clicked on. + + + The GtkButton widget is generally used to attach a function to that is called when the button is pressed. The various signals and how to use them are outlined below. + + + The GtkButton widget can hold any valid child widget. That is it can hold most any other standard . The most commonly used child is the . + + - Gtk.Button + Gtk.Bin @@ -29,33 +36,340 @@ + + + Method + + System.UInt32 + + + + To be added + To be added: an object of type 'uint' + To be added + + + + + Method + + Gtk.Button + + + + + + Creates a widget with a child containing the given text. + The text you want the to hold. + The newly created widget. + Creates a widget with a child containing the given text. + + + + + Method + + Gtk.Button + + + + + + Creates a new containing the image and text from a stock item. + To be added: an object of type 'string' + To be added: an object of type 'Gtk.Button' + + + Creates a new containing the image and text from a stock item. Some stock ids are available from the class. + + + If is unknown, then it will be treated as a mnemonic label (similar to ). + + + + + + + Method + + System.Void + + + + Emits a event to the given . + Emits a event to the given . + + + + + Method + + System.Void + + + + Emits a event to the given . + Emits a event to the given . + + + + + Method + + System.Void + + + + Emits a event to the given . + Emits a event to the given . + + + + + Method + + System.Void + + + + Emits a event to the given . + Emits a event to the given . + + + + + Method + + System.Void + + + + Emits a event to the given . + Emits a event to the given . + + + + + Method + + System.Void + + + + To be added + To be added + + - + + Constructor + + + + + + To be added + To be added: an object of type 'uint' + To be added: an object of type 'Gtk.Button' + To be added + + + + Constructor - To be added - To be added: an object of type 'Gtk.FileSelection' To be added: an object of type 'IntPtr' - To be added: an object of type 'Gtk.FileSelection+Button' + To be added: an object of type 'Gtk.Button' To be added - - + + + Constructor + + + + Creates an empty widget. + The newly created widget. + Creates a new widget. To add a child widget to the button, use . + + + + + Constructor + + + + + + Creates a widget with a child containing the given text. + The text you want the to hold. + The newly created widget. + To be added + + + + Property - Gtk.FileSelection + System.UInt32 To be added - To be added: an object of type 'Gtk.FileSelection' + To be added: an object of type 'uint' To be added + + + Property + + System.Boolean + + + + + + The button label is a stock item. + if the button should use a stock item. + if the button label is used to select a stock item instead of being used directly as the label text. + + + Sets whether the button label is a stock item. If if the button label is used to select a stock item instead of being used directly as the label text. + + + + + + + Property + + System.Boolean + + + + + + Sets whether an embedded underline in the button label indicates a mnemonic. + if underlines in the text indicate mnemonics. + if an embedded underline in the button label indicates the mnemonic accelerator keys. + + Sets whether an embedded underline in the button label indicates a mnemonic. + + + + + + Property + + Gtk.ReliefStyle + + + + + + To be added + To be added: an object of type 'Gtk.ReliefStyle' + To be added: an object of type 'Gtk.ReliefStyle' + To be added + + + + + Property + + System.String + + + + + + The text from the label of the button. + A string + The text of the label widget. + + + Sets or gets the text from the label of the button. If the label text has not been set the return value will be . This will be the case if you create an empty button to use as a container. + + + + + + + Event + + + + To be added + To be added + + + + + Event + + + + Emitted when a button clicked on by the mouse and the cursor stays on the button. + + + Emitted when a button clicked on by the mouse and the cursor stays on the button. If the cursor is not on the button when the mouse button is released, the signal is not emitted. + + + + + + + Event + + + + Emitted when the mouse cursor leaves the region of the button. + + Emitted when the mouse cursor leaves the region of the button. + + + + + + Event + + + + Emitted when the button is initially pressed. + + Emitted when the button is initially pressed. + + + + + + Event + + + + Emitted when a button which is pressed is released, no matter where the mouse cursor is. + + Emitted when a button which is pressed is released, no matter where the mouse cursor is. + + + + + + Event + + + + Emitted when the mouse cursor enters the region of the button. + + Emitted when the mouse cursor enters the region of the button. + + + \ No newline at end of file diff --git a/doc/en/Gtk/ScrolledWindow.xml b/doc/en/Gtk/ScrolledWindow.xml index 1062bf7ce..962c5743f 100644 --- a/doc/en/Gtk/ScrolledWindow.xml +++ b/doc/en/Gtk/ScrolledWindow.xml @@ -1,5 +1,5 @@ - + gtk-sharp 0.0.0.0 diff --git a/gtk/FileSelection.custom b/gtk/FileSelection.custom index 3cf6969a0..993d18c19 100644 --- a/gtk/FileSelection.custom +++ b/gtk/FileSelection.custom @@ -9,14 +9,14 @@ // This code is inserted after the automatically generated code. // -public class Button : Gtk.Button { - private FileSelection file_sel; +public class FSButton : Gtk.Button { + FileSelection file_sel; - public FileSelection FileSelection { + public FileSelection FileSelection { get { return file_sel; } } - public Button (FileSelection fs, IntPtr raw) : base (raw) { + public FSButton (FileSelection fs, IntPtr raw) : base (raw) { file_sel = fs; } } @@ -48,19 +48,19 @@ public Gtk.Label SelectionText { [DllImport("gtksharpglue")] static extern IntPtr gtksharp_file_selection_get_ok_button (IntPtr i); public Gtk.Button OkButton { - get { return new Button (this, gtksharp_file_selection_get_ok_button (this.Handle)); } + get { return new FSButton (this, gtksharp_file_selection_get_ok_button (this.Handle)); } } [DllImport("gtksharpglue")] static extern IntPtr gtksharp_file_selection_get_cancel_button (IntPtr i); public Gtk.Button CancelButton { - get { return new Button (this, gtksharp_file_selection_get_cancel_button (this.Handle)); } + get { return new FSButton (this, gtksharp_file_selection_get_cancel_button (this.Handle)); } } [DllImport("gtksharpglue")] static extern IntPtr gtksharp_file_selection_get_help_button (IntPtr i); public Gtk.Button HelpButton { - get { return new Button (this, gtksharp_file_selection_get_help_button (this.Handle)); } + get { return new FSButton (this, gtksharp_file_selection_get_help_button (this.Handle)); } } [DllImport("gtksharpglue")] @@ -98,19 +98,19 @@ public string FileopFile { [DllImport("gtksharpglue")] static extern IntPtr gtksharp_file_selection_get_fileop_c_dir (IntPtr i); public Gtk.Button FileopCDir { - get { return new Button (this, gtksharp_file_selection_get_fileop_c_dir(this.Handle)); } + get { return new FSButton (this, gtksharp_file_selection_get_fileop_c_dir(this.Handle)); } } [DllImport("gtksharpglue")] static extern IntPtr gtksharp_file_selection_get_fileop_del_file (IntPtr i); public Gtk.Button FileopDelFile { - get { return new Button (this, gtksharp_file_selection_get_fileop_del_file (this.Handle)); } + get { return new FSButton (this, gtksharp_file_selection_get_fileop_del_file (this.Handle)); } } [DllImport("gtksharpglue")] static extern IntPtr gtksharp_file_selection_get_fileop_ren_file (IntPtr i); public Gtk.Button FileopRenFile { - get { return new Button (this, gtksharp_file_selection_get_fileop_ren_file (this.Handle)); } + get { return new FSButton (this, gtksharp_file_selection_get_fileop_ren_file (this.Handle)); } } [DllImport("gtksharpglue")] diff --git a/sample/test/ChangeLog b/sample/test/ChangeLog index 425a19e2b..f2aadfde8 100644 --- a/sample/test/ChangeLog +++ b/sample/test/ChangeLog @@ -1,5 +1,7 @@ 2003-02-19 Duncan Mak + * TestFileSelection.cs: Update to reflect FileSelection changes. + * TestToolbar.cs: Change the method signature for the various SignalFuncs. Thanks to Leoric from #mono for pointing it out. diff --git a/sample/test/TestFileSelection.cs b/sample/test/TestFileSelection.cs index 8cd0c993f..44ac83de9 100644 --- a/sample/test/TestFileSelection.cs +++ b/sample/test/TestFileSelection.cs @@ -39,12 +39,11 @@ namespace WidgetViewer { static void file_selection_ok (object o, EventArgs args) { - Gtk.FileSelection.Button fsbutton = (Gtk.FileSelection.Button) o; + Gtk.FileSelection.FSButton fsbutton = (Gtk.FileSelection.FSButton) o; Console.WriteLine ("ok button clicked!"); fsbutton.FileSelection.Destroy (); - } static void show_fileops (object o, EventArgs args) diff --git a/sources/Gtk.metadata b/sources/Gtk.metadata index 81f6e9557..7cf3d5825 100644 --- a/sources/Gtk.metadata +++ b/sources/Gtk.metadata @@ -257,6 +257,7 @@ GetSelectionBounds + GetLayoutOffsets