From 407d65068a79693f42836c36d6394ef310b5238f Mon Sep 17 00:00:00 2001 From: Neeraj Kumar Date: Thu, 15 Jul 2010 18:51:56 +0000 Subject: separated testsuite configuration to another class svn-id: r50918 --- engines/testbed/config.h | 62 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 engines/testbed/config.h (limited to 'engines/testbed/config.h') diff --git a/engines/testbed/config.h b/engines/testbed/config.h new file mode 100644 index 0000000000..953524d618 --- /dev/null +++ b/engines/testbed/config.h @@ -0,0 +1,62 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * $URL$ + * $Id$ + */ + +#ifndef TESTBED_CONFIG_H +#define TESTBED_CONFIG_H + +#include "testbed/testsuite.h" +#include "common/array.h" +#include "gui/options.h" + +namespace Testbed { + +class TestbedConfigManager { +public: + TestbedConfigManager(Common::Array &tList) : _testsuiteList(tList) {} + ~TestbedConfigManager() {} + void selectTestsuites(); +private: + Common::Array &_testsuiteList; + void enableTestsuite(const Common::String &name, bool enable); + void parseConfigFile() {} +}; + +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 + +#endif // TESTBED_CONFIG_H -- cgit v1.2.3