Commit Graph

39 Commits

Author SHA1 Message Date
Andrei Zmievski 9b1cd4cac7 This mega-patch adjusts the build system so that it can work automatically
with either old or new PHP build system. It also updates copyright years
and fixes loading of rc files by test/gtk.php.

Extension writers should take notice of the changes in the build system.
2002-04-11 02:19:50 +00:00
Andrei Zmievski b3e5b52e60 Fix to retain backwards compatibility even when running under sapi/cli. 2002-01-23 02:22:48 +00:00
Alan Knowles 5767fce64a fatal_error function added to generator\nadditional checks for argv added to generator 2002-01-15 07:10:11 +00:00
Markus Fischer e1abbe5854 - Fix problem with sTuDyCaPs in struct definnitions. 2001-12-10 16:02:21 +00:00
Markus Fischer 2cab0cc8a6 - Wrong variable passed to constructor.
# I think we had luck this worked ;)
2001-12-08 22:17:45 +00:00
Andrei Zmievski 59a4e47e47 Turn off notices temporarily. 2001-12-06 15:29:07 +00:00
Andrei Zmievski 0e8efd507d Fixed generator to properly account for the gtk object hierarchy. 2001-11-30 18:02:41 +00:00
Andrei Zmievski ef096eafe4 Modified generator to have better support for objects that are not GtkObject
descendants. Made it use typed enums only when generating ext/gtk+, enums
in other extensions are handled as simple integers. Added -c option to
generator that allows specifying what class the non-method functions should
go into (this allows merging some of them into a defined class). And a few
optimizations of course.
2001-11-30 04:37:36 +00:00
Markus Fischer b9f514f9e8 - Expose object when throwing an error. 2001-10-24 20:12:44 +00:00
Frank M. Kromann 6524f8386b Adding hack to prevent gutter_size property generation on Win32 2001-09-16 15:38:51 +00:00
Andrei Zmievski ea7884b82a - Added 'action_area' property to GtkFileSelection.
- Added ability to specify custom constants in .overrides file.
- Added GtkScintilla constants.
2001-08-15 03:24:25 +00:00
Andrei Zmievski a421b9ca1f - Fixed a couple of build issues.
- Fixed a problem where extensions other than gtk+ would not have properly
  registered base classes.
- Added initial support for GtkScintilla text editing widget.
2001-08-11 05:42:41 +00:00
Andrei Zmievski 838eab8d74 - Implemented a workaround for registering classes with proper name
capitalization.
- Removed the unnecessary wrap_ prefix from internal function names.
2001-08-11 03:28:20 +00:00
Andrei Zmievski 8ae066e3fb - Fix config.h.in generation.
- Changed GtkWidget::state() method to GtkWidget->state property.
- Removed GtkWidget::get_allocation(), it is redundant with GtkWidget->allocation
  property present.
- Implemented support for struct based classes (GdkRectable, GtkAllocation,
  GtkRequisition, etc).

0.1 is on the horizon.
2001-07-31 05:27:01 +00:00
Frank M. Kromann 2e60eb6bdd Fixing ZTS compilation
This also adds the stuff to handle UTF8 convertions
2001-07-31 00:38:41 +00:00
Andrei Zmievski 9c69f34c64 Updated to match TSRM changes. 2001-07-30 19:13:15 +00:00
Andrei Zmievski 011a76e8e4 This implements a new build system for PHP-GTK. It is based on PHP build
system and is necessary in order to keep adding support for GtkObject
based extensions such as GtkHtml, Bonobo, GtkScintilla and others.

The only currently implemented extensions are Gtk+ and libglade. Each
extension (except for Gtk+, obviously) can be enabled or disabled
from the 'configure' command-line.

The new build process for CVS versions of PHP-GTK is such:

./buildconf
./configure
make
2001-07-10 18:27:52 +00:00
Andrei Zmievski 4601bc515b First pass at documentation structure generator. 2001-05-20 01:03:35 +00:00
Andrei Zmievski c838301f43 * Fix checking of argc upon startup.
* Added GtkObject::get() method - may be renamed soon.
2001-05-10 18:56:42 +00:00
Andrei Zmievski 98d6f7e5e9 * Cleaned up cruft from the code generator that was left over from
trying to handle byref args automatically.
* Started working on having only one object wrapper for each boxed type
  pointer. Obviously broke stuff, but will fix soon.
2001-05-04 04:31:40 +00:00
Andrei Zmievski 8c0fa64b5a * Added GtkCTree 'clist' property.
* Implemented GtkObject::set_data(), GtkObject::get_data(),
  GtkObject::connect_after(), GtkObject::connect_object_after().
* Started on GtkCTree example, which incidentally shows a bunch of other
  GTK+ stuff.
2001-03-28 04:29:26 +00:00
Andrei Zmievski 3d5422b8be Generalized the generator system:
* removed all static content into templates
	* everything is now generated just from defs, overrides, and prefix
	* removed byref parsing, since it will be transformed into something new
	* added ability to specify defs files to register types from
	* split out gdk part of overrides into gdk.overrides

Basically, all the generation is based on a concept of a module. For each
module there is .defs file and .overrides file. The generated file is
php_gtk_<module>.c. There are a couple more generated files that get
included by the main source in order to declare class entries, and
register classes and constants.

Also, made Gdk::input_add() work with PHP file resources.
2001-03-13 05:48:58 +00:00
Frank M. Kromann d8421825a9 Setting time limit to 5 min to allow build on slow computers. 2001-03-09 06:56:31 +00:00
Andrei Zmievski 52596d2b2b * Modified generator to allow overriding object properties.
* Added helper GtkBoxChild class.
* Added properties for GtkMisc, GtkArrow, GtkBox, and GtkCalendar classes.
* Modified GtkCalendar::get_date() to return an array of the results.
2001-03-09 04:33:35 +00:00
Andrei Zmievski 57db3d3a4a Disable construction of abstract or unimplemented classes. 2001-03-08 22:08:36 +00:00
Andrei Zmievski 22332fc52f Override GtkLabel::get() to return label text. 2001-03-07 15:03:35 +00:00
Andrei Zmievski f9058c3f1f * Fixed function entry name generation.
* Added Gtk::true() and Gtk::false(). Yes, these are just what they look
  like - functions that return true and false. Handy for certain callbacks.
* Fixed connect_object() semantics, it only requires two arguments now.
* Standardized all callback marshallers - callbacks are now smoother than
  Jennifer Alba's bottom and they all take user supplied extra arguments.
* Moved callback validation right up to the call time, so that callbacks
  included from other files could be used as well.
* This necessitated better error messages - so now if it the callback is
  not valid, the filename and line number where it was specified are shown.
* Updated gtk.php and list.php to use connect_object() as an example.
2001-03-07 05:37:22 +00:00
Frank M. Kromann de002f74b4 Fixing the return value of parameters passed by ref.
Thsi has effect on clist_get_text() and other functions using gchar** types as argument.
2001-03-05 21:25:37 +00:00
Andrei Zmievski b97558748c * Implemented support for menu creation via GtkItemFactory.
* Implemented get_type() methods for every Gtk* class.
* Enhanced overrides parsing to allow setting functions as class methods
  or moving methods from one class to another.
* Renamed php_gtk_check_callable() to php_gtk_is_callable().
* Added an extra parameter to php_gtk_is_callable() that is filled in
  with the name of the callable. Now just need to use it everywhere.
* Added php_gtk_parse_args_hash() internal function.
2001-03-05 00:21:42 +00:00
Frank M. Kromann 766c5f1f9b Adding cvs ID 2001-03-03 18:42:16 +00:00
Andrei Zmievski 440c15895c Changing my email address. 2001-03-01 16:43:33 +00:00
Andrei Zmievski 65e754509f Generic property handlers now percolate up the inheritance chain
to see whether parent objects have the needed property.
2001-02-27 16:54:01 +00:00
Andrei Zmievski 815156997b * Fixed up marshallers for idle, timeout, and input handlers.
* Implemented access to object fields/properties.
2001-02-27 05:16:35 +00:00
Andrei Zmievski b92516f171 Don't rely on globals. 2001-02-06 14:07:17 +00:00
Andrei Zmievski 73fdbf45b2 * Added a couple of GdkWindow methods.
* Added GdkPixmap, GdkBitmap, and GdkDrawable handling.
2001-02-06 03:56:52 +00:00
Andrei Zmievski 45f2823a2b * Fixed constructor generation
* Overrode GtkButton() and GtkListItem() constructors so that a text
  label can be optionally passed in.
2001-02-04 00:41:23 +00:00
Andrei Zmievski 2052db1c02 * Added LGPL license
* Fixed enum/flags code generation properly
* Fixed a bug that would not recognize default value of 0
* Added GtkList::append_items method
* Added a couple of example scripts
2001-02-04 00:08:49 +00:00
Andrei Zmievski 0a81509b9c * gdk_ and gtk_ are stripped from the PHP visible method names
* made it possible to override PHP visible function name from gtk.overrides
* if parsing enum/flags value fails in the constructor, the object is
  invalidated
2001-02-03 06:56:17 +00:00
Andrei Zmievski c72f03f396 Initial check-in 2001-01-29 22:15:59 +00:00