diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-19 03:36:18 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:02:20 +0200 |
commit | 99a934520777a5d3f6323e8f52f8dc388239cfe7 (patch) | |
tree | 6e2b4f243e1eff38d1d98a8f78ca64bd2d9e1c4c /include | |
parent | cca08f80b37e05564cffd2f51afd54322848112c (diff) |
uitest: add wrapper for radio button
Change-Id: I8b4b35ac313796364502f8e9e2e836dc21f48a42
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/button.hxx | 2 | ||||
-rw-r--r-- | include/vcl/uitest/uiobject.hxx | 21 |
2 files changed, 23 insertions, 0 deletions
diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx index e9c8df926cd3..0fb7c98e72c6 100644 --- a/include/vcl/button.hxx +++ b/include/vcl/button.hxx @@ -388,6 +388,8 @@ public: */ void group(RadioButton &rOther); virtual void ShowFocus(const Rectangle& rRect) override; + + virtual FactoryFunction GetUITestFactory() const override; }; class VCL_DLLPUBLIC CheckBox : public Button diff --git a/include/vcl/uitest/uiobject.hxx b/include/vcl/uitest/uiobject.hxx index f00d80fc4d0a..0baddeb178af 100644 --- a/include/vcl/uitest/uiobject.hxx +++ b/include/vcl/uitest/uiobject.hxx @@ -199,6 +199,27 @@ protected: virtual OUString get_name() const override; }; +class UITEST_DLLPUBLIC RadioButtonUIObject : public WindowUIObject +{ +private: + VclPtr<RadioButton> mxRadioButton; + +public: + RadioButtonUIObject(VclPtr<RadioButton> xCheckbox); + virtual ~RadioButtonUIObject(); + + virtual void execute(const OUString& rAction, + const StringMap& rParameters) override; + + virtual StringMap get_state() override; + + static std::unique_ptr<UIObject> create(vcl::Window* pWindow); + +protected: + + virtual OUString get_name() const override; +}; + class UITEST_DLLPUBLIC TabPageUIObject : public WindowUIObject { private: |