diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-01-03 03:57:04 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-01-03 03:57:04 +0000 |
commit | 2ef301bcf670d6bbb309f83d8838687e0a46c37f (patch) | |
tree | b5de062db65e75c7f63585fbe2317f2c99561381 /menu.h | |
parent | 04e20bf4cd34fd3587e48e93acad8e0e9ea21d4c (diff) | |
download | wireshark-2ef301bcf670d6bbb309f83d8838687e0a46c37f.tar.gz wireshark-2ef301bcf670d6bbb309f83d8838687e0a46c37f.tar.bz2 wireshark-2ef301bcf670d6bbb309f83d8838687e0a46c37f.zip |
Have "gtk/menu.c" (and, in the future, code for other UIs) export a set
of routines to enable and disable various sets of menu items; call only
those routines, not routines to enable or disable particular menu items,
from files in the top-level directory, as other UIs may not refer to
menu items with path strings of the sort used in GTK+, and as this
buries knowledge of the menu items available in "gtk/menu.c" rather than
requiring stuff outside of "gtk/menu.c" to know what menu items exist.
svn path=/trunk/; revision=1410
Diffstat (limited to 'menu.h')
-rw-r--r-- | menu.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/menu.h b/menu.h new file mode 100644 index 0000000000..f442803569 --- /dev/null +++ b/menu.h @@ -0,0 +1,60 @@ +/* menu.h + * Definitions for menu routines with toolkit-independent APIs but + * toolkit-dependent implementations. + * + * $Id: menu.h,v 1.7 2000/01/03 03:56:55 guy Exp $ + * + * Ethereal - Network traffic analyzer + * By Gerald Combs <gerald@zing.org> + * Copyright 1998 Gerald Combs + * + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __MENU_H__ +#define __MENU_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* Routines to enable or disable sets of menu items. */ + +/* Enable or disable menu items based on whether you have a capture file + you've finished reading. */ +void set_menus_for_capture_file(gboolean); + +/* Enable or disable menu items based on whether you have an unsaved + capture file you've finished reading. */ +void set_menus_for_unsaved_capture_file(gboolean); + +/* Enable or disable menu items based on whether there's a capture in + progress. */ +void set_menus_for_capture_in_progress(gboolean); + +/* Enable or disable menu items based on whether you have some captured + packets. */ +void set_menus_for_captured_packets(gboolean); + +/* Enable or disable menu items based on whether a packet is selected. */ +void set_menus_for_selected_packet(gboolean); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __MENU_H__ */ + |