ext-henning.treu@xxxxxxxxx wrote:
Hi List,
i´m looking for a possibility to add protocol specific actions in the right-click context menu. What i am trying to do is, to enable or disable a protocol specific feature "on the fly" by selecting the packet, right-click it and select/deselect the feature in question.
Which context menu do you mean? There are several: one for each of the
packet list, packet details and packet byte view, several in the
specific statistics menu.
This is currently not implemented.
What you can do is right click in the packet details and use "Protocol
Preferences" which will jump, well, to the Preferences of that protocol.
Personally I don't like your idea very much. I don't want to see
*another* mechanism to set such values, mainly because I think it will
get just another usability nightmare:
If you can change it this way, will it also be a preference setting?
If yes, will it be saved when you change it?
If no, why can't you save this setting?
How do you implement it in tethereal (where you obviously don't have a
context menu)?
I could give you some more reasons why this isn't a very good idea...
What might be a better idea is to have an automatism to change the
Preference settings from the context menu directly (at least with the
types where that's possible, e.g. booleans).
All i realy need is a point where i can start... after trying to figure it out by looking in the sources, i am a bit confused now.
So a hint in which direction i should turn would be very appreciated.
The main context menus are created in menu.c.
Regards, ULFL