VirtualBox

Ignore:
Timestamp:
Mar 13, 2008 2:33:18 PM (17 years ago)
Author:
vboxsync
Message:

Main: Applied SATA changes from #2406. Increased XML settings version format from 1.2 to 1.3.pre.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMInformationDlg.ui.h

    r7250 r7442  
    485485
    486486    /* Hard Disk Statistics. */
     487    QString primaryMaster = QString ("%1 %2")
     488        .arg (vboxGlobal().toString (KStorageBus_IDE, 0))
     489        .arg (vboxGlobal().toString (KStorageBus_IDE, 0, 0));
     490    QString primarySlave = QString ("%1 %2")
     491        .arg (vboxGlobal().toString (KStorageBus_IDE, 0))
     492        .arg (vboxGlobal().toString (KStorageBus_IDE, 0, 1));
     493    QString secondarySlave = QString ("%1 %2")
     494        .arg (vboxGlobal().toString (KStorageBus_IDE, 1))
     495        .arg (vboxGlobal().toString (KStorageBus_IDE, 1, 1));
     496
    487497    result += hdrRow.arg (":/hd_16px.png").arg (tr ("IDE Hard Disk Statistics"));
    488     result += formatHardDisk (tr ("Primary Master"), KDiskControllerType_IDE0, 0, 0, 1);
     498    result += formatHardDisk (primaryMaster, KStorageBus_IDE, 0, 0, 0, 1);
    489499    result += interline;
    490     result += formatHardDisk (tr ("Primary Slave"), KDiskControllerType_IDE0, 1, 4, 5);
     500    result += formatHardDisk (primarySlave, KStorageBus_IDE, 0, 1, 4, 5);
    491501    result += interline;
    492     result += formatHardDisk (tr ("Secondary Slave"), KDiskControllerType_IDE1, 1, 12, 13);
     502    result += formatHardDisk (secondarySlave, KStorageBus_IDE, 1, 1, 12, 13);
    493503    result += paragraph;
    494504
    495505    /* CD/DVD-ROM Statistics. */
    496506    result += hdrRow.arg (":/cd_16px.png").arg (tr ("CD/DVD-ROM Statistics"));
    497     result += formatHardDisk (QString::null /* tr ("Secondary Master") */,
    498                               KDiskControllerType_IDE1, 0, 8, 9);
     507    result += formatHardDisk (QString::null,
     508                              KStorageBus_IDE, 1, 0, 8, 9);
    499509    result += paragraph;
    500510
     
    515525
    516526QString VBoxVMInformationDlg::formatHardDisk (const QString &aName,
    517                                               KDiskControllerType aType,
    518                                               LONG aSlot, int aStart, int aFinish)
     527                                              KStorageBus aBus, LONG aChannel,
     528                                              LONG aDevice, int aStart, int aFinish)
    519529{
    520530    if (mSession.isNull())
     
    525535
    526536    QString result = aName.isNull() ? QString::null : header.arg (aName);
    527     CHardDisk hd = machine.GetHardDisk (aType, aSlot);
    528     if (!hd.isNull() || (aType == KDiskControllerType_IDE1 && aSlot == 0))
     537    CHardDisk hd = machine.GetHardDisk (aBus, aChannel, aDevice);
     538    if (!hd.isNull() || (aBus == KStorageBus_IDE && aChannel == 1 && aDevice == 0))
    529539    {
    530540        result += composeArticle (QString::null, aStart, aFinish);
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