Ethereal-cvs: Re: [ethereal-cvs] cvs commit: ethereal/gtk main.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Thu, 30 Dec 1999 13:18:36 -0800
>   Yes, I'm using terminology that's opposite that of GTK+.

They probably adopted the terminology Motif uses; I don't know whether
Motif invented the terminology, or adopted it from Windows or MacOS or
somewhere else - from the Motif 1.2 Style Guide ("BSelect" refers to the
mouse button that does selection, which, by default, is the left button,
but can, I think, be configured somehow):

	The five selection models are as follows:

	Single Selection
	     Used to select a single  element in a collection.  Clicking
	     BSelect on an element selects it and deselects the
	     previously selected element in the collection.  Single
	     selection is described in Section 4.1.1.

	Browse Selection
	     Used to allow browsing through single selection
	     collections.  Browse selection is also used to select a
	     single element of a collection.  Browse selection allows
	     the user to browse through the elements by dragging BSelect
	     through the elements in the collection.  Browse selection
	     highlights each element as it is traversed, and gives the
	     application an opportunity to provide information about
	     each element as it is highlighted.  Releasing BSelect on an
	     element selects it and deselects the previously selected
	     element.  Browse selection is described in Section 4.1.2.

	Multiple Selection
	     Used to select or deselect multiple elements of a
	     collection.  Clicking BSelect on an unselected element adds
	     that element to the current selection.  Clicking BSelect on
	     a selected element removes that element from the current
	     selection.  Multiple selection is described in Section
	     4.1.3.

It goes on to describe "Range Selection" and "Discontiguous Selection";
the former lets you drag BSelect to select a contiguous range of
elements, and clicking BSelect removes all elements from the selection
and selects what you clicked on, while the latter is like Range
Selection except that <Ctrl>BSelect lets you add discontiguous elements
to the selection.

GTK+ doesn't have the latter two; it has "Extended".

They later say, in sections *after* the ones cited above, what the
*keyboard* keys do in those selection models - in Single Selection, "the
navigation keys for the collection must move the location cursor
independent from the selected element", with <Space> selecting the
element where the location cursor is (which is what you get with
GTK_SELECTION_SINGLE - the cursor arrows move the outline box, i.e. the
location cursor, and <Space> selects the element where the location
cursor is, while, in Browse selection, "the navigation keys must move
the location cursor and select the current element, deselecting any
other element".