[Kde-java] Qt Designer javaeditor plugin

Thomas Zander zander at microweb.nl
Thu Jun 19 14:47:21 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 19 June 2003 10:28, Richard Dale wrote:
> On Thursday 19 June 2003 08:02, Marco Ladermann wrote:
> > Am Mittwoch, 18. Juni 2003 22:41 schrieb Richard Dale:
> > > I've been hacking at the code in the Qt Designer cppeditor plugin to
> > > create a Java version, it seems 'almost useful'. Here are my notes
...
> > > - The editor code completion popup shows C++ methods - is it possible
> > > to show Java methods?
> > > - More work needed on adding <some name>.ui.java instead of <some
> > > name>.ui.h and doing suitable java code merging when generating the
> > > java sources from the .ui files.
> >
> > My idea was to generate a <some name>.ui.xml file to make it accessible
> > by the stylesheets. This would be much more consistent compared to the
> > hybrid approach of the original Qt Designer .
>
> I'm not sure java programmers would want to customise behaviour by
> writing java embedded in xml though - it sounds a bit ugly to me.

I agree; the most heard reaction from adopters of the UICompiler project is 
that they really like the distincion between GUI code and GUI-handling code 
that UICompiler forces on them.

> The idea of the .ui.h file was to allow C++ methods to be added to a
> class generated from a .ui file. If there were init() or destroy()
> methods added in the .ui.h, then calls to them are included in the
> constructor/destructor of the generated class.

Well, this is something that can certainly fit in java generated code, it is 
quite often that I end up having between 2 and 15 lines of code in the 
constructor of my gui-handling class to init event handling and other minor 
tweaks to the GUI.

All in all, writing code in a designer is not what I had in mind; if this 
can be done nicely, I'll support it. But I personally have no interrest in 
the functionality.
The idea here is that I want to be able to give my UI to a graphics 
designer, and I am pretty sure she is not going to add java commands :)

Cheers!
- -- 
Thomas Zander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+8aLMCojCW6H2z/QRAu33AJ90ZhkHSFXbXdK54WFfLR38k+WtsgCeKxdt
ae8DPpV0zfgQo45dVmyddxo=
=3aZ8
-----END PGP SIGNATURE-----


More information about the Kde-java mailing list