X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=blobdiff_plain;f=menus.h;h=94783714a729df513cbcec0610d9f82d8815b6f1;hp=ddf942ec8f933935eeea7d34595290ebf30f6e85;hb=HEAD;hpb=ebbd3101235b8a04c34b30eb9a037bb6bae71123 diff --git a/menus.h b/menus.h index ddf942e..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: @@ -54,15 +55,16 @@ typedef void MenuProc P((void)); 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; @@ -96,8 +98,10 @@ 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)); void AdjuWhiteProc P((void)); void AdjuBlackProc P((void)); void AdjuDrawProc P((void)); @@ -158,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 @@ -167,6 +176,8 @@ void EngineOutputProc P((void)); void EvalGraphProc P((void)); int SaveGameListAsText P((FILE *f)); +void FileNamePopUp P((char *label, char *def, char *filter, + FileProc proc, char *openMode)); void AppendMenuItem P((char *text, int n)); MenuItem *MenuNameToItem P((char *menuName)); @@ -175,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" -