Dynamic contextual menus

From: Jean Bréfort <jean.brefort_at_normalesup.org>
Date: Sun Sep 03 2006 - 19:24:13 CEST


The current contextual menu is far from perfect at the moment. There
should be no "Save to file" entry for charts and for all embedded
objects when the plugin is not loaded. In the latter case, the "Format
Object" entry is not useful either. BTW, I'd prefer "Edit object" which
seems more intuitive.

To fix these problems, I worked on a dynamic contextual menus mechanism.
The attached patch contins the relevant changes. I have not implemented
the XAP_Menu_Factory::removeContextMenu method yet. At the moment things
seem to work without it.

The getContextualMenu method has been implemented in FP_EmbedRun, but it
might be generalized to FP_Run as a virtual method.


Received on Sun Sep 3 17:24:59 2006

This archive was generated by hypermail 2.1.8 : Sun Sep 03 2006 - 17:25:00 CEST