Ethereal-dev: Re: [Ethereal-dev] Saving all packets between the first and the last marked pack

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Tue, 23 Dec 2003 03:03:13 -0800
On Tue, Dec 23, 2003 at 02:37:30AM -0800, Dick Gooris wrote:
> Guy, Biot, Ulf,
> 
> Would it be an idea to make a set of radio buttons instead of a check 
> button.

That's what the "Print" dialog box has.  I think that the "Print" and
"Save" dialog boxes should have the same options for selecting which
packets to {print,save}.

> I think of the following design then (for Save As.. ) :
> 
> O  Save all packets
> O  Save only packets currently being displayed
> O  Save only marked packets
> O  Save packet range between first and last marked packets.
> O  Save currently displayed packet range between first and last marked 
> packets.

Or

  +-Save Range-------------------------------------------------------------+
  |                                                                        |
  | O  Selected packets only, {N} packets                                  |
  | O  Marked packets only, {N} packets                                    |
  | O  All packets captured, {N} packets                                   |
  | O  All packets displayed, {N} packets                                  |
  | O  Displayed packets between first and last marked packet, {N} packets |
  | O  Captured packets between first and last marked packet, {N} packets  |
  |                                                                        |
  +------------------------------------------------------------------------+

along the lines of what we have in the Print dialog box.

Should we have another one for "Marked displayed packets"?

> Proposed UI rules :
> 
> -  All the above are radio buttons

...as is the case currently in the Print dialog.

> -  The default is the first one: 'Save all packets'

...as is *not* currently the case in the Print dialog, but as arguably
*should* be the case in the Print dialog.

> -  "Save only marked packets", "Save packet range between first and last 
> marked packets", and "Save displayed packet range between first and last 
> marked packets", will become not selectable in case no markers are set.

Yes.

> -  "Save only packets currently being displayed", and "Save displayed 
> packet range between first and last marked packets" become unselectable 
> when there is no display filter set.

Yes (that's already the case for "All packets displayed" in the Print
dialog box).

"Selected packets only" is unselectable if there is no selected packet.

The rule is that if {N} is 0 for any item, the item is not selectable.

> We can add a radio button later which says ' O  Save packet list  [ 
> Entry for packet list ] '  based on unfiltered packets, and again a list 
> of displayed packets. The last becomes rather complex due to the holes 
> in the numbering of the packets showed.

I assume that's for user-specified packet ranges?

Ulf, what did you have in mind for the range?