VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationConfiguration.h

Last change on this file was 106061, checked in by vboxsync, 3 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1/* $Id: UIInformationConfiguration.h 106061 2024-09-16 14:03:52Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIInformationConfiguration class declaration.
4 */
5
6/*
7 * Copyright (C) 2016-2024 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
26 */
27
28#ifndef FEQT_INCLUDED_SRC_runtime_information_UIInformationConfiguration_h
29#define FEQT_INCLUDED_SRC_runtime_information_UIInformationConfiguration_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* Qt includes: */
35#include <QWidget>
36
37/* GUI includes: */
38#include "UITextTable.h"
39
40/* Forward declarations: */
41class QITableWidget;
42class QTextDocument;
43class QVBoxLayout;
44
45class UIInformationConfiguration : public QWidget
46{
47 Q_OBJECT;
48
49public:
50
51 /** Constructs information-tab passing @a pParent to the base-class. */
52 UIInformationConfiguration(QWidget *pParent);
53
54private slots:
55
56 void sltRetranslateUI();
57 void sltMachineDataChanged();
58 void sltHandleTableContextMenuRequest(const QPoint &position);
59 void sltCopyTableToClipboard();
60
61private:
62
63 void createTableItems();
64 void prepareObjects();
65 void insertTitleRow(const QString &strTitle, const QIcon &icon, const QFontMetrics &fontMetrics);
66 void insertInfoRows(const UITextTable &table, const QFontMetrics &fontMetrics, int &iMaxColumn1Length);
67 void insertInfoRow(const QString strText1, const QString &strText2,
68 const QFontMetrics &fontMetrics, int &iMaxColumn1Length);
69 void resetTable();
70 QString removeHtmlFromString(const QString &strOriginal);
71 QString tableData() const;
72
73 QVBoxLayout *m_pMainLayout;
74 QITableWidget *m_pTableWidget;
75 QAction *m_pCopyWholeTableAction;
76
77 const int m_iColumCount;
78 const int m_iRowLeftMargin;
79 const int m_iRowTopMargin;
80 const int m_iRowRightMargin;
81 const int m_iRowBottomMargin;
82
83
84 /** @name Cached translated string.
85 * @{ */
86 QString m_strGeneralTitle;
87 QString m_strSystemTitle;
88 QString m_strDisplayTitle;
89 QString m_strStorageTitle;
90 QString m_strAudioTitle;
91 QString m_strNetworkTitle;
92 QString m_strSerialPortsTitle;
93 QString m_strUSBTitle;
94 QString m_strSharedFoldersTitle;
95 /** @} */
96};
97
98#endif /* !FEQT_INCLUDED_SRC_runtime_information_UIInformationConfiguration_h */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette