X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xoptions.c;h=ffb1da4d14305595329195025a1efbaf82a9a63c;hb=a90c45ee54a358b17fa4d006417bab8c6cf8657e;hp=286ef8b6972583cf1d85d5df24e7b0e359eb2b49;hpb=47a06594c87b793b51012caf269ad1c920e34866;p=xboard.git diff --git a/xoptions.c b/xoptions.c index 286ef8b..ffb1da4 100644 --- a/xoptions.c +++ b/xoptions.c @@ -1017,8 +1017,6 @@ void SecondSettingsProc(w, event, prms, nprms) // cloned from Engine Settings dialog -#define CURR -2000000000 /* indicates control should start at actual value of target */ - typedef void ButtonCallback(int n); char *trialSound; @@ -1030,6 +1028,17 @@ void CreateXPMBoard P((char *s, int kind)); void CreateXPMPieces P((void)); void GenericReadout(); +Option matchOptions[] = { +{ 0, 2, 1000000000, NULL, (void*) &appData.defaultMatchGames, "", NULL, Spin, _("Default Number of Games in Match:") }, +{ 0, 0, 1000000000, NULL, (void*) &appData.matchPause, "", NULL, Spin, _("Pause between Match Games (msec):") }, +{ 0, 0, 0, NULL, (void*) &appData.loadGameFile, "", NULL, FileName, _("Game File with Opening Lines:") }, +{ 0, -2, 1000000000, NULL, (void*) &appData.loadGameIndex, "", NULL, Spin, _("Game Number (-1 or -2 = Auto-Increment):") }, +{ 0, 0, 0, NULL, (void*) &appData.loadPositionFile, "", NULL, FileName, _("File with Start Positions:") }, +{ 0, -2, 1000000000, NULL, (void*) &appData.loadPositionIndex, "", NULL, Spin, _("Position Number (-1 or -2 = Auto-Increment):") }, +{ 0, 0, 1000000000, NULL, (void*) &appData.rewindIndex, "", NULL, Spin, _("Rewind Index after this many Games (0 = never):") }, +{ 0, 0, 0, NULL, NULL, "", NULL, EndMark , "" } +}; + void GeneralOptionsOK(int n) { int newPonder = appData.ponderNextMove; @@ -1850,6 +1859,15 @@ void OptionsProc(w, event, prms, nprms) GenericPopUp(generalOptions, _("General Options")); } +void MatchOptionsProc(w, event, prms, nprms) + Widget w; + XEvent *event; + String *prms; + Cardinal *nprms; +{ + GenericPopUp(matchOptions, _("Match Options")); +} + //---------------------------- Chat Windows ---------------------------------------------- void OutputChatMessage(int partner, char *mess)