Get the build going.
[obnox/wireshark/wip.git] / gtk / gui_stat_util.h
1 /* gui_stat_util.h
2  * gui functions used by stats
3  * Copyright 2003 Lars Roland
4  *
5  * $Id$
6  *
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@wireshark.org>
9  * Copyright 1998 Gerald Combs
10  *
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.
15  *
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.
20  *
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.
24  */
25
26
27 #ifndef __gtk_stat_util__
28 #define __gtk_stat_util__
29
30 #include <gtk/gtk.h>
31
32 /** @file
33  *  Utilities for statistics.
34  */
35
36
37 /** Init a window for stats, set title and display used filter in window.
38  *
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
43  */
44 extern void init_main_stat_window(GtkWidget *window, GtkWidget *mainbox, const char *title, const char *filter);
45
46 /** Create a stats table, using a scrollable gtkclist.
47  *
48  * @param scrolled_window the scrolled window
49  * @param vbox the vbox for the window
50  * @param columns number of columns
51  * @param titles 
52  */
53 extern GtkCList *create_stat_table(GtkWidget *scrolled_window, GtkWidget *vbox, int columns, const char *titles[]);
54
55 #endif