Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 23560: /trunk/ /trunk/doc/: wireshar

From: Sake Blok <sake@xxxxxxxxxx>
Date: Tue, 27 Nov 2007 08:16:22 +0100
On Tue, Nov 27, 2007 at 03:33:48AM +0100, Ulf Lamping wrote:
> sake@xxxxxxxxxxxxx schrieb:
> > http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=23560
> >
> > Log:
> >  This patch adds (ten) temporary coloring rules which will only live until Wireshark is
> >  quit. Temporary coloring filters can be set by:
> >  
> >  The colors for the temporary coloring rules are now hardcoded as I do not know
> >  how to change the color of menu-items and therefore I chose to use icons to
> >  show the actual color of each of the ten temporary coloring rules. Is it at all
> >  possible to have different menu items in different colors?
> >  
> >  One other way of solving this is to recreate the icons on the fly after changing
> >  the colors. I will have a look into that once it is clear whether I can use 
> >  different colors within the menu structure.
> >   
> I'm not even sure if different colored menu items is such a good idea, 
> this often looks pretty ugly.

OK, so the colored icons are a good way of showing the user which color
they are selecting? I will look into changing the icon colors on the
fly so that it will be possible to change the colors, which I think is
a SHOULD have :-)


> There are some other usability things that really needs to be solved:
> 
> - if no capture file is loaded, both "View/Colorize Conversation" and 
> "View/Reset Coloring" are active and can be clicked - but nothing 
> happens. A usability "no go".

Check, I will add sensitivity to these items.

> - the main menu and the context menu have a different structure which is 
> a another "no go" IMHO. If it's not possible to have the "View/Colorize 
> Conversation" menu the same way than the context menu, it's probably 
> better to remove it completely from the main menu.

The reasoning behind this is as follows: I wanted to have the same options
in the context menu as the context menu "conversation filter", this gives
the user full control over whether ethernet, ip, tcp or udp should be
used as the conversation filter. For the hot-keys I needed something that
would choose the upper-most layer as the conversation filter, as this is
what would be used mostly (IMHO). I could make the context menu the same
as the "View/Colorize Conversation" menu, but then I need to find a way
to distinguish whether the user pressed a hot-key or used the menu-structure
to keep the functionality of the hot-keys. Is something like that already
been done somewhere within Wireshark?

> This applies as well 
> for the "View/Reset Coloring".

Well, the "View/Reset Coloring" item is within a subsection about coloring
which doesn't disturb the other items in the menu. I did not want to make
the context menus unnecessary longer, so there I put this within the 
coloring sub-menus. If it is really not done to have a little difference
between the main menu structure and the context menu structures I think
the "Reset Coloring" should be removed from the context menus rather than
have it one layer deeper in the View menu. What do you think?

Thanks for your feedback,  Cheers,


Sake

PS Does "<ctrl>-space" work Windows for you? It doesn't on my laptop. In
   wanting to solve that, I built my first Windows development environment
   yesterday. To my surprise the "handrolled" Wireshark on my windows
   development box does indeed respond to <ctrl>-space. I'm wondering
   whether there is something else, just on my laptop, interfering.