VirtualBox

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


Ignore:
Timestamp:
May 11, 2010 10:29:44 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: Prepare for correct port naming in the SAS controller case. Will be enabled after 3.2.

File:
1 edited

Legend:

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

    r29214 r29334  
    14721472        case KStorageBus_SATA:
    14731473        case KStorageBus_SCSI:
     1474        case KStorageBus_SAS:
    14741475        case KStorageBus_Floppy:
    1475         case KStorageBus_SAS:
    14761476            break;
    14771477
     
    15081508            break;
    15091509        }
     1510        case KStorageBus_SAS:
     1511        {
     1512            /* TODO: change this index to 6 after 3.2 */
     1513            result = mSlotTemplates [5].arg (aSlot.port);
     1514            break;
     1515        }
    15101516        case KStorageBus_Floppy:
    15111517        {
    1512             result = mSlotTemplates [6].arg (aSlot.device);
    1513             break;
    1514         }
    1515         case KStorageBus_SAS:
    1516         {
    1517             result = mSlotTemplates [5].arg (aSlot.port);
     1518            result = mSlotTemplates [7].arg (aSlot.device);
    15181519            break;
    15191520        }
     
    15781579        }
    15791580        case 6:
     1581        {
     1582            result.bus = KStorageBus_SAS;
     1583            int maxPort = virtualBox().GetSystemProperties().GetMaxPortCountForStorageBus (result.bus);
     1584            result.port = regExp.cap (1).toInt();
     1585            if (result.port < 0 || result.port > maxPort)
     1586                AssertMsgFailed (("Invalid port %d\n", result.port));
     1587            break;
     1588        }
     1589        case 7:
    15801590        {
    15811591            result.bus = KStorageBus_Floppy;
     
    30803090    mSlotTemplates [4] = tr ("SATA Port %1", "New Storage UI : Slot Name");
    30813091    mSlotTemplates [5] = tr ("SCSI Port %1", "New Storage UI : Slot Name");
    3082     mSlotTemplates [6] = tr ("Floppy Device %1", "New Storage UI : Slot Name");
     3092    mSlotTemplates [6] = tr ("SAS Port %1", "New Storage UI : Slot Name");
     3093    mSlotTemplates [7] = tr ("Floppy Device %1", "New Storage UI : Slot Name");
    30833094
    30843095    mDiskTypes [KMediumType_Normal] =           tr ("Normal", "DiskType");
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