From 07a9a03587ff0df916ac77b9518fdae97ecc4c64 Mon Sep 17 00:00:00 2001 From: Neeraj Kumar Date: Sun, 18 Jul 2010 07:53:05 +0000 Subject: a few more modifications in the testsuite selection widget svn-id: r50983 --- engines/testbed/config.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'engines/testbed/config.h') diff --git a/engines/testbed/config.h b/engines/testbed/config.h index 656f2f8b89..b981d25070 100644 --- a/engines/testbed/config.h +++ b/engines/testbed/config.h @@ -39,7 +39,9 @@ namespace Testbed { enum { - kSelectionToggle = 99 // Some random Number + kSelectionToggle = 16799, // Some random Number (A better way to do this?) + kTestbedQuitCmd, + kTestbedSelectAll }; class TestbedConfigManager { @@ -76,6 +78,19 @@ public: } } + void setColorAll(GUI::ThemeEngine::FontColor color) { + for (uint i = 0; i < _listColors.size(); i++) { + _listColors[i] = color; + } + draw();; + } + + void setColor(uint32 indx, GUI::ThemeEngine::FontColor color) { + assert(indx < _listColors.size()); + _listColors[indx] = color; + draw(); + } + }; class TestbedOptionsDialog : public GUI::Dialog { -- cgit v1.2.3