On Mon, Jun 15, 2009 at 3:21 PM, jkn<[email protected]> wrote: > As mentioned previously, I'm trying to get to grips with the innards > of Leo by having a look at porting rclick.py to qt. I'm mostly reading
Was thinking of this briefly, here's an idea how this could be implemented the easiest (and most flexible) possible way: - Do not try to write any "wrappers" (they will only confine what can be done) - Follow the pattern of "visit_tree_item", that is: - When you right click somewhere (or do show-popup-menu), instantiate the popup menu (QMenu) and pass it as arg to a chain of functions. Also pass the clicked widget (so you can right click tree item, body, ...) - The functions well add their own actions to the many any way they wish. -- Ville M. Vainio http://tinyurl.com/vainio --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
