Commit graph

3781 commits

Author SHA1 Message Date
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
Rachel Hestilow
54838fec29 2002-08-03 Rachel Hestilow <hestilow@ximian.com>
* generator/Method.cs: Support libname overrides. Call parms.Finish.
	* generator/Parameters.cs: New method parms.Finish. Generate a temporary
	holder variable for enum out parameters.
	* generator/Property.cs: Pass a boolean to EnumWrapper indicating.
	if these are flags.
	* generator/StructBase.cs: Disable array marshalling (it is
	broken in mono.)
	* generator/SymbolTable.cs: Add methods IsEnumFlags.

	* glib/EnumWrapper.cs: New bool "flags".
	* glib/Value.cs: Call flags variant on GValue for enum props, if needed.

	* glue/Makefile.am, glue/style.c, glue/widget.c: Add widget
	and style field accessor methods.

	* gtk/Style.custom, Widget.custom: Added.

	* parser/README: Update requirements (needed for pixbuf drawable hack)
	* parser/Gdk.metadata: Fix library for pixbuf methods in gdk.
	Add Window.GetPointer "out" parameters.
	* parser/gapi2xml.pl: Remap gdk_draw_* methods to Drawable.

	* sample/Makefile.in: Add size and scribble samples.
	* sample/Scribble.cs: Added.

svn path=/trunk/gtk-sharp/; revision=6387
2002-08-03 22:24:37 +00:00
Rachel Hestilow
7648593a67 2002-08-02 Rachel Hestilow <hestilow@ximian.com>
[ Mike, this is everything I wanted in for the release. ]

	* generator/StructBase.cs: Generate field accessors for wrapped
	types (opaque, object, and structs/boxed). Bitfields, unions, and
	arrays are still unsupported for accessors, and are probably marshalling
	incorrectly. But this is enough to get events working (see example
	in sample/GnomeHelloWorld.cs).

	* parser/Metadata.pm: Support a "delete" directive, and set metadata
	on structs and boxed (previously was only checking objects and interfaces).

	* parser/Gdk.metadata: Delete bogus entries GdkWindowObject and
	GdkPixmapObject (more evil drawable stuff.)

	* sample/GnomeHelloWorld.cs: Show an example of how to use marshalled
	events, in our selection callback.

svn path=/trunk/gtk-sharp/; revision=6370
2002-08-02 22:35:23 +00:00
Rachel Hestilow
98d194f861 2002-07-31 Rachel Hestilow <hestilow@ximian.com>
* generator/StructBase.cs (GetFieldInfo): Generate strings correctly.
	Also, delegates are not marshalling correctly right now, change those
	to IntPtr.

	* generator/SymbolTable.cs: New method IsCallback.

	* sample/GnomeHelloWorld.cs: Use Gnome.App and stock menu items.
	Use the new event handlers.

svn path=/trunk/gtk-sharp/; revision=6300
2002-07-31 19:18:37 +00:00
Duncan Mak
c73ccc6b50 2002-07-31 Duncan Mak <duncan@ximian.com>
* *.cs: Flush. Made it use Stock buttons instead of just a plain
	text label.

	* TestColorSelection.cs: Made the result dialog work a bit better.

	* ChangeLog: Added Rachel's ChangeLog entry to here.

svn path=/trunk/gtk-sharp/; revision=6273
2002-07-31 07:07:29 +00:00
Rachel Hestilow
967e3e9c5a 2002-07-30 Rachel Hestilow <hestilow@ximian.com>
* generator/ClassBase.cs: Change hasDefaultConstructor to protected,
	adjust now that it is an attr and not a subnode. Also add virtual
	property AssignToName (for ctors).

	* generator/Ctor.cs: Add property ForceStatic.
	(Generate): Optimize return code a bit for the static case.

	* generator/Method.cs: Assign to a "raw_ret" pointer before calling
	FromNativeReturn.

	* generator/Parameters.cs: Change "out ref" to "out", not "ref".

	* generator/Property.cs: Fix to work correctly with all object and
	struct types (mostly just some if-cases added).

	* generator/SignalHandler.cs: Remove args_type and argfields (unused).
	(Generate): Initialize struct if necessary.

	* generator/StructBase.cs: Massive reworking to support methods, ctors,
	etc.

	* generator/SymbolTable.cs: Add GdkAtom and gconstpointer simple types.

	* glib/Boxed.cs: Accept both IntPtr and object ctors. Add access for both.

	* glib/Opaque.cs: Fix copy/pasted copyright notice, remove data and event
	fields. Fix docs.

	* glib/Value.cs: Work correctly with boxed properties.

	* gnome/Modules.cs: Use new struct ctors.

	* gnome/Program.custom: Remove Get, this is being generated now.

	* parser/Gdk.metadata: Fix the drawable classes to inherit correctly.

	* parser/Metadata.pm: Change per-class attributes to actually be
	attributes.

	* parser/Gtk.metadata: Add a dummy attribute value for disabledefaultctor.

	* parser/gapi2xml.pl: Add hacks for the (broken) Drawable and Bitmap
	typedefs.

	* sample/test/TestColorSelection.cs: Display color string in hex format,
	update to use IsNull instead of == null, and size dialog to look pretty.

	* sample/Size.cs: Added.

