[Marble-devel] Measure render plugin - context menu

mikehenning at eclipse.net mikehenning at eclipse.net
Fri Nov 25 01:24:30 UTC 2011


Hello, I'm a student in the Google Code-in competition. I've taken the
task to move Marble's Measure Tool into a plugin.

So far, I've made some progress - using the example plugin, I've been able
to move the measure tool rendering into a plugin. I know the drawing code
works because I called addMeasurePoint() in the constructor to have some
points to draw.

The problem I have now is that I can't figure out how to add the Add
Measure Point item to the right click menu from within the plugin.

I don't see any API that allows me to do this from the plugin. Am I
missing someting?

I suppose I could create a very simple API to do that. Otherwise, if I
leave the menu code in the application, that seems to defeat the purpose
of the plugin.
As an ugly fix, I could steal the middle mouse button events, and use
those to create a context menu.

I'm open to suggestions.

Thanks,
  Mike H.


More information about the Marble-devel mailing list