VirtualBox

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

Last change on this file since 98103 was 98103, checked in by vboxsync, 21 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.8 KB
RevLine 
[55401]1/* $Id: VBoxAboutDlg.h 98103 2023-01-17 14:15:46Z 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: */
[34781]35#include <QPixmap>
36
[57551]37/* GUI includes: */
38#include "QIDialog.h"
[12590]39#include "QIWithRetranslateUI.h"
[71630]40#include "UILibraryDefs.h"
[12590]41
[57551]42/* Forward declarations: */
[12590]43class QEvent;
[57511]44class QLabel;
[57640]45class QVBoxLayout;
[12590]46
[57551]47/** QIDialog extension
48 * used to show the About-VirtualBox dialog. */
[71630]49class SHARED_LIBRARY_STUFF VBoxAboutDlg : public QIWithRetranslateUI2<QIDialog>
[12590]50{
51 Q_OBJECT;
52
53public:
54
[71553]55 /** Constructs dialog passing @a pParent to the base-class.
56 * @param strVersion Brings the version number of VirtualBox. */
[57608]57 VBoxAboutDlg(QWidget *pParent, const QString &strVersion);
[34781]58
[12590]59protected:
60
[57608]61 /** Handles any Qt @a pEvent. */
[93990]62 virtual bool event(QEvent *pEvent) RT_OVERRIDE;
[57551]63
[71553]64 /** Handles paint @a pEvent. */
[93990]65 virtual void paintEvent(QPaintEvent *pEvent) RT_OVERRIDE;
[34781]66
[57551]67 /** Handles translation event. */
[93990]68 virtual void retranslateUi() RT_OVERRIDE;
[12590]69
70private:
[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. */
[68441]82 QObject *m_pPseudoParent;
83
[57551]84 /** Holds the About-VirtualBox text. */
[71553]85 QString m_strAboutText;
[57551]86 /** Holds the VirtualBox version number. */
[71553]87 QString m_strVersion;
[57551]88
89 /** Holds the About-VirtualBox image. */
[71553]90 QPixmap m_pixmap;
[57551]91 /** Holds the About-VirtualBox dialog size. */
[71553]92 QSize m_size;
[57551]93
[71553]94 /** Holds About-VirtualBox main-layout instance. */
[57640]95 QVBoxLayout *m_pMainLayout;
[71553]96 /** Holds About-VirtualBox text-label instance. */
97 QLabel *m_pLabel;
[96815]98 /** Holds size set flag to make sure dialog size if set only once. */
99 bool m_fFixedSizeSet;
[12590]100};
101
[76581]102#endif /* !FEQT_INCLUDED_SRC_VBoxAboutDlg_h */
[26719]103
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