From: H.G. Muller Date: Thu, 29 Mar 2012 17:09:34 +0000 (+0200) Subject: Split sync-after options in Match dialog into checkbox + label X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=d169fe2b9f61534051f8c1284d632871b0fb4ab6;p=xboard.git Split sync-after options in Match dialog into checkbox + label Now the checkbox texts are highlighted on hovering, we don't want the explanatory text behind it to be highlighted with it. --- diff --git a/dialogs.c b/dialogs.c index 8de450d..3810865 100644 --- a/dialogs.c +++ b/dialogs.c @@ -254,8 +254,10 @@ MatchOK (int n) 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, @@ -280,14 +282,14 @@ static Option matchOptions[] = { 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); } @@ -309,14 +311,14 @@ CloneTourney () 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);