/**************************************************************************
 * This program is Copyright (C) 1986-2002 by Jonathan Payne.  JOVE is    *
 * provided by Jonathan and Jovehacks without charge and without          *
 * warranty.  You may copy, modify, and/or distribute JOVE, provided that *
 * this notice is included in all the source files and documentation.     *
 **************************************************************************/

/* menumaps.txt K. Mitchum 1/88. The same warnings apply as in keymaps.txt.
   You MUST use a version of setmaps compiled with MAC defined for this
   file to be converted correctly. */


#include "jove.h"
#include "mac.h"
#include "commands.h"
#include "vars.h"

#MENU
data_obj MDIV = { STRING, "(-" };
data_obj MAJM = { STRING, "(Major Modes:" };
data_obj MINM = { STRING, "(Minor Modes:" };
data_obj BOOL = { STRING, "(Boolean:" };
data_obj DECM = { STRING, "(Decimal:" };
data_obj STRM = { STRING, "(String:" };
data_obj FILM = { STRING, "(File:" };
data_obj CHAR = { STRING, "(Character:" };
#define MENU_DIV &MDIV

struct menu Menus[NMENUS] = {
"File",101,0, {
	"visit-file",
	"find-file",
	"insert-file",
	MENU_DIV,
	"save-file",
	"write-file",
	MENU_DIV,
	"write-modified-files",
	"write-region",
	MENU_DIV,
	"write-macros-to-file",
	MENU_DIV,
	"exit-jove",
	0
},

"Buffer",103,0, {
	&MAJM,
	"c-mode",
	"fundamental-mode",
	"lisp-mode",
	"text-mode",
	&MINM,
	"auto-fill-mode",
	"auto-indent-mode",
	"over-write-mode",
	"read-only-mode",
	"show-match-mode",
	"word-abbrev-mode",
	MENU_DIV,
	0
},

"Window",104,0, {
	"grow-window",
	"shrink-window",
	MENU_DIV,
	"split-current-window",
	"delete-other-windows",
	"window-find",
	MENU_DIV,
	"number-lines-in-window",
	0
},

"Point",105,0, {
	"set-mark",
	"exchange-point-and-mark",
	MENU_DIV,
	"search-forward",
	"search-reverse",
	"i-search-forward",
	"i-search-reverse",
	"query-replace-string",
	"replace-string",
	MENU_DIV,
	"find-tag",
	0
},

"Command",106,0, {
	"begin-kbd-macro",
	"end-kbd-macro",
	"name-kbd-macro",
	"execute-kbd-macro",
	"execute-macro",
	MENU_DIV,
	"bind-macro-to-key",
	"bind-to-key",
	"describe-key",
	MENU_DIV,
	"execute-named-command",
	0
},

"Set",107,0, {
	&BOOL,
	"allow-bad-characters-in-filenames",
#ifdef ABBREV
	"auto-case-abbrev",
#endif
	"case-ignore-search",
#ifdef BIFF
	"disable-biff",
#endif
#ifdef F_COMPLETION
	"display-filenames-with-bad-extensions",
#endif
	"files-should-end-with-newline",
#ifdef HIGHLIGHTING
	"highlight-mark",
#endif
#ifdef MAC
	"macify",
#endif
#ifdef BACKUPFILES
	"make-backup-files",
#endif
	"match-regular-expressions",
	"meta-key"
	"mode-line-should-standout",
	"one-key-confirmation",
	"scroll-all-lines",
#ifdef HIGHLIGHTING
	"scroll-bar",
#endif
	"send-typeout-to-buffer",
	"space-sentence-2",
	"visible-bell",
	"wrap-search",
#ifdef SUBSHELL
	"write-files-on-make",
#endif
	&DECM,
	"c-argument-indentation",
	"c-indentation-increment",
	"error-window-size",
	"left-margin",
	"mark-threshold",
	"paren-flash-delay",
	"right-margin",
	"scroll-step",
#ifdef RECOVER
	"sync-frequency",
#endif
	"tab-width",
	&FILM,
	"tag-file",
	"tmp-file-pathname",
	&STRM,
#ifdef F_COMPLETION
	"bad-filename-extensions",
#endif
	"comment-format",
	"error-format-string",
	"mode-line",
	"paragraph-delimiter-pattern",
	&CHAR,
	"abort-char",
	0
}
};
