* Massachusetts.
*
* Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006,
- * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 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:
void
LoadPositionProc()
{
+ static char buf[MSG_SIZ];
if (gameMode == AnalyzeMode || gameMode == AnalyzeFile) {
Reset(FALSE, TRUE);
}
- FileNamePopUp(_("Load position file name?"), "", ".fen .epd .pos", LoadPosition, "rb");
+ snprintf(buf, MSG_SIZ, "%s/", appData.positionDir);
+ FileNamePopUp(_("Load position file name?"), buf, ".fen .epd .pos", LoadPosition, "rb");
}
void
void
MatchProc ()
{
+ static Enables matchOff[] = { { "Mode.MachineMatch", False }, { NULL, False } };
+ if(matchMode) SetMenuEnables(matchOff);
MatchEvent(2);
}
}
void
-InfoProc ()
-{
- char buf[MSG_SIZ];
-#ifdef OSXAPP
- snprintf(buf, MSG_SIZ, "%s ./info.command", appData.sysOpen);
-#else
- snprintf(buf, sizeof(buf), "xterm -e info --directory %s --directory . -f %s &",
- INFODIR, INFOFILE);
-#endif
- system(buf);
-}
-
-void
BugReportProc ()
{
char buf[MSG_SIZ];
snprintf(buf, sizeof(buf),
_("%s%s\n\n"
"Copyright 1991 Digital Equipment Corporation\n"
-"Enhancements Copyright 1992-2014 Free Software Foundation\n"
+"Enhancements Copyright 1992-2016 Free Software Foundation\n"
"Enhancements Copyright 2005 Alessandro Scotti\n\n"
"%s is free software and carries NO WARRANTY;"
-"see the file COPYING for more information.\n"
-"The GTK build of this version is experimental and unstable\n\n"
+"see the file COPYING for more information.\n\n"
"Visit XBoard on the web at: http://www.gnu.org/software/xboard/\n"
"Check out the newest features at: http://www.gnu.org/software/xboard/whats_new.html\n\n"
"Report bugs via email at: <bug-xboard@gnu.org>\n\n"
void
EditEngineProc ()
{
- EditTagsPopUp(firstChessProgramNames, &firstChessProgramNames);
+ EditEnginePopUp(firstChessProgramNames, &firstChessProgramNames);
}
void
{"----", NULL, NULL, NothingProc},
{N_("Engine #1 Settings..."), NULL, "Engine#1Settings", FirstSettingsProc},
{N_("Engine #2 Settings..."), NULL, "Engine#2Settings", SecondSettingsProc},
+ {N_("Common Settings..."), "<Alt><Shift>u","CommonEngine", UciMenuProc},
{"----", NULL, NULL, NothingProc},
{N_("Hint"), NULL, "Hint", HintEvent},
{N_("Book"), NULL, "Book", BookEvent},
{N_("General..."), NULL, "General", OptionsProc},
#endif
{N_("Time Control..."), "<Alt><Shift>t", "TimeControl", TimeControlProc},
- {N_("Common Engine..."), "<Alt><Shift>u", "CommonEngine", UciMenuProc},
{N_("Adjudications..."), "<Alt><Shift>j", "Adjudications", EngineMenuProc},
{N_("ICS..."), NULL, "ICS", IcsOptionsProc},
{N_("Tournament..."), NULL, "Match", MatchOptionsProc},