Changeset 6372 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 17, 2008 5:51:53 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/ui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMNetworkSettings.ui
r6364 r6372 672 672 </includes> 673 673 <variables> 674 <variable access="public">enum CheckPageResult { NoErrors, IncorrectInterface, MissedNetworkName };</variable> 674 675 <variable access="private">CNetworkAdapter cadapter;</variable> 675 676 <variable access="private">QIWidgetValidator *mWalidator;</variable> … … 684 685 <functions> 685 686 <function access="private" specifier="non virtual">init()</function> 686 <function returnType=" int">checkPage( const QStringList & )</function>687 <function returnType="CheckPageResult">checkPage( const QStringList & )</function> 687 688 <function>loadInterfaceList( const QStringList &, const QString & )</function> 688 689 <function>loadNetworksList( const QStringList & )</function> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMNetworkSettings.ui.h
r6364 r6372 76 76 } 77 77 78 int VBoxVMNetworkSettings::checkPage (const QStringList &aList)78 VBoxVMNetworkSettings::CheckPageResult VBoxVMNetworkSettings::checkPage (const QStringList &aList) 79 79 { 80 80 CEnums::NetworkAttachmentType type = … … 83 83 if (type == CEnums::HostInterfaceNetworkAttachment && 84 84 isInterfaceInvalid (aList, cbHostInterfaceName->currentText())) 85 return 1;85 return IncorrectInterface; 86 86 else if (type == CEnums::InternalNetworkAttachment && 87 87 cbInternalNetworkName_WIN->currentText().isEmpty()) 88 return 2;88 return MissedNetworkName; 89 89 else 90 return 0;90 return NoErrors; 91 91 #else 92 92 NOREF (aList); 93 93 if (type == CEnums::InternalNetworkAttachment && 94 94 cbInternalNetworkName_X11->currentText().isEmpty()) 95 return 2;95 return MissedNetworkName; 96 96 else 97 return 0;97 return NoErrors; 98 98 #endif 99 99 } -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r6368 r6372 1530 1530 { 1531 1531 Assert (tab); 1532 warningText = error == 1 ? 1533 tr ("Incorrect host network interface is selected") : error == 2 ? 1532 warningText = error == VBoxVMNetworkSettings::IncorrectInterface ? 1533 tr ("Incorrect host network interface is selected") : 1534 error == VBoxVMNetworkSettings::MissedNetworkName ? 1534 1535 tr ("Internal network name is not set") : QString::null; 1535 1536 pageTitle += ": " + tbwNetwork->tabLabel (tab);
Note:
See TracChangeset
for help on using the changeset viewer.