2 * gui functions used by stats
3 * Copyright 2003 Lars Roland
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
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.
27 #ifndef __gtk_stat_util__
28 #define __gtk_stat_util__
33 * Utilities for statistics.
37 /** Init a window for stats, set title and display used filter in window.
39 * @param window the window
40 * @param mainbox the vbox for the window
41 * @param title the title for the window
42 * @param filter the filter string
44 extern void init_main_stat_window(GtkWidget *window, GtkWidget *mainbox, const char *title, const char *filter);
46 /** Create a stats table, using a scrollable gtkclist.
48 * @param scrolled_window the scrolled window
49 * @param vbox the vbox for the window
50 * @param columns number of columns
53 extern GtkCList *create_stat_table(GtkWidget *scrolled_window, GtkWidget *vbox, int columns, const char *titles[]);