diff options
author | pommicket <pommicket@gmail.com> | 2025-08-21 14:32:29 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-08-21 14:32:29 -0400 |
commit | 4702e6bb96ed5f943039956224b8a5e28d862c75 (patch) | |
tree | 1d4542d55cc6114c54f3c9b94a7b3166785c2162 /quacker/macondo.cpp | |
parent | fe37762ef767818eb7edfb8de4e64bc638b3db5b (diff) |
Fix bug with Macondo simulate
Diffstat (limited to 'quacker/macondo.cpp')
-rw-r--r-- | quacker/macondo.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/quacker/macondo.cpp b/quacker/macondo.cpp index 831e94d..3b301c4 100644 --- a/quacker/macondo.cpp +++ b/quacker/macondo.cpp @@ -15,9 +15,13 @@ TODO: #include <QGridLayout> #include <QPushButton> #include <QCheckBox> +#include <QLabel> +#include <QGroupBox> Macondo::Macondo(Quackle::Game *game) : View() { m_game = game; + QFont boldFont; + boldFont.setWeight(QFont::Bold); m_useMacondo = new QCheckBox(tr("Use Macondo for 'Simulate'")); const char *home = getenv("HOME"); std::string execPath = home ? home : "/"; @@ -27,10 +31,17 @@ Macondo::Macondo(Quackle::Game *game) : View() { connectBackendSignals(); m_solve = new QPushButton(tr("Solve")); m_solve->setDisabled(true); + QGroupBox *pegBox = new QGroupBox(tr("Pre-endgame options")); + QVBoxLayout *pegLayout = new QVBoxLayout; + m_generatedMovesOnly = new QCheckBox(tr("Generated moves only")); + m_generatedMovesOnly->setToolTip("Only analyze the moves that have been generated in the 'Choices' box."); + pegLayout->addWidget(m_generatedMovesOnly); QGridLayout *layout = new QGridLayout(this); + pegBox->setLayout(pegLayout); layout->setAlignment(Qt::AlignTop); layout->addWidget(m_useMacondo, 0, 0); layout->addWidget(m_solve, 1, 0); + layout->addWidget(pegBox, 2, 0); connect(m_solve, SIGNAL(clicked()), this, SLOT(solve())); } |