5 * Some content from gtk/help_dlg.h by Laurent Deniel <laurent.deniel@free.fr>
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 2000 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 #ifndef __HELP_URL_H__
28 #define __HELP_URL_H__
32 #endif /* __cplusplus */
41 /* pages online at www.wireshark.org */
47 ONLINEPAGE_SAMPLE_FILES
,
48 ONLINEPAGE_CAPTURE_SETUP
,
49 ONLINEPAGE_NETWORK_MEDIA
,
50 ONLINEPAGE_SAMPLE_CAPTURES
,
55 /* local manual pages */
56 LOCALPAGE_MAN_WIRESHARK
= 100,
57 LOCALPAGE_MAN_WIRESHARK_FILTER
,
58 LOCALPAGE_MAN_CAPINFOS
,
59 LOCALPAGE_MAN_DUMPCAP
,
60 LOCALPAGE_MAN_EDITCAP
,
61 LOCALPAGE_MAN_MERGECAP
,
62 LOCALPAGE_MAN_RAWSHARK
,
63 LOCALPAGE_MAN_REORDERCAP
,
64 LOCALPAGE_MAN_TEXT2PCAP
,
67 /* help pages (textfiles or local HTML User's Guide) */
69 HELP_GETTING_STARTED
, /* currently unused */
70 HELP_CAPTURE_OPTIONS_DIALOG
,
71 HELP_CAPTURE_FILTERS_DIALOG
,
72 HELP_DISPLAY_FILTERS_DIALOG
,
73 HELP_COLORING_RULES_DIALOG
,
74 HELP_CONFIG_PROFILES_DIALOG
,
75 HELP_MANUAL_ADDR_RESOLVE_DIALOG
,
81 HELP_CAPTURE_INTERFACES_DIALOG
,
82 HELP_ENABLED_PROTOCOLS_DIALOG
,
83 HELP_DECODE_AS_DIALOG
,
84 HELP_DECODE_AS_SHOW_DIALOG
,
85 HELP_FOLLOW_STREAM_DIALOG
,
86 HELP_EXPERT_INFO_DIALOG
,
87 HELP_STATS_SUMMARY_DIALOG
,
88 HELP_STATS_PROTO_HIERARCHY_DIALOG
,
89 HELP_STATS_ENDPOINTS_DIALOG
,
90 HELP_STATS_CONVERSATIONS_DIALOG
,
91 HELP_STATS_IO_GRAPH_DIALOG
,
92 HELP_STATS_COMPARE_FILES_DIALOG
,
93 HELP_STATS_LTE_MAC_TRAFFIC_DIALOG
,
94 HELP_STATS_LTE_RLC_TRAFFIC_DIALOG
,
95 HELP_STATS_WLAN_TRAFFIC_DIALOG
,
96 HELP_CAPTURE_INTERFACE_OPTIONS_DIALOG
,
97 HELP_CAPTURE_INTERFACES_DETAILS_DIALOG
,
98 HELP_PREFERENCES_DIALOG
,
99 HELP_CAPTURE_INFO_DIALOG
,
100 HELP_EXPORT_FILE_DIALOG
,
101 HELP_EXPORT_BYTES_DIALOG
,
102 HELP_EXPORT_OBJECT_LIST
,
107 HELP_EXPORT_FILE_WIN32_DIALOG
,
108 HELP_EXPORT_BYTES_WIN32_DIALOG
,
109 HELP_OPEN_WIN32_DIALOG
,
110 HELP_MERGE_WIN32_DIALOG
,
111 HELP_SAVE_WIN32_DIALOG
,
112 HELP_TIME_SHIFT_DIALOG
,
113 HELP_FILTER_SAVE_DIALOG
116 /** Given a filename return a filesystem URL. Relative paths are prefixed with
117 * the datafile directory path.
119 * @param filename A file name or path. Relative paths will be prefixed with
120 * the data file directory path.
121 * @return A filesystem URL for the file or NULL on failure. A non-NULL return
122 * value must be freed with g_free().
124 gchar
*data_file_url(const gchar
*filename
);
126 /** Given a topic action return its online (www.wireshark.org) URL or NULL.
128 * @param action Topic action, e.g. ONLINEPAGE_HOME or ONLINEPAGE_ASK.
129 * @return A static URL or NULL. MUST NOT be freed.
131 const char *topic_online_url(topic_action_e action
);
133 /** Given a page in the Wireshark User's Guide return its URL. On Windows
134 * an attempt will be made to open User Guide URLs with HTML Help. If
135 * the attempt succeeds NULL will be returned.
137 * @param page A page in the User's Guide.
138 * @return A static URL or NULL. A non-NULL return value must be freed
141 gchar
*user_guide_url(const gchar
*page
);
143 /** Given a topic action return its URL. On Windows an attempt will be
144 * made to open User Guide URLs with HTML Help. If the attempt succeeds
145 * NULL will be returned.
147 * @param action Topic action.
148 * @return A static URL or NULL. A non-NULL return value must be freed
151 gchar
*topic_action_url(topic_action_e action
);
153 /** Open a specific topic (create a "Help" dialog box or open a webpage).
155 * @param topic the topic to display
157 void topic_action(topic_action_e topic
);
161 #endif /* __cplusplus */
163 #endif /* __HELP_URL_H__ */
171 * indent-tabs-mode: nil
174 * ex: set shiftwidth=4 tabstop=8 expandtab:
175 * :indentSize=4:tabSize=8:noTabs=true: