2 * Definitions for UI utility routines
4 * $Id: ui_util.h,v 1.15 2004/01/10 17:29:26 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.
30 #endif /* __cplusplus */
32 /* Set the name of the top-level window and its icon. */
33 void set_main_window_name(gchar *);
35 /* packet list related functions */
36 void packet_list_clear(void);
37 void packet_list_freeze(void);
38 void packet_list_thaw(void);
39 void packet_list_select_row(gint);
40 void packet_list_moveto_end(void);
41 gint packet_list_append(gchar *text[], gpointer data);
42 void packet_list_set_colors(gint, color_t *, color_t *);
43 gint packet_list_find_row_from_data(gpointer);
44 void packet_list_set_text(gint, gint, const gchar *);
45 void packet_list_set_cls_time_width(gint);
46 gpointer packet_list_get_row_data(gint);
47 void packet_list_set_selected_row(gint);
48 gint packet_list_get_sort_column(void);
50 /* create byte views in the main window */
51 void add_main_byte_views(epan_dissect_t *edt);
52 /* display the protocol tree in the main window */
53 void main_proto_tree_draw(proto_tree *protocol_tree);
55 void clear_tree_and_hex_views(void);
57 /* Destroy all popup packet windows. */
58 void destroy_packet_wins(void);
60 /* Destroy the save as dialog */
61 void file_save_as_destroy(void);
63 #define destroy_cfile_wins() \
64 destroy_packet_wins(); \
65 file_save_as_destroy();
69 #endif /* __cplusplus */
71 #endif /* __UI_UTIL_H__ */