1 /* $Id: help.h,v 1.11 2003/05/09 17:43:45 edg Exp $ */
3 #ifndef NEDIT_HELP_H_INCLUDED
4 #define NEDIT_HELP_H_INCLUDED
6 /*******************************************************************************
8 * help.h -- Nirvana Editor help display *
11 * Copyright (c) 1999-2001 Mark Edel *
13 * This is free software; you can redistribute it and/or modify it under the *
14 * terms of the GNU General Public License as published by the Free Software *
15 * Foundation; either version 2 of the License, or (at your option) any later *
18 * This software is distributed in the hope that it will be useful, but WITHOUT *
19 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *
20 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License *
23 * You should have received a copy of the GNU General Public License along with *
24 * software; if not, write to the Free Software Foundation, Inc., 59 Temple *
25 * Place, Suite 330, Boston, MA 02111-1307 USA *
27 * Nirvana Text Editor *
28 * September 10, 1991 *
30 * Written by Mark Edel *
32 *******************************************************************************/
34 #include "help_topic.h"
36 #include <X11/Intrinsic.h>
38 /*============================================================================*/
39 /* VARIABLE TYPE DEFINITIONS */
40 /*============================================================================*/
42 typedef struct HelpMenu
/* Maintains help menu structure */
44 struct HelpMenu
* next
;
45 int level
; /* menu level, submenu > 1 */
46 enum HelpTopic topic
; /* HELP_none for submenu & separator */
48 int hideIt
; /* value which determines displayability */
49 char mnemonic
; /* '-' for separator */
50 char * subTitle
; /* title for sub menu, or NULL */
54 typedef struct Href
/* Source to topic internal hyperlinks */
57 int location
; /* position to link in topic */
58 enum HelpTopic topic
; /* target of link in this topic */
59 char * source
; /* hypertext link characters */
60 char * target
; /* hypertext target characters */
64 /*============================================================================*/
65 /* VARIABLE DECLARATIONS */
66 /*============================================================================*/
68 extern HelpMenu H_M
[];
69 extern char *HelpTitles
[];
70 extern const char linkdate
[];
71 extern const char linktime
[];
73 /*============================================================================*/
74 /* PROGRAM PROTOTYPES */
75 /*============================================================================*/
77 void Help(enum HelpTopic topic
);
78 void PrintVersion(void);
79 void InstallHelpLinkActions(XtAppContext context
);
81 #endif /* NEDIT_HELP_H_INCLUDED */