VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/manager/UIWelcomePane.h

Last change on this file was 104267, checked in by vboxsync, 2 months ago

FE/Qt. bugref:10622. Build fix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
RevLine 
[55401]1/* $Id: UIWelcomePane.h 104267 2024-04-10 08:11:16Z vboxsync $ */
[382]2/** @file
[73424]3 * VBox Qt GUI - UIWelcomePane class declaration.
[382]4 */
5
6/*
[98103]7 * Copyright (C) 2010-2023 Oracle and/or its affiliates.
[382]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
[382]26 */
27
[76581]28#ifndef FEQT_INCLUDED_SRC_manager_UIWelcomePane_h
29#define FEQT_INCLUDED_SRC_manager_UIWelcomePane_h
[76532]30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
[382]33
[44318]34/* Qt includes: */
[74561]35#include <QIcon>
[104267]36#include <QMap>
[44318]37#include <QWidget>
38
[74561]39/* GUI includes: */
[104251]40#include "UILibraryDefs.h"
[74561]41
[44318]42/* Forward declarations: */
[103094]43class QAbstractButton;
[74561]44class QLabel;
[103068]45class QIRichTextLabel;
[382]46
[74557]47/** QWidget subclass holding Welcome information about VirtualBox. */
[104251]48class UIWelcomePane : public QWidget
[382]49{
[9729]50 Q_OBJECT;
[382]51
52public:
53
[74557]54 /** Constructs Welcome pane passing @a pParent to the base-class. */
55 UIWelcomePane(QWidget *pParent = 0);
[382]56
[74561]57protected:
[68235]58
[74561]59 /** Handles any Qt @a pEvent. */
[93990]60 virtual bool event(QEvent *pEvent) RT_OVERRIDE;
[74561]61
[95019]62private slots:
63
[103068]64 /** Handles activated @a urlLink. */
65 void sltHandleLinkActivated(const QUrl &urlLink);
[95019]66
[103094]67 /** Handles @a pButton click. */
68 void sltHandleButtonClicked(QAbstractButton *pButton);
69
[104251]70 /** Handles translation event. */
71 void sltRetranslateUI();
72
[44318]73private:
[382]74
[74561]75 /** Prepares all. */
76 void prepare();
77
[103068]78 /** Updates text labels. */
79 void updateTextLabels();
[74561]80 /** Updates pixmap. */
81 void updatePixmap();
82
83 /** Holds the icon instance. */
84 QIcon m_icon;
85
[103061]86 /** Holds the greetings label instance. */
[103094]87 QIRichTextLabel *m_pLabelGreetings;
88 /** Holds the mode label instance. */
89 QIRichTextLabel *m_pLabelMode;
90 /** Holds a list of experience mode button instances. */
91 QMap<bool, QAbstractButton*> m_buttons;
[74561]92 /** Holds the icon label instance. */
[103094]93 QLabel *m_pLabelIcon;
[382]94};
95
[76581]96#endif /* !FEQT_INCLUDED_SRC_manager_UIWelcomePane_h */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use