initial port for Cevo game in C++ (libs)
This commit is contained in:
commit
8436242032
375 files changed
+46282
No files matched your search
@@ -0,0 +1,41 @@
|
||||
#pragma once
|
||||
|
||||
#include "Cevo/FormBase.h"
|
||||
#include "Cevo/TestCase.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui {
|
||||
class FormTests;
|
||||
}
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Cevo {
|
||||
|
||||
// Equivalent of FormTests.pas's TFormTests.
|
||||
class FormTests : public FormBase {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit FormTests(QWidget *parent = nullptr);
|
||||
~FormTests() override;
|
||||
|
||||
TestCases *testCases() const { return m_testCases; }
|
||||
void setTestCases(TestCases *value);
|
||||
|
||||
protected:
|
||||
void showEvent(QShowEvent *event) override;
|
||||
|
||||
private slots:
|
||||
void onRunClicked();
|
||||
void onRunSelected();
|
||||
void onShowSelected();
|
||||
void onSelectionChanged();
|
||||
|
||||
private:
|
||||
void reloadList();
|
||||
void updateInterface();
|
||||
|
||||
Ui::FormTests *ui;
|
||||
TestCases *m_testCases = nullptr;
|
||||
};
|
||||
|
||||
} // namespace Cevo
|
||||
Reference in new issue
Block a user