svn path=/trunk/gtk-sharp/; revision=6264
2002-07-30 23:02:12 +00:00
Gonzalo Paniagua Javier
9823d2d8ea Removed old file and added some info que a DB error happens.
svn path=/trunk/gtk-sharp/; revision=6214
2002-07-27 15:27:54 +00:00
Rachel Hestilow
4d92d54b3f 2002-07-25 Rachel Hestilow <hestilow@ximian.com>
[about 60% of the marshalling patch that I lost.
	 The rest to come tomorrow.]

	* generator/BoxedGen.cs, StructGen.cs: Move most of this to StructBase,
	delete large chunks duplicated from ClassBase.

	* generator/IGeneratable.cs: Add MarshalReturnType, FromNativeReturn.

	* generator/ClassBase.cs: Move ctor stuff here. Add a CallByName
	overload with no parameters for the "self" reference.

	* generator/EnumGen.cs, CallbackGen.cs: Implement new MarshalReturnType,
	  FromNativeReturn.

   * generator/Method.cs: Use container_type.MarshalType, CallByName, and
	  SymbolTable.FromNativeReturn when generating call and import sigs.

	* generator/OpaqueGen.cs: Added.

	* generator/Property.cs: Handle boxed and opaques differently.

	* generator/SymbolTable.cs: Update for the opaque stuff and the new Return
	methods. Also change GetClassGen to simply call the as operator.

	* glib/Boxed.cs: Update for struct usage -- this is now a wrapper for
	  the purposes of using with Value.

   * glib/Opaque.cs: Added. New base class for opaque structs.

	* glue/textiter.c, gtk/TextIter.custom: Remove.

	* gnome/Program.cs: Update for new struct marshalling.

	* parser/Metadata.pm: Use our own getChildrenByTagName.

	* parser/README: Update for new requirements (was out of sync with
	  build.pl)

	* parser/gapi2xml.pl: Hide struct like const in field elements.

	* parser/gapi_pp.pl: Handle embedded union fields (poorly).

	* sample/test/TestColorSelection.cs: Comment out null color tests
     for now.

svn path=/trunk/gtk-sharp/; revision=6186
2002-07-26 06:08:52 +00:00
Duncan Mak
dd71eaf3ea 2002-07-25 Duncan Mak <duncan@ximian.com>
* TestRange.cs: Fix the EventHandlers here.

svn path=/trunk/gtk-sharp/; revision=6167
2002-07-25 11:42:04 +00:00
Duncan Mak
c1b8365702 Fix the IP yet another, sorry.
svn path=/trunk/gtk-sharp/; revision=6156
2002-07-24 18:48:39 +00:00
Duncan Mak
203ab445f8 Make the Action menu work.
svn path=/trunk/gtk-sharp/; revision=6155
2002-07-24 18:46:56 +00:00
Duncan Mak
4c1e8f1b53 Give Gustavo some privacy.
svn path=/trunk/gtk-sharp/; revision=6154
2002-07-24 18:35:10 +00:00
Duncan Mak
dd1c45b22e Add a menubar
svn path=/trunk/gtk-sharp/; revision=6152
2002-07-24 18:33:28 +00:00
Gonzalo Paniagua Javier
e032408c50 Handle DB exceptions
svn path=/trunk/gtk-sharp/; revision=6151
2002-07-24 18:19:21 +00:00
Gonzalo Paniagua Javier
5937983a62 added status bar and simulate modal dialogs
svn path=/trunk/gtk-sharp/; revision=6150
2002-07-24 18:09:51 +00:00
Duncan Mak
45e4ed0684 Line up the titles.
svn path=/trunk/gtk-sharp/; revision=6149
2002-07-24 17:54:38 +00:00
Gonzalo Paniagua Javier
c6f414c7d4 Added edit callback
svn path=/trunk/gtk-sharp/; revision=6148
2002-07-24 17:41:14 +00:00
Gonzalo Paniagua Javier
6a7c95725c Insert and Delete now work
svn path=/trunk/gtk-sharp/; revision=6144
2002-07-24 17:04:45 +00:00
Duncan Mak
dd6a2b8878 UI tweaks to make it more beautiful.
svn path=/trunk/gtk-sharp/; revision=6139
2002-07-24 15:07:29 +00:00
Duncan Mak
640ba7857e Made the entries accessible, so that we can grab the text out of it.
svn path=/trunk/gtk-sharp/; revision=6137
2002-07-24 14:15:58 +00:00
Mike Kestner
ccfec8b7e2 2002-07-24 Mike Kestner <mkestner@speakeasy.net>
* generator/SignalHandler.cs : use ref parameters in signal cb's.

svn path=/trunk/gtk-sharp/; revision=6136
2002-07-24 14:11:40 +00:00
Duncan Mak
960dbb8c7a New GUI. Go! Go! Go!
svn path=/trunk/gtk-sharp/; revision=6135
2002-07-24 14:06:07 +00:00
Gonzalo Paniagua Javier
d4a5d43707 slightly modified makefile. Added DB stuff
svn path=/trunk/gtk-sharp/; revision=6132
2002-07-24 13:46:19 +00:00
Alp Toker
6be8587936 gtk/Makefile.in etc. : reference the newly compiled assemblies instead of those
already installed on the system

svn path=/trunk/gtk-sharp/; revision=6130
2002-07-24 11:47:01 +00:00