VirtualBox

Changeset 11471 in vbox for trunk/src


Ignore:
Timestamp:
Aug 18, 2008 6:24:20 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34930
Message:

Fe/Qt4: 'Nested Paging' VM attribute added to Details Page. Little relayouting of Session Information Dialog to make Details & Runtime pages more proportional and feat the containing data.

Location:
trunk/src/VBox/Frontends/VirtualBox4/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp

    r11412 r11471  
    14831483{
    14841484    static const char *sTableTpl =
    1485         "<table border=0 cellspacing=0 cellpadding=0>%1</table>";
     1485        "<table border=0 cellspacing=4 cellpadding=0>%1</table>";
    14861486    static const char *sSectionHrefTpl =
    1487         "<tr><td width=26 rowspan=%1 align=left><img src='%2'></td>"
     1487        "<tr><td width=22 rowspan=%1 align=left><img src='%2'></td>"
    14881488            "<td colspan=2><b><a href='%3'><nobr>%4</nobr></a></b></td></tr>"
    14891489            "%5"
    14901490        "<tr><td colspan=2><font size=1>&nbsp;</font></td></tr>";
    14911491    static const char *sSectionBoldTpl =
    1492         "<tr><td width=26 rowspan=%1 align=left><img src='%2'></td>"
     1492        "<tr><td width=22 rowspan=%1 align=left><img src='%2'></td>"
    14931493            "<td colspan=2><!-- %3 --><b><nobr>%4</nobr></b></td></tr>"
    14941494            "%5"
    14951495        "<tr><td colspan=2><font size=1>&nbsp;</font></td></tr>";
    14961496    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>";
    14981498
    14991499    static QString sGeneralBasicHrefTpl, sGeneralBasicBoldTpl;
     
    15311531            + QString (sSectionItemTpl).arg (tr ("IO APIC", "details report"), "%7")
    15321532            + 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");
    15341535
    15351536        sGeneralFullHrefTpl = QString (sSectionHrefTpl)
    1536             .arg (2 + 9) /* rows */
     1537            .arg (2 + 10) /* rows */
    15371538            .arg (":/machine_16px.png", /* icon */
    15381539                  "#general", /* link */
     
    15401541                  generalItems); /* items */
    15411542        sGeneralFullBoldTpl = QString (sSectionBoldTpl)
    1542             .arg (2 + 9) /* rows */
     1543            .arg (2 + 10) /* rows */
    15431544            .arg (":/machine_16px.png", /* icon */
    15441545                  "#general", /* link */
     
    16481649
    16491650        /* VT-x/AMD-V */
    1650         CSystemProperties props = vboxGlobal().virtualBox().GetSystemProperties();
    16511651        QString virt = m.GetHWVirtExEnabled() == KTSBool_True ?
    16521652                       tr ("Enabled", "details report (VT-x/AMD-V)") :
    16531653                       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)");
    16541659
    16551660        /* PAE/NX */
     
    16691674                .arg (ioapic)
    16701675                .arg (virt)
     1676                .arg (nested)
    16711677                .arg (pae)
    16721678            + hardDisks;
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMInformationDlg.cpp

    r11118 r11471  
    7878    mDetailsText->viewport()->setAutoFillBackground (false);
    7979    mStatisticText->viewport()->setAutoFillBackground (false);
     80
     81    /* For further tuning can be used setViewportMargins method of
     82     * QRichTextEdit extended class: */
     83#if 0
    8084    mDetailsText->setViewportMargins (5, 5, 5, 5);
    8185    mStatisticText->setViewportMargins (5, 5, 5, 5);
     86#endif
    8287
    8388    /* Setup handlers */
     
    144149
    145150    AssertReturnVoid (!mSession.isNull());
    146         CMachine machine = mSession.GetMachine();
    147         AssertReturnVoid (!machine.isNull());
     151    CMachine machine = mSession.GetMachine();
     152    AssertReturnVoid (!machine.isNull());
    148153
    149154    /* Setup a dialog caption */
     
    387392        return;
    388393
    389     QString table = "<table border=0 cellspacing=0 cellpadding=0>%1</table>";
    390     QString hdrRow = "<tr><td width=26 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>";
    392397    QString paragraph = "<tr><td colspan=4></td></tr>";
    393398    QString result;
     
    407412            VBoxGlobal::tr ("Enabled", "details report (VT-x/AMD-V)") :
    408413            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)");
    409417        QString addInfo = console.GetGuest().GetAdditionsVersion();
    410418        uint addVersion = addInfo.toUInt();
     
    420428
    421429        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);
    424433        result += bdyRow.arg (tr ("Guest Additions")).arg (addVerisonStr);
    425434        result += bdyRow.arg (tr ("Guest OS Type")).arg (osType);
     
    545554QString VBoxVMInformationDlg::composeArticle (const QString &aBelongsTo)
    546555{
    547     QString body = "<tr><td></td><td><nobr>%1</nobr></td><td align=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>";
    549558    QString result;
    550559
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette