diff options
author | Neeraj Kumar | 2010-07-15 18:51:56 +0000 |
---|---|---|
committer | Neeraj Kumar | 2010-07-15 18:51:56 +0000 |
commit | 407d65068a79693f42836c36d6394ef310b5238f (patch) | |
tree | a924876a16ef986299f48bd35566f629a31b926a /engines/testbed/config.h | |
parent | 12ebe8065e6020415cb3a6df216a4504014371db (diff) | |
download | scummvm-rg350-407d65068a79693f42836c36d6394ef310b5238f.tar.gz scummvm-rg350-407d65068a79693f42836c36d6394ef310b5238f.tar.bz2 scummvm-rg350-407d65068a79693f42836c36d6394ef310b5238f.zip |
separated testsuite configuration to another class
svn-id: r50918
Diffstat (limited to 'engines/testbed/config.h')
-rw-r--r-- | engines/testbed/config.h | 62 |
1 files changed, 62 insertions, 0 deletions
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<Testsuite *> &tList) : _testsuiteList(tList) {} + ~TestbedConfigManager() {} + void selectTestsuites(); +private: + Common::Array<Testsuite *> &_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<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 + +#endif // TESTBED_CONFIG_H |