Nusret BALCI wrote:
Hi,
I want to change the following lyx behaviour:
When I right click within a math inset, the math panel
shows up. Although I use the math panel from time to
time, I prefer a context menu with copy, save, etc.
when i right click, and math pane when I double-click.
My question is: (for windows, qt frontend)
what file and part of code is responsible for this
behavior? I'll try to change this for my own copy. I
would appreciate if someone could help me just
pointing to the relevant part of the code.
Be aware that lyx runs on other platforms than windows,
where double-clicks aren't used much. Not having double-
clicks is a good thing, because they are bad user interface.
Double-clicks fail too easily, is a lost cause for the handicapped,
and makes mouse-related hand problems worse. (Doubleclicks
must be done fast, a single click have no time limit.)
Right-clicking on various items in LyX is already context-sensitive,
although you tend to get a dialog rather than a menu. Notice
how right-click on math brings up the math panel, while right-click on
a table brings up the table dialog, and so on.
Having "copy" and "save" on a context menu seems wrong to me.
Those are very generic, they are not special for any contexts at all.
That's why you find them on the "Edit" and "File" menus where they
belong. Now "copy" is used a lot, so there is a keyboard shortcut for
it. (ctrl+C). Try getting used to the keyboard shortcuts, they are
much faster than a mouse menu, as the fingers tend to be on
the keyboard while writing.
It is nice that you want to help out with the programming effort,
but I believe there are better areas to attack. I could be wrong though,
so I recommend that you ask again on the developers list instead of this
user list. There you can get guidance as to what direction lyx is going,
and what kinds of changes that will or won't get accepted.
Right now only important/simple bugfixes will be accepted, due to the
imminent
release of version 1.4.0. Still, you may want to prepare something for
when feature developement starts up again after the release.
Helge Hafting