2 * Definitions for column preferences window
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.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.
26 #ifndef __COLUMN_PREFS_H__
27 #define __COLUMN_PREFS_H__
30 * "User Interface: Columns" preferences page.
31 * @ingroup prefs_group
34 /** Build a column preferences page.
36 * @return the new column preferences page
38 GtkWidget *column_prefs_show(GtkWidget *prefs_window);
40 /** Fetch preference values from page.
42 * @param widget widget from column_prefs_show()
44 void column_prefs_fetch(GtkWidget *widget);
46 /** Apply preference values from page.
48 * @param widget widget from column_prefs_show()
50 void column_prefs_apply(GtkWidget *widget);
52 /** Destroy preference values from page.
54 * @param widget widget from column_prefs_show()
56 void column_prefs_destroy(GtkWidget *widget);
58 /** Add a custom column.
60 * @param fmt column format
61 * @param title column title
62 * @param custom_field column custom field
64 void column_prefs_add_custom(gint fmt, const gchar *title,
65 const gchar *custom_field,
66 gint custom_occurrence);
70 * @param col column id
72 void column_prefs_remove(gint col);