b6b478c343c8f407f5293f5c3ccb3aa38203baae
[obnox/wireshark/wip.git] / gtk / filter_prefs.h
1 /* filter_prefs.h
2  * Definitions for dialog boxes for filter editing
3  * (This used to be a notebook page under "Preferences", hence the
4  * "prefs" in the file name.)
5  *
6  * $Id: filter_prefs.h,v 1.11 2001/02/23 05:54:27 guy Exp $
7  *
8  * Ethereal - Network traffic analyzer
9  * By Gerald Combs <gerald@zing.org>
10  * Copyright 1998 Gerald Combs
11  *
12  * 
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  * 
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  * 
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
26  */
27
28 #ifndef __FILTER_H__
29 #define __FILTER_H__
30
31 /*
32  * Structure giving properties of the filter editing dialog box to be
33  * created.
34  */
35 typedef struct {
36         gchar    *title;                /* title of dialog box */
37         gboolean wants_apply_button;    /* if it should have an Apply button */
38         gboolean activate_on_ok;        /* if parent text widget should be
39                                            activated on "Ok" or "Apply" */
40 } construct_args_t;
41
42 void capture_filter_construct_cb(GtkWidget *w, gpointer user_data);
43 void display_filter_construct_cb(GtkWidget *w, gpointer construct_args_ptr);
44 void cfilter_dialog_cb(GtkWidget *w);
45 void dfilter_dialog_cb(GtkWidget *w);
46
47 #define E_FILT_TE_PTR_KEY       "filter_te_ptr"
48 #define E_FILT_CALLER_PTR_KEY   "filter_caller_ptr"
49 #define E_FILT_DIALOG_PTR_KEY   "filter_dialog_ptr"
50
51 #endif /* filter.h */