1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 #include <vcl/bitmap.hxx>
12 #include <vcl/weld.hxx>
13 #include <tools/link.hxx>
17 class GraphicTestEntry final
20 std::unique_ptr
<weld::Builder
> m_xBuilder
;
21 std::unique_ptr
<weld::Container
> m_xContainer
;
22 std::unique_ptr
<weld::Label
> m_xTestLabel
;
23 std::unique_ptr
<weld::Button
> m_xTestButton
;
25 weld::Dialog
* m_xParentDialog
;
27 Bitmap m_xResultBitmap
;
30 DECL_LINK(HandleResultViewRequest
, weld::Button
&, void);
31 GraphicTestEntry(weld::Container
* pParent
, weld::Dialog
* pDialog
, const OUString
& aTestName
,
32 const OUString
& aTestStatus
, Bitmap aTestBitmap
);
33 weld::Widget
* get_widget() const { return m_xContainer
.get(); }
36 class GraphicsTestsDialog
: public weld::GenericDialogController
38 std::unique_ptr
<weld::TextView
> m_xResultLog
;
39 std::unique_ptr
<weld::Button
> m_xDownloadResults
;
40 std::unique_ptr
<weld::Box
> m_xContainerBox
;
42 std::vector
<std::unique_ptr
<GraphicTestEntry
>> m_xGraphicTestEntries
;
44 OUString m_xZipFileUrl
;
45 OUString m_xCreateFolderUrl
;
47 DECL_LINK(HandleDownloadRequest
, weld::Button
&, void);
48 DECL_LINK(HandleResultViewRequest
, weld::Button
&, void);
51 GraphicsTestsDialog(weld::Container
* pParent
);
52 ~GraphicsTestsDialog();
53 virtual short run() override
;