Commit graph

4154 commits

Author SHA1 Message Date
Rachel Hestilow
f94279195c 2002-08-20 Rachel Hestilow <hestilow@ximian.com>
* makefile: Add parser to build (for install only)
	* parser/makefile: Add distclean target.

	* parser/gapi.pl: Forgot to add this.
	* api/: Replace APIs with correctly generated ones.

svn path=/trunk/gtk-sharp/; revision=6827
2002-08-20 20:35:42 +00:00
Radek Doulik
c220e2c8e6 added missing space
svn path=/trunk/gtk-sharp/; revision=6822
2002-08-20 20:03:28 +00:00
Rachel Hestilow
5d22c25a4e 2002-08-20 Rachel Hestilow <hestilow@ximian.com>
* README.generator: Added docs on using the generator.

svn path=/trunk/gtk-sharp/; revision=6821
2002-08-20 20:02:53 +00:00
Rachel Hestilow
08d136d203 (cvs shuffling, noted in earlier commit)
svn path=/trunk/gtk-sharp/; revision=6820
2002-08-20 20:00:03 +00:00
Rachel Hestilow
e9d1e0b6dc 2002-08-19 Rachel Hestilow <hestilow@ximian.com>
* art/Makefile.in (clean): Change to avoid bugging out on generated/CVS.

	* glib/ObjectManager.cs: Added. Used to be auto-generated, but
	now it can infer names, and relies on per-namespace ObjectManager
	classes to inform it of oddly-named classes.

	* generator/IGeneratable.cs, GenBase.cs: New "DoGenerate" property.
	* generator/*Gen.cs: Honor DoGenerate.
	* generator/CodeGenerator.cs: Support including dependency files
	which will not be generated.
	* generator/ObjectGen.cs: Generate mapping file per-namespace, as one
	that calls back to the one in glib. Only generate if the name does
	not follow the normal conventions, otherwise, GtkSharp.ObjectManager
	can infer the name.
	* generator/Parser.cs: Accept 'generate' flag to pass on to the
	IGeneratables. Parse a new toplevel element, "symbol", which adds
	a type to the SymbolTable (instead of hard-coding it).
	* generator/SignalHandler.cs: Do not optimize signal handler creation,
   instead creating them in their own namespaces. Do not generate
	if the calling Signal told us not to.
	* generator/Signal.cs: Do not generate handlers if container's DoGenerate
	is false. Adjust to the marshaller name being in a sub-namespace.
	* generator/SymbolTable.cs (AddSimpleType, AddManualType): Used
	to add simple and manually wrapped types at runtime instead of
	compile-time.
	(FromNative): Remove hard-coded cases for manually wrapped types, use
	a generic case instead.

	* api: Added. Move api files and generation targets here.
	* source: Added. Move source parsing here.

	* generator/makefile: Move actual generation to api/.
	* glib/Makefile.in: Remove generated/* target.
	* glue/Makefile.am: Fix to include canvas-marshal. Move canvas stuff
	to GNOME target.

	* gnome/CanvasProxy.cs: Update to work with SignalHandlers being
	namespace-specific.

	* parser/Metadata.pm: Moved to GAPI/Metadata.pm, renamed, etc.
	* parser/gapi2xml.pl: Use GAPI::Metadata.
	* parser/makefile: Install scripts, remove source parse build target.
	Rename formatXML to gapi_format_xml.

svn path=/trunk/gtk-sharp/; revision=6818
2002-08-20 19:56:18 +00:00
Miguel de Icaza
eb6f4934d7 Fix build order
svn path=/trunk/gtk-sharp/; revision=6713
2002-08-17 20:24:22 +00:00
Miguel de Icaza
f9b99e7eac 2002-08-17 Miguel de Icaza <miguel@ximian.com>
* gtk/ThreadNotify.cs: New file, used to notify invoke code in the
	main Gtk thread.

svn path=/trunk/gtk-sharp/; revision=6712
2002-08-17 19:53:51 +00:00
Duncan Mak
d58e384ec1 2002-08-17 Duncan Mak <duncan@ximian.com>
* gnome/CanvasProxy.cs:
	* gnome/GtkSharp.BoundsHandler.cs:
	* gnome/GtkSharp.DrawHandler.cs:
	* gnome/GtkSharp.PointHandler.cs:
	* gnome/GtkSharp.RenderHandler.cs:
	* gnome/GtkSharp.UpdateHandler.cs: C# glue for subclassing CanvasItems.

	* glue/canvas-proxy-marshal.c:
	* glue/canvas-proxy-marshal.h:
	* glue/canvas-proxy-marshal.list:
	* glue/canvas-proxy.c: Added the coverage signal.

svn path=/trunk/gtk-sharp/; revision=6708
2002-08-17 10:38:17 +00:00
Duncan Mak
40dd8134e3 2002-08-17 Duncan Mak <duncan@ximian.com>
* glue/canvas-proxy.c:
	* glue/canvas-proxy.h: New files. Glue for subclassing CanvasItem
	from C#.

	* glue/canvas-proxy-marshal.c:
	* glue/canvas-proxy-marshal.h:
	* glue/canvas-proxy-marshal.list: Added to handle marshaling
	signals used by CanvasProxy.

svn path=/trunk/gtk-sharp/; revision=6682
2002-08-16 17:14:53 +00:00
Mike Kestner
64addd90b9 2002-08-15 Mike Kestner <mkestner@speakeasy.net>
* sample/Makefile.in : add some art-sharp refs

svn path=/trunk/gtk-sharp/; revision=6667
2002-08-16 05:00:31 +00:00
Miguel de Icaza
8ee14c0488 My ChangeLog updates
svn path=/trunk/gtk-sharp/; revision=6658
2002-08-16 00:56:33 +00:00
Duncan Mak
074dcf2d4a 2002-08-15 Duncan Mak <duncan@ximian.com>
* generator/gtkapi.xml: New Libart stuff.

	* parser/build.pl:
	* gnome/Makefile.in: Added reference to atk-sharp.dll

	* generator/Parameters.cs (MangleName): Added cases for 'in' and 'out'.

svn path=/trunk/gtk-sharp/; revision=6651
2002-08-15 16:44:41 +00:00
Joe Shaw
e14ce485dc 2002-08-13 Joe Shaw <joe@assbarn.com>
* configure.in: Check for libgnomecanvas.

	* gtk/ColorSelectionDialog.custom: Create a button subclass which
	contains a reference to the parent ColorSelectionDialog.  Modify
	properties to return this subclass instead of a regular
	Gtk.Button.

	* gtk/FileSelection.custom: Ditto.

	* sample/test/TestFileSelection.cs (file_selection_ok):
	Demonstrate the button subclass by destroying the parent dialog
	when the ok button is clicked.

svn path=/trunk/gtk-sharp/; revision=6610
2002-08-13 14:01:14 +00:00
Rachel Hestilow
e6ea0015b5 2002-08-12 Rachel Hestilow <hestilow@ximian.com>
[ Patch from Ricardo Fernandez Pascual <rfp1@ono.com> for
	  libglade support (slightly modified) ]

	* configure.in: Conditionally compile glade support.
	* makefile: Add glade directory.
	* glade/: Added.
	* sample/makefile.in: Add (conditional) glade example.
	* sample/GladeViewer.cs: Added.
	* glue/gladexml.c: Added.
	* glue/Makefile.am: Updated.

	* parser/build.pl: Parse libglade-2.0.0.
	* parser/README: Update requirements.

2002-08-12  Rachel Hestilow  <hestilow@ximian.com>

   * parser/gapi_pp.pl: Handle "typedef struct {...}" construct.

	* glue/canvaspoints.c: Added.
	* glue/Makefile.am: Updated.

 	* gnome/CanvasPoints.custom: Added. (Doesn't seem to work right yet,
	looking into this.)

svn path=/trunk/gtk-sharp/; revision=6601
2002-08-12 19:14:44 +00:00
Miguel de Icaza
a5d2c9f567 2002-08-11 Miguel de Icaza <miguel@ximian.com>
* glub/adjustment.c: C-side of the Adjustment glue.

	* gtk/Adjustment.custom: Add new SetBounds function that allows us
	to change the adjustment after it has been created.

svn path=/trunk/gtk-sharp/; revision=6587
2002-08-11 22:48:00 +00:00
Rachel Hestilow
fce41ef511 2002-08-10 Rachel Hestilow <hestilow@ximian.com>
* sample/TreeViewDemo.cs (Main, DeleteCB): Update to use correct
	event handler.

svn path=/trunk/gtk-sharp/; revision=6578
2002-08-10 23:49:25 +00:00
Rachel Hestilow
db4c8f1c2d Forgot to cvs add, mike :-)
svn path=/trunk/gtk-sharp/; revision=6577
2002-08-10 23:40:20 +00:00
Mike Kestner
8896672938 2002-08-09 Kristian Rietveld <kris@gtk.org>
* parser/Gtk.metadata: add a bunch of out arg rules, add
       a vararg rule for the ListStore constructor, change method names of
       TreeModel's signal emission methods, remove opaque rule of
       GtkTreeIter, remove null_ok rules of TreeModel.IterNChildren
       and TreeModel.IterNthChild.

       * parser/Metadata.pm: add some code to be able to filter on
       parameter names.

       * generator/Method.cs: a method with accessor args and a non-void
       return value cannot be written as property.

       * sample/Makefile.in, sample/TreeViewDemo.cs: add a simple TreeView
       demo app.

       * gtk/ListStore.custom, gtk/TreeModel.custom, gtk/TreeModelSort.custom,
       gtk/TreeStore.custom, gtk/TreeView.custom: customizations.

svn path=/trunk/gtk-sharp/; revision=6576
2002-08-10 19:15:58 +00:00
Mike Kestner
6365d4113b 2002-08-09 Mike Kestner <mkestner@speakeasy.net>
* generator/ObjectGen.cs (GenerateMapper): guard against IntPtr.Zero

svn path=/trunk/gtk-sharp/; revision=6569
2002-08-09 16:26:41 +00:00
Duncan Mak
03a91f8672 2002-08-09 Duncan Mak <duncan@ximian.com>
* sample/Fifteen.cs (Position): Made it a property instead of a
	public field.

	* sample/pixmaps/gnome-color-browser.png: Icon for Fifteen#.

svn path=/trunk/gtk-sharp/; revision=6560
2002-08-09 05:22:13 +00:00
Mike Kestner
2d733eacb6 2002-08-09 Mike Kestner <mkestner@speakeasy.net>
* generator/SymbolTable.cs : make GLib.Value a manually_wrapped_type

svn path=/trunk/gtk-sharp/; revision=6559
2002-08-09 04:54:39 +00:00
Duncan Mak
6d507c9625 2002-08-09 Duncan Mak <duncan@ximian.com>
* TestRange.cs (reformat_value): Do something useful here.

svn path=/trunk/gtk-sharp/; revision=6558
2002-08-09 04:47:40 +00:00
Mike Kestner
36b2fee78d 2002-08-08 Mike Kestner <mkestner@speakeasy.net>
* generator/Property.cs : getter usage fix

svn path=/trunk/gtk-sharp/; revision=6557
2002-08-09 04:27:15 +00:00
Mike Kestner
903349cd37 2002-08-08 Mike Kestner <mkestner@speakeasy.net>
* generator/Method.cs : s/GetType/GetGType. Don't generated static
	  methods for interfaces.
	* glib/Object.cs : add GType prop
	* gnome/*.custom : s/Type/GType
	* parser/Gtk.metadata : rule to make TreeIter opaque
	* parser/gapi2xml.pl : handle interface methods properly
	* sample/Fifteen.cs : s/Type/GType

svn path=/trunk/gtk-sharp/; revision=6556
2002-08-09 03:56:27 +00:00
Mike Kestner
71266c0337 2002-08-08 Mike Kestner <mkestner@speakeasy.net>
* gdk/Event.cs : derived from Boxed, not Object.
	* generator/SymbolTable.cs : fixes for Gdk.Events

svn path=/trunk/gtk-sharp/; revision=6542
2002-08-08 16:33:46 +00:00
Mike Kestner
66c0ec1d43 2002-08-07 Mike Kestner <mkestner@speakeasy.net>
* generator/CodeGenerator.cs : call ObjectGen.GenerateMapper
	* generator/Method.cs : Remove the if null workaround
	* generator/ObjectGen.cs : build a hash of object types.
	(GenerateMapper): generate the GtkSharp.ObjectManager class.
	* glib/Object.cs : use ObjectManager.CreateObject.
	* glue/type.c : helper for typename lookup.

svn path=/trunk/gtk-sharp/; revision=6526
2002-08-08 04:48:41 +00:00
Duncan Mak
29e6647bee Flush.
svn path=/trunk/gtk-sharp/; revision=6512
2002-08-07 16:57:09 +00:00
Duncan Mak
643b79481d Added menus and buttons. Made it prettier. Moved the constructor stuff
into BoardPiece constructor.

svn path=/trunk/gtk-sharp/; revision=6496
2002-08-07 08:05:34 +00:00
Duncan Mak
54dfc5bc93 Revert my last patch.
svn path=/trunk/gtk-sharp/; revision=6495
2002-08-07 06:40:09 +00:00
Duncan Mak
56df396225 Flush.
svn path=/trunk/gtk-sharp/; revision=6494
2002-08-07 05:50:48 +00:00
Duncan Mak
b2f1f53188 2002-08-07 Duncan Mak <duncan@ximian.com>
* sample/Fifteen.cs: Fixed scramble. The whole thing works now.

svn path=/trunk/gtk-sharp/; revision=6493
2002-08-07 05:44:03 +00:00
Duncan Mak
a15be41988 2002-08-07 Duncan Mak <duncan@ximian.com>
* TestRange.cs (Close_Button): Remember to set our RetVal.

svn path=/trunk/gtk-sharp/; revision=6492
2002-08-07 04:11:49 +00:00
Duncan Mak
6fa1450445 2002-08-07 Duncan Mak <duncan@ximian.com>
* sample/Fifteen.cs: Fixed movement logic. It works now. Added
	'debug' flag. Run 'mono ./Fifteen.exe debug' to see movement info.

svn path=/trunk/gtk-sharp/; revision=6491
2002-08-07 03:50:09 +00:00
Rachel Hestilow
0bf76f0d61 2002-08-06 Rachel Hestilow <hestilow@ximian.com>
* generator/SignalHandler.cs: Handle null arguments and return values.

	* sample/Makefile.in: Add fifteen game.

svn path=/trunk/gtk-sharp/; revision=6483
2002-08-06 21:56:57 +00:00
Gonzalo Paniagua Javier
4750a00588 2002-08-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* sample/GnomeHelloWorld.cs: use DeleteEventHandler.

svn path=/trunk/gtk-sharp/; revision=6480
2002-08-06 20:02:00 +00:00
Duncan Mak
0479b3c950 Fixed crud.
svn path=/trunk/gtk-sharp/; revision=6479
2002-08-06 18:01:49 +00:00
Duncan Mak
e1e6059f98 2002-08-07 Duncan Mak <duncan@ximian.com>
* sample/Fifteen.cs: Added new canvas example.

svn path=/trunk/gtk-sharp/; revision=6478
2002-08-06 17:50:25 +00:00
Duncan Mak
cd25ace4ba 2002-08-06 Duncan Mak <duncan@ximian.com>
* glue/canvasitem.c:
	* gnome/CanvasItem.custom: Added accessor to get the 'canvas' field.

svn path=/trunk/gtk-sharp/; revision=6469
2002-08-06 16:01:15 +00:00
Duncan Mak
bfb00c4e7a 2002-08-06 Duncan Mak <duncan@ximian.com>
* gnome/CanvasItem.custom: Added accessor to get the 'canvas' field.

svn path=/trunk/gtk-sharp/; revision=6467
2002-08-06 15:52:32 +00:00
Duncan Mak
eaca3f82e0 2002-08-06 Duncan Mak <duncan@ximian.com>
* sample/CanvasExample.cs: Removed extra methods.

svn path=/trunk/gtk-sharp/; revision=6458
2002-08-06 05:42:57 +00:00
Duncan Mak
610efe83b9 ChangeLog entry
svn path=/trunk/gtk-sharp/; revision=6457
2002-08-06 05:41:56 +00:00
Rachel Hestilow
d60309616b 2002-08-05 Rachel Hestilow <hestilow@ximian.com>
* makefile, */Makefile.in: Packaging fix from
	Robert McQueen (a.k.a. Robot101).

