VirtualBox

Changeset 108086 in vbox for trunk


Ignore:
Timestamp:
Feb 5, 2025 6:07:36 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167380
Message:

FE/Qt: bugref:10814: VBox Manager / Tools pane: Rebrand Welcome pane to Home pane.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r107943 r108086  
    599599        src/globals/UIStarter.h \
    600600        src/manager/UIErrorPane.h \
     601        src/manager/UIHomePane.h \
    601602        src/manager/UIProgressTaskReadCloudMachineList.h \
    602603        src/manager/UITaskCloudGetSettingsForm.h \
     
    607608        src/manager/UIVirtualMachineItemCloud.h \
    608609        src/manager/UIVirtualMachineItemLocal.h \
    609         src/manager/UIWelcomePane.h \
    610610        src/manager/chooser/UIChooser.h \
    611611        src/manager/chooser/UIChooserAbstractModel.h \
     
    11311131        src/manager/UICloudEntityKey.cpp \
    11321132        src/manager/UIErrorPane.cpp \
     1133        src/manager/UIHomePane.cpp \
    11331134        src/manager/UIProgressTaskReadCloudMachineList.cpp \
    11341135        src/manager/UITaskCloudGetSettingsForm.cpp \
     
    11391140        src/manager/UIVirtualMachineItemCloud.cpp \
    11401141        src/manager/UIVirtualMachineItemLocal.cpp \
    1141         src/manager/UIWelcomePane.cpp \
    11421142        src/manager/chooser/UIChooser.cpp \
    11431143        src/manager/chooser/UIChooserAbstractModel.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIHomePane.cpp

    r108085 r108086  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIWelcomePane class implementation.
     3 * VBox Qt GUI - UIHomePane class implementation.
    44 */
    55
     
    4242#include "UIIconPool.h"
    4343#include "UITranslationEventListener.h"
    44 #include "UIWelcomePane.h"
     44#include "UIHomePane.h"
    4545
    4646/* Other VBox includes: */
     
    4949
    5050/*********************************************************************************************************************************
    51 *   Class UIWelcomePane implementation.                                                                                          *
     51*   Class UIHomePane implementation.                                                                                          *
    5252*********************************************************************************************************************************/
    5353
    54 UIWelcomePane::UIWelcomePane(QWidget *pParent /* = 0 */)
     54UIHomePane::UIHomePane(QWidget *pParent /* = 0 */)
    5555    : QWidget(pParent)
    5656    , m_pLabelGreetings(0)
     
    6161}
    6262
    63 bool UIWelcomePane::event(QEvent *pEvent)
     63bool UIHomePane::event(QEvent *pEvent)
    6464{
    6565    /* Handle known event types: */
     
    8282}
    8383
    84 void UIWelcomePane::sltRetranslateUI()
     84void UIHomePane::sltRetranslateUI()
    8585{
    8686    /* Translate greetings text: */
     
    114114}
    115115
    116 void UIWelcomePane::sltHandleLinkActivated(const QUrl &urlLink)
     116void UIHomePane::sltHandleLinkActivated(const QUrl &urlLink)
    117117{
    118118    uiCommon().openURL(urlLink.toString());
    119119}
    120120
    121 void UIWelcomePane::sltHandleButtonClicked(QAbstractButton *pButton)
     121void UIHomePane::sltHandleButtonClicked(QAbstractButton *pButton)
    122122{
    123123    /* Make sure one of buttons was really pressed: */
     
    137137}
    138138
    139 void UIWelcomePane::prepare()
     139void UIHomePane::prepare()
    140140{
    141141    /* Prepare default welcome icon: */
     
    164164        {
    165165            m_pLabelGreetings->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
    166             connect(m_pLabelGreetings, &QIRichTextLabel::sigLinkClicked, this, &UIWelcomePane::sltHandleLinkActivated);
     166            connect(m_pLabelGreetings, &QIRichTextLabel::sigLinkClicked, this, &UIHomePane::sltHandleLinkActivated);
    167167            pMainLayout->addWidget(m_pLabelGreetings, 0, 0);
    168168        }
     
    216216
    217217                    connect(pButtonGroup, &QButtonGroup::buttonClicked,
    218                             this, &UIWelcomePane::sltHandleButtonClicked);
     218                            this, &UIHomePane::sltHandleButtonClicked);
    219219                }
    220220
     
    231231    sltRetranslateUI();
    232232    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
    233             this, &UIWelcomePane::sltRetranslateUI);
     233            this, &UIHomePane::sltRetranslateUI);
    234234
    235235    /* Update stuff: */
     
    238238}
    239239
    240 void UIWelcomePane::updateTextLabels()
     240void UIHomePane::updateTextLabels()
    241241{
    242242    /* For all the text-labels: */
     
    254254}
    255255
    256 void UIWelcomePane::updatePixmap()
     256void UIHomePane::updatePixmap()
    257257{
    258258    /* Assign corresponding icon: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIHomePane.h

    r108085 r108086  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIWelcomePane class declaration.
     3 * VBox Qt GUI - UIHomePane class declaration.
    44 */
    55
     
    2626 */
    2727
    28 #ifndef FEQT_INCLUDED_SRC_manager_UIWelcomePane_h
    29 #define FEQT_INCLUDED_SRC_manager_UIWelcomePane_h
     28#ifndef FEQT_INCLUDED_SRC_manager_UIHomePane_h
     29#define FEQT_INCLUDED_SRC_manager_UIHomePane_h
    3030#ifndef RT_WITHOUT_PRAGMA_ONCE
    3131# pragma once
     
    4545class QIRichTextLabel;
    4646
    47 /** QWidget subclass holding Welcome information about VirtualBox. */
    48 class UIWelcomePane : public QWidget
     47/** QWidget subclass holding Home information about VirtualBox. */
     48class UIHomePane : public QWidget
    4949{
    5050    Q_OBJECT;
     
    5252public:
    5353
    54     /** Constructs Welcome pane passing @a pParent to the base-class. */
    55     UIWelcomePane(QWidget *pParent = 0);
     54    /** Constructs Home pane passing @a pParent to the base-class. */
     55    UIHomePane(QWidget *pParent = 0);
    5656
    5757protected:
     
    9494};
    9595
    96 #endif /* !FEQT_INCLUDED_SRC_manager_UIWelcomePane_h */
     96#endif /* !FEQT_INCLUDED_SRC_manager_UIHomePane_h */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneGlobal.cpp

    r108083 r108086  
    4242#include "UIToolPaneGlobal.h"
    4343#include "UIVMActivityOverviewWidget.h"
    44 #include "UIWelcomePane.h"
     44#include "UIHomePane.h"
    4545#ifdef VBOX_GUI_WITH_ADVANCED_WIDGETS
    4646# include "UIMachineManagerWidget.h"
     
    5555    , m_pActionPool(pActionPool)
    5656    , m_pLayout(0)
    57     , m_pPaneWelcome(0)
     57    , m_pPaneHome(0)
    5858    , m_pPaneExtensions(0)
    5959    , m_pPaneMedia(0)
     
    123123            case UIToolType_Home:
    124124            {
    125                 /* Create Welcome pane: */
    126                 m_pPaneWelcome = new UIWelcomePane;
    127                 AssertPtrReturnVoid(m_pPaneWelcome);
    128                 {
    129                     /* Configure pane: */
    130                     m_pPaneWelcome->setProperty("ToolType", QVariant::fromValue(UIToolType_Home));
    131 
    132                     /* Add into layout: */
    133                     m_pLayout->addWidget(m_pPaneWelcome);
    134                     m_pLayout->setCurrentWidget(m_pPaneWelcome);
     125                /* Create Home pane: */
     126                m_pPaneHome = new UIHomePane;
     127                AssertPtrReturnVoid(m_pPaneHome);
     128                {
     129                    /* Configure pane: */
     130                    m_pPaneHome->setProperty("ToolType", QVariant::fromValue(UIToolType_Home));
     131
     132                    /* Add into layout: */
     133                    m_pLayout->addWidget(m_pPaneHome);
     134                    m_pLayout->setCurrentWidget(m_pPaneHome);
    135135                }
    136136                break;
     
    283283        switch (enmType)
    284284        {
    285             case UIToolType_Home:       m_pPaneWelcome = 0; break;
     285            case UIToolType_Home:       m_pPaneHome = 0; break;
    286286            case UIToolType_Extensions: m_pPaneExtensions = 0; break;
    287287            case UIToolType_Media:      m_pPaneMedia = 0; break;
     
    310310    {
    311311        case UIToolType_Home:
    312             pCurrentToolWidget = m_pPaneWelcome;
     312            pCurrentToolWidget = m_pPaneHome;
    313313            break;
    314314        case UIToolType_Extensions:
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneGlobal.h

    r107340 r108086  
    4949class UIVMActivityOverviewWidget;
    5050class UIVirtualMachineItemCloud;
    51 class UIWelcomePane;
     51class UIHomePane;
    5252#ifdef VBOX_GUI_WITH_ADVANCED_WIDGETS
    5353class UIMachineManagerWidget;
     
    121121    /** Holds the stacked-layout instance. */
    122122    QStackedLayout               *m_pLayout;
    123     /** Holds the Welcome pane instance. */
    124     UIWelcomePane                *m_pPaneWelcome;
     123    /** Holds the Home pane instance. */
     124    UIHomePane                   *m_pPaneHome;
    125125    /** Holds the Extension Pack Manager instance. */
    126126    UIExtensionPackManagerWidget *m_pPaneExtensions;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette