VirtualBox

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

Last change on this file since 103977 was 103094, checked in by vboxsync, 11 months ago

FE/Qt: UIWelcomePane: bugref:10513: Extending UIWelcomePane with some info regarding Experience mode; Adding one-time choice as well.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1/* $Id: UIWelcomePane.h 103094 2024-01-26 17:09:05Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIWelcomePane class declaration.
4 */
5
6/*
7 * Copyright (C) 2010-2023 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_manager_UIWelcomePane_h
29#define FEQT_INCLUDED_SRC_manager_UIWelcomePane_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* Qt includes: */
35#include <QIcon>
36#include <QWidget>
37
38/* GUI includes: */
39#include "QIWithRetranslateUI.h"
40
41/* Forward declarations: */
42class QAbstractButton;
43class QLabel;
44class QIRichTextLabel;
45
46/** QWidget subclass holding Welcome information about VirtualBox. */
47class UIWelcomePane : public QIWithRetranslateUI<QWidget>
48{
49 Q_OBJECT;
50
51public:
52
53 /** Constructs Welcome pane passing @a pParent to the base-class. */
54 UIWelcomePane(QWidget *pParent = 0);
55
56protected:
57
58 /** Handles any Qt @a pEvent. */
59 virtual bool event(QEvent *pEvent) RT_OVERRIDE;
60
61 /** Handles translation event. */
62 virtual void retranslateUi() RT_OVERRIDE;
63
64private slots:
65
66 /** Handles activated @a urlLink. */
67 void sltHandleLinkActivated(const QUrl &urlLink);
68
69 /** Handles @a pButton click. */
70 void sltHandleButtonClicked(QAbstractButton *pButton);
71
72private:
73
74 /** Prepares all. */
75 void prepare();
76
77 /** Updates text labels. */
78 void updateTextLabels();
79 /** Updates pixmap. */
80 void updatePixmap();
81
82 /** Holds the icon instance. */
83 QIcon m_icon;
84
85 /** Holds the greetings label instance. */
86 QIRichTextLabel *m_pLabelGreetings;
87 /** Holds the mode label instance. */
88 QIRichTextLabel *m_pLabelMode;
89 /** Holds a list of experience mode button instances. */
90 QMap<bool, QAbstractButton*> m_buttons;
91 /** Holds the icon label instance. */
92 QLabel *m_pLabelIcon;
93};
94
95#endif /* !FEQT_INCLUDED_SRC_manager_UIWelcomePane_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