Jean-Marc Lasgouttes wrote:
Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Dear all,
As Juergen already uncovered I am pleased to announce preliminar basic
support for context menus in trunk. Still a lot of ui polishing to do
before this feature is really useful. Right now we only get the 'edit'
menu when right clicking somewhere in text.
It would be nice to have the menu at mouse cursor position.
That's that I tried to do but it does not work well. Qt docs says that
one should use QMenu::sizeHint() instead, I'll try this.
The MenuBackend class needs to be cleaned up and complemented with a
new kind of menus as it is very much oriented toward menubar
currently.
What do you have in mind?
First thing is to define new menu types for Context menu in addition to
menu bar. I guess this will involve a modification of stdmenu.inc as
well as MenuBackend. I don't know really what is needed as I get lost in
this menu business every times I pay a visit :-)
aAll that remains is the ui polishing. Quite frankly, I think all of
MenuBackend should be merged into qt4/Menus but I won't do that as I
know JMarc disagree. Right now, the way this code is working is very
complicated IMO.
Do as you like, but there is also a good deal of simplification coming
from this separation (things like avoiding double separators or
separators at end of menu: this can happen a lot with dynamic menus).
I would of course keep all the algorithms. I am just thinking of
dropping all classes and variable that have a Qt equivalent.
I won't complain as long as you do not srop stuff becasue "it does not
fit anymore".
Sure. But I won't do it just now as I am very busy with my personal work
right now. If there's anybody interested, please feel free to dig in.
Abdel.