2 * Definitions for dialog boxes for handling files
4 * $Id: file_dlg.h,v 1.11 2004/06/01 17:33:36 ulfl Exp $
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@ethereal.com>
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 __FILE_DLG_H__
26 #define __FILE_DLG_H__
29 * "Open" / "Close" / "Save" / "Save As" / etc dialog boxes.
32 /** the action to take, after save has been done */
34 after_save_no_action, /**< no action to take */
35 after_save_close_file, /**< close the file */
36 after_save_open_dialog, /**< open the file open dialog */
37 after_save_open_recent_file, /**< open the specified recent file */
38 after_save_open_dnd_file, /**< open the specified file from drag and drop */
39 after_save_capture_dialog, /**< open the capture dialog */
40 after_save_exit /**< exit program */
41 } action_after_save_e;
43 /** Open the "Save As" dialog box.
45 * @param action_after_save the action to take, when save completed
46 * @param action_after_save_data data for action_after_save
48 void file_save_as_cmd(action_after_save_e action_after_save, gpointer action_after_save_data);
50 /** User requested the "Open" dialog box.
52 * @param widget parent widget
55 void file_open_cmd_cb(GtkWidget *widget, gpointer data);
57 /** User requested the "Save" dialog box.
59 * @param widget parent widget
62 void file_save_cmd_cb(GtkWidget *widget, gpointer data);
64 /** User requested the "Save As" dialog box.
66 * @param widget parent widget
69 void file_save_as_cmd_cb(GtkWidget *widget, gpointer data);
71 /** User requested "Close".
73 * @param widget parent widget
76 void file_close_cmd_cb(GtkWidget *widget, gpointer data);
78 /** User requested "Reload".
80 * @param widget parent widget
83 void file_reload_cmd_cb(GtkWidget *widget, gpointer data);
85 /** User requested "Import". Currently only called from the color dialog.
87 * @param widget parent widget
90 void file_color_import_cmd_cb(GtkWidget *widget, gpointer data);
92 /** User requested "Export". Currently only called from the color dialog.
94 * @param widget parent widget
97 void file_color_export_cmd_cb(GtkWidget *widget, gpointer data);
100 * Set the "Save only marked packets" toggle button as appropriate for
101 * the current output file type and count of marked packets.
102 * Called when the "Save As..." dialog box is created and when either
103 * the file type or the marked count changes.
105 void file_set_save_marked_sensitive(void);
107 #endif /* file_dlg.h */