VirtualBox

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

Last change on this file since 104251 was 104251, checked in by vboxsync, 8 weeks ago

FE/Qt. bugref:10622. Using new UITranslationEventListener in the manager UI classes.

  • 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 104251 2024-04-09 12:36:47Z 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 "UILibraryDefs.h"
40
41/* Forward declarations: */
42class QAbstractButton;
43class QLabel;
44class QIRichTextLabel;
45
46/** QWidget subclass holding Welcome information about VirtualBox. */
47class UIWelcomePane : public 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
61private slots:
62
63 /** Handles activated @a urlLink. */
64 void sltHandleLinkActivated(const QUrl &urlLink);
65
66 /** Handles @a pButton click. */
67 void sltHandleButtonClicked(QAbstractButton *pButton);
68
69 /** Handles translation event. */
70 void sltRetranslateUI();
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.

© 2023 Oracle
ContactPrivacy policyTerms of Use