aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/file_dlg.h
diff options
context:
space:
mode:
authorsharpe <sharpe@f5534014-38df-0310-8fa8-9805f1628bb7>2003-11-29 06:09:54 +0000
committersharpe <sharpe@f5534014-38df-0310-8fa8-9805f1628bb7>2003-11-29 06:09:54 +0000
commit2db5b278a696473aaada562972a4f9c88b7229f2 (patch)
tree84984243a958447fe63286df1d793aa9cd46bfba /gtk/file_dlg.h
parentdf32c69cde43ec4d02cc33fc43b13cd5d54452a6 (diff)
Add an entry in the byte_view pane that allows the user to save the highlighted
data to a file. This allows the user to select some stuff, and analyse it with external tools, and is very useful for quickly prototying dissectors etc. This works by retrieving the info that is needed to define where the selected region is. It puts up a dialog box that asks for the file to save in. However, it is an ugly hack, because it reuses print_file_cb, while print_file_cb should be moved into file_dlg.c. It also needs to have some warning dialogs put up in error cases. Finally, it would be good to be able to select a region in the byte_view, which you can do with click and drag, and then have a menu item to save the selected bytes. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9116 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/file_dlg.h')
-rw-r--r--gtk/file_dlg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/file_dlg.h b/gtk/file_dlg.h
index e6117e928e..f252c6380b 100644
--- a/gtk/file_dlg.h
+++ b/gtk/file_dlg.h
@@ -1,7 +1,7 @@
/* file_dlg.h
* Definitions for dialog boxes for handling files
*
- * $Id: file_dlg.h,v 1.4 2003/08/18 21:27:11 sahlberg Exp $
+ * $Id: file_dlg.h,v 1.5 2003/11/29 06:09:53 sharpe Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -34,6 +34,9 @@ void file_reload_cmd_cb(GtkWidget *, gpointer);
void file_color_import_cmd_cb(GtkWidget *w, gpointer data);
void file_color_export_cmd_cb(GtkWidget *, gpointer);
+/* Keys ... */
+#define E_FILE_TE_PTR_KEY "file_te_ptr"
+
/*
* Set the "Save only marked packets" toggle button as appropriate for
* the current output file type and count of marked packets.