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/bitmapex.hxx>
12 #include <vcl/svapp.hxx>
13 #include <vcl/weld.hxx>
14 #include <tools/link.hxx>
16 
17 #include "ImageViewerDialog.hxx"
18 
19 #include <vector>
20 
21 class GraphicTestEntry final
22 {
23 private:
24  std::unique_ptr<weld::Builder> m_xBuilder;
25  std::unique_ptr<weld::Container> m_xContainer;
26  std::unique_ptr<weld::Label> m_xTestLabel;
27  std::unique_ptr<weld::Button> m_xTestButton;
28 
30 
32 
33 public:
34  DECL_LINK(HandleResultViewRequest, weld::Button&, void);
35  GraphicTestEntry(weld::Container* pParent, weld::Dialog* pDialog, OUString aTestName,
36  OUString aTestStatus, Bitmap aTestBitmap);
37  weld::Widget* get_widget() const { return m_xContainer.get(); }
38 };
39 
41 {
42  std::unique_ptr<weld::TextView> m_xResultLog;
43  std::unique_ptr<weld::Button> m_xDownloadResults;
44  std::unique_ptr<weld::Box> m_xContainerBox;
45 
46  std::vector<std::unique_ptr<GraphicTestEntry>> m_xGraphicTestEntries;
47 
48  OUString m_xZipFileUrl;
50 
51  DECL_LINK(HandleDownloadRequest, weld::Button&, void);
52  DECL_LINK(HandleResultViewRequest, weld::Button&, void);
53 
54 public:
57  virtual short run() override;
58 };
virtual short run() override
weld::Dialog * m_xParentDialog
DECL_LINK(HandleDownloadRequest, weld::Button &, void)
std::unique_ptr< weld::Builder > m_xBuilder
weld::Widget * get_widget() const
DECL_LINK(HandleResultViewRequest, weld::Button &, void)
std::unique_ptr< weld::TextView > m_xResultLog
std::unique_ptr< weld::Container > m_xContainer
std::unique_ptr< weld::Label > m_xTestLabel
std::unique_ptr< weld::Button > m_xTestButton
GraphicsTestsDialog(weld::Container *pParent)
std::unique_ptr< weld::Button > m_xDownloadResults
std::unique_ptr< weld::Box > m_xContainerBox
GraphicTestEntry(weld::Container *pParent, weld::Dialog *pDialog, OUString aTestName, OUString aTestStatus, Bitmap aTestBitmap)
std::vector< std::unique_ptr< GraphicTestEntry > > m_xGraphicTestEntries