LibreOffice Module cui (master) 1
GraphicsTestsDialog.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 */
9#pragma once
10
11#include <vcl/bitmap.hxx>
12#include <vcl/weld.hxx>
13#include <tools/link.hxx>
14
15#include <vector>
16
18{
19private:
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;
24
26
28
29public:
30 DECL_LINK(HandleResultViewRequest, weld::Button&, void);
31 GraphicTestEntry(weld::Container* pParent, weld::Dialog* pDialog, OUString aTestName,
32 OUString aTestStatus, Bitmap aTestBitmap);
33 weld::Widget* get_widget() const { return m_xContainer.get(); }
34};
35
37{
38 std::unique_ptr<weld::TextView> m_xResultLog;
39 std::unique_ptr<weld::Button> m_xDownloadResults;
40 std::unique_ptr<weld::Box> m_xContainerBox;
41
42 std::vector<std::unique_ptr<GraphicTestEntry>> m_xGraphicTestEntries;
43
44 OUString m_xZipFileUrl;
46
47 DECL_LINK(HandleDownloadRequest, weld::Button&, void);
48 DECL_LINK(HandleResultViewRequest, weld::Button&, void);
49
50public:
53 virtual short run() override;
54};
std::unique_ptr< weld::Button > m_xTestButton
GraphicTestEntry(weld::Container *pParent, weld::Dialog *pDialog, OUString aTestName, OUString aTestStatus, Bitmap aTestBitmap)
DECL_LINK(HandleResultViewRequest, weld::Button &, void)
std::unique_ptr< weld::Container > m_xContainer
std::unique_ptr< weld::Label > m_xTestLabel
std::unique_ptr< weld::Builder > m_xBuilder
weld::Widget * get_widget() const
weld::Dialog * m_xParentDialog
virtual short run() override
std::vector< std::unique_ptr< GraphicTestEntry > > m_xGraphicTestEntries
DECL_LINK(HandleDownloadRequest, weld::Button &, void)
DECL_LINK(HandleResultViewRequest, weld::Button &, void)
std::unique_ptr< weld::Button > m_xDownloadResults
GraphicsTestsDialog(weld::Container *pParent)
std::unique_ptr< weld::Box > m_xContainerBox
std::unique_ptr< weld::TextView > m_xResultLog