Hello,

this is the first time I'm developing a plugin for stellarium, so this 
might be a totally unsuitable approach:

I have a widget which is supposed to be draggable, so I subclassed 
StelDialog and and added my layouts and widgets. All other code is 
adopted from the Dialog Example plugin.

When I press the shortcut key I configured for my plugin, it is made 
visible by the main gui. Now my dialog widget has focus, all keypresses 
are passed to it (this makes sense in most situations). The result is 
that I cannot hide the widget with the shortcut (works with other 
plugins) unless I reimplement the key event handler. I would like to 
ignore all these keypresses and pass them on to the main gui, but all 
keyEvent functions of the main stellarium components are protected. Even 
if I reimplemented the key event handler in my widget in order to close 
it when desired, I couldn't pass on the unwanted events to the main gui.

How can I do that?

Regards

Christoph

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Stellarium-pubdevel mailing list
Stellarium-pubdevel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel

Reply via email to