aboutsummaryrefslogtreecommitdiff
path: root/engines/testbed/testbed.h
diff options
context:
space:
mode:
authorNeeraj Kumar2010-07-13 19:26:45 +0000
committerNeeraj Kumar2010-07-13 19:26:45 +0000
commit85958744a2314d5b2556bece162dbf6bc4d54505 (patch)
treed2f930250057c4ee829d32e5185f2c1148a98a43 /engines/testbed/testbed.h
parent570560e9b5f1b07b20111d58593bbf2f6251bf61 (diff)
downloadscummvm-rg350-85958744a2314d5b2556bece162dbf6bc4d54505.tar.gz
scummvm-rg350-85958744a2314d5b2556bece162dbf6bc4d54505.tar.bz2
scummvm-rg350-85958744a2314d5b2556bece162dbf6bc4d54505.zip
Added code to enable testsuite selection using checkboxes
svn-id: r50850
Diffstat (limited to 'engines/testbed/testbed.h')
-rw-r--r--engines/testbed/testbed.h21
1 files changed, 19 insertions, 2 deletions
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<Testsuite*> _testsuiteList;
+ Common::Array<Testsuite *> _testsuiteList;
+};
+
+class TestbedOptionsDialog : public GUI::OptionsDialog {
+public:
+ TestbedOptionsDialog();
+ ~TestbedOptionsDialog();
+ void addCheckbox(const Common::String &tsName);
+ bool isEnabled(const Common::String &tsName);
+
+private:
+ Common::Array<GUI::CheckboxWidget *> _checkBoxes;
+ const int _hOffset; // current offset from left
+ int _vOffset; // current offset from top
+ const int _boxWidth;
+ const int _boxHeight;
};
} // End of namespace Testbed