2 * Definitions for UI utility routines
4 * $Id: ui_util.h,v 1.12 2002/09/23 19:09:47 oabad Exp $
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@zing.org>
8 * 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 /* Set the name of the top-level window and its icon. */
34 void set_main_window_name(gchar *);
36 /* packet list related functions */
37 void packet_list_clear(void);
38 void packet_list_freeze(void);
39 void packet_list_thaw(void);
40 void packet_list_select_row(gint);
41 void packet_list_set_column_auto_resize(gint, gboolean);
42 void packet_list_set_column_resizeable(gint, gboolean);
43 void packet_list_set_column_width(gint, gint);
44 void packet_list_moveto_end(void);
45 gint packet_list_append(gchar *text[], gpointer data);
46 void packet_list_set_colors(gint, color_t *, color_t *);
47 gint packet_list_find_row_from_data(gpointer);
48 void packet_list_set_text(gint, gint, const gchar *);
49 void packet_list_set_cls_time_width(gint);
50 gpointer packet_list_get_row_data(gint);
51 void packet_list_set_selected_row(gint);
53 /* create byte views in the main window */
54 void add_main_byte_views(epan_dissect_t *edt);
55 /* display the protocol tree in the main window */
56 void main_proto_tree_draw(proto_tree *protocol_tree);
58 void clear_tree_and_hex_views(void);
60 /* Destroy all popup packet windows. */
61 void destroy_packet_wins(void);
65 #endif /* __cplusplus */
67 #endif /* __UI_UTIL_H__ */