- Timestamp:
- Aug 18, 2008 6:24:20 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 34930
- Location:
- trunk/src/VBox/Frontends/VirtualBox4/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp
r11412 r11471 1483 1483 { 1484 1484 static const char *sTableTpl = 1485 "<table border=0 cellspacing= 0cellpadding=0>%1</table>";1485 "<table border=0 cellspacing=4 cellpadding=0>%1</table>"; 1486 1486 static const char *sSectionHrefTpl = 1487 "<tr><td width=2 6rowspan=%1 align=left><img src='%2'></td>"1487 "<tr><td width=22 rowspan=%1 align=left><img src='%2'></td>" 1488 1488 "<td colspan=2><b><a href='%3'><nobr>%4</nobr></a></b></td></tr>" 1489 1489 "%5" 1490 1490 "<tr><td colspan=2><font size=1> </font></td></tr>"; 1491 1491 static const char *sSectionBoldTpl = 1492 "<tr><td width=2 6rowspan=%1 align=left><img src='%2'></td>"1492 "<tr><td width=22 rowspan=%1 align=left><img src='%2'></td>" 1493 1493 "<td colspan=2><!-- %3 --><b><nobr>%4</nobr></b></td></tr>" 1494 1494 "%5" 1495 1495 "<tr><td colspan=2><font size=1> </font></td></tr>"; 1496 1496 static const char *sSectionItemTpl = 1497 "<tr><td width= 30%><nobr>%1</nobr></td><td>%2</td></tr>";1497 "<tr><td width=40%><nobr>%1</nobr></td><td>%2</td></tr>"; 1498 1498 1499 1499 static QString sGeneralBasicHrefTpl, sGeneralBasicBoldTpl; … … 1531 1531 + QString (sSectionItemTpl).arg (tr ("IO APIC", "details report"), "%7") 1532 1532 + QString (sSectionItemTpl).arg (tr ("VT-x/AMD-V", "details report"), "%8") 1533 + QString (sSectionItemTpl).arg (tr ("PAE/NX", "details report"), "%9"); 1533 + QString (sSectionItemTpl).arg (tr ("Nested Paging", "details report"), "%9") 1534 + QString (sSectionItemTpl).arg (tr ("PAE/NX", "details report"), "%10"); 1534 1535 1535 1536 sGeneralFullHrefTpl = QString (sSectionHrefTpl) 1536 .arg (2 + 9) /* rows */1537 .arg (2 + 10) /* rows */ 1537 1538 .arg (":/machine_16px.png", /* icon */ 1538 1539 "#general", /* link */ … … 1540 1541 generalItems); /* items */ 1541 1542 sGeneralFullBoldTpl = QString (sSectionBoldTpl) 1542 .arg (2 + 9) /* rows */1543 .arg (2 + 10) /* rows */ 1543 1544 .arg (":/machine_16px.png", /* icon */ 1544 1545 "#general", /* link */ … … 1648 1649 1649 1650 /* VT-x/AMD-V */ 1650 CSystemProperties props = vboxGlobal().virtualBox().GetSystemProperties();1651 1651 QString virt = m.GetHWVirtExEnabled() == KTSBool_True ? 1652 1652 tr ("Enabled", "details report (VT-x/AMD-V)") : 1653 1653 tr ("Disabled", "details report (VT-x/AMD-V)"); 1654 1655 /* Nested paging status */ 1656 QString nested = m.GetHWVirtExNestedPagingEnabled() ? 1657 tr ("Enabled", "details report (Nested Paging)") : 1658 tr ("Disabled", "details report (Nested Paging)"); 1654 1659 1655 1660 /* PAE/NX */ … … 1669 1674 .arg (ioapic) 1670 1675 .arg (virt) 1676 .arg (nested) 1671 1677 .arg (pae) 1672 1678 + hardDisks; -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMInformationDlg.cpp
r11118 r11471 78 78 mDetailsText->viewport()->setAutoFillBackground (false); 79 79 mStatisticText->viewport()->setAutoFillBackground (false); 80 81 /* For further tuning can be used setViewportMargins method of 82 * QRichTextEdit extended class: */ 83 #if 0 80 84 mDetailsText->setViewportMargins (5, 5, 5, 5); 81 85 mStatisticText->setViewportMargins (5, 5, 5, 5); 86 #endif 82 87 83 88 /* Setup handlers */ … … 144 149 145 150 AssertReturnVoid (!mSession.isNull()); 146 147 151 CMachine machine = mSession.GetMachine(); 152 AssertReturnVoid (!machine.isNull()); 148 153 149 154 /* Setup a dialog caption */ … … 387 392 return; 388 393 389 QString table = "<table border=0 cellspacing= 0cellpadding=0>%1</table>";390 QString hdrRow = "<tr><td width=2 6 align=left><img src='%1'></td><td colspan=3><b>%2</b></td></tr>";391 QString bdyRow = "<tr><td></td><td ><nobr>%1</nobr></td><td colspan=2><nobr>%2</nobr></td></tr>";394 QString table = "<table border=0 cellspacing=4 cellpadding=0>%1</table>"; 395 QString hdrRow = "<tr><td width=22 align=left><img src='%1'></td><td colspan=3><nobr><b>%2</b></nobr></td></tr>"; 396 QString bdyRow = "<tr><td></td><td width=50%><nobr>%1</nobr></td><td colspan=2><nobr>%2</nobr></td></tr>"; 392 397 QString paragraph = "<tr><td colspan=4></td></tr>"; 393 398 QString result; … … 407 412 VBoxGlobal::tr ("Enabled", "details report (VT-x/AMD-V)") : 408 413 VBoxGlobal::tr ("Disabled", "details report (VT-x/AMD-V)"); 414 QString nested = console.GetDebugger().GetHWVirtExNestedPagingEnabled() ? 415 VBoxGlobal::tr ("Enabled", "details report (Nested Paging)") : 416 VBoxGlobal::tr ("Disabled", "details report (Nested Paging)"); 409 417 QString addInfo = console.GetGuest().GetAdditionsVersion(); 410 418 uint addVersion = addInfo.toUInt(); … … 420 428 421 429 result += hdrRow.arg (":/state_running_16px.png").arg (tr ("Runtime Attributes")); 422 result += bdyRow.arg (tr ("Screen Resolution")).arg (resolution) + 423 bdyRow.arg (VBoxGlobal::tr ("VT-x/AMD-V", "details report")).arg (virt); 430 result += bdyRow.arg (tr ("Screen Resolution")).arg (resolution); 431 result += bdyRow.arg (VBoxGlobal::tr ("VT-x/AMD-V", "details report")).arg (virt); 432 result += bdyRow.arg (VBoxGlobal::tr ("Nested Paging", "details report")).arg (nested); 424 433 result += bdyRow.arg (tr ("Guest Additions")).arg (addVerisonStr); 425 434 result += bdyRow.arg (tr ("Guest OS Type")).arg (osType); … … 545 554 QString VBoxVMInformationDlg::composeArticle (const QString &aBelongsTo) 546 555 { 547 QString body = "<tr><td></td><td ><nobr>%1</nobr></td><tdalign=right>"548 "<nobr>%2%3</nobr></td>< td></td></tr>";556 QString body = "<tr><td></td><td width=50%><nobr>%1</nobr></td><td colspan=2 align=right>" 557 "<nobr>%2%3</nobr></td></tr>"; 549 558 QString result; 550 559
Note:
See TracChangeset
for help on using the changeset viewer.