svn path=/trunk/gtk-sharp/; revision=6455
2002-08-06 02:07:10 +00:00
Rachel Hestilow
ab115875e4 2002-08-05 Rachel Hestilow <hestilow@ximian.com>
* gnome/Canvas*.custom, IconTextItem.custom: Added.

	* sample/CanvasExample.cs: Added.
	* sample/Makefile.in: Build canvas example in gnome build.

svn path=/trunk/gtk-sharp/; revision=6451
2002-08-06 00:15:18 +00:00
Rachel Hestilow
034534a606 2002-08-05 Rachel Hestilow <hestilow@ximian.com>
* parser/Gnome.metadata: Patch from duncan for
	bug #28553 (canvas item event handler rename).

svn path=/trunk/gtk-sharp/; revision=6447
2002-08-05 22:42:58 +00:00
Joe Shaw
25ab00563b Remove the ".dll" suffix, as that doesn't work with MONO_PATH.
svn path=/trunk/gtk-sharp/; revision=6399
2002-08-04 19:08:13 +00:00
Joe Shaw
530e27aa43 2002-08-04 Joe Shaw <joe@assbarn.com>
* configure.in: We actually need libgnomeui, not libgnome.

svn path=/trunk/gtk-sharp/; revision=6398
2002-08-04 19:03:21 +00:00
Joe Shaw
b9bf786b00 shut up cvs
svn path=/trunk/gtk-sharp/; revision=6397
2002-08-04 18:54:11 +00:00
Mike Kestner
564be8599d 2002-08-04 Mike Kestner <mkestner@speakeasy.net>
Tagged for 0.3 and updated configure.in to 0.4.
	Back open for commits.

svn path=/trunk/gtk-sharp/; revision=6394
2002-08-04 05:24:31 +00:00
Mike Kestner
f7337f261c 2002-08-03 Mike Kestner <mkestner@speakeasy.net>
Freezing cvs for 0.3 release. Please no commits until the release.

svn path=/trunk/gtk-sharp/; revision=6392
2002-08-04 04:24:53 +00:00
Mike Kestner
71b46ecd41 2002-08-03 Mike Kestner <mkestner@speakeasy.net>
* generator/Method.cs : Added IsGetter, IsSetter, ReturnType. Made
	  GenerateImport, GenerateBody public.
	* generator/Parameters.cs : Added Parameter::MarshalType
	* generator/Property.cs : Added logic to use methods instead of text
	  properties wherever possible.

svn path=/trunk/gtk-sharp/; revision=6391
2002-08-04 04:23:13 +00:00