2 * Definitions for menu routines with toolkit-independent APIs but
3 * toolkit-dependent implementations.
5 * $Id: menu.h,v 1.9 2001/06/05 07:38:33 guy Exp $
7 * Ethereal - Network traffic analyzer
8 * By Gerald Combs <gerald@ethereal.com>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31 #endif /* __cplusplus */
33 /* Routines to enable or disable sets of menu items. */
35 /* Enable or disable menu items based on whether you have a capture file
36 you've finished reading. */
37 void set_menus_for_capture_file(gboolean);
39 /* Enable or disable menu items based on whether you have an unsaved
40 capture file you've finished reading. */
41 void set_menus_for_unsaved_capture_file(gboolean);
43 /* Enable or disable menu items based on whether there's a capture in
45 void set_menus_for_capture_in_progress(gboolean);
47 /* Enable or disable menu items based on whether you have some captured
49 void set_menus_for_captured_packets(gboolean);
51 /* Enable or disable menu items based on whether a packet is selected. */
52 void set_menus_for_selected_packet(gboolean);
54 /* Enable or disable menu items based on whether a tree row is selected
55 and and on whether a "Match Selected" can be done. */
56 void set_menus_for_selected_tree_row(gboolean);
60 #endif /* __cplusplus */
62 #endif /* __MENU_H__ */