wireshark/gtk
Guy Harris dc548e7458 Allow the user to save either all of the current capture, or only the
packets that are currently being displayed from that capture.

Centralize the code to control whether "File:Save" and "File:Save As"
are enabled (and *always* have "File:Save As" enabled if you have a
capture; "File:Save" is enabled only if you have a live capture you've
not yet saved, although it does the same thing as "File:Save As").

Have the "save_file" member of a "capture_file" structure represent
*only* the file currently being *written* to by a capture, and, if there
is no capture currently in progress, have it be NULL; the name of the
file currently being *displayed" is in the "filename" member, and an
"is_tempfile" member indicates whether it's a temporary file for a live
capture or not.

Have "close_cap_file()" delete the current capture file if it's a
temporary capture file that hasn't been saved (in its entirety - saving
selected frames doesn't count).  Do the same (if there *is* a current
capture file) when exiting.

The "Ready to load or capture" message is the only statusbar message in
the "main" context; "close_cap_file()" should never pop it, it should
only pop whatever message exists in the "file" context, and thus has no
need to take, as an argument, the context for the message it should pop.

Update the man page to reflect the new behavior of "File:Save" and
"File:Save As", and to reflect recent changes to "Display:Match Selected".

svn path=/trunk/; revision=1170
1999-11-30 20:50:15 +00:00
..
.cvsignore avoid mistakingly commit dynamically generated files, like "Makefile". 1999-10-15 04:40:28 +00:00
Makefile.am Add a "Go To Frame" menu item, which lets you go to a frame by frame 1999-11-08 01:03:40 +00:00
capture_dlg.c Get rid of an unused #define. 1999-11-06 02:05:32 +00:00
capture_dlg.h More shuffling of GTK-related routines to gtk subdirectory. 1999-09-09 03:32:03 +00:00
display_opts.c Move display.[ch] --> gtk/display_opts.[ch] 1999-10-18 12:48:14 +00:00
display_opts.h Move display.[ch] --> gtk/display_opts.[ch] 1999-10-18 12:48:14 +00:00
file_dlg.c Allow the user to save either all of the current capture, or only the 1999-11-30 20:50:15 +00:00
filter_prefs.c Fixed a bug found by Derek W Poon <dpoon@uclink.berkeley.edu>, where deleted 1999-09-19 14:27:44 +00:00
filter_prefs.h We need to catch a "window delete" event for the preferences dialog box 1999-09-10 06:53:32 +00:00
find_dlg.c Pop up a message box if a search for a frame fails. 1999-11-06 06:54:24 +00:00
find_dlg.h Add a "Find Frame" menu item under "Display"; it lets you use a display 1999-11-06 06:28:07 +00:00
goto_dlg.c In "Go To Frame", distinguish between "there is no frame with that frame 1999-11-30 07:27:37 +00:00
goto_dlg.h Add a "Go To Frame" menu item, which lets you go to a frame by frame 1999-11-08 01:03:40 +00:00
gtkbindings.h Added gtk subdirectory, with patched gtkclist.c in it. We can use this 1999-08-27 22:27:18 +00:00
gtkclist.c GTK 1.2.5 version (not that it matters, given that GLib declares 1999-09-30 02:57:26 +00:00
gtkclist.h Added gtk subdirectory, with patched gtkclist.c in it. We can use this 1999-08-27 22:27:18 +00:00
gtkdnd.h Added gtk subdirectory, with patched gtkclist.c in it. We can use this 1999-08-27 22:27:18 +00:00
gtkglobals.h Move GTK-related stuff out of globals.h and put it in gtk/gtkglobals.h 1999-10-20 22:36:05 +00:00
gtkmain.h Added gtk subdirectory, with patched gtkclist.c in it. We can use this 1999-08-27 22:27:18 +00:00
keys.h Change display filter entry widget to a GtkCombo. 1999-11-25 18:02:25 +00:00
main.c Allow the user to save either all of the current capture, or only the 1999-11-30 20:50:15 +00:00
main.h Fix the include-guard #define to be "__MAIN_H__", matching the name of 1999-10-08 07:29:42 +00:00
menu.c Add a "Go To Frame" menu item, which lets you go to a frame by frame 1999-11-10 07:01:53 +00:00
menu.h Moved GTK-dependent routines for file dialogues, print dialogues, print 1999-09-01 03:04:24 +00:00
prefs_dlg.c We need to catch a "window delete" event for the preferences dialog box 1999-09-10 06:53:32 +00:00
prefs_dlg.h More shuffling of GTK-related routines to gtk subdirectory. 1999-09-09 03:32:03 +00:00
print_dlg.c Add a "Find Frame" menu item under "Display"; it lets you use a display 1999-11-06 06:28:07 +00:00
print_prefs.c We need to catch a "window delete" event for the preferences dialog box 1999-09-10 06:53:32 +00:00
print_prefs.h We need to catch a "window delete" event for the preferences dialog box 1999-09-10 06:53:32 +00:00
proto_draw.c A "character encoding" variable is now set per packet. The existence 1999-11-22 06:24:56 +00:00
proto_draw.h A "character encoding" variable is now set per packet. The existence 1999-11-22 06:24:56 +00:00