2000-08-08 12:28:50 +00:00
|
|
|
/* help_dlg.h
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2000-08-08 12:28:50 +00:00
|
|
|
*
|
2003-01-26 19:35:31 +00:00
|
|
|
* Laurent Deniel <laurent.deniel@free.fr>
|
2000-08-08 12:28:50 +00:00
|
|
|
*
|
|
|
|
* Ethereal - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@zing.org>
|
|
|
|
* Copyright 2000 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-08-08 12:28:50 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-08-08 12:28:50 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2000-08-11 13:37:21 +00:00
|
|
|
#ifndef __HELP_DLG_H__
|
|
|
|
#define __HELP_DLG_H__
|
|
|
|
|
2004-06-01 17:33:37 +00:00
|
|
|
/** @file
|
|
|
|
* "Help" dialog box.
|
2004-06-04 20:05:31 +00:00
|
|
|
* @ingroup dialog_group
|
2004-06-01 17:33:37 +00:00
|
|
|
*/
|
|
|
|
|
2004-09-16 22:07:03 +00:00
|
|
|
typedef enum {
|
|
|
|
/* pages online at www.ethereal.com */
|
|
|
|
ONLINEPAGE_HOME,
|
2004-09-24 15:41:46 +00:00
|
|
|
ONLINEPAGE_WIKI,
|
2004-09-16 22:07:03 +00:00
|
|
|
ONLINEPAGE_USERGUIDE,
|
|
|
|
ONLINEPAGE_FAQ,
|
|
|
|
ONLINEPAGE_DOWNLOAD,
|
|
|
|
ONLINEPAGE_SAMPLE_FILES,
|
|
|
|
|
|
|
|
/* local manual pages */
|
|
|
|
LOCALPAGE_MAN_ETHEREAL = 100,
|
|
|
|
LOCALPAGE_MAN_ETHEREAL_FILTER,
|
|
|
|
LOCALPAGE_MAN_TETHEREAL,
|
|
|
|
LOCALPAGE_MAN_MERGECAP,
|
|
|
|
LOCALPAGE_MAN_EDITCAP,
|
2005-01-20 23:17:23 +00:00
|
|
|
LOCALPAGE_MAN_TEXT2PCAP,
|
2004-09-16 22:07:03 +00:00
|
|
|
|
2005-01-20 23:17:23 +00:00
|
|
|
/* help pages (textfiles or local HTML User's Guide) */
|
2004-09-16 22:07:03 +00:00
|
|
|
HELP_CONTENT = 200,
|
2005-01-20 23:17:23 +00:00
|
|
|
HELP_GETTING_STARTED, /* currently unused */
|
2004-09-16 22:07:03 +00:00
|
|
|
HELP_CAPTURE_OPTIONS_DIALOG,
|
|
|
|
HELP_CAPTURE_FILTERS_DIALOG,
|
2005-01-20 23:17:23 +00:00
|
|
|
HELP_DISPLAY_FILTERS_DIALOG,
|
|
|
|
HELP_COLORING_RULES_DIALOG,
|
|
|
|
HELP_PRINT_DIALOG,
|
|
|
|
HELP_FIND_DIALOG,
|
|
|
|
HELP_GOTO_DIALOG,
|
|
|
|
HELP_CAPTURE_INTERFACES_DIALOG,
|
|
|
|
HELP_ENABLED_PROTOCOLS_DIALOG,
|
|
|
|
HELP_DECODE_AS_DIALOG,
|
|
|
|
HELP_DECODE_AS_SHOW_DIALOG,
|
|
|
|
HELP_FOLLOW_TCP_STREAM_DIALOG, /* currently unused */
|
|
|
|
HELP_STATS_SUMMARY_DIALOG,
|
|
|
|
HELP_STATS_PROTO_HIERARCHY_DIALOG,
|
|
|
|
HELP_STATS_ENDPOINTS_DIALOG,
|
|
|
|
HELP_STATS_CONVERSATIONS_DIALOG,
|
|
|
|
HELP_STATS_IO_GRAPH_DIALOG
|
|
|
|
} topic_action_e;
|
2004-09-16 22:07:03 +00:00
|
|
|
|
|
|
|
|
2005-01-20 23:17:23 +00:00
|
|
|
/** Open a specific topic (create a "Help" dialog box or open a webpage).
|
2004-09-16 22:07:03 +00:00
|
|
|
*
|
2005-01-20 23:17:23 +00:00
|
|
|
* @param widget parent widget (unused)
|
|
|
|
* @param topic the topic to display
|
2004-09-16 22:07:03 +00:00
|
|
|
*/
|
2005-01-20 23:17:23 +00:00
|
|
|
void topic_cb(GtkWidget *widget, topic_action_e topic);
|
2004-09-16 22:07:03 +00:00
|
|
|
|
2005-01-20 23:17:23 +00:00
|
|
|
/** Open a specific topic called from a menu item.
|
2004-09-16 22:07:03 +00:00
|
|
|
*
|
|
|
|
* @param widget parent widget (unused)
|
2005-01-20 23:17:23 +00:00
|
|
|
* @param data user_data (unused)
|
|
|
|
* @param topic the topic to display
|
2004-09-16 22:07:03 +00:00
|
|
|
*/
|
2005-01-20 23:17:23 +00:00
|
|
|
void topic_menu_cb(GtkWidget *w _U_, gpointer data _U_, topic_action_e topic);
|
2004-09-16 22:07:03 +00:00
|
|
|
|
2005-01-20 23:17:23 +00:00
|
|
|
/** Check, if a specific topic is available.
|
2004-09-16 22:07:03 +00:00
|
|
|
*
|
2005-01-20 23:17:23 +00:00
|
|
|
* @param topic the topic to display
|
|
|
|
* @return TRUE, if topic is available, FALSE if not
|
2004-09-16 22:07:03 +00:00
|
|
|
*/
|
2005-01-20 23:17:23 +00:00
|
|
|
gboolean topic_available(topic_action_e action);
|
|
|
|
|
|
|
|
/** Redraw all the help dialog text widgets, to use a new font. */
|
|
|
|
void help_redraw(void);
|
2004-09-16 22:07:03 +00:00
|
|
|
|
2000-08-11 13:37:21 +00:00
|
|
|
#endif
|