[55401] | 1 | /* $Id: VBoxAboutDlg.h 104358 2024-04-18 05:33:40Z vboxsync $ */
|
---|
[12590] | 2 | /** @file
|
---|
[52722] | 3 | * VBox Qt GUI - VBoxAboutDlg class declaration.
|
---|
[12590] | 4 | */
|
---|
| 5 |
|
---|
| 6 | /*
|
---|
[98103] | 7 | * Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
[12590] | 8 | *
|
---|
[96407] | 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
|
---|
[12590] | 26 | */
|
---|
| 27 |
|
---|
[76581] | 28 | #ifndef FEQT_INCLUDED_SRC_VBoxAboutDlg_h
|
---|
| 29 | #define FEQT_INCLUDED_SRC_VBoxAboutDlg_h
|
---|
[76532] | 30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
| 31 | # pragma once
|
---|
| 32 | #endif
|
---|
[12590] | 33 |
|
---|
[57551] | 34 | /* Qt includes: */
|
---|
[100070] | 35 | #include <QDialog>
|
---|
[34781] | 36 | #include <QPixmap>
|
---|
| 37 |
|
---|
[57551] | 38 | /* GUI includes: */
|
---|
[71630] | 39 | #include "UILibraryDefs.h"
|
---|
[12590] | 40 |
|
---|
[57551] | 41 | /* Forward declarations: */
|
---|
[57511] | 42 | class QLabel;
|
---|
[57640] | 43 | class QVBoxLayout;
|
---|
[12590] | 44 |
|
---|
[100070] | 45 | /** QDialog extension
|
---|
[57551] | 46 | * used to show the About-VirtualBox dialog. */
|
---|
[104358] | 47 | class SHARED_LIBRARY_STUFF VBoxAboutDlg : public QDialog
|
---|
[12590] | 48 | {
|
---|
| 49 | Q_OBJECT;
|
---|
| 50 |
|
---|
| 51 | public:
|
---|
| 52 |
|
---|
[71553] | 53 | /** Constructs dialog passing @a pParent to the base-class.
|
---|
| 54 | * @param strVersion Brings the version number of VirtualBox. */
|
---|
[57608] | 55 | VBoxAboutDlg(QWidget *pParent, const QString &strVersion);
|
---|
[34781] | 56 |
|
---|
[12590] | 57 | protected:
|
---|
| 58 |
|
---|
[100070] | 59 | /** Handles show @a pEvent. */
|
---|
| 60 | virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE;
|
---|
[57551] | 61 |
|
---|
[71553] | 62 | /** Handles paint @a pEvent. */
|
---|
[93990] | 63 | virtual void paintEvent(QPaintEvent *pEvent) RT_OVERRIDE;
|
---|
[34781] | 64 |
|
---|
[104358] | 65 | private slots:
|
---|
| 66 |
|
---|
[57551] | 67 | /** Handles translation event. */
|
---|
[104358] | 68 | void sltRetranslateUI();
|
---|
[12590] | 69 |
|
---|
| 70 | private:
|
---|
[34781] | 71 |
|
---|
[71553] | 72 | /** Prepares all. */
|
---|
[57551] | 73 | void prepare();
|
---|
[57608] | 74 | /** Prepares main-layout. */
|
---|
[57551] | 75 | void prepareMainLayout();
|
---|
[57640] | 76 | /** Prepares label. */
|
---|
| 77 | void prepareLabel();
|
---|
| 78 | /** Prepares close-button. */
|
---|
| 79 | void prepareCloseButton();
|
---|
| 80 |
|
---|
[68454] | 81 | /** Holds the pseudo-parent widget reference. */
|
---|
[100070] | 82 | QWidget *m_pPseudoParent;
|
---|
[68441] | 83 |
|
---|
[100070] | 84 | /** Holds whether window is polished. */
|
---|
| 85 | bool m_fPolished;
|
---|
| 86 |
|
---|
[57551] | 87 | /** Holds the About-VirtualBox text. */
|
---|
[71553] | 88 | QString m_strAboutText;
|
---|
[57551] | 89 | /** Holds the VirtualBox version number. */
|
---|
[71553] | 90 | QString m_strVersion;
|
---|
[57551] | 91 |
|
---|
| 92 | /** Holds the About-VirtualBox image. */
|
---|
[71553] | 93 | QPixmap m_pixmap;
|
---|
[57551] | 94 | /** Holds the About-VirtualBox dialog size. */
|
---|
[71553] | 95 | QSize m_size;
|
---|
[57551] | 96 |
|
---|
[71553] | 97 | /** Holds About-VirtualBox main-layout instance. */
|
---|
[57640] | 98 | QVBoxLayout *m_pMainLayout;
|
---|
[71553] | 99 | /** Holds About-VirtualBox text-label instance. */
|
---|
| 100 | QLabel *m_pLabel;
|
---|
[12590] | 101 | };
|
---|
| 102 |
|
---|
[76581] | 103 | #endif /* !FEQT_INCLUDED_SRC_VBoxAboutDlg_h */
|
---|