Main Page | Recent changes | Edit this page | Page history

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

Extensible Context Menu Support

From KDevelop

Proposal for improving context menu support in KDevelop4

[edit] Current Situation

Context menu requests are handled by the individual view/editor widgets, however they shall only ask the plugin controller for actions and labels that are to be included in the context menu. Then each plugin may provide a list of actions and a label for the context menu. The list of actions varies on the type of Context object passed in. The label will be used to create a submenu in the context menu, which then contains all the entries from action list.

[edit] Drawbacks

[edit] New Idea for Improvement

The requestContextMenuActions() function shall return a description of how various actions should be integrated into a context menu. That description uses well known identifiers to indicate which actions should be included in which place in the context menu. The view on which the context menu was requested by the user will still ask the plugin controller for contributed actions from all other plugins, including the plugin it was created by. Then it will create a context menu with (possibly only some) the various well known identifiers in apropriate places and submenu-structures. It then adds the list of actions that the plugincontroller provided as needed to the context menu according to the specified identifiers.

Retrieved from "http://www.kdevelop.org/mediawiki/index.php/Extensible_Context_Menu_Support"

This page has been accessed 424 times. This page was last modified 13:17, 30 March 2008. Content is available under GNU Free Documentation License 1.2.


[Main Page]
Main Page
Community portal
Current events
Recent changes
Help
Donations

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports