UNIXworkcode

1 /******************************************************************************* 2 * * 3 * help.h -- Nirvana Editor Help Display * 4 * * 5 * Copyright (c) 1999-2001 Mark Edel * 6 * * 7 * This is free software; you can redistribute it and/or modify it under the * 8 * terms of the GNU General Public License as published by the Free Software * 9 * Foundation; either version 2 of the License, or (at your option) any later * 10 * version. In addition, you may distribute version of this program linked to * 11 * Motif or Open Motif. See README for details. * 12 * * 13 * This software is distributed in the hope that it will be useful, but WITHOUT * 14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * 16 * for more details. * 17 * * 18 * You should have received a copy of the GNU General Public License along with * 19 * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 * Place, Suite 330, Boston, MA 02111-1307 USA * 21 * * 22 * Nirvana Text Editor * 23 * September 10, 1991 * 24 * * 25 * Written by Mark Edel * 26 * * 27 *******************************************************************************/ 28 29 #ifndef NEDIT_HELP_H_INCLUDED 30 #define NEDIT_HELP_H_INCLUDED 31 32 #include "help_topic.h" 33 34 #include <X11/Intrinsic.h> 35 36 /*============================================================================*/ 37 /* VARIABLE TYPE DEFINITIONS */ 38 /*============================================================================*/ 39 40 typedef struct HelpMenu /* Maintains help menu structure */ 41 { 42 struct HelpMenu * next; 43 int level; /* menu level, submenu > 1 */ 44 enum HelpTopic topic; /* HELP_none for submenu & separator */ 45 char * wgtName; 46 int hideIt; /* value which determines displayability */ 47 char mnemonic; /* '-' for separator */ 48 char * subTitle; /* title for sub menu, or NULL */ 49 } HelpMenu; 50 51 typedef struct Href /* Source to topic internal hyperlinks */ 52 { 53 struct Href * next; 54 int location; /* position to link in topic */ 55 enum HelpTopic topic; /* target of link in this topic */ 56 char * source; /* hypertext link characters */ 57 } Href; 58 59 /*============================================================================*/ 60 /* VARIABLE DECLARATIONS */ 61 /*============================================================================*/ 62 63 extern HelpMenu H_M[]; 64 extern char *HelpTitles[]; 65 extern const char linkdate[]; 66 extern const char linktime[]; 67 68 /*============================================================================*/ 69 /* PROGRAM PROTOTYPES */ 70 /*============================================================================*/ 71 72 void Help(enum HelpTopic topic); 73 void PrintVersion(void); 74 void SetHelpZoom(Widget textWidget, int step); 75 void InstallHelpLinkActions(XtAppContext context); 76 77 #endif /* NEDIT_HELP_H_INCLUDED */ 78