VirtualBox

Changeset 87219 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 12, 2021 7:51:48 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9871: Network Manager: Renaming UINetworkDetailsWidget to UIDetailsWidgetHostNetwork.

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

Legend:

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

    r87158 r87219  
    622622        src/medium/UIMediumManager.h \
    623623        src/monitor/resource/UIResourceMonitor.h \
    624         src/networkmanager/UINetworkDetailsWidget.h \
     624        src/networkmanager/UIDetailsWidgetHostNetwork.h \
    625625        src/networkmanager/UINetworkManager.h \
    626626        src/snapshots/UISnapshotDetailsWidget.h \
     
    11031103        src/medium/UIMediumManager.cpp \
    11041104        src/monitor/resource/UIResourceMonitor.cpp \
    1105         src/networkmanager/UINetworkDetailsWidget.cpp \
     1105        src/networkmanager/UIDetailsWidgetHostNetwork.cpp \
    11061106        src/networkmanager/UINetworkManager.cpp \
    11071107        src/networkmanager/UINetworkManagerUtils.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UIDetailsWidgetHostNetwork.cpp

    r87218 r87219  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UINetworkDetailsWidget class implementation.
     3 * VBox Qt GUI - UIDetailsWidgetHostNetwork class implementation.
    44 */
    55
    66/*
    7  * Copyright (C) 2009-2020 Oracle Corporation
     7 * Copyright (C) 2009-2021 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3030#include "QITabWidget.h"
    3131#include "UIIconPool.h"
    32 #include "UINetworkDetailsWidget.h"
     32#include "UIDetailsWidgetHostNetwork.h"
    3333#include "UINetworkManagerUtils.h"
    3434
     
    3838
    3939
    40 UINetworkDetailsWidget::UINetworkDetailsWidget(EmbedTo enmEmbedding, QWidget *pParent /* = 0 */)
     40UIDetailsWidgetHostNetwork::UIDetailsWidgetHostNetwork(EmbedTo enmEmbedding, QWidget *pParent /* = 0 */)
    4141    : QIWithRetranslateUI<QWidget>(pParent)
    4242    , m_enmEmbedding(enmEmbedding)
     
    6060}
    6161
    62 void UINetworkDetailsWidget::setData(const UIDataHostNetwork &data)
     62void UIDetailsWidgetHostNetwork::setData(const UIDataHostNetwork &data)
    6363{
    6464    /* Cache old/new data: */
     
    7272}
    7373
    74 void UINetworkDetailsWidget::retranslateUi()
     74void UIDetailsWidgetHostNetwork::retranslateUi()
    7575{
    7676    /* Translate tab-widget: */
     
    132132}
    133133
    134 void UINetworkDetailsWidget::sltToggledButtonAutomatic(bool fChecked)
     134void UIDetailsWidgetHostNetwork::sltToggledButtonAutomatic(bool fChecked)
    135135{
    136136    m_newData.m_interface.m_fDHCPEnabled = fChecked;
     
    140140}
    141141
    142 void UINetworkDetailsWidget::sltToggledButtonManual(bool fChecked)
     142void UIDetailsWidgetHostNetwork::sltToggledButtonManual(bool fChecked)
    143143{
    144144    m_newData.m_interface.m_fDHCPEnabled = !fChecked;
     
    148148}
    149149
    150 void UINetworkDetailsWidget::sltTextChangedIPv4(const QString &strText)
     150void UIDetailsWidgetHostNetwork::sltTextChangedIPv4(const QString &strText)
    151151{
    152152    m_newData.m_interface.m_strAddress = strText;
     
    155155}
    156156
    157 void UINetworkDetailsWidget::sltTextChangedNMv4(const QString &strText)
     157void UIDetailsWidgetHostNetwork::sltTextChangedNMv4(const QString &strText)
    158158{
    159159    m_newData.m_interface.m_strMask = strText;
     
    162162}
    163163
    164 void UINetworkDetailsWidget::sltTextChangedIPv6(const QString &strText)
     164void UIDetailsWidgetHostNetwork::sltTextChangedIPv6(const QString &strText)
    165165{
    166166    m_newData.m_interface.m_strAddress6 = strText;
     
    169169}
    170170
    171 void UINetworkDetailsWidget::sltTextChangedNMv6(const QString &strText)
     171void UIDetailsWidgetHostNetwork::sltTextChangedNMv6(const QString &strText)
    172172{
    173173    m_newData.m_interface.m_strPrefixLength6 = strText;
     
    176176}
    177177
    178 void UINetworkDetailsWidget::sltStatusChangedServer(int iChecked)
     178void UIDetailsWidgetHostNetwork::sltStatusChangedServer(int iChecked)
    179179{
    180180    m_newData.m_dhcpserver.m_fEnabled = (bool)iChecked;
     
    184184}
    185185
    186 void UINetworkDetailsWidget::sltTextChangedAddress(const QString &strText)
     186void UIDetailsWidgetHostNetwork::sltTextChangedAddress(const QString &strText)
    187187{
    188188    m_newData.m_dhcpserver.m_strAddress = strText;
     
    191191}
    192192
    193 void UINetworkDetailsWidget::sltTextChangedMask(const QString &strText)
     193void UIDetailsWidgetHostNetwork::sltTextChangedMask(const QString &strText)
    194194{
    195195    m_newData.m_dhcpserver.m_strMask = strText;
     
    198198}
    199199
    200 void UINetworkDetailsWidget::sltTextChangedLowerAddress(const QString &strText)
     200void UIDetailsWidgetHostNetwork::sltTextChangedLowerAddress(const QString &strText)
    201201{
    202202    m_newData.m_dhcpserver.m_strLowerAddress = strText;
     
    205205}
    206206
    207 void UINetworkDetailsWidget::sltTextChangedUpperAddress(const QString &strText)
     207void UIDetailsWidgetHostNetwork::sltTextChangedUpperAddress(const QString &strText)
    208208{
    209209    m_newData.m_dhcpserver.m_strUpperAddress = strText;
     
    212212}
    213213
    214 void UINetworkDetailsWidget::sltHandleButtonBoxClick(QAbstractButton *pButton)
     214void UIDetailsWidgetHostNetwork::sltHandleButtonBoxClick(QAbstractButton *pButton)
    215215{
    216216    /* Make sure button-box exists: */
     
    234234}
    235235
    236 void UINetworkDetailsWidget::prepare()
     236void UIDetailsWidgetHostNetwork::prepare()
    237237{
    238238    /* Prepare this: */
     
    246246}
    247247
    248 void UINetworkDetailsWidget::prepareThis()
     248void UIDetailsWidgetHostNetwork::prepareThis()
    249249{
    250250    /* Create layout: */
     
    260260}
    261261
    262 void UINetworkDetailsWidget::prepareTabWidget()
     262void UIDetailsWidgetHostNetwork::prepareTabWidget()
    263263{
    264264    /* Create tab-widget: */
     
    276276}
    277277
    278 void UINetworkDetailsWidget::prepareTabInterface()
     278void UIDetailsWidgetHostNetwork::prepareTabInterface()
    279279{
    280280    /* Create 'Interface' tab: */
     
    308308                    /* Configure radio-button: */
    309309                    connect(m_pButtonAutomatic, &QRadioButton::toggled,
    310                             this, &UINetworkDetailsWidget::sltToggledButtonAutomatic);
     310                            this, &UIDetailsWidgetHostNetwork::sltToggledButtonAutomatic);
    311311                    /* Add into layout: */
    312312                    pLayoutAutomatic->addWidget(m_pButtonAutomatic);
     
    343343                    /* Configure radio-button: */
    344344                    connect(m_pButtonManual, &QRadioButton::toggled,
    345                             this, &UINetworkDetailsWidget::sltToggledButtonManual);
     345                            this, &UIDetailsWidgetHostNetwork::sltToggledButtonManual);
    346346                    /* Add into layout: */
    347347                    pLayoutManual->addWidget(m_pButtonManual);
     
    388388                    m_pLabelIPv4->setBuddy(m_pEditorIPv4);
    389389                    connect(m_pEditorIPv4, &QLineEdit::textChanged,
    390                             this, &UINetworkDetailsWidget::sltTextChangedIPv4);
     390                            this, &UIDetailsWidgetHostNetwork::sltTextChangedIPv4);
    391391                    /* Add into layout: */
    392392                    pLayoutIPv4->addWidget(m_pEditorIPv4);
     
    429429                    m_pLabelNMv4->setBuddy(m_pEditorNMv4);
    430430                    connect(m_pEditorNMv4, &QLineEdit::textChanged,
    431                             this, &UINetworkDetailsWidget::sltTextChangedNMv4);
     431                            this, &UIDetailsWidgetHostNetwork::sltTextChangedNMv4);
    432432                    /* Add into layout: */
    433433                    pLayoutNMv4->addWidget(m_pEditorNMv4);
     
    470470                    m_pLabelIPv6->setBuddy(m_pEditorIPv6);
    471471                    connect(m_pEditorIPv6, &QLineEdit::textChanged,
    472                             this, &UINetworkDetailsWidget::sltTextChangedIPv6);
     472                            this, &UIDetailsWidgetHostNetwork::sltTextChangedIPv6);
    473473                    /* Add into layout: */
    474474                    pLayoutIPv6->addWidget(m_pEditorIPv6);
     
    511511                    m_pLabelNMv6->setBuddy(m_pEditorNMv6);
    512512                    connect(m_pEditorNMv6, &QLineEdit::textChanged,
    513                             this, &UINetworkDetailsWidget::sltTextChangedNMv6);
     513                            this, &UIDetailsWidgetHostNetwork::sltTextChangedNMv6);
    514514                    /* Add into layout: */
    515515                    pLayoutNMv6->addWidget(m_pEditorNMv6);
     
    558558                /* Configure button-box: */
    559559                m_pButtonBoxInterface->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok);
    560                 connect(m_pButtonBoxInterface, &QIDialogButtonBox::clicked, this, &UINetworkDetailsWidget::sltHandleButtonBoxClick);
     560                connect(m_pButtonBoxInterface, &QIDialogButtonBox::clicked, this, &UIDetailsWidgetHostNetwork::sltHandleButtonBoxClick);
    561561
    562562                /* Add into layout: */
     
    569569}
    570570
    571 void UINetworkDetailsWidget::prepareTabDHCPServer()
     571void UIDetailsWidgetHostNetwork::prepareTabDHCPServer()
    572572{
    573573    /* Create 'DHCP server' tab: */
     
    594594                /* Configure check-box: */
    595595                connect(m_pCheckBoxDHCP, &QCheckBox::stateChanged,
    596                         this, &UINetworkDetailsWidget::sltStatusChangedServer);
     596                        this, &UIDetailsWidgetHostNetwork::sltStatusChangedServer);
    597597                /* Add into layout: */
    598598                pLayoutDHCPServer->addWidget(m_pCheckBoxDHCP, 0, 0, 1, 2);
     
    624624                    m_pLabelDHCPAddress->setBuddy(m_pEditorDHCPAddress);
    625625                    connect(m_pEditorDHCPAddress, &QLineEdit::textChanged,
    626                             this, &UINetworkDetailsWidget::sltTextChangedAddress);
     626                            this, &UIDetailsWidgetHostNetwork::sltTextChangedAddress);
    627627                    /* Add into layout: */
    628628                    pLayoutDHCPAddress->addWidget(m_pEditorDHCPAddress);
     
    665665                    m_pLabelDHCPMask->setBuddy(m_pEditorDHCPMask);
    666666                    connect(m_pEditorDHCPMask, &QLineEdit::textChanged,
    667                             this, &UINetworkDetailsWidget::sltTextChangedMask);
     667                            this, &UIDetailsWidgetHostNetwork::sltTextChangedMask);
    668668                    /* Add into layout: */
    669669                    pLayoutDHCPMask->addWidget(m_pEditorDHCPMask);
     
    706706                    m_pLabelDHCPLowerAddress->setBuddy(m_pEditorDHCPLowerAddress);
    707707                    connect(m_pEditorDHCPLowerAddress, &QLineEdit::textChanged,
    708                             this, &UINetworkDetailsWidget::sltTextChangedLowerAddress);
     708                            this, &UIDetailsWidgetHostNetwork::sltTextChangedLowerAddress);
    709709                    /* Add into layout: */
    710710                    pLayoutDHCPLowerAddress->addWidget(m_pEditorDHCPLowerAddress);
     
    747747                    m_pLabelDHCPUpperAddress->setBuddy(m_pEditorDHCPUpperAddress);
    748748                    connect(m_pEditorDHCPUpperAddress, &QLineEdit::textChanged,
    749                             this, &UINetworkDetailsWidget::sltTextChangedUpperAddress);
     749                            this, &UIDetailsWidgetHostNetwork::sltTextChangedUpperAddress);
    750750                    /* Add into layout: */
    751751                    pLayoutDHCPUpperAddress->addWidget(m_pEditorDHCPUpperAddress);
     
    794794                /* Configure button-box: */
    795795                m_pButtonBoxServer->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok);
    796                 connect(m_pButtonBoxServer, &QIDialogButtonBox::clicked, this, &UINetworkDetailsWidget::sltHandleButtonBoxClick);
     796                connect(m_pButtonBoxServer, &QIDialogButtonBox::clicked, this, &UIDetailsWidgetHostNetwork::sltHandleButtonBoxClick);
    797797
    798798                /* Add into layout: */
     
    805805}
    806806
    807 void UINetworkDetailsWidget::loadDataForInterface()
     807void UIDetailsWidgetHostNetwork::loadDataForInterface()
    808808{
    809809    /* Toggle IPv4 & IPv6 interface fields availability: */
     
    832832}
    833833
    834 void UINetworkDetailsWidget::loadDataForDHCPServer()
     834void UIDetailsWidgetHostNetwork::loadDataForDHCPServer()
    835835{
    836836    /* Toggle DHCP server fields availability: */
     
    873873}
    874874
    875 void UINetworkDetailsWidget::revalidate(QWidget *pWidget /* = 0 */)
     875void UIDetailsWidgetHostNetwork::revalidate(QWidget *pWidget /* = 0 */)
    876876{
    877877    /* Validate 'Interface' tab content: */
     
    958958}
    959959
    960 void UINetworkDetailsWidget::retranslateValidation(QWidget *pWidget /* = 0 */)
     960void UIDetailsWidgetHostNetwork::retranslateValidation(QWidget *pWidget /* = 0 */)
    961961{
    962962    /* Translate 'Interface' tab content: */
     
    992992}
    993993
    994 void UINetworkDetailsWidget::updateButtonStates()
     994void UIDetailsWidgetHostNetwork::updateButtonStates()
    995995{
    996996//    if (m_oldData != m_newData)
  • trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UIDetailsWidgetHostNetwork.h

    r87218 r87219  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UINetworkDetailsWidget class declaration.
     3 * VBox Qt GUI - UIDetailsWidgetHostNetwork class declaration.
    44 */
    55
    66/*
    7  * Copyright (C) 2009-2020 Oracle Corporation
     7 * Copyright (C) 2009-2021 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1616 */
    1717
    18 #ifndef FEQT_INCLUDED_SRC_networkmanager_UINetworkDetailsWidget_h
    19 #define FEQT_INCLUDED_SRC_networkmanager_UINetworkDetailsWidget_h
     18#ifndef FEQT_INCLUDED_SRC_networkmanager_UIDetailsWidgetHostNetwork_h
     19#define FEQT_INCLUDED_SRC_networkmanager_UIDetailsWidgetHostNetwork_h
    2020#ifndef RT_WITHOUT_PRAGMA_ONCE
    2121# pragma once
     
    7373
    7474    /** Holds interface name. */
    75     QString m_strName;
     75    QString  m_strName;
    7676    /** Holds whether DHCP is enabled for that interface. */
    77     bool m_fDHCPEnabled;
     77    bool     m_fDHCPEnabled;
    7878    /** Holds IPv4 interface address. */
    79     QString m_strAddress;
     79    QString  m_strAddress;
    8080    /** Holds IPv4 interface mask. */
    81     QString m_strMask;
     81    QString  m_strMask;
    8282    /** Holds whether IPv6 protocol supported. */
    83     bool m_fSupportedIPv6;
     83    bool     m_fSupportedIPv6;
    8484    /** Holds IPv6 interface address. */
    85     QString m_strAddress6;
     85    QString  m_strAddress6;
    8686    /** Holds IPv6 interface prefix length. */
    87     QString m_strPrefixLength6;
     87    QString  m_strPrefixLength6;
    8888};
    8989
     
    119119
    120120    /** Holds whether DHCP server enabled. */
    121     bool m_fEnabled;
     121    bool     m_fEnabled;
    122122    /** Holds DHCP server address. */
    123     QString m_strAddress;
     123    QString  m_strAddress;
    124124    /** Holds DHCP server mask. */
    125     QString m_strMask;
     125    QString  m_strMask;
    126126    /** Holds DHCP server lower address. */
    127     QString m_strLowerAddress;
     127    QString  m_strLowerAddress;
    128128    /** Holds DHCP server upper address. */
    129     QString m_strUpperAddress;
     129    QString  m_strUpperAddress;
    130130};
    131131
     
    155155
    156156    /** Holds the interface data. */
    157     UIDataHostNetworkInterface m_interface;
     157    UIDataHostNetworkInterface  m_interface;
    158158    /** Holds the DHCP server data. */
    159     UIDataDHCPServer m_dhcpserver;
     159    UIDataDHCPServer            m_dhcpserver;
    160160};
    161161
    162162
    163163/** Host Network Manager: Host network details-widget. */
    164 class UINetworkDetailsWidget : public QIWithRetranslateUI<QWidget>
     164class UIDetailsWidgetHostNetwork : public QIWithRetranslateUI<QWidget>
    165165{
    166166    Q_OBJECT;
     
    180180    /** Constructs medium details dialog passing @a pParent to the base-class.
    181181      * @param  enmEmbedding  Brings embedding type. */
    182     UINetworkDetailsWidget(EmbedTo enmEmbedding, QWidget *pParent = 0);
     182    UIDetailsWidgetHostNetwork(EmbedTo enmEmbedding, QWidget *pParent = 0);
    183183
    184184    /** Returns the host network data. */
     
    354354};
    355355
    356 #endif /* !FEQT_INCLUDED_SRC_networkmanager_UINetworkDetailsWidget_h */
    357 
     356#endif /* !FEQT_INCLUDED_SRC_networkmanager_UIDetailsWidgetHostNetwork_h */
     357
  • trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UINetworkManager.cpp

    r87089 r87219  
    55
    66/*
    7  * Copyright (C) 2009-2020 Oracle Corporation
     7 * Copyright (C) 2009-2021 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2727#include "QITreeWidget.h"
    2828#include "UIActionPoolManager.h"
     29#include "UIDetailsWidgetHostNetwork.h"
    2930#include "UIExtraDataManager.h"
    3031#include "UIIconPool.h"
    3132#include "UIMessageCenter.h"
    32 #include "UINetworkDetailsWidget.h"
    3333#include "UINetworkManager.h"
    3434#include "UINetworkManagerUtils.h"
     
    890890{
    891891    /* Prepare host network details-widget: */
    892     m_pDetailsWidgetHostNetwork = new UINetworkDetailsWidget(m_enmEmbedding, m_pTabHostNetwork);
     892    m_pDetailsWidgetHostNetwork = new UIDetailsWidgetHostNetwork(m_enmEmbedding, m_pTabHostNetwork);
    893893    if (m_pDetailsWidgetHostNetwork)
    894894    {
    895895        m_pDetailsWidgetHostNetwork->setVisible(false);
    896896        m_pDetailsWidgetHostNetwork->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
    897         connect(m_pDetailsWidgetHostNetwork, &UINetworkDetailsWidget::sigDataChanged,
     897        connect(m_pDetailsWidgetHostNetwork, &UIDetailsWidgetHostNetwork::sigDataChanged,
    898898                this, &UINetworkManagerWidget::sigDetailsDataChangedHostNetwork);
    899         connect(m_pDetailsWidgetHostNetwork, &UINetworkDetailsWidget::sigDataChangeRejected,
     899        connect(m_pDetailsWidgetHostNetwork, &UIDetailsWidgetHostNetwork::sigDataChangeRejected,
    900900                this, &UINetworkManagerWidget::sltHandleCurrentItemChangeHostNetwork);
    901         connect(m_pDetailsWidgetHostNetwork, &UINetworkDetailsWidget::sigDataChangeAccepted,
     901        connect(m_pDetailsWidgetHostNetwork, &UIDetailsWidgetHostNetwork::sigDataChangeAccepted,
    902902                this, &UINetworkManagerWidget::sltApplyDetailsChangesHostNetwork);
    903903
  • trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UINetworkManager.h

    r87210 r87219  
    55
    66/*
    7  * Copyright (C) 2009-2020 Oracle Corporation
     7 * Copyright (C) 2009-2021 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3838class QITreeWidget;
    3939class UIActionPool;
    40 class UINetworkDetailsWidget;
     40class UIDetailsWidgetHostNetwork;
    4141class UIItemHostNetwork;
    4242class QIToolBar;
     
    188188
    189189        /** Holds the host network tab. */
    190         QWidget                *m_pTabHostNetwork;
     190        QWidget                    *m_pTabHostNetwork;
    191191        /** Holds the host network layout. */
    192         QVBoxLayout            *m_pLayoutHostNetwork;
     192        QVBoxLayout                *m_pLayoutHostNetwork;
    193193        /** Holds the host network tree-widget instance. */
    194         QITreeWidget           *m_pTreeWidgetHostNetwork;
     194        QITreeWidget               *m_pTreeWidgetHostNetwork;
    195195        /** Holds the host network details-widget instance. */
    196         UINetworkDetailsWidget *m_pDetailsWidgetHostNetwork;
     196        UIDetailsWidgetHostNetwork *m_pDetailsWidgetHostNetwork;
    197197    /** @} */
    198198};
Note: See TracChangeset for help on using the changeset viewer.

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