Move the tap infrastructure to the epan directory.
[obnox/wireshark/wip.git] / gtk / help_dlg.h
1 /* help_dlg.h
2  *
3  * $Id$
4  *
5  * Laurent Deniel <laurent.deniel@free.fr>
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@zing.org>
9  * Copyright 2000 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 __HELP_DLG_H__
28 #define __HELP_DLG_H__
29
30 /** @file
31  * "Help" dialog box.
32  *  @ingroup dialog_group
33  */
34
35 /** User requested the "Help" dialog box by menu or toolbar.
36  *
37  * @param widget parent widget (unused)
38  * @param data unused
39  */
40 void help_cb(GtkWidget *widget, gpointer data);
41
42 /** Create a "Help" dialog box and start with a specific topic.
43  *  Will show the first page if topic is not found.
44  *
45  * @param widget parent widget (unused)
46  * @param topic the topic to display (a string)
47  */
48 void help_topic_cb(GtkWidget *widget, gpointer topic);
49
50 /** Redraw all the text widgets, to use a new font. */
51 void help_redraw(void);
52
53 typedef enum {
54     /* pages online at www.ethereal.com */
55     ONLINEPAGE_HOME,
56     ONLINEPAGE_WIKI,
57     ONLINEPAGE_USERGUIDE,
58     ONLINEPAGE_FAQ,
59     ONLINEPAGE_DOWNLOAD,
60     ONLINEPAGE_SAMPLE_FILES,
61
62     /* local manual pages */
63     LOCALPAGE_MAN_ETHEREAL = 100,
64     LOCALPAGE_MAN_ETHEREAL_FILTER,
65     LOCALPAGE_MAN_TETHEREAL,
66     LOCALPAGE_MAN_MERGECAP,
67     LOCALPAGE_MAN_EDITCAP,
68     LOCALPAGE_MAN_TEXT2PCAP,
69
70     /* local help pages (User's Guide) */
71 #ifdef ETHEREAL_EUG_DIR
72     HELP_CONTENT = 200,
73     HELP_CAPTURE_OPTIONS_DIALOG,
74     HELP_CAPTURE_FILTERS_DIALOG,
75     HELP_DISPLAY_FILTERS_DIALOG
76 #endif
77 } url_page_action_e;
78
79
80 /** User requested one of the html pages.
81  *
82  * @param action the page to show
83  */
84 extern void
85 url_page_action(url_page_action_e action);
86
87 /** User requested one of the html pages by button click.
88  *
89  * @param widget parent widget (unused)
90  * @param action the page to show
91  */
92 extern void
93 url_page_cb(GtkWidget *w _U_, url_page_action_e action);
94
95 /** User requested one of the html pages by menu.
96  *
97  * @param widget parent widget (unused)
98  * @param data unused
99  * @param action the page to show
100  */
101 extern void url_page_menu_cb( GtkWidget *widget, gpointer data, url_page_action_e action);
102
103 #endif