Commit Graph

91 Commits

Author SHA1 Message Date
Andrei Zmievski eba7193abb Not needed anymore. 2001-07-10 21:43:25 +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
James Moore 6603b5c6bb Adding the merger to the documentation generator. 2001-06-01 16:17:18 +00:00
Andrei Zmievski c826cba4b4 Implemented GtkCTree::node_get_pixmap(). 2001-05-23 21:10:51 +00:00
Frank M. Kromann 23867112fe Nuke compiler warning 2001-05-23 17:49:22 +00:00
Andrei Zmievski 42f15af56e Added GtkCTree::get_node_info(). 2001-05-23 16:59:39 +00:00
Andrei Zmievski bed040fa0f Added output of static functions. 2001-05-22 17:03:00 +00:00
Andrei Zmievski 0034a107a9 More work on doc generator. 2001-05-20 16:21:14 +00:00
Andrei Zmievski b60d685b06 Added -r option to register types file that defsfile may depend on. 2001-05-20 04:08:10 +00:00
Andrei Zmievski 4601bc515b First pass at documentation structure generator. 2001-05-20 01:03:35 +00:00
Andrei Zmievski c030830e01 Rename signal_emit_stop() to emit_stop(). 2001-05-15 16:23:46 +00:00
Andrei Zmievski 225a4b5eb8 Implemented GtkCTree::node_get_pixtext(). 2001-05-14 17:05:46 +00:00
Andrei Zmievski 41171f32ec Implemented GtkObject::emit() and supporting code. 2001-05-12 04:19:11 +00:00
Andrei Zmievski 5bf56c87e8 Added support for getting and setting GtkObject arguments via get_arg() and
set_arg() methods.
2001-05-11 17:54:24 +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 98262bdfce Add insert_text() method back in. 2001-05-05 17:35:30 +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 cf65ca8155 Changed the variable name to result to indicate what it really does.
Added PG_ERROR code because SUCCESS and FAILURE are not flexible enough.
2001-05-02 18:29:08 +00:00
Andrei Zmievski 946e0e3feb * Since Zend engine's object overloading is fairly broken, I implemented an
emulation layer that takes care of all the necessary details. So, now it's
  possible to set properties on Gtk objects and read them later, e.g.
  $window->foo[0] = $clist.
* Cleaned up boxed types get property handlers to conform to the new system.
2001-05-02 04:23:02 +00:00
Andrei Zmievski f1824aaaae * Fixed some GtkLabel docs.
* Allow no parameters for GtkLabel constructor and set_pattern() method.
2001-04-24 20:04:50 +00:00
Andrei Zmievski eb65de3c7c Added GtkAspectFrame definition. 2001-04-24 13:43:48 +00:00
Andrei Zmievski 3040664b1a * Fixed Gdk::pixmap_create_from_xpm* to accept null for window parameter.
* Added Gdk::pixmap_colormap_create_from_xpm* methods.
* Allowed unsetting style in GtkCtree::node_set_row_style() by passing null.
* Added GtkCtree methods post_recursive(), post_recursive_to_depth(),
  pre_recursive(), pre_cursive_to_depth() that can be used to traverse the
  CTree.
* Fixed GtkCtree 'selection' property access.
* Finished CTree example in gtk.php.
2001-04-22 21:24:39 +00:00
Andrei Zmievski 01c37a9baf * Optimized internal resource creation a bit, now accessing overloaded
properties will not keep creating resources as much as before.
* A bit more work on GtkCTree.
2001-04-13 21:58:41 +00:00
Andrei Zmievski e229852f85 * Added internal php_gtk_parse_args_hash_quiet() function.
* Added GtkMenu::popup().
2001-04-13 05:45:50 +00:00
Andrei Zmievski 6319753be5 * Added GtkCTree 'selection' and 'row_list' properties. They are not really
GtkCTree properties, but rather belong to underlying GtkCList, but GtkCTree
  overloads them.
