Changeset 67686 in vbox
- Timestamp:
- Jun 29, 2017 9:57:17 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116512
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r67535 r67686 335 335 src/globals/VBoxGlobal.h \ 336 336 src/globals/VBoxUtils.h \ 337 src/hostnetwork/UIHostNetworkDetails Dialog.h \337 src/hostnetwork/UIHostNetworkDetailsWidget.h \ 338 338 src/hostnetwork/UIHostNetworkManager.h \ 339 339 src/medium/UIMediumEnumerator.h \ … … 642 642 src/globals/UIThreadPool.cpp \ 643 643 src/globals/VBoxGlobal.cpp \ 644 src/hostnetwork/UIHostNetworkDetails Dialog.cpp \644 src/hostnetwork/UIHostNetworkDetailsWidget.cpp \ 645 645 src/hostnetwork/UIHostNetworkManager.cpp \ 646 646 src/hostnetwork/UIHostNetworkUtils.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkDetailsWidget.cpp
r67685 r67686 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIHostNetworkDetails Dialogclass implementation.3 * VBox Qt GUI - UIHostNetworkDetailsWidget class implementation. 4 4 */ 5 5 … … 33 33 # include "QILineEdit.h" 34 34 # include "QITabWidget.h" 35 # include "UIHostNetworkDetails Dialog.h"35 # include "UIHostNetworkDetailsWidget.h" 36 36 # include "UIHostNetworkUtils.h" 37 37 # include "UIIconPool.h" … … 44 44 45 45 46 UIHostNetworkDetails Dialog::UIHostNetworkDetailsDialog(EmbedTo enmEmbedding, QWidget *pParent /* = 0 */)46 UIHostNetworkDetailsWidget::UIHostNetworkDetailsWidget(EmbedTo enmEmbedding, QWidget *pParent /* = 0 */) 47 47 : QIWithRetranslateUI2<QWidget>(pParent) 48 48 , m_enmEmbedding(enmEmbedding) … … 66 66 } 67 67 68 void UIHostNetworkDetails Dialog::setData(const UIDataHostNetwork &data)68 void UIHostNetworkDetailsWidget::setData(const UIDataHostNetwork &data) 69 69 { 70 70 /* Cache old/new data: */ … … 78 78 } 79 79 80 void UIHostNetworkDetails Dialog::clearData()80 void UIHostNetworkDetailsWidget::clearData() 81 81 { 82 82 /* Reset old/new data: */ … … 90 90 } 91 91 92 void UIHostNetworkDetails Dialog::retranslateUi()92 void UIHostNetworkDetailsWidget::retranslateUi() 93 93 { 94 94 /* Translate tab-widget: */ … … 150 150 } 151 151 152 void UIHostNetworkDetails Dialog::sltToggledButtonAutomatic(bool fChecked)152 void UIHostNetworkDetailsWidget::sltToggledButtonAutomatic(bool fChecked) 153 153 { 154 154 m_newData.m_interface.m_fDHCPEnabled = fChecked; … … 158 158 } 159 159 160 void UIHostNetworkDetails Dialog::sltToggledButtonManual(bool fChecked)160 void UIHostNetworkDetailsWidget::sltToggledButtonManual(bool fChecked) 161 161 { 162 162 m_newData.m_interface.m_fDHCPEnabled = !fChecked; … … 166 166 } 167 167 168 void UIHostNetworkDetails Dialog::sltTextChangedIPv4(const QString &strText)168 void UIHostNetworkDetailsWidget::sltTextChangedIPv4(const QString &strText) 169 169 { 170 170 m_newData.m_interface.m_strAddress = strText; … … 173 173 } 174 174 175 void UIHostNetworkDetails Dialog::sltTextChangedNMv4(const QString &strText)175 void UIHostNetworkDetailsWidget::sltTextChangedNMv4(const QString &strText) 176 176 { 177 177 m_newData.m_interface.m_strMask = strText; … … 180 180 } 181 181 182 void UIHostNetworkDetails Dialog::sltTextChangedIPv6(const QString &strText)182 void UIHostNetworkDetailsWidget::sltTextChangedIPv6(const QString &strText) 183 183 { 184 184 m_newData.m_interface.m_strAddress6 = strText; … … 187 187 } 188 188 189 void UIHostNetworkDetails Dialog::sltTextChangedNMv6(const QString &strText)189 void UIHostNetworkDetailsWidget::sltTextChangedNMv6(const QString &strText) 190 190 { 191 191 m_newData.m_interface.m_strPrefixLength6 = strText; … … 194 194 } 195 195 196 void UIHostNetworkDetails Dialog::sltStatusChangedServer(int iChecked)196 void UIHostNetworkDetailsWidget::sltStatusChangedServer(int iChecked) 197 197 { 198 198 m_newData.m_dhcpserver.m_fEnabled = (bool)iChecked; … … 202 202 } 203 203 204 void UIHostNetworkDetails Dialog::sltTextChangedAddress(const QString &strText)204 void UIHostNetworkDetailsWidget::sltTextChangedAddress(const QString &strText) 205 205 { 206 206 m_newData.m_dhcpserver.m_strAddress = strText; … … 209 209 } 210 210 211 void UIHostNetworkDetails Dialog::sltTextChangedMask(const QString &strText)211 void UIHostNetworkDetailsWidget::sltTextChangedMask(const QString &strText) 212 212 { 213 213 m_newData.m_dhcpserver.m_strMask = strText; … … 216 216 } 217 217 218 void UIHostNetworkDetails Dialog::sltTextChangedLowerAddress(const QString &strText)218 void UIHostNetworkDetailsWidget::sltTextChangedLowerAddress(const QString &strText) 219 219 { 220 220 m_newData.m_dhcpserver.m_strLowerAddress = strText; … … 223 223 } 224 224 225 void UIHostNetworkDetails Dialog::sltTextChangedUpperAddress(const QString &strText)225 void UIHostNetworkDetailsWidget::sltTextChangedUpperAddress(const QString &strText) 226 226 { 227 227 m_newData.m_dhcpserver.m_strUpperAddress = strText; … … 230 230 } 231 231 232 void UIHostNetworkDetails Dialog::sltHandleButtonBoxClick(QAbstractButton *pButton)232 void UIHostNetworkDetailsWidget::sltHandleButtonBoxClick(QAbstractButton *pButton) 233 233 { 234 234 /* Disable buttons first of all: */ … … 260 260 } 261 261 262 void UIHostNetworkDetails Dialog::prepare()262 void UIHostNetworkDetailsWidget::prepare() 263 263 { 264 264 /* Prepare this: */ … … 272 272 } 273 273 274 void UIHostNetworkDetails Dialog::prepareThis()274 void UIHostNetworkDetailsWidget::prepareThis() 275 275 { 276 276 /* Create layout: */ … … 285 285 } 286 286 287 void UIHostNetworkDetails Dialog::prepareTabWidget()287 void UIHostNetworkDetailsWidget::prepareTabWidget() 288 288 { 289 289 /* Create tab-widget: */ … … 300 300 } 301 301 302 void UIHostNetworkDetails Dialog::prepareTabInterface()302 void UIHostNetworkDetailsWidget::prepareTabInterface() 303 303 { 304 304 /* Create 'Interface' tab: */ … … 332 332 /* Configure radio-button: */ 333 333 connect(m_pButtonAutomatic, &QRadioButton::toggled, 334 this, &UIHostNetworkDetails Dialog::sltToggledButtonAutomatic);334 this, &UIHostNetworkDetailsWidget::sltToggledButtonAutomatic); 335 335 /* Add into layout: */ 336 336 pLayoutAutomatic->addWidget(m_pButtonAutomatic); … … 367 367 /* Configure radio-button: */ 368 368 connect(m_pButtonManual, &QRadioButton::toggled, 369 this, &UIHostNetworkDetails Dialog::sltToggledButtonManual);369 this, &UIHostNetworkDetailsWidget::sltToggledButtonManual); 370 370 /* Add into layout: */ 371 371 pLayoutManual->addWidget(m_pButtonManual); … … 412 412 m_pLabelIPv4->setBuddy(m_pEditorIPv4); 413 413 connect(m_pEditorIPv4, &QLineEdit::textChanged, 414 this, &UIHostNetworkDetails Dialog::sltTextChangedIPv4);414 this, &UIHostNetworkDetailsWidget::sltTextChangedIPv4); 415 415 /* Add into layout: */ 416 416 pLayoutIPv4->addWidget(m_pEditorIPv4); … … 453 453 m_pLabelNMv4->setBuddy(m_pEditorNMv4); 454 454 connect(m_pEditorNMv4, &QLineEdit::textChanged, 455 this, &UIHostNetworkDetails Dialog::sltTextChangedNMv4);455 this, &UIHostNetworkDetailsWidget::sltTextChangedNMv4); 456 456 /* Add into layout: */ 457 457 pLayoutNMv4->addWidget(m_pEditorNMv4); … … 494 494 m_pLabelIPv6->setBuddy(m_pEditorIPv6); 495 495 connect(m_pEditorIPv6, &QLineEdit::textChanged, 496 this, &UIHostNetworkDetails Dialog::sltTextChangedIPv6);496 this, &UIHostNetworkDetailsWidget::sltTextChangedIPv6); 497 497 /* Add into layout: */ 498 498 pLayoutIPv6->addWidget(m_pEditorIPv6); … … 535 535 m_pLabelNMv6->setBuddy(m_pEditorNMv6); 536 536 connect(m_pEditorNMv6, &QLineEdit::textChanged, 537 this, &UIHostNetworkDetails Dialog::sltTextChangedNMv6);537 this, &UIHostNetworkDetailsWidget::sltTextChangedNMv6); 538 538 /* Add into layout: */ 539 539 pLayoutNMv6->addWidget(m_pEditorNMv6); … … 582 582 /* Configure button-box: */ 583 583 m_pButtonBoxInterface->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok); 584 connect(m_pButtonBoxInterface, &QIDialogButtonBox::clicked, this, &UIHostNetworkDetails Dialog::sltHandleButtonBoxClick);584 connect(m_pButtonBoxInterface, &QIDialogButtonBox::clicked, this, &UIHostNetworkDetailsWidget::sltHandleButtonBoxClick); 585 585 586 586 /* Add into layout: */ … … 593 593 } 594 594 595 void UIHostNetworkDetails Dialog::prepareTabDHCPServer()595 void UIHostNetworkDetailsWidget::prepareTabDHCPServer() 596 596 { 597 597 /* Create 'DHCP server' tab: */ … … 618 618 /* Configure check-box: */ 619 619 connect(m_pCheckBoxDHCP, &QCheckBox::stateChanged, 620 this, &UIHostNetworkDetails Dialog::sltStatusChangedServer);620 this, &UIHostNetworkDetailsWidget::sltStatusChangedServer); 621 621 /* Add into layout: */ 622 622 pLayoutDHCPServer->addWidget(m_pCheckBoxDHCP, 0, 0, 1, 2); … … 648 648 m_pLabelDHCPAddress->setBuddy(m_pEditorDHCPAddress); 649 649 connect(m_pEditorDHCPAddress, &QLineEdit::textChanged, 650 this, &UIHostNetworkDetails Dialog::sltTextChangedAddress);650 this, &UIHostNetworkDetailsWidget::sltTextChangedAddress); 651 651 /* Add into layout: */ 652 652 pLayoutDHCPAddress->addWidget(m_pEditorDHCPAddress); … … 689 689 m_pLabelDHCPMask->setBuddy(m_pEditorDHCPMask); 690 690 connect(m_pEditorDHCPMask, &QLineEdit::textChanged, 691 this, &UIHostNetworkDetails Dialog::sltTextChangedMask);691 this, &UIHostNetworkDetailsWidget::sltTextChangedMask); 692 692 /* Add into layout: */ 693 693 pLayoutDHCPMask->addWidget(m_pEditorDHCPMask); … … 730 730 m_pLabelDHCPLowerAddress->setBuddy(m_pEditorDHCPLowerAddress); 731 731 connect(m_pEditorDHCPLowerAddress, &QLineEdit::textChanged, 732 this, &UIHostNetworkDetails Dialog::sltTextChangedLowerAddress);732 this, &UIHostNetworkDetailsWidget::sltTextChangedLowerAddress); 733 733 /* Add into layout: */ 734 734 pLayoutDHCPLowerAddress->addWidget(m_pEditorDHCPLowerAddress); … … 771 771 m_pLabelDHCPUpperAddress->setBuddy(m_pEditorDHCPUpperAddress); 772 772 connect(m_pEditorDHCPUpperAddress, &QLineEdit::textChanged, 773 this, &UIHostNetworkDetails Dialog::sltTextChangedUpperAddress);773 this, &UIHostNetworkDetailsWidget::sltTextChangedUpperAddress); 774 774 /* Add into layout: */ 775 775 pLayoutDHCPUpperAddress->addWidget(m_pEditorDHCPUpperAddress); … … 818 818 /* Configure button-box: */ 819 819 m_pButtonBoxServer->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok); 820 connect(m_pButtonBoxServer, &QIDialogButtonBox::clicked, this, &UIHostNetworkDetails Dialog::sltHandleButtonBoxClick);820 connect(m_pButtonBoxServer, &QIDialogButtonBox::clicked, this, &UIHostNetworkDetailsWidget::sltHandleButtonBoxClick); 821 821 822 822 /* Add into layout: */ … … 829 829 } 830 830 831 void UIHostNetworkDetails Dialog::loadDataForInterface()831 void UIHostNetworkDetailsWidget::loadDataForInterface() 832 832 { 833 833 /* Toggle IPv4 & IPv6 interface fields availability: */ … … 856 856 } 857 857 858 void UIHostNetworkDetails Dialog::loadDataForDHCPServer()858 void UIHostNetworkDetailsWidget::loadDataForDHCPServer() 859 859 { 860 860 /* Toggle DHCP server fields availability: */ … … 897 897 } 898 898 899 void UIHostNetworkDetails Dialog::revalidate(QWidget *pWidget /* = 0 */)899 void UIHostNetworkDetailsWidget::revalidate(QWidget *pWidget /* = 0 */) 900 900 { 901 901 /* Validate 'Interface' tab content: */ … … 982 982 } 983 983 984 void UIHostNetworkDetails Dialog::retranslateValidation(QWidget *pWidget /* = 0 */)984 void UIHostNetworkDetailsWidget::retranslateValidation(QWidget *pWidget /* = 0 */) 985 985 { 986 986 /* Translate 'Interface' tab content: */ … … 1016 1016 } 1017 1017 1018 void UIHostNetworkDetails Dialog::updateButtonStates()1018 void UIHostNetworkDetailsWidget::updateButtonStates() 1019 1019 { 1020 1020 // if (m_oldData != m_newData) -
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkDetailsWidget.h
r67685 r67686 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIHostNetworkDetails Dialogclass declaration.3 * VBox Qt GUI - UIHostNetworkDetailsWidget class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef ___UIHostNetworkDetails Dialog_h___19 #define ___UIHostNetworkDetails Dialog_h___18 #ifndef ___UIHostNetworkDetailsWidget_h___ 19 #define ___UIHostNetworkDetailsWidget_h___ 20 20 21 21 /* Qt includes: */ … … 159 159 160 160 /** Host Network Manager: Host network details widget. */ 161 class UIHostNetworkDetails Dialog: public QIWithRetranslateUI2<QWidget>161 class UIHostNetworkDetailsWidget : public QIWithRetranslateUI2<QWidget> 162 162 { 163 163 Q_OBJECT; … … 176 176 177 177 /** Constructs host network details dialog for the passed @a pParent and @a data. */ 178 UIHostNetworkDetails Dialog(EmbedTo enmEmbedding, QWidget *pParent = 0);178 UIHostNetworkDetailsWidget(EmbedTo enmEmbedding, QWidget *pParent = 0); 179 179 180 180 /** Returns the host network data. */ … … 351 351 }; 352 352 353 #endif /* !___UIHostNetworkDetails Dialog_h___ */354 353 #endif /* !___UIHostNetworkDetailsWidget_h___ */ 354 -
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkManager.cpp
r67630 r67686 29 29 # include "QITreeWidget.h" 30 30 # include "UIIconPool.h" 31 # include "UIHostNetworkDetails Dialog.h"31 # include "UIHostNetworkDetailsWidget.h" 32 32 # include "UIHostNetworkManager.h" 33 33 # include "UIHostNetworkUtils.h" … … 858 858 { 859 859 /* Create details-widget: */ 860 m_pDetailsWidget = new UIHostNetworkDetails Dialog(m_enmEmbedding);860 m_pDetailsWidget = new UIHostNetworkDetailsWidget(m_enmEmbedding); 861 861 AssertPtrReturnVoid(m_pDetailsWidget); 862 862 { … … 864 864 m_pDetailsWidget->setVisible(false); 865 865 m_pDetailsWidget->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); 866 connect(m_pDetailsWidget, &UIHostNetworkDetails Dialog::sigDataChanged,866 connect(m_pDetailsWidget, &UIHostNetworkDetailsWidget::sigDataChanged, 867 867 this, &UIHostNetworkManagerWidget::sigHostNetworkDetailsDataChanged); 868 connect(m_pDetailsWidget, &UIHostNetworkDetails Dialog::sigDataChangeRejected,868 connect(m_pDetailsWidget, &UIHostNetworkDetailsWidget::sigDataChangeRejected, 869 869 this, &UIHostNetworkManagerWidget::sltResetHostNetworkDetailsChanges); 870 connect(m_pDetailsWidget, &UIHostNetworkDetails Dialog::sigDataChangeAccepted,870 connect(m_pDetailsWidget, &UIHostNetworkDetailsWidget::sigDataChangeAccepted, 871 871 this, &UIHostNetworkManagerWidget::sltApplyHostNetworkDetailsChanges); 872 872 -
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkManager.h
r67575 r67686 32 32 class QIDialogButtonBox; 33 33 class QITreeWidget; 34 class UIHostNetworkDetails Dialog;34 class UIHostNetworkDetailsWidget; 35 35 class UIItemHostNetwork; 36 36 class UIToolBar; … … 175 175 QITreeWidget *m_pTreeWidget; 176 176 /** Holds the details-widget instance. */ 177 UIHostNetworkDetails Dialog*m_pDetailsWidget;177 UIHostNetworkDetailsWidget *m_pDetailsWidget; 178 178 /** @} */ 179 179 };
Note:
See TracChangeset
for help on using the changeset viewer.