My favorites | Sign in
Project Logo
                
Search
for
Updated Sep 10, 2008 by dongxu.ma
Labels: Featured, Phase-Design
PerlQT  
Perl QT4 binding

Introduction

Prototype of PerlQT4 I am working on

Changelog

  • 20071231 Working on API templates
  • 20070606 Draft typemap generated
  • 20070423 Class entity files generated from formatted QTEDI productions
  • 20070315 ALL QTEDI productions formatted, ready for generating code
  • 20070214 parse module Parse::QTEDI uploaded to CPAN
  • 20070202 adaption on parser to get KDE3 headers passed
  • 20070130 ALL headers in QT ver 4.2.2 passed
  • 20070129 QtCore/{qglobal.h,qobject.h, qobjectdef.h} passed
  • 20070127 QtCore/qglobal.h passed

Howto

  1. done strip #include and #error macros in header file
  2. done select macros by gcc preprocessor (#ifdef #else #endif)
  3. done parse preprocessed header by Parse::QTEDI
  4. done format QTEDI production into binding-make-specific look
  5. done generate class entity files
  6. generate binding code, automate type marshalling
  7. apply language-specific features (tie on container class, operator override)
  8. QT signal/slot semantics inside Perl (subclassing QT class in perl)
  • All phases are connected by a GNU tranditional Makefile.

Sample Output

Give a Try

Pitfall

Reference Link


Sign in to add a comment
Hosted by Google Code