Skip to content

Conversation

@alwey
Copy link
Contributor

@alwey alwey commented Jan 22, 2022

This patch changes the usage of the NewTournamentDialog in the GUI. Currently this window is deleted after use (OK or Cancel) and a new instance with the default settings is used for the next tournament.

This code re-uses the existing NewTournamentDialog with old values to speed up the set-up of the next - probably similar - tournament. A new Reset-Button triggers the destruction of the dialog. After a short while a new dialog appears with user's default values.

The method NewTournamentDialog::readSettings has been simplified and corrected.

This PR is an alternative to the patch which uses the old dialog with values from cutechess.ini after reset, PR #706.

Implements and resolves #209

nt1
A "Reset"-button has been added to NewTournamentDialog.

Example: First dialog shown before ...
nt4

... and a new dialog appears after pressing the "Reset"-button.
nt5

HTH.

@alwey alwey changed the title Re-use previous tournament's settings Re-use previous tournament's settings (alternative 2) Jan 22, 2022
@alwey alwey force-pushed the 209-newtourn-2 branch 3 times, most recently from e2ea1c9 to d1b3458 Compare January 22, 2022 22:30
Do not delete NewTournamentDialog after usage, but re-use it for the
next tournament.

Add reset functionality to NewTournamentDialog.
However, on reset use a new NewTournamentDialog.

Simplify and correct NewTournamentDialog::readSettings.

Resolves cutechess#209
@EveannChessEngine
Copy link

How can I get and executable with this feature ?

@eduherminio
Copy link
Contributor

In case it helps someone else, binaries are available in v1.4.1-eduherminio-707 and v1.3.2-eduherminio-707.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-use previous tournament's settings

3 participants