diff options
author | homeboy445 <akshitsan13@gmail.com> | 2021-06-17 17:42:41 +0530 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-06-29 06:14:59 +0200 |
commit | df3ed584b025b8a87a8a3042a04ac8c12ebe4f26 (patch) | |
tree | 14279a51292a90848cbe780393a32ffd639c7b86 /include | |
parent | 7c95c16deba975b0b282ccea1fbfcfadd7aa28b3 (diff) |
Added a UI dialog box for running the VCL backend tests
The UI dialog box will allow the user to run the VCL graphics tests
and will allow them to view the results as well.
Change-Id: Ice289444ff425496a3e400a4c2bc06c307168c62
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117384
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/sfxdlg.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/sfxsids.hrc | 1 | ||||
-rw-r--r-- | include/vcl/test/GraphicsRenderTests.hxx | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/include/sfx2/sfxdlg.hxx b/include/sfx2/sfxdlg.hxx index d133e42f329c..1c4b25f335fd 100644 --- a/include/sfx2/sfxdlg.hxx +++ b/include/sfx2/sfxdlg.hxx @@ -146,6 +146,8 @@ public: virtual VclPtr<VclAbstractDialog> CreateAboutDialog(weld::Window* _pParent) = 0; + virtual VclPtr<VclAbstractDialog> CreateGraphicTestsDialog(weld::Window* pParent) = 0; + virtual VclPtr<VclAbstractDialog> CreateTipOfTheDayDialog(weld::Window* _pParent) = 0; virtual VclPtr<VclAbstractDialog> CreateToolbarmodeDialog(weld::Window* _pParent) = 0; diff --git a/include/sfx2/sfxsids.hrc b/include/sfx2/sfxsids.hrc index 151503a98545..35d9ab895856 100644 --- a/include/sfx2/sfxsids.hrc +++ b/include/sfx2/sfxsids.hrc @@ -63,6 +63,7 @@ class SvxSearchItem; #define SID_PRINTER_NAME (SID_SFX_START + 322) #define SID_PRINTER_CHANGESTODOC (SID_SFX_START + 324) #define SID_PRINTPREVIEW (SID_SFX_START + 325) +#define SID_GRAPHICTEST_DIALOG (SID_SFX_START + 326) #define SID_MAIL_SUBJECT (SID_SFX_START + 328) #define SID_MAIL_SENDDOC (SID_SFX_START + 331) diff --git a/include/vcl/test/GraphicsRenderTests.hxx b/include/vcl/test/GraphicsRenderTests.hxx index 9ff5b7c33d90..bfe536b7aa53 100644 --- a/include/vcl/test/GraphicsRenderTests.hxx +++ b/include/vcl/test/GraphicsRenderTests.hxx @@ -19,6 +19,7 @@ class VCL_PLUGIN_PUBLIC GraphicsRenderTests { +public: //For storing the results correspondingly to the tests. std::vector<OString> m_aPassed; std::vector<OString> m_aQuirky; @@ -28,6 +29,7 @@ class VCL_PLUGIN_PUBLIC GraphicsRenderTests //For storing the current graphics Backend in use. OUString m_aCurGraphicsBackend; +private: void testDrawRectWithRectangle(); void testDrawRectWithPixel(); void testDrawRectWithLine(); |