Hi Ville
On Jun 21, 9:00 pm, "Ville M. Vainio" <[email protected]> wrote:
> 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^H^H^H^H Menu any way
> they wish.
Thanks - that's not dissimilar to what I've been playing with - though
it's early days at the moment. I have a learning curve of Leo/Qt/
plugins to go through, and In theory this is done in my spare time...
but I'm getting there...
Regards
Jon N
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---