Ethereal-dev: Re: [Ethereal-dev] Native file dialogs under Windows

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

From: Gerald Combs <gerald@xxxxxxxxxxxx>
Date: Tue, 14 Feb 2006 14:55:53 -0600
Guy Harris wrote:
> Gerald Combs wrote:
>> I just checked in a change that uses native file open/save dialogs under
>> Windows.
> 
> Should Wiretap have a routine that returns a list of descriptions of
> file types and suffixes, with the contents of that list supplied by the
> various file type handling modules, so that the list isn't hardcoded
> into the dialog box code?

Yes.  There should also be separate lists for read-only and read-write
formats.  A comment in win32-file-dlg.c mentions pulling the extension
list from ethereal.nsi, but we should probably find some way to dump the
list from Wiretap to ethereal.nsi instead.

The Windows file saving code should probably add an extension if the
user didn't supply one as well.  BTW, is there an official extension for
pcap-formatted files?