From 85958744a2314d5b2556bece162dbf6bc4d54505 Mon Sep 17 00:00:00 2001 From: Neeraj Kumar Date: Tue, 13 Jul 2010 19:26:45 +0000 Subject: Added code to enable testsuite selection using checkboxes svn-id: r50850 --- engines/testbed/testbed.h | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'engines/testbed/testbed.h') diff --git a/engines/testbed/testbed.h b/engines/testbed/testbed.h index 914e39dad6..e85bae3784 100644 --- a/engines/testbed/testbed.h +++ b/engines/testbed/testbed.h @@ -27,6 +27,8 @@ #include "engines/engine.h" +#include "gui/options.h" + #include "testbed/testsuite.h" namespace Testbed { @@ -47,7 +49,7 @@ public: * All testsuites are disabled by default * To enable testsuite X, call enableTestsuite("X", true); */ - void enableTestsuite(const char *name, bool enable); + void enableTestsuite(const Common::String &name, bool enable); /** * Invokes configured testsuites. @@ -57,7 +59,22 @@ public: bool hasFeature(EngineFeature f) const; private: - Common::Array _testsuiteList; + Common::Array _testsuiteList; +}; + +class TestbedOptionsDialog : public GUI::OptionsDialog { +public: + TestbedOptionsDialog(); + ~TestbedOptionsDialog(); + void addCheckbox(const Common::String &tsName); + bool isEnabled(const Common::String &tsName); + +private: + Common::Array _checkBoxes; + const int _hOffset; // current offset from left + int _vOffset; // current offset from top + const int _boxWidth; + const int _boxHeight; }; } // End of namespace Testbed -- cgit v1.2.3