static Option matchOptions[] = {
{ 0, 0, 0, NULL, (void*) &tfName, ".trn", NULL, FileName, N_("Tournament file:") },
-{ 0, 0, 0, NULL, (void*) &appData.roundSync, "", NULL, CheckBox, N_("Sync after round (for concurrent playing of a single") },
-{ 0, 0, 0, NULL, (void*) &appData.cycleSync, "", NULL, CheckBox, N_("Sync after cycle tourney with multiple XBoards)") },
+{ 0, 0, 0, NULL, (void*) &appData.roundSync, "", NULL, CheckBox, N_("Sync after round") },
+{ 0, SAME_ROW|LL, 0, NULL, NULL, "", NULL, Label, N_(" (for concurrent playing of a single") },
+{ 0, 0, 0, NULL, (void*) &appData.cycleSync, "", NULL, CheckBox, N_("Sync after cycle") },
+{ 0, SAME_ROW|LL, 0, NULL, NULL, "", NULL, Label, N_(" tourney with multiple XBoards)") },
{ 150, T_VSCRL | T_FILL | T_WRAP,
0, NULL, (void*) &engineName, "", NULL, TextBox, N_("Tourney participants:") },
{ 0, COMBO_CALLBACK | NO_GETTEXT,
static void
ReplaceParticipant ()
{
- GenericReadout(matchOptions, 3);
+ GenericReadout(matchOptions, 5);
Substitute(strdup(engineName), True);
}
static void
UpgradeParticipant ()
{
- GenericReadout(matchOptions, 3);
+ GenericReadout(matchOptions, 5);
Substitute(strdup(engineName), False);
}
static void
AddToTourney (int n)
{
- AddLine(&matchOptions[3], engineMnemonic[values[4]+1]);
+ AddLine(&matchOptions[5], engineMnemonic[values[6]+1]);
}
void
MatchOptionsProc ()
{
NamesToList(firstChessProgramNames, engineList, engineMnemonic, "all");
- matchOptions[5].min = -(appData.pairingEngine[0] != NULLCHAR); // with pairing engine, allow Swiss
+ matchOptions[7].min = -(appData.pairingEngine[0] != NULLCHAR); // with pairing engine, allow Swiss
ASSIGN(tfName, appData.tourneyFile[0] ? appData.tourneyFile : MakeName(appData.defName));
ASSIGN(engineName, appData.participants);
GenericPopUp(matchOptions, _("Match Options"), TransientDlg, BoardWindow, MODAL, 0);
};
void
-LoadOptionsProc ()
+LoadOptionsPopUp (DialogClass parent)
{
ASSIGN(searchMode, modeValues[appData.searchMode-1]);
- GenericPopUp(loadOptions, _("Load Game Options"), TransientDlg, BoardWindow, MODAL, 0);
+ GenericPopUp(loadOptions, _("Load Game Options"), TransientDlg, parent, MODAL, 0);
+}
+
+void
+LoadOptionsProc ()
+{ // called from menu
+ LoadOptionsPopUp(BoardWindow);
}
//------------------------------------------- Save Game Options --------------------------------------------
safeStrCpy(lpUserGLT, GLT_DEFAULT_TAGS, LPUSERGLT_SIZE);
GLT_TagsToList(lpUserGLT);
index = 0;
- LoadListBox(&listOptions[0]); // Note: the others don't need this, as the highligh
+ LoadListBox(&listOptions[0], "?"); // Note: the others don't need this, as the highlight switching redraws the change items
}
HighlightListBoxItem(&listOptions[0], index);
}
void
-GameListOptionsPopUp ()
+GameListOptionsPopUp (DialogClass parent)
{
safeStrCpy(lpUserGLT, appData.gameListTags, LPUSERGLT_SIZE);
GLT_TagsToList(lpUserGLT);
- GenericPopUp(listOptions, _("Game-list options"), TransientDlg);
+ GenericPopUp(listOptions, _("Game-list options"), TransientDlg, parent, MODAL, 0);
+}
+
+void
+GameListOptionsProc ()
+{
+ GameListOptionsPopUp(BoardWindow);
}
//----------------------------- Error popup in various uses -----------------------------