by hand
QtJs is a SourceForge project I created to share some demos I made with JavaScript implementations of some of Nokias open source Qt's classes.At the moment I've got a bare-bones JavaScript implementation on my web site, but I think I'm going to abandon it, as
- it takes ages
- every time Qt releases another version I'll have to manually update
- the Qt code base is huge
When I say "semi-automated", I mean writing code that does a reasonable job most of the time, but handles corner cases using some kind of filter, be it location, name or scope, maybe a combination of these.
These corner cases will have an action to deal specifically with that case.
I can see this being applied first and foremost to the QObject / QWidget classes. Once I have them working, the rest should follow.
That said, the existing implementation has taken me a long way, and contains some useful ideas.
I had a new version in the works that chain-loads the seperate JavaScript files.
The main html file only has to reference "qtjs.js" and it gets the rest.
I'll definitely be using that approach until I wrap the whole thing up using the closure compiler.
I may also end up also using the closure library.
No comments:
Post a Comment