Changeset 6616 in vbox
- Timestamp:
- Jan 30, 2008 5:31:18 PM (17 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r6597 r6616 910 910 TriStateBool_T hwVirtExEnabled; 911 911 machine->COMGETTER(HWVirtExEnabled)(&hwVirtExEnabled); 912 if (hwVirtExEnabled == TriStateBool_ Default)912 if (hwVirtExEnabled == TriStateBool_TSDefault) 913 913 { 914 914 BOOL fHWVirtExEnabled; … … 924 924 { 925 925 if (details == VMINFO_MACHINEREADABLE) 926 RTPrintf("hwvirtex=\"%s\"\n", hwVirtExEnabled == TriStateBool_T rue ? "on" : "off");926 RTPrintf("hwvirtex=\"%s\"\n", hwVirtExEnabled == TriStateBool_TSTrue ? "on" : "off"); 927 927 else 928 RTPrintf("Hardw. virt.ext: %s\n", hwVirtExEnabled == TriStateBool_T rue ? "on" : "off");928 RTPrintf("Hardw. virt.ext: %s\n", hwVirtExEnabled == TriStateBool_TSTrue ? "on" : "off"); 929 929 } 930 930 … … 4392 4392 if (strcmp(hwvirtex, "on") == 0) 4393 4393 { 4394 CHECK_ERROR(machine, COMSETTER(HWVirtExEnabled)(TriStateBool_T rue));4394 CHECK_ERROR(machine, COMSETTER(HWVirtExEnabled)(TriStateBool_TSTrue)); 4395 4395 } 4396 4396 else if (strcmp(hwvirtex, "off") == 0) 4397 4397 { 4398 CHECK_ERROR(machine, COMSETTER(HWVirtExEnabled)(TriStateBool_ False));4398 CHECK_ERROR(machine, COMSETTER(HWVirtExEnabled)(TriStateBool_TSFalse)); 4399 4399 } 4400 4400 else if (strcmp(hwvirtex, "default") == 0) 4401 4401 { 4402 CHECK_ERROR(machine, COMSETTER(HWVirtExEnabled)(TriStateBool_ Default));4402 CHECK_ERROR(machine, COMSETTER(HWVirtExEnabled)(TriStateBool_TSDefault)); 4403 4403 } 4404 4404 else -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r6438 r6616 838 838 unsigned fPATM = ~0U; 839 839 unsigned fCSAM = ~0U; 840 TriStateBool_T fHWVirt = TriStateBool_ Default;840 TriStateBool_T fHWVirt = TriStateBool_TSDefault; 841 841 uint32_t u32WarpDrive = 0; 842 842 #endif … … 1275 1275 fCSAM = false; 1276 1276 else if (strcmp(argv[curArg], "-hwvirtex") == 0) 1277 fHWVirt = TriStateBool_T rue;1277 fHWVirt = TriStateBool_TSTrue; 1278 1278 else if (strcmp(argv[curArg], "-nohwvirtex") == 0) 1279 fHWVirt = TriStateBool_ False;1279 fHWVirt = TriStateBool_TSFalse; 1280 1280 else if (strcmp(argv[curArg], "-warpdrive") == 0) 1281 1281 { … … 1823 1823 gMachineDebugger->COMSETTER(CSAMEnabled)(fCSAM); 1824 1824 } 1825 if (fHWVirt != TriStateBool_ Default)1825 if (fHWVirt != TriStateBool_TSDefault) 1826 1826 { 1827 1827 gMachine->COMSETTER(HWVirtExEnabled)(fHWVirt); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r6608 r6616 1442 1442 /* VT-x/AMD-V */ 1443 1443 CSystemProperties props = vboxGlobal().virtualBox().GetSystemProperties(); 1444 QString virt = m.GetHWVirtExEnabled() == true ?1444 QString virt = m.GetHWVirtExEnabled() == CEnums::TSTrue ? 1445 1445 tr ("Enabled", "details report (VT-x/AMD-V)") : 1446 m.GetHWVirtExEnabled() == false ?1446 m.GetHWVirtExEnabled() == CEnums::TSFalse ? 1447 1447 tr ("Disabled", "details report (VT-x/AMD-V)") : 1448 1448 props.GetHWVirtExEnabled() ? -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxNewVMWzd.ui.h
r5999 r6616 330 330 type.GetId() == "os2warp4" || 331 331 type.GetId() == "os2warp45") 332 cmachine.SetHWVirtExEnabled (CEnums::T rue);332 cmachine.SetHWVirtExEnabled (CEnums::TSTrue); 333 333 334 334 /* RAM size */ -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r6383 r6616 1671 1671 1672 1672 /* VT-x/AMD-V */ 1673 machine.GetHWVirtExEnabled() == CEnums:: False ? chbVTX->setChecked (false) :1674 machine.GetHWVirtExEnabled() == CEnums::T rue ? chbVTX->setChecked (true) :1675 chbVTX->setNoChange();1673 machine.GetHWVirtExEnabled() == CEnums::TSFalse ? chbVTX->setChecked (false) : 1674 machine.GetHWVirtExEnabled() == CEnums::TSTrue ? chbVTX->setChecked (true) : 1675 chbVTX->setNoChange(); 1676 1676 1677 1677 /* Saved state folder */ … … 2044 2044 /* VT-x/AMD-V */ 2045 2045 cmachine.SetHWVirtExEnabled ( 2046 chbVTX->state() == QButton::Off ? CEnums:: False :2047 chbVTX->state() == QButton::On ? CEnums::T rue : CEnums::Default);2046 chbVTX->state() == QButton::Off ? CEnums::TSFalse : 2047 chbVTX->state() == QButton::On ? CEnums::TSTrue : CEnums::TSDefault); 2048 2048 2049 2049 /* Saved state folder */ -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r6597 r6616 153 153 BOOL fHWVirtExEnabled; 154 154 hrc = pMachine->COMGETTER(HWVirtExEnabled)(&hwVirtExEnabled); H(); 155 if (hwVirtExEnabled == TriStateBool_ Default)155 if (hwVirtExEnabled == TriStateBool_TSDefault) 156 156 { 157 157 /* check the default value */ … … 159 159 } 160 160 else 161 fHWVirtExEnabled = (hwVirtExEnabled == TriStateBool_T rue);161 fHWVirtExEnabled = (hwVirtExEnabled == TriStateBool_TSTrue); 162 162 #ifndef RT_OS_DARWIN /** @todo Implement HWVirtExt on darwin. See #1865. */ 163 163 if (fHWVirtExEnabled) -
trunk/src/VBox/Main/MachineImpl.cpp
r6449 r6616 169 169 mVRAMSize = 8; 170 170 mMonitorCount = 1; 171 mHWVirtExEnabled = TriStateBool_ False;171 mHWVirtExEnabled = TriStateBool_TSFalse; 172 172 173 173 /* default boot order: floppy - DVD - HDD */ … … 4141 4141 { 4142 4142 /* default value in case the node is not there */ 4143 mHWData->mHWVirtExEnabled = TriStateBool_ Default;4143 mHWData->mHWVirtExEnabled = TriStateBool_TSDefault; 4144 4144 4145 4145 Key cpuNode = aNode.findKey ("CPU"); … … 4151 4151 const char *enabled = hwVirtExNode.stringValue ("enabled"); 4152 4152 if (strcmp (enabled, "false") == 0) 4153 mHWData->mHWVirtExEnabled = TriStateBool_ False;4153 mHWData->mHWVirtExEnabled = TriStateBool_TSFalse; 4154 4154 else if (strcmp (enabled, "true") == 0) 4155 mHWData->mHWVirtExEnabled = TriStateBool_T rue;4155 mHWData->mHWVirtExEnabled = TriStateBool_TSTrue; 4156 4156 else 4157 mHWData->mHWVirtExEnabled = TriStateBool_ Default;4157 mHWData->mHWVirtExEnabled = TriStateBool_TSDefault; 4158 4158 } 4159 4159 } … … 5529 5529 switch (mHWData->mHWVirtExEnabled) 5530 5530 { 5531 case TriStateBool_ False:5531 case TriStateBool_TSFalse: 5532 5532 value = "false"; 5533 5533 break; 5534 case TriStateBool_T rue:5534 case TriStateBool_TSTrue: 5535 5535 value = "true"; 5536 5536 break; 5537 case TriStateBool_ Default:5537 case TriStateBool_TSDefault: 5538 5538 value = "default"; 5539 5539 } -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r6597 r6616 105 105 </desc> 106 106 107 <const name=" False" value="0"/>108 <const name="T rue" value="1"/>109 <const name=" Default" value="2"/>107 <const name="TSFalse" value="0"/> 108 <const name="TSTrue" value="1"/> 109 <const name="TSDefault" value="2"/> 110 110 </enum> 111 111
Note:
See TracChangeset
for help on using the changeset viewer.