Commit Graph

28 Commits

Author SHA1 Message Date
Andrei Zmievski 772e7f0a13 Don't sort objects. 2005-03-30 18:34:09 +00:00
Andrei Zmievski 6473a9b649 Framework for merging different sets of diffs. 2005-03-29 19:17:32 +00:00
Andrei Zmievski 9fd13d6266 Whew. It all started with because I had to
- Implement GtkFileChooserDialog

But then I reliazed that it implemented GtkFileChooser interface so I had
to:

- Put in support for interfaces and access to object's interface
  implementations.

The rest was easy:

- Register stock item constants (Gtk::STOCK_OK, etc)
2005-03-22 00:13:47 +00:00
Andrei Zmievski d07c79188e Adjust Makefile slightly so that the #line directives refer to full path. 2005-03-20 03:54:58 +00:00
Andrei Zmievski c98e73cf4f Initial support for boxed types. Things will compile, but there is still
work to be done.
2005-01-24 06:18:48 +00:00
Andrei Zmievski ec4f2bdfee - Sort method definitions alphabetically, but put constructors at the
top.
- Allow specification of function entry flags via overrides.
- Allow more than one constructor per class. The first constructor in
  the .defs file will be considered the 'default' one and will be
  generated or overriden as __construct. The rest become static methods
  and are named the same as the C function without the class name at the
  beginning, i.e. gtk_button_new_with_mnemonic become new_with_mnemonic.
2005-01-17 04:19:26 +00:00
Andrei Zmievski bbd0f0b1bf This commit implements.. eh.. what does it implement. Hmm, I just had it
a second ago.. Screw it, I'm too tired to explain it. It's just closer
to the goal, that's all. I need a drink.
2004-11-13 07:34:34 +00:00
Andrei Zmievski 9f0e368baa More work on the generator. 2004-10-21 02:46:31 +00:00
Andrei Zmievski 7a24769b4e * Modified generator.php to take -f option that specifies the output
file. If -f is not specified, the output goes to stdout.
* Move object sorting code into defs parser.
* Implement enum/flags registration. They now live inside top-level
  classes, e.g. Gtk::, Atk::, etc.
2004-08-14 21:09:52 +00:00
Andrei Zmievski c640ea65dc A whole bunch of stuff that I'm too tired right now to talk about. New
GTK/GDK defs are in and parsing works. So does object registration, but
that's about it for now. If this compiles for you, you can do
var_dump(get_declared_classes()) and see all the Gtk classes there.
2004-08-12 07:26:16 +00:00
Andrei Zmievski 95215d70bf Finished definitions, except for Pointer_Def. 2004-08-05 02:57:05 +00:00
Andrei Zmievski d0b29cce19 More work on parser update. Added some new stuff to Function_Defs. 2004-07-30 19:48:56 +00:00
Andrei Zmievski e07af5b6db Convert tabs to spaces. 2004-07-30 19:07:04 +00:00
Andrei Zmievski 93f643bc94 Redo the scheme parser to support new-style .defs files. This breaks the
parsing until further changes are complete.
2004-07-30 19:05:45 +00:00
Andrei Zmievski f9cf33ecdd Merged ZE2_PORT branch to HEAD. All PHP4 specific work needs to be done
on PHP_GTK_1 branch now.
2003-10-10 03:41:47 +00:00
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 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
Andrei Zmievski abe994e2a2 Suppress warnings on checking cache file existence. 2001-11-21 17:11:35 +00:00
Andrei Zmievski 84c612080f Implemented ability to build shared extensions. 2001-11-20 20:36:32 +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
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 2785dfbe81 * properly parse object's parent's module as well.
* added ability to merge parse trees.
2001-03-13 05:38: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 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 c72f03f396 Initial check-in 2001-01-29 22:15:59 +00:00