Removed unused argument to new_packet_list_copy_summary_cb().
[obnox/wireshark/wip.git] / gtk / capture_file_dlg.h
1 /* capture_file_dlg.h
2  * Definitions for dialog boxes for handling files
3  *
4  * $Id$
5  *
6  * Wireshark - Network traffic analyzer
7  * By Gerald Combs <gerald@wireshark.org>
8  * Copyright 1998 Gerald Combs
9  *
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.
14  *
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.
19  *
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.
23  */
24
25 #ifndef __CAPTURE_FILE_DLG_H__
26 #define __CAPTURE_FILE_DLG_H__
27
28 /** @file
29  *  "Open" / "Close" / "Save" / "Save As" / etc dialog boxes.
30  *  @ingroup dialog_group
31  */
32
33 /** the action to take, after save has been done */
34 typedef enum {
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;
44
45 /** Open the "Save As" dialog box.
46  *
47  * @param action_after_save the action to take, when save completed
48  * @param action_after_save_data data for action_after_save
49  */
50 void file_save_as_cmd(action_after_save_e action_after_save, gpointer action_after_save_data);
51
52 /** Destroy the save as dialog.
53  */
54 void file_save_as_destroy(void);
55
56 /** User requested the "Open" dialog box.
57  *
58  * @param widget parent widget
59  * @param data unused
60  */
61 void file_open_cmd_cb(GtkWidget *widget, gpointer data);
62
63 /** User requested the "Merge" dialog box.
64  *
65  * @param widget parent widget
66  * @param data unused
67  */
68 void file_merge_cmd_cb(GtkWidget *widget, gpointer data);
69
70 /** User requested the "Save" dialog box.
71  *
72  * @param widget parent widget
73  * @param data unused
74  */
75 void file_save_cmd_cb(GtkWidget *widget, gpointer data);
76
77 /** User requested the "Save As" dialog box.
78  *
79  * @param widget parent widget
80  * @param data unused
81  */
82 void file_save_as_cmd_cb(GtkWidget *widget, gpointer data);
83
84 /** User requested "Close".
85  *
86  * @param widget parent widget
87  * @param data unused
88  */
89 void file_close_cmd_cb(GtkWidget *widget, gpointer data);
90
91 /** User requested "Reload".
92  *
93  * @param widget parent widget
94  * @param data unused
95  */
96 void file_reload_cmd_cb(GtkWidget *widget, gpointer data);
97
98 /** User requested "Import". Currently only called from the color dialog.
99  *
100  * @param widget parent widget
101  * @param data unused
102  */
103 void file_color_import_cmd_cb(GtkWidget *widget, gpointer data);
104
105 /** User requested "Export". Currently only called from the color dialog.
106  *
107  * @param widget parent widget
108  * @param data unused
109  */
110 void file_color_export_cmd_cb(GtkWidget *widget, gpointer data);
111
112 /*
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.
117  */
118 void file_save_update_dynamics(void);
119
120 #endif /* capture_file_dlg.h */