Trolltech Home | Qt-jambi-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-jambi-interest Archive, December 2006
Parameter names


Message 1 in thread

Hello!

I wonder if it would be much effort to include the parameter names in 
the generated JNI Java stubs?
Would really be quite helpful when you use Ctrl-Q/P in IntelliJ to get 
help on some method.

How about writing a plugin for the IntelliJ editor so that signal/slot 
connections are understood and
refactored when changing names? Also useful when searching for usages of 
slot methods.

Best regards,
Helge Fredriksen


Message 2 in thread

Helge Fredriksen wrote:
> Hello!
> 
> I wonder if it would be much effort to include the parameter names in 
> the generated JNI Java stubs?
> Would really be quite helpful when you use Ctrl-Q/P in IntelliJ to get 
> help on some method.

You mean in the cases where you get arg__0, arg__1 etc? Yes... We should 
try to improve on those ;-)

> How about writing a plugin for the IntelliJ editor so that
> signal/slot connections are understood and refactored when changing
> names?
 > Also useful when searching for usages of slot methods.

We do have plans for an IntelliJ plugin, and detection of signals/slots 
will probably be part of that, but there is no schedule for such a 
plugin yet.

best regards,
Gunnar



Message 3 in thread

We just want that all names of parameters as it appears in the C++ api
methods
should be tranferred to the JNI java stubs by the generator.

Making of such a IntelliJ plugin with vastly increase our productivity when
programming in Jambi, so I hope it's not beeing scheduled to end of year
2008 or something like that :-)

Regards,
Helge F.

On 12/14/06, Gunnar Sletta <gunnar@xxxxxxxxxxxxx> wrote:
>
> Helge Fredriksen wrote:
> > Hello!
> >
> > I wonder if it would be much effort to include the parameter names in
> > the generated JNI Java stubs?
> > Would really be quite helpful when you use Ctrl-Q/P in IntelliJ to get
> > help on some method.
>
> You mean in the cases where you get arg__0, arg__1 etc? Yes... We should
> try to improve on those ;-)
>
> > How about writing a plugin for the IntelliJ editor so that
> > signal/slot connections are understood and refactored when changing
> > names?
> > Also useful when searching for usages of slot methods.
>
> We do have plans for an IntelliJ plugin, and detection of signals/slots
> will probably be part of that, but there is no schedule for such a
> plugin yet.
>
> best regards,
> Gunnar
>
>
>

Message 4 in thread

Helge Fredriksen wrote:

> We just want that all names of parameters as it appears in the C++
> api methods should be tranferred to the JNI java stubs by the
> generator.

We discovered a bug in the generator which caused many argument names to 
be lost. This has now been fixed and so the next release shouldn't have 
this problem.

best regards,
Gunnar