X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=blobdiff_plain;f=menus.h;h=94783714a729df513cbcec0610d9f82d8815b6f1;hp=f0b7319e3c11927093cf718680de585875d75922;hb=HEAD;hpb=b8dda57c7dbcd5942d43523e7e1dbb3755348649 diff --git a/menus.h b/menus.h index f0b7319..9478371 100644 --- a/menus.h +++ b/menus.h @@ -5,7 +5,8 @@ * 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, 2016 Free + * Software Foundation, Inc. * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: @@ -52,18 +53,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; @@ -97,6 +98,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)); @@ -160,8 +162,13 @@ void SaveOptionsProc P((void)); void SaveSettings P((char *)); void EditBookProc P((void)); void InitMenuMarkers P((void)); +void FontsProc 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 @@ -179,14 +186,19 @@ void EnableButtonBar P((int state)); char *ModeToWidgetName P((GameMode mode)); void CreateAnimVars P((void)); void CopySomething P((char *s)); +void EditAnyPopUp P((char *tags, char **dest, char *title)); + 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" -