2 * Definitions for dialog boxes for handling files
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 #ifndef __CAPTURE_FILE_DLG_H__
26 #define __CAPTURE_FILE_DLG_H__
29 * "Open" / "Close" / "Save" / "Save As" / etc dialog boxes.
30 * @ingroup dialog_group
33 /** the action to take, after save has been done */
35 after_save_no_action, /**< no action to take */
36 after_save_close_file, /**< close the file */
37 after_save_open_dialog, /**< open the file open dialog */
38 after_save_open_recent_file, /**< open the specified recent file */
39 after_save_open_dnd_file, /**< open the specified file from drag and drop */
40 after_save_merge_dialog, /**< open the file merge dialog */
41 after_save_capture_dialog, /**< open the capture dialog */
42 after_save_exit /**< exit program */
43 } action_after_save_e;
45 /** Open the "Save As" dialog box.
47 * @param action_after_save the action to take, when save completed
48 * @param action_after_save_data data for action_after_save
50 void file_save_as_cmd(action_after_save_e action_after_save, gpointer action_after_save_data);
52 /** Destroy the save as dialog.
54 void file_save_as_destroy(void);
56 /** User requested the "Open" dialog box.
58 * @param widget parent widget
61 void file_open_cmd_cb(GtkWidget *widget, gpointer data);
63 /** User requested the "Merge" dialog box.
65 * @param widget parent widget
68 void file_merge_cmd_cb(GtkWidget *widget, gpointer data);
70 /** User requested the "Save" dialog box.
72 * @param widget parent widget
75 void file_save_cmd_cb(GtkWidget *widget, gpointer data);
77 /** User requested the "Save As" dialog box.
79 * @param widget parent widget
82 void file_save_as_cmd_cb(GtkWidget *widget, gpointer data);
84 /** User requested "Close".
86 * @param widget parent widget
89 void file_close_cmd_cb(GtkWidget *widget, gpointer data);
91 /** User requested "Reload".
93 * @param widget parent widget
96 void file_reload_cmd_cb(GtkWidget *widget, gpointer data);
98 /** User requested "Import". Currently only called from the color dialog.
100 * @param widget parent widget
103 void file_color_import_cmd_cb(GtkWidget *widget, gpointer data);
105 /** User requested "Export". Currently only called from the color dialog.
107 * @param widget parent widget
110 void file_color_export_cmd_cb(GtkWidget *widget, gpointer data);
113 * Set the "Save only marked packets" toggle button as appropriate for
114 * the current output file type and count of marked packets.
115 * Called when the "Save As..." dialog box is created and when either
116 * the file type or the marked count changes.
118 void file_save_update_dynamics(void);
120 #endif /* capture_file_dlg.h */