* Fixed a bug that would corrupt object type when setting cascaded property.
* Fixed access of GtkCTreeNode 'children' property.
* Adjusted gtk.php sample according to above changes.
2001-04-13 04:37:54 +00:00
Andrei Zmievski b8fc0e915b * Fixed up boxed arg handling in the generator.
* Moved helper structs/classes into php_gtk_types.c and created constructors
  for them.
* A bit more work on GtkCTree example.
2001-04-10 01:46:38 +00:00
Andrei Zmievski 90b3dafc29 * Implemented better separation of GdkWindow, GdkPixmap, and GdkBitmap.
* Added GtkCList 'row_list' property and GtkCListRow helper class.
* Finally fixed GtkCTree::insert_row() for good. No wonder it wasn't working.
* Added GtkCTree::node_set_row_data(), GtkCTree::node_get_row_data().
* More work on GtkCTree example in gtk.php.
2001-03-31 22:23:12 +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 ce89b5bbd2 * Added GtkColorSelection::get_color, GtkColorSelection::set_color().
* Added radio buttons, check buttons, color selection, and cursors examples
  to gtk.php.
2001-03-24 23:49:43 +00:00
Andrei Zmievski 1ec5eb4935 * Added gdk::pixmap_create_from_xpm_d().
* Added GtkCList properties: sort_column, sort_type, selection, selection_mode.
* Some constructors did not invalidate objects upon errors, fixed now.
* Added GtkRadioMenuItem, GtkRadioButton constructors.
2001-03-20 20:32:15 +00:00
Andrei Zmievski 35eb9fa7f4 * Added GladeXML::signal_autoconnect(), docs later.
* Added GtkWidget 'style' property;
* Added GtkCList::prepend() and GtkCList::insert().
* Added single row insertion to CList example in gtk.php.
2001-03-20 05:01:21 +00:00
Andrei Zmievski 9295e61216 * Added GtkList->selection property.
* Fixed a crash in GladeXML::signal_connect() when passing extra arguments.
* Fixed cascading property access on objects.
2001-03-16 04:18:14 +00:00
Andrei Zmievski 252a5a55e4 Adding GtkHandleBox properties. 2001-03-14 21:36:04 +00:00
Andrei Zmievski e295f0b0b0 Added GtkFixed 'children' property and GtkFixedChild helper class. 2001-03-14 20:51:34 +00:00
Frank M. Kromann 8201eb99bb Removing unneeded free statment 2001-03-14 00:47:46 +00:00
Frank M. Kromann 2a648dbbc9 Adding cList->get_text() function 2001-03-14 00:18:04 +00:00
Andrei Zmievski f9aa5087e5 Ws 2001-03-13 17:08:25 +00:00
Andrei Zmievski 0934fb8d84 Include it in appropriate file. 2001-03-13 17:07:48 +00:00
Andrei Zmievski 8503b1ed0d We don't want to have static declarations for items we may not have,
so let's have make_reg_items.php output appropriate info.
2001-03-13 13:59:52 +00:00
Andrei Zmievski 3089bc4c47 * Re-engineered the build system a bit to accomodate the need to build
additional modules.
* Fixed GDK locale support (thanks to Alex Bokovoy).

Oh, and added libglade support.
2001-03-13 05:52:38 +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
Andrei Zmievski 2785dfbe81 * properly parse object's parent's module as well.
* added ability to merge parse trees.
2001-03-13 05:38:42 +00:00
Andrei Zmievski f4ce6be707 Added ability to specify header and register additional classes in
the override file.
2001-03-13 05:37:25 +00:00
Andrei Zmievski 8e7ef6f063 Change regexp so that GladeXML is properly converted. 2001-03-13 05:29:50 +00:00
Andrei Zmievski f8705eeb99 Add 'has_selection' property to GtkEditable. 2001-03-09 19:43:59 +00:00
Andrei Zmievski 02841f1589 Added CTree properties. 2001-03-09 16:13:16 +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 a78c212cae * Added 'child' property to GtkBin and its descendants.
* Added an internal function for querying color values (not used yet).
2001-03-08 02:35:50 +00:00