Ethereal-dev: [Ethereal-dev] usability extensions: "recent" patch

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

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Thu, 5 Sep 2002 14:41:55 +0200
Hi List!

Please find attached a "medium sized" patch, which will introduce a "recent" function for the capture files,
and the display filters (current "drop-up" list at bottom of the window).

1. It will add a submenu item under File, which shows a list of recently used capture files. 
2. The display filters of the "pop-up" list are kept from the last run of Ethereal.
3. It will put a new file called "recent" in the user's preference directory (the dir, where preferences and others are also stored).


What I've done so far:
-Changed prefs.c and prefs-int.h to be able to use read_prefs() function in a more general manner
-added recently used dfilter functionality in main.c and main.h
-added recently used capture file functionality in menu.c
-added file handling for the recent file in main.c (maybe should be moved to a new "recent.c" file?)
-added calls to the recent functions in file.c and main.c

Things still to be done:
-setting of maximum size of recently used lists by user preferences (currently fixed to 10)
-put repeatedly used submenu item always again at latest place, to get the right history order
-keyboard shortcut for the recent capture files submenu


I'm really not sure, if I put the implementation in the right places in the source code, 
so please send suggestions about that. 

This patch could also effect the gkt2 implementation (at least the change in file.c).

Regards ULFL

______________________________________________________________________________
WEB.DE Club - jetzt testen für 1 Euro! Nutzen Sie Ihre Chance 
unter https://digitaledienste.web.de/Club/?mc=021105