From a6e84128c975a220f4c2800a1d937c37e34b6cec Mon Sep 17 00:00:00 2001 From: Neeraj Kumar Date: Fri, 30 Jul 2010 13:54:25 +0000 Subject: TESTBED: generalized the GUI, added code for the end text gui message and option to rerun tests svn-id: r51507 --- engines/testbed/config.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'engines/testbed/config.h') diff --git a/engines/testbed/config.h b/engines/testbed/config.h index bbab1b9405..224954d44e 100644 --- a/engines/testbed/config.h +++ b/engines/testbed/config.h @@ -114,6 +114,20 @@ private: TestbedConfigManager *_testbedConfMan; }; +class TestbedInteractionDialog : public GUI::Dialog { +public: + TestbedInteractionDialog(uint x, uint y, uint w, uint h) : GUI::Dialog(x, y, w, h) {} + ~TestbedInteractionDialog() {} +protected: + virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data); + void addButton(uint w, uint h, const Common::String name, uint32 cmd, uint xOffset = 0, uint yPadding = 8); + void addText(uint w, uint h, const Common::String text, Graphics::TextAlign textAlign, uint xOffset, uint yPadding); + Common::Array _buttonArray; + uint _xOffset; + uint _yOffset; + +}; + } // End of namespace Testbed #endif // TESTBED_CONFIG_H -- cgit v1.2.3