VirtualBox

Changeset 6603 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 30, 2008 1:56:19 PM (17 years ago)
Author:
vboxsync
Message:

1761: Create VM session information dialog:

First version of Session Information Dialog implemented.
Dialog Invoked from working VM console by Host+N key combination.
Dialog contains Basic & Runtime tabs with VM details, runtime parameters and HD statistics. Network & Other statistics will be added into GUI when the necessary counters appears.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/VBoxUI.pro

    r6350 r6603  
    3838        ui/VBoxVMFirstRunWzd.ui \
    3939        ui/VBoxVMLogViewer.ui \
    40         ui/VBoxRegistrationDlg.ui
     40        ui/VBoxRegistrationDlg.ui \
     41        ui/VBoxVMInformationDlg.ui
    4142
    4243IMAGES  = images/tpixel.png \
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleWnd.h

    r6482 r6603  
    141141    void vmClose();
    142142    void vmTakeSnapshot();
     143    void vmShowInfoDialog();
    143144    void vmDisableMouseIntegr (bool);
    144145
     
    211212    QAction *vmTakeSnapshotAction;
    212213    QAction *vmDisableMouseIntegrAction;
     214    QAction *vmShowInformationDlgAction;
    213215
    214216    // Devices actions
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r5999 r6603  
    384384    /* details generators */
    385385
    386     QString details (const CHardDisk &aHD, bool aPredict = false);
     386    QString details (const CHardDisk &aHD, bool aPredict = false,
     387                     bool aDoRefresh = true);
    387388
    388389    QString details (const CUSBDevice &aDevice) const;
     
    391392    QString prepareFileNameForHTML (const QString &fn) const;
    392393
    393     QString detailsReport (const CMachine &m, bool isNewVM, bool withLinks);
     394    QString detailsReport (const CMachine &m, bool isNewVM, bool withLinks,
     395                           bool aDoRefresh = true);
    394396
    395397    /* VirtualBox helpers */
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r6522 r6603  
    2424#include "VBoxVMFirstRunWzd.h"
    2525#include "VBoxSharedFoldersSettings.h"
     26#include "VBoxVMInformationDlg.h"
    2627#include "VBoxDownloaderWgt.h"
    2728#include "QIStateIndicator.h"
     
    207208        "take_snapshot_16px.png", "take_snapshot_dis_16px.png"));
    208209
     210    vmShowInformationDlgAction = new QAction (this, "vmShowInformationDlgAction");
     211    vmShowInformationDlgAction->setIconSet (VBoxGlobal::iconSet (
     212        "description_16px.png", "description_disabled_16px.png"));
     213
    209214    vmDisableMouseIntegrAction = new QAction (this, "vmDisableMouseIntegrAction");
    210215    vmDisableMouseIntegrAction->setIconSet (VBoxGlobal::iconSet (
     
    297302    vmMenu->insertSeparator();
    298303    vmTakeSnapshotAction->addTo (vmMenu);
     304    vmMenu->insertSeparator();
     305    vmShowInformationDlgAction->addTo (vmMenu);
    299306    vmMenu->insertSeparator();
    300307    vmResetAction->addTo (vmMenu);
     
    485492
    486493    connect (vmTakeSnapshotAction, SIGNAL(activated()), this, SLOT(vmTakeSnapshot()));
     494    connect (vmShowInformationDlgAction, SIGNAL(activated()), this, SLOT (vmShowInfoDialog()));
    487495
    488496    connect (vmDisableMouseIntegrAction, SIGNAL(toggled (bool)), this, SLOT(vmDisableMouseIntegr (bool)));
     
    14601468    vmTakeSnapshotAction->setStatusTip (tr ("Take a snapshot of the virtual machine"));
    14611469
     1470    vmShowInformationDlgAction->setMenuText (tr ("Session I&nformation Dialog") +
     1471                                             "\tHost+N");
     1472    vmShowInformationDlgAction->setStatusTip (tr ("Show Session Information Dialog"));
     1473
    14621474    /* vmDisableMouseIntegrAction is set up in updateAppearanceOf() */
    14631475
     
    24082420}
    24092421
     2422void VBoxConsoleWnd::vmShowInfoDialog()
     2423{
     2424    VBoxVMInformationDlg::createInformationDlg (csession, console);
     2425}
     2426
    24102427void VBoxConsoleWnd::vmDisableMouseIntegr (bool aOff)
    24112428{
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r6490 r6603  
    11231123 *  return an empty string.
    11241124 */
    1125 QString VBoxGlobal::details (const CHardDisk &aHD, bool aPredict /* = false */)
     1125QString VBoxGlobal::details (const CHardDisk &aHD, bool aPredict /* = false */,
     1126                             bool aDoRefresh)
    11261127{
    11271128    Assert (!aPredict || aHD.GetParent().isNull());
    11281129
    11291130    VBoxMedia media;
    1130     if (!findMedia (CUnknown (aHD), media))
     1131    if (!aDoRefresh)
     1132        media = VBoxMedia (CUnknown (aHD), VBoxDefs::HD, VBoxMedia::Ok);
     1133    else if (!findMedia (CUnknown (aHD), media))
    11311134    {
    11321135        /* media may be new and not alredy in the media list, request refresh */
     
    12711274 */
    12721275QString VBoxGlobal::detailsReport (const CMachine &m, bool isNewVM,
    1273                                    bool withLinks)
     1276                                   bool withLinks, bool aDoRefresh)
    12741277{
    12751278    static const char *sTableTpl =
     
    13201323            + QString (sSectionItemTpl).arg (tr ("Boot Order", "details report"), "%5")
    13211324            + QString (sSectionItemTpl).arg (tr ("ACPI", "details report"), "%6")
    1322             + QString (sSectionItemTpl).arg (tr ("IO APIC", "details report"), "%7");
     1325            + QString (sSectionItemTpl).arg (tr ("IO APIC", "details report"), "%7")
     1326            + QString (sSectionItemTpl).arg (tr ("VT-x/AMD-V", "details report"), "%8");
    13231327
    13241328        sGeneralFullHrefTpl = QString (sSectionHrefTpl)
    1325             .arg (2 + 7) /* rows */
     1329            .arg (2 + 8) /* rows */
    13261330            .arg ("machine_16px.png", /* icon */
    13271331                  "#general", /* link */
     
    13291333                  generalItems); /* items */
    13301334        sGeneralFullBoldTpl = QString (sSectionBoldTpl)
    1331             .arg (2 + 7) /* rows */
     1335            .arg (2 + 8) /* rows */
    13321336            .arg ("machine_16px.png", /* icon */
    13331337                  "#general", /* link */
     
    13661370                        .arg (QString ("%1 [<nobr>%2</nobr>]")
    13671371                              .arg (prepareFileNameForHTML (src))
    1368                               .arg (details (hd, isNewVM /* predict */)));
     1372                              .arg (details (hd, isNewVM /* predict */, aDoRefresh)));
    13691373                    ++ rows;
    13701374                }
     
    14351439            ? tr ("Enabled", "details report (IO APIC)")
    14361440            : tr ("Disabled", "details report (IO APIC)");
     1441
     1442        /* VT-x/AMD-V */
     1443        CSystemProperties props = vboxGlobal().virtualBox().GetSystemProperties();
     1444        QString virt = m.GetHWVirtExEnabled() == True ?
     1445                       tr ("Enabled", "details report (VT-x/AMD-V)") :
     1446                       m.GetHWVirtExEnabled() == False ?
     1447                       tr ("Disabled", "details report (VT-x/AMD-V)") :
     1448                       props.GetHWVirtExEnabled() ?
     1449                       tr ("Enabled", "details report (VT-x/AMD-V)") :
     1450                       tr ("Disabled", "details report (VT-x/AMD-V)");
    14371451
    14381452        /* General + Hard Disks */
     
    14461460                .arg (acpi)
    14471461                .arg (ioapic)
     1462                .arg (virt)
    14481463            + hardDisks;
    14491464
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