X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=menus.h;h=e278ffd8fa890a11f7f49c9e34fd6e891df860e9;hb=4011e8678d85310eedf19fd00aa5d96a9a60770a;hp=262a3743294330587038418aaaa043fa27809b7e;hpb=7e0222e64da6706bf0dc2468f459b98e4346206b;p=xboard.git diff --git a/menus.h b/menus.h index 262a374..e278ffd 100644 --- a/menus.h +++ b/menus.h @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Free Software Foundation, Inc. * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: @@ -52,18 +52,18 @@ typedef void MenuProc P((void)); -typedef int (*FileProc) P((FILE *f, int n, char *title)); typedef struct { - String string; - String ref; + char *string; + char *accel; + char *ref; MenuProc *proc; void *handle; } MenuItem; typedef struct { - String name; - String ref; + char *name; + char *ref; MenuItem *mi; } Menu; @@ -74,7 +74,6 @@ typedef struct { extern Menu menuBar[]; -void MarkMenuItem P((char *menuRef, int state)); void ErrorPopUp P((char *title, char *text, int modal)); void AppendEnginesToMenu P((char *list)); void LoadGameProc P((void)); @@ -98,6 +97,7 @@ void AnalyzeModeProc P((void)); void AnalyzeFileProc P((void)); void MatchProc P((void)); void MatchOptionsProc P((void)); +void EditTagsProc P((void)); void EditCommentProc P((void)); void IcsInputBoxProc P((void)); void ChatProc P((void)); @@ -162,7 +162,11 @@ void SaveSettings P((char *)); void EditBookProc P((void)); void InitMenuMarkers P((void)); void ShowGameListProc P((void)); // in ngamelist.c +void HistoryShowProc P((void)); // in nhistory.c +// only here because it is the only header shared by xoptions.c and usystem.c +void SetTextColor P((char **cnames, int fg, int bg, int attr)); +void ConsoleWrite P((char *message, int count)); // must be moved to xengineoutput.h @@ -185,9 +189,12 @@ void CopySomething P((char *s)); extern char *gameCopyFilename, *gamePasteFilename; extern Boolean saveSettingsOnExit; extern char *settingsFileName; +extern int firstEngineItem; + +#define CHECK (void *) 1 +#define RADIO (void *) 2 #define OPTIONSDIALOG #define INFOFILE "xboard.info" -