Lars> | > Lars> I'd like to have a RMB context menu popup. Wherever I click RMB the
Lars> | > Lars> context-sensitive-menu is called and the appropriate popup is shown.
Lars> | > Lars> F.ex if I RMB on the small red margin on a marginal note I get a small
Lars> | > Lars> popup where I can choose left or right margin etc. Similar for floats
Lars> | > Lars> where I could choose placement, etc.
Lars> | I was thinking more along the lines of what implementation details you
Lars> | might provide. I think we agree RMB is the way to go here.
Lars> Id like to have a virtual method in inset f.ex. ContextSensitive, that
Lars> is called when the context-sensitive-menu lyxfunc is called.
Lars> the inset should care less if this is called from RMB or anyother key.
Lars> | > I've just finished playing with InsetRef, the Edit() of which is:
Lars> | [...]
Lars> | > So, at the moment we get the pop-up (new --- try it!) on mouse-button 1, but
Lars> | > eventually we'll get the old behaviour of "go to ref on click 1" and get
Lars> | > "launch this new dialog on click 3"
Lars> | >
Lars> | > Anyway. Patch attached. Please apply!
Lars> |
Lars> | Don't get too excited just yet.
Lars> And we don't want the dialog to popup on on RMB, we want a small pup
Lars> menu with just a few items.
Well, I'm not worried about how we give the user the ability to do this, but I
do think that a pup won't be sufficient in this case. Why? Well, I want to:
go to reference / go back
change the reference type easily (Pretty ref, Page ref etc)
if( !LaTeX ) edit the name: this last one definitely needs a dialog.
Anyway, my time isn't wasted because the big insetref dialog is nearly finished.
Angus