VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.h@ 102493

Last change on this file since 102493 was 100070, checked in by vboxsync, 15 months ago

FE/Qt: bugref:10450: Cleanup and rework for VBoxAboutDlg stuff; It is necessary to work properly on Qt6.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
RevLine 
[55401]1/* $Id: VBoxAboutDlg.h 100070 2023-06-05 14:41:33Z 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: */
[12590]39#include "QIWithRetranslateUI.h"
[71630]40#include "UILibraryDefs.h"
[12590]41
[57551]42/* Forward declarations: */
[57511]43class QLabel;
[57640]44class QVBoxLayout;
[12590]45
[100070]46/** QDialog extension
[57551]47 * used to show the About-VirtualBox dialog. */
[100070]48class SHARED_LIBRARY_STUFF VBoxAboutDlg : public QIWithRetranslateUI2<QDialog>
[12590]49{
50 Q_OBJECT;
51
52public:
53
[71553]54 /** Constructs dialog passing @a pParent to the base-class.
55 * @param strVersion Brings the version number of VirtualBox. */
[57608]56 VBoxAboutDlg(QWidget *pParent, const QString &strVersion);
[34781]57
[12590]58protected:
59
[100070]60 /** Handles show @a pEvent. */
61 virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE;
[57551]62
[71553]63 /** Handles paint @a pEvent. */
[93990]64 virtual void paintEvent(QPaintEvent *pEvent) RT_OVERRIDE;
[34781]65
[57551]66 /** Handles translation event. */
[93990]67 virtual void retranslateUi() RT_OVERRIDE;
[12590]68
69private:
[34781]70
[71553]71 /** Prepares all. */
[57551]72 void prepare();
[57608]73 /** Prepares main-layout. */
[57551]74 void prepareMainLayout();
[57640]75 /** Prepares label. */
76 void prepareLabel();
77 /** Prepares close-button. */
78 void prepareCloseButton();
79
[68454]80 /** Holds the pseudo-parent widget reference. */
[100070]81 QWidget *m_pPseudoParent;
[68441]82
[100070]83 /** Holds whether window is polished. */
84 bool m_fPolished;
85
[57551]86 /** Holds the About-VirtualBox text. */
[71553]87 QString m_strAboutText;
[57551]88 /** Holds the VirtualBox version number. */
[71553]89 QString m_strVersion;
[57551]90
91 /** Holds the About-VirtualBox image. */
[71553]92 QPixmap m_pixmap;
[57551]93 /** Holds the About-VirtualBox dialog size. */
[71553]94 QSize m_size;
[57551]95
[71553]96 /** Holds About-VirtualBox main-layout instance. */
[57640]97 QVBoxLayout *m_pMainLayout;
[71553]98 /** Holds About-VirtualBox text-label instance. */
99 QLabel *m_pLabel;
[12590]100};
101
[76581]102#endif /* !FEQT_INCLUDED_SRC_VBoxAboutDlg_h */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle
ContactPrivacy/Do Not Sell My InfoTerms of Use