initial port for Cevo game in C++ (libs)

This commit is contained in:
Geoffray Levasseur committed 2026-10-22 17:20:45 +02:00
commit 8436242032
375 files changed
+46282

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
#include "Cevo/FormTest.h"
#include "ui_FormTest.h"
namespace Cevo {
FormTest::FormTest(QWidget *parent) : FormBase(parent), ui(new Ui::FormTest)
{
ui->setupUi(this);
connect(ui->buttonRun, &QPushButton::clicked, this, &FormTest::onRunClicked);
// Matches the original .lfm: ButtonClose's OnClick is also wired to the
// run handler (so closing re-runs the test first) - kept as-is even
// though it looks like it may have been unintentional in the source.
connect(ui->buttonClose, &QPushButton::clicked, this, &FormTest::onRunClicked);
}
FormTest::~FormTest()
{
delete ui;
}
void FormTest::showEvent(QShowEvent *event)
{
FormBase::showEvent(event);
if (m_testCase)
ui->memoLog->setPlainText(m_testCase->log);
}
void FormTest::onRunClicked()
{
if (m_testCase) {
m_testCase->run();
ui->memoLog->setPlainText(m_testCase->log);
}
}
} // namespace Cevo