diff options
author | Neeraj Kumar | 2010-07-30 13:54:25 +0000 |
---|---|---|
committer | Neeraj Kumar | 2010-07-30 13:54:25 +0000 |
commit | a6e84128c975a220f4c2800a1d937c37e34b6cec (patch) | |
tree | 8475f9057fc2f5ad3b25cff819b1eb812b0b118d /engines/testbed/config.h | |
parent | 4814db3a6a99f0a8920968e736494571b25d225b (diff) | |
download | scummvm-rg350-a6e84128c975a220f4c2800a1d937c37e34b6cec.tar.gz scummvm-rg350-a6e84128c975a220f4c2800a1d937c37e34b6cec.tar.bz2 scummvm-rg350-a6e84128c975a220f4c2800a1d937c37e34b6cec.zip |
TESTBED: generalized the GUI, added code for the end text gui message and option to rerun tests
svn-id: r51507
Diffstat (limited to 'engines/testbed/config.h')
-rw-r--r-- | engines/testbed/config.h | 14 |
1 files changed, 14 insertions, 0 deletions
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<GUI::ButtonWidget *> _buttonArray; + uint _xOffset; + uint _yOffset; + +}; + } // End of namespace Testbed #endif // TESTBED_CONFIG_H |