VirtualBox

Changeset 67686 in vbox


Ignore:
Timestamp:
Jun 29, 2017 9:57:17 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116512
Message:

FE/Qt: bugref:8847: Host Network Manager: Forgot to rename dialog to widget according to it's real role.

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

Legend:

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

    r67535 r67686  
    335335        src/globals/VBoxGlobal.h \
    336336        src/globals/VBoxUtils.h \
    337         src/hostnetwork/UIHostNetworkDetailsDialog.h \
     337        src/hostnetwork/UIHostNetworkDetailsWidget.h \
    338338        src/hostnetwork/UIHostNetworkManager.h \
    339339        src/medium/UIMediumEnumerator.h \
     
    642642        src/globals/UIThreadPool.cpp \
    643643        src/globals/VBoxGlobal.cpp \
    644         src/hostnetwork/UIHostNetworkDetailsDialog.cpp \
     644        src/hostnetwork/UIHostNetworkDetailsWidget.cpp \
    645645        src/hostnetwork/UIHostNetworkManager.cpp \
    646646        src/hostnetwork/UIHostNetworkUtils.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkDetailsWidget.cpp

    r67685 r67686  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIHostNetworkDetailsDialog class implementation.
     3 * VBox Qt GUI - UIHostNetworkDetailsWidget class implementation.
    44 */
    55
     
    3333# include "QILineEdit.h"
    3434# include "QITabWidget.h"
    35 # include "UIHostNetworkDetailsDialog.h"
     35# include "UIHostNetworkDetailsWidget.h"
    3636# include "UIHostNetworkUtils.h"
    3737# include "UIIconPool.h"
     
    4444
    4545
    46 UIHostNetworkDetailsDialog::UIHostNetworkDetailsDialog(EmbedTo enmEmbedding, QWidget *pParent /* = 0 */)
     46UIHostNetworkDetailsWidget::UIHostNetworkDetailsWidget(EmbedTo enmEmbedding, QWidget *pParent /* = 0 */)
    4747    : QIWithRetranslateUI2<QWidget>(pParent)
    4848    , m_enmEmbedding(enmEmbedding)
     
    6666}
    6767
    68 void UIHostNetworkDetailsDialog::setData(const UIDataHostNetwork &data)
     68void UIHostNetworkDetailsWidget::setData(const UIDataHostNetwork &data)
    6969{
    7070    /* Cache old/new data: */
     
    7878}
    7979
    80 void UIHostNetworkDetailsDialog::clearData()
     80void UIHostNetworkDetailsWidget::clearData()
    8181{
    8282    /* Reset old/new data: */
     
    9090}
    9191
    92 void UIHostNetworkDetailsDialog::retranslateUi()
     92void UIHostNetworkDetailsWidget::retranslateUi()
    9393{
    9494    /* Translate tab-widget: */
     
    150150}
    151151
    152 void UIHostNetworkDetailsDialog::sltToggledButtonAutomatic(bool fChecked)
     152void UIHostNetworkDetailsWidget::sltToggledButtonAutomatic(bool fChecked)
    153153{
    154154    m_newData.m_interface.m_fDHCPEnabled = fChecked;
     
    158158}
    159159
    160 void UIHostNetworkDetailsDialog::sltToggledButtonManual(bool fChecked)
     160void UIHostNetworkDetailsWidget::sltToggledButtonManual(bool fChecked)
    161161{
    162162    m_newData.m_interface.m_fDHCPEnabled = !fChecked;
     
    166166}
    167167
    168 void UIHostNetworkDetailsDialog::sltTextChangedIPv4(const QString &strText)
     168void UIHostNetworkDetailsWidget::sltTextChangedIPv4(const QString &strText)
    169169{
    170170    m_newData.m_interface.m_strAddress = strText;
     
    173173}
    174174
    175 void UIHostNetworkDetailsDialog::sltTextChangedNMv4(const QString &strText)
     175void UIHostNetworkDetailsWidget::sltTextChangedNMv4(const QString &strText)
    176176{
    177177    m_newData.m_interface.m_strMask = strText;
     
    180180}
    181181
    182 void UIHostNetworkDetailsDialog::sltTextChangedIPv6(const QString &strText)
     182void UIHostNetworkDetailsWidget::sltTextChangedIPv6(const QString &strText)
    183183{
    184184    m_newData.m_interface.m_strAddress6 = strText;
     
    187187}
    188188
    189 void UIHostNetworkDetailsDialog::sltTextChangedNMv6(const QString &strText)
     189void UIHostNetworkDetailsWidget::sltTextChangedNMv6(const QString &strText)
    190190{
    191191    m_newData.m_interface.m_strPrefixLength6 = strText;
     
    194194}
    195195
    196 void UIHostNetworkDetailsDialog::sltStatusChangedServer(int iChecked)
     196void UIHostNetworkDetailsWidget::sltStatusChangedServer(int iChecked)
    197197{
    198198    m_newData.m_dhcpserver.m_fEnabled = (bool)iChecked;
     
    202202}
    203203
    204 void UIHostNetworkDetailsDialog::sltTextChangedAddress(const QString &strText)
     204void UIHostNetworkDetailsWidget::sltTextChangedAddress(const QString &strText)
    205205{
    206206    m_newData.m_dhcpserver.m_strAddress = strText;
     
    209209}
    210210
    211 void UIHostNetworkDetailsDialog::sltTextChangedMask(const QString &strText)
     211void UIHostNetworkDetailsWidget::sltTextChangedMask(const QString &strText)
    212212{
    213213    m_newData.m_dhcpserver.m_strMask = strText;
     
    216216}
    217217
    218 void UIHostNetworkDetailsDialog::sltTextChangedLowerAddress(const QString &strText)
     218void UIHostNetworkDetailsWidget::sltTextChangedLowerAddress(const QString &strText)
    219219{
    220220    m_newData.m_dhcpserver.m_strLowerAddress = strText;
     
    223223}
    224224
    225 void UIHostNetworkDetailsDialog::sltTextChangedUpperAddress(const QString &strText)
     225void UIHostNetworkDetailsWidget::sltTextChangedUpperAddress(const QString &strText)
    226226{
    227227    m_newData.m_dhcpserver.m_strUpperAddress = strText;
     
    230230}
    231231
    232 void UIHostNetworkDetailsDialog::sltHandleButtonBoxClick(QAbstractButton *pButton)
     232void UIHostNetworkDetailsWidget::sltHandleButtonBoxClick(QAbstractButton *pButton)
    233233{
    234234    /* Disable buttons first of all: */
     
    260260}
    261261
    262 void UIHostNetworkDetailsDialog::prepare()
     262void UIHostNetworkDetailsWidget::prepare()
    263263{
    264264    /* Prepare this: */
     
    272272}
    273273
    274 void UIHostNetworkDetailsDialog::prepareThis()
     274void UIHostNetworkDetailsWidget::prepareThis()
    275275{
    276276    /* Create layout: */
     
    285285}
    286286
    287 void UIHostNetworkDetailsDialog::prepareTabWidget()
     287void UIHostNetworkDetailsWidget::prepareTabWidget()
    288288{
    289289    /* Create tab-widget: */
     
    300300}
    301301
    302 void UIHostNetworkDetailsDialog::prepareTabInterface()
     302void UIHostNetworkDetailsWidget::prepareTabInterface()
    303303{
    304304    /* Create 'Interface' tab: */
     
    332332                    /* Configure radio-button: */
    333333                    connect(m_pButtonAutomatic, &QRadioButton::toggled,
    334                             this, &UIHostNetworkDetailsDialog::sltToggledButtonAutomatic);
     334                            this, &UIHostNetworkDetailsWidget::sltToggledButtonAutomatic);
    335335                    /* Add into layout: */
    336336                    pLayoutAutomatic->addWidget(m_pButtonAutomatic);
     
    367367                    /* Configure radio-button: */
    368368                    connect(m_pButtonManual, &QRadioButton::toggled,
    369                             this, &UIHostNetworkDetailsDialog::sltToggledButtonManual);
     369                            this, &UIHostNetworkDetailsWidget::sltToggledButtonManual);
    370370                    /* Add into layout: */
    371371                    pLayoutManual->addWidget(m_pButtonManual);
     
    412412                    m_pLabelIPv4->setBuddy(m_pEditorIPv4);
    413413                    connect(m_pEditorIPv4, &QLineEdit::textChanged,
    414                             this, &UIHostNetworkDetailsDialog::sltTextChangedIPv4);
     414                            this, &UIHostNetworkDetailsWidget::sltTextChangedIPv4);
    415415                    /* Add into layout: */
    416416                    pLayoutIPv4->addWidget(m_pEditorIPv4);
     
    453453                    m_pLabelNMv4->setBuddy(m_pEditorNMv4);
    454454                    connect(m_pEditorNMv4, &QLineEdit::textChanged,
    455                             this, &UIHostNetworkDetailsDialog::sltTextChangedNMv4);
     455                            this, &UIHostNetworkDetailsWidget::sltTextChangedNMv4);
    456456                    /* Add into layout: */
    457457                    pLayoutNMv4->addWidget(m_pEditorNMv4);
     
    494494                    m_pLabelIPv6->setBuddy(m_pEditorIPv6);
    495495                    connect(m_pEditorIPv6, &QLineEdit::textChanged,
    496                             this, &UIHostNetworkDetailsDialog::sltTextChangedIPv6);
     496                            this, &UIHostNetworkDetailsWidget::sltTextChangedIPv6);
    497497                    /* Add into layout: */
    498498                    pLayoutIPv6->addWidget(m_pEditorIPv6);
     
    535535                    m_pLabelNMv6->setBuddy(m_pEditorNMv6);
    536536                    connect(m_pEditorNMv6, &QLineEdit::textChanged,
    537                             this, &UIHostNetworkDetailsDialog::sltTextChangedNMv6);
     537                            this, &UIHostNetworkDetailsWidget::sltTextChangedNMv6);
    538538                    /* Add into layout: */
    539539                    pLayoutNMv6->addWidget(m_pEditorNMv6);
     
    582582                /* Configure button-box: */
    583583                m_pButtonBoxInterface->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok);
    584                 connect(m_pButtonBoxInterface, &QIDialogButtonBox::clicked, this, &UIHostNetworkDetailsDialog::sltHandleButtonBoxClick);
     584                connect(m_pButtonBoxInterface, &QIDialogButtonBox::clicked, this, &UIHostNetworkDetailsWidget::sltHandleButtonBoxClick);
    585585
    586586                /* Add into layout: */
     
    593593}
    594594
    595 void UIHostNetworkDetailsDialog::prepareTabDHCPServer()
     595void UIHostNetworkDetailsWidget::prepareTabDHCPServer()
    596596{
    597597    /* Create 'DHCP server' tab: */
     
    618618                /* Configure check-box: */
    619619                connect(m_pCheckBoxDHCP, &QCheckBox::stateChanged,
    620                         this, &UIHostNetworkDetailsDialog::sltStatusChangedServer);
     620                        this, &UIHostNetworkDetailsWidget::sltStatusChangedServer);
    621621                /* Add into layout: */
    622622                pLayoutDHCPServer->addWidget(m_pCheckBoxDHCP, 0, 0, 1, 2);
     
    648648                    m_pLabelDHCPAddress->setBuddy(m_pEditorDHCPAddress);
    649649                    connect(m_pEditorDHCPAddress, &QLineEdit::textChanged,
    650                             this, &UIHostNetworkDetailsDialog::sltTextChangedAddress);
     650                            this, &UIHostNetworkDetailsWidget::sltTextChangedAddress);
    651651                    /* Add into layout: */
    652652                    pLayoutDHCPAddress->addWidget(m_pEditorDHCPAddress);
     
    689689                    m_pLabelDHCPMask->setBuddy(m_pEditorDHCPMask);
    690690                    connect(m_pEditorDHCPMask, &QLineEdit::textChanged,
    691                             this, &UIHostNetworkDetailsDialog::sltTextChangedMask);
     691                            this, &UIHostNetworkDetailsWidget::sltTextChangedMask);
    692692                    /* Add into layout: */
    693693                    pLayoutDHCPMask->addWidget(m_pEditorDHCPMask);
     
    730730                    m_pLabelDHCPLowerAddress->setBuddy(m_pEditorDHCPLowerAddress);
    731731                    connect(m_pEditorDHCPLowerAddress, &QLineEdit::textChanged,
    732                             this, &UIHostNetworkDetailsDialog::sltTextChangedLowerAddress);
     732                            this, &UIHostNetworkDetailsWidget::sltTextChangedLowerAddress);
    733733                    /* Add into layout: */
    734734                    pLayoutDHCPLowerAddress->addWidget(m_pEditorDHCPLowerAddress);
     
    771771                    m_pLabelDHCPUpperAddress->setBuddy(m_pEditorDHCPUpperAddress);
    772772                    connect(m_pEditorDHCPUpperAddress, &QLineEdit::textChanged,
    773                             this, &UIHostNetworkDetailsDialog::sltTextChangedUpperAddress);
     773                            this, &UIHostNetworkDetailsWidget::sltTextChangedUpperAddress);
    774774                    /* Add into layout: */
    775775                    pLayoutDHCPUpperAddress->addWidget(m_pEditorDHCPUpperAddress);
     
    818818                /* Configure button-box: */
    819819                m_pButtonBoxServer->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok);
    820                 connect(m_pButtonBoxServer, &QIDialogButtonBox::clicked, this, &UIHostNetworkDetailsDialog::sltHandleButtonBoxClick);
     820                connect(m_pButtonBoxServer, &QIDialogButtonBox::clicked, this, &UIHostNetworkDetailsWidget::sltHandleButtonBoxClick);
    821821
    822822                /* Add into layout: */
     
    829829}
    830830
    831 void UIHostNetworkDetailsDialog::loadDataForInterface()
     831void UIHostNetworkDetailsWidget::loadDataForInterface()
    832832{
    833833    /* Toggle IPv4 & IPv6 interface fields availability: */
     
    856856}
    857857
    858 void UIHostNetworkDetailsDialog::loadDataForDHCPServer()
     858void UIHostNetworkDetailsWidget::loadDataForDHCPServer()
    859859{
    860860    /* Toggle DHCP server fields availability: */
     
    897897}
    898898
    899 void UIHostNetworkDetailsDialog::revalidate(QWidget *pWidget /* = 0 */)
     899void UIHostNetworkDetailsWidget::revalidate(QWidget *pWidget /* = 0 */)
    900900{
    901901    /* Validate 'Interface' tab content: */
     
    982982}
    983983
    984 void UIHostNetworkDetailsDialog::retranslateValidation(QWidget *pWidget /* = 0 */)
     984void UIHostNetworkDetailsWidget::retranslateValidation(QWidget *pWidget /* = 0 */)
    985985{
    986986    /* Translate 'Interface' tab content: */
     
    10161016}
    10171017
    1018 void UIHostNetworkDetailsDialog::updateButtonStates()
     1018void UIHostNetworkDetailsWidget::updateButtonStates()
    10191019{
    10201020//    if (m_oldData != m_newData)
  • trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkDetailsWidget.h

    r67685 r67686  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIHostNetworkDetailsDialog class declaration.
     3 * VBox Qt GUI - UIHostNetworkDetailsWidget class declaration.
    44 */
    55
     
    1616 */
    1717
    18 #ifndef ___UIHostNetworkDetailsDialog_h___
    19 #define ___UIHostNetworkDetailsDialog_h___
     18#ifndef ___UIHostNetworkDetailsWidget_h___
     19#define ___UIHostNetworkDetailsWidget_h___
    2020
    2121/* Qt includes: */
     
    159159
    160160/** Host Network Manager: Host network details widget. */
    161 class UIHostNetworkDetailsDialog : public QIWithRetranslateUI2<QWidget>
     161class UIHostNetworkDetailsWidget : public QIWithRetranslateUI2<QWidget>
    162162{
    163163    Q_OBJECT;
     
    176176
    177177    /** Constructs host network details dialog for the passed @a pParent and @a data. */
    178     UIHostNetworkDetailsDialog(EmbedTo enmEmbedding, QWidget *pParent = 0);
     178    UIHostNetworkDetailsWidget(EmbedTo enmEmbedding, QWidget *pParent = 0);
    179179
    180180    /** Returns the host network data. */
     
    351351};
    352352
    353 #endif /* !___UIHostNetworkDetailsDialog_h___ */
    354 
     353#endif /* !___UIHostNetworkDetailsWidget_h___ */
     354
  • trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkManager.cpp

    r67630 r67686  
    2929# include "QITreeWidget.h"
    3030# include "UIIconPool.h"
    31 # include "UIHostNetworkDetailsDialog.h"
     31# include "UIHostNetworkDetailsWidget.h"
    3232# include "UIHostNetworkManager.h"
    3333# include "UIHostNetworkUtils.h"
     
    858858{
    859859    /* Create details-widget: */
    860     m_pDetailsWidget = new UIHostNetworkDetailsDialog(m_enmEmbedding);
     860    m_pDetailsWidget = new UIHostNetworkDetailsWidget(m_enmEmbedding);
    861861    AssertPtrReturnVoid(m_pDetailsWidget);
    862862    {
     
    864864        m_pDetailsWidget->setVisible(false);
    865865        m_pDetailsWidget->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
    866         connect(m_pDetailsWidget, &UIHostNetworkDetailsDialog::sigDataChanged,
     866        connect(m_pDetailsWidget, &UIHostNetworkDetailsWidget::sigDataChanged,
    867867                this, &UIHostNetworkManagerWidget::sigHostNetworkDetailsDataChanged);
    868         connect(m_pDetailsWidget, &UIHostNetworkDetailsDialog::sigDataChangeRejected,
     868        connect(m_pDetailsWidget, &UIHostNetworkDetailsWidget::sigDataChangeRejected,
    869869                this, &UIHostNetworkManagerWidget::sltResetHostNetworkDetailsChanges);
    870         connect(m_pDetailsWidget, &UIHostNetworkDetailsDialog::sigDataChangeAccepted,
     870        connect(m_pDetailsWidget, &UIHostNetworkDetailsWidget::sigDataChangeAccepted,
    871871                this, &UIHostNetworkManagerWidget::sltApplyHostNetworkDetailsChanges);
    872872
  • trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkManager.h

    r67575 r67686  
    3232class QIDialogButtonBox;
    3333class QITreeWidget;
    34 class UIHostNetworkDetailsDialog;
     34class UIHostNetworkDetailsWidget;
    3535class UIItemHostNetwork;
    3636class UIToolBar;
     
    175175        QITreeWidget *m_pTreeWidget;
    176176        /** Holds the details-widget instance. */
    177         UIHostNetworkDetailsDialog *m_pDetailsWidget;
     177        UIHostNetworkDetailsWidget *m_pDetailsWidget;
    178178    /** @} */
    179179};
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