Commit Graph

23 Commits

Author SHA1 Message Date
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