VirtualBox

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


Ignore:
Timestamp:
Aug 29, 2018 2:36:45 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: Rename UIMediumType to UIMediumDeviceType

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

Legend:

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

    r73597 r73953  
    11491149}
    11501150
    1151 void UIMessageCenter::cannotAttachDevice(const CMachine &machine, UIMediumType enmType,
     1151void UIMessageCenter::cannotAttachDevice(const CMachine &machine, UIMediumDeviceType enmType,
    11521152                                         const QString &strLocation, const StorageSlot &storageSlot,
    11531153                                         QWidget *pParent /* = 0*/)
     
    11561156    switch (enmType)
    11571157    {
    1158         case UIMediumType_HardDisk:
     1158        case UIMediumDeviceType_HardDisk:
    11591159        {
    11601160            strMessage = tr("Failed to attach the hard disk (<nobr><b>%1</b></nobr>) to the slot <i>%2</i> of the machine <b>%3</b>.")
     
    11621162            break;
    11631163        }
    1164         case UIMediumType_DVD:
     1164        case UIMediumDeviceType_DVD:
    11651165        {
    11661166            strMessage = tr("Failed to attach the optical drive (<nobr><b>%1</b></nobr>) to the slot <i>%2</i> of the machine <b>%3</b>.")
     
    11681168            break;
    11691169        }
    1170         case UIMediumType_Floppy:
     1170        case UIMediumDeviceType_Floppy:
    11711171        {
    11721172            strMessage = tr("Failed to attach the floppy drive (<nobr><b>%1</b></nobr>) to the slot <i>%2</i> of the machine <b>%3</b>.")
     
    13081308    switch (medium.type())
    13091309    {
    1310         case UIMediumType_HardDisk:
     1310        case UIMediumDeviceType_HardDisk:
    13111311        {
    13121312            strMessage = tr("<p>Are you sure you want to remove the virtual hard disk "
     
    13271327            break;
    13281328        }
    1329         case UIMediumType_DVD:
     1329        case UIMediumDeviceType_DVD:
    13301330        {
    13311331            strMessage = tr("<p>Are you sure you want to remove the virtual optical disk "
     
    13351335            break;
    13361336        }
    1337         case UIMediumType_Floppy:
     1337        case UIMediumDeviceType_Floppy:
    13381338        {
    13391339            strMessage = tr("<p>Are you sure you want to remove the virtual floppy disk "
     
    14051405}
    14061406
    1407 void UIMessageCenter::cannotDetachDevice(const CMachine &machine, UIMediumType enmType, const QString &strLocation, const StorageSlot &storageSlot, QWidget *pParent /* = 0*/) const
     1407void UIMessageCenter::cannotDetachDevice(const CMachine &machine, UIMediumDeviceType enmType, const QString &strLocation, const StorageSlot &storageSlot, QWidget *pParent /* = 0*/) const
    14081408{
    14091409    /* Prepare the message: */
     
    14111411    switch (enmType)
    14121412    {
    1413         case UIMediumType_HardDisk:
     1413        case UIMediumDeviceType_HardDisk:
    14141414        {
    14151415            strMessage = tr("Failed to detach the hard disk (<nobr><b>%1</b></nobr>) from the slot <i>%2</i> of the machine <b>%3</b>.")
     
    14171417            break;
    14181418        }
    1419         case UIMediumType_DVD:
     1419        case UIMediumDeviceType_DVD:
    14201420        {
    14211421            strMessage = tr("Failed to detach the optical drive (<nobr><b>%1</b></nobr>) from the slot <i>%2</i> of the machine <b>%3</b>.")
     
    14231423            break;
    14241424        }
    1425         case UIMediumType_Floppy:
     1425        case UIMediumDeviceType_Floppy:
    14261426        {
    14271427            strMessage = tr("Failed to detach the floppy drive (<nobr><b>%1</b></nobr>) from the slot <i>%2</i> of the machine <b>%3</b>.")
     
    14421442    switch (medium.type())
    14431443    {
    1444         case UIMediumType_DVD:
     1444        case UIMediumDeviceType_DVD:
    14451445        {
    14461446            if (fMount)
     
    14581458            break;
    14591459        }
    1460         case UIMediumType_Floppy:
     1460        case UIMediumDeviceType_Floppy:
    14611461        {
    14621462            if (fMount)
     
    14901490}
    14911491
    1492 void UIMessageCenter::cannotOpenMedium(const CVirtualBox &vbox, UIMediumType, const QString &strLocation, QWidget *pParent /* = 0*/) const
     1492void UIMessageCenter::cannotOpenMedium(const CVirtualBox &vbox, UIMediumDeviceType, const QString &strLocation, QWidget *pParent /* = 0*/) const
    14931493{
    14941494    /* Show the error: */
     
    27502750    qRegisterMetaType<CConsole>();
    27512751    qRegisterMetaType<CHostNetworkInterface>();
    2752     qRegisterMetaType<UIMediumType>();
     2752    qRegisterMetaType<UIMediumDeviceType>();
    27532753    qRegisterMetaType<StorageSlot>();
    27542754
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r73586 r73953  
    319319    int confirmFloppyAttachmentCreation(const QString &strControllerName, QWidget *pParent = 0) const;
    320320    int confirmRemovingOfLastDVDDevice(QWidget *pParent = 0) const;
    321     void cannotAttachDevice(const CMachine &machine, UIMediumType type, const QString &strLocation, const StorageSlot &storageSlot, QWidget *pParent = 0);
     321    void cannotAttachDevice(const CMachine &machine, UIMediumDeviceType type, const QString &strLocation, const StorageSlot &storageSlot, QWidget *pParent = 0);
    322322    bool warnAboutIncorrectPort(QWidget *pParent = 0) const;
    323323    bool warnAboutIncorrectAddress(QWidget *pParent = 0) const;
     
    340340    void cannotResizeHardDiskStorage(const CMedium &comMedium, const QString &strLocation, const QString &strSizeOld, const QString &strSizeNew, QWidget *pParent = 0) const;
    341341    void cannotResizeHardDiskStorage(const CProgress &comProgress, const QString &strLocation, const QString &strSizeOld, const QString &strSizeNew, QWidget *pParent = 0) const;
    342     void cannotDetachDevice(const CMachine &machine, UIMediumType type, const QString &strLocation, const StorageSlot &storageSlot, QWidget *pParent = 0) const;
     342    void cannotDetachDevice(const CMachine &machine, UIMediumDeviceType type, const QString &strLocation, const StorageSlot &storageSlot, QWidget *pParent = 0) const;
    343343    bool cannotRemountMedium(const CMachine &machine, const UIMedium &medium, bool fMount, bool fRetry, QWidget *pParent = 0) const;
    344     void cannotOpenMedium(const CVirtualBox &vbox, UIMediumType type, const QString &strLocation, QWidget *pParent = 0) const;
     344    void cannotOpenMedium(const CVirtualBox &vbox, UIMediumDeviceType type, const QString &strLocation, QWidget *pParent = 0) const;
    345345    void cannotCloseMedium(const UIMedium &medium, const COMResult &rc, QWidget *pParent = 0) const;
    346346
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.cpp

    r71579 r73953  
    638638}
    639639
    640 void UIPopupCenter::cannotOpenMedium(QWidget *pParent, const CVirtualBox &comVBox, UIMediumType /* enmType */, const QString &strLocation)
     640void UIPopupCenter::cannotOpenMedium(QWidget *pParent, const CVirtualBox &comVBox, UIMediumDeviceType /* enmType */, const QString &strLocation)
    641641{
    642642    alertWithDetails(pParent, "cannotOpenMedium",
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.h

    r71630 r73953  
    173173                                const QString &strMachineName, bool fEnable);
    174174    void cannotMountImage(QWidget *pParent, const QString &strMachineName, const QString &strMediumName);
    175     void cannotOpenMedium(QWidget *pParent, const CVirtualBox &comVBox, UIMediumType enmType, const QString &strLocation);
     175    void cannotOpenMedium(QWidget *pParent, const CVirtualBox &comVBox, UIMediumDeviceType enmType, const QString &strLocation);
    176176    void cannotSaveMachineSettings(QWidget *pParent, const CMachine &comMachine);
    177177
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r73938 r73953  
    25292529}
    25302530
    2531 QString VBoxGlobal::openMedium(UIMediumType enmMediumType, QString strMediumLocation, QWidget *pParent /* = 0 */)
     2531QString VBoxGlobal::openMedium(UIMediumDeviceType enmMediumType, QString strMediumLocation, QWidget *pParent /* = 0 */)
    25322532{
    25332533    /* Convert to native separators: */
     
    25642564}
    25652565
    2566 QString VBoxGlobal::openMediumWithFileOpenDialog(UIMediumType enmMediumType, QWidget *pParent,
     2566QString VBoxGlobal::openMediumWithFileOpenDialog(UIMediumDeviceType enmMediumType, QWidget *pParent,
    25672567                                                 const QString &strDefaultFolder /* = QString() */,
    25682568                                                 bool fUseLastFolder /* = false */)
     
    25782578    switch (enmMediumType)
    25792579    {
    2580         case UIMediumType_HardDisk:
     2580        case UIMediumDeviceType_HardDisk:
    25812581        {
    25822582            filters = HDDBackends(virtualBox());
     
    25902590            break;
    25912591        }
    2592         case UIMediumType_DVD:
     2592        case UIMediumDeviceType_DVD:
    25932593        {
    25942594            filters = DVDBackends(virtualBox());
     
    26022602            break;
    26032603        }
    2604         case UIMediumType_Floppy:
     2604        case UIMediumDeviceType_Floppy:
    26052605        {
    26062606            filters = FloppyBackends(virtualBox());
     
    27112711    /* Done. */
    27122712    if (RT_SUCCESS(vrc))
    2713         return openMedium(UIMediumType_DVD, QString(szVisoPath), pParent);
     2713        return openMedium(UIMediumDeviceType_DVD, QString(szVisoPath), pParent);
    27142714
    27152715    /** @todo error message. */
     
    27442744
    27452745    /* Determine device & medium types: */
    2746     const UIMediumType enmMediumType = mediumTypeToLocal(comCurrentAttachment.GetType());
    2747     AssertMsgReturnVoid(enmMediumType != UIMediumType_Invalid, ("Incorrect storage medium type!\n"));
     2746    const UIMediumDeviceType enmMediumType = mediumTypeToLocal(comCurrentAttachment.GetType());
     2747    AssertMsgReturnVoid(enmMediumType != UIMediumDeviceType_Invalid, ("Incorrect storage medium type!\n"));
    27482748
    27492749    /* Prepare open-existing-medium action: */
     
    27562756
    27572757    /* Prepare create floppy disk action: */
    2758     if (enmMediumType == UIMediumType_Floppy)
     2758    if (enmMediumType == UIMediumDeviceType_Floppy)
    27592759    {
    27602760        QAction *pActionCreateFloppy = menu.addAction(UIIconPool::iconSet(":/fd_add_16px.png"),
     
    27672767    }
    27682768    /* Prepare ad-hoc-viso action for DVD-ROMs: */
    2769     if (enmMediumType == UIMediumType_DVD)
     2769    if (enmMediumType == UIMediumDeviceType_DVD)
    27702770    {
    27712771        QAction *pActionAdHocViso = menu.addAction(UIIconPool::iconSet(":/select_file_16px.png"),
     
    27852785    switch (enmMediumType)
    27862786    {
    2787         case UIMediumType_DVD:    comMedia = host().GetDVDDrives(); break;
    2788         case UIMediumType_Floppy: comMedia = host().GetFloppyDrives(); break;
     2787        case UIMediumDeviceType_DVD:    comMedia = host().GetDVDDrives(); break;
     2788        case UIMediumDeviceType_Floppy: comMedia = host().GetFloppyDrives(); break;
    27892789        default: break;
    27902790    }
     
    28262826    switch (enmMediumType)
    28272827    {
    2828         case UIMediumType_HardDisk: recentMediumList = gEDataManager->recentListOfHardDrives(); break;
    2829         case UIMediumType_DVD:      recentMediumList = gEDataManager->recentListOfOpticalDisks(); break;
    2830         case UIMediumType_Floppy:   recentMediumList = gEDataManager->recentListOfFloppyDisks(); break;
     2828        case UIMediumDeviceType_HardDisk: recentMediumList = gEDataManager->recentListOfHardDrives(); break;
     2829        case UIMediumDeviceType_DVD:      recentMediumList = gEDataManager->recentListOfOpticalDisks(); break;
     2830        case UIMediumDeviceType_Floppy:   recentMediumList = gEDataManager->recentListOfFloppyDisks(); break;
    28312831        default: break;
    28322832    }
     
    28762876
    28772877    /* Last action for optical/floppy attachments only: */
    2878     if (enmMediumType == UIMediumType_DVD || enmMediumType == UIMediumType_Floppy)
     2878    if (enmMediumType == UIMediumDeviceType_DVD || enmMediumType == UIMediumDeviceType_Floppy)
    28792879    {
    28802880        /* Insert separator: */
     
    28872887                                                                         comCurrentAttachment.GetDevice())));
    28882888        pActionUnmountMedium->setText(QApplication::translate("UIMachineSettingsStorage", "Remove disk from virtual drive"));
    2889         if (enmMediumType == UIMediumType_DVD)
     2889        if (enmMediumType == UIMediumDeviceType_DVD)
    28902890            pActionUnmountMedium->setIcon(UIIconPool::iconSet(":/cd_unmount_16px.png", ":/cd_unmount_disabled_16px.png"));
    2891         else if (enmMediumType == UIMediumType_Floppy)
     2891        else if (enmMediumType == UIMediumDeviceType_Floppy)
    28922892            pActionUnmountMedium->setIcon(UIIconPool::iconSet(":/fd_unmount_16px.png", ":/fd_unmount_disabled_16px.png"));
    28932893    }
     
    29232923
    29242924            /* Invoke file-open dialog to choose medium ID: */
    2925             if (target.mediumType != UIMediumType_Invalid && target.data.isNull())
     2925            if (target.mediumType != UIMediumDeviceType_Invalid && target.data.isNull())
    29262926            {
    29272927                /* Keyboard can be captured by machine-view.
     
    29872987
    29882988    /* Do not unmount hard-drives: */
    2989     if (target.mediumType == UIMediumType_HardDisk && !fMount)
     2989    if (target.mediumType == UIMediumDeviceType_HardDisk && !fMount)
    29902990        return;
    29912991
     
    30163016    bool fWasMounted = false;
    30173017    /* Hard drive case: */
    3018     if (target.mediumType == UIMediumType_HardDisk)
     3018    if (target.mediumType == UIMediumDeviceType_HardDisk)
    30193019    {
    30203020        /* Detaching: */
     
    30223022        fWasMounted = comMachine.isOk();
    30233023        if (!fWasMounted)
    3024             msgCenter().cannotDetachDevice(comMachine, UIMediumType_HardDisk, strCurrentLocation,
     3024            msgCenter().cannotDetachDevice(comMachine, UIMediumDeviceType_HardDisk, strCurrentLocation,
    30253025                                           StorageSlot(enmCurrentStorageBus, target.port, target.device));
    30263026        else
     
    30303030            fWasMounted = comMachine.isOk();
    30313031            if (!fWasMounted)
    3032                 msgCenter().cannotAttachDevice(comMachine, UIMediumType_HardDisk, strCurrentLocation,
     3032                msgCenter().cannotAttachDevice(comMachine, UIMediumDeviceType_HardDisk, strCurrentLocation,
    30333033                                               StorageSlot(enmCurrentStorageBus, target.port, target.device));
    30343034        }
     
    31003100}
    31013101
    3102 void VBoxGlobal::updateRecentlyUsedMediumListAndFolder(UIMediumType enmMediumType, QString strMediumLocation)
     3102void VBoxGlobal::updateRecentlyUsedMediumListAndFolder(UIMediumDeviceType enmMediumType, QString strMediumLocation)
    31033103{
    31043104       /* Remember the path of the last chosen medium: */
    31053105    switch (enmMediumType)
    31063106    {
    3107         case UIMediumType_HardDisk: gEDataManager->setRecentFolderForHardDrives(QFileInfo(strMediumLocation).absolutePath()); break;
    3108         case UIMediumType_DVD:      gEDataManager->setRecentFolderForOpticalDisks(QFileInfo(strMediumLocation).absolutePath()); break;
    3109         case UIMediumType_Floppy:   gEDataManager->setRecentFolderForFloppyDisks(QFileInfo(strMediumLocation).absolutePath()); break;
     3107        case UIMediumDeviceType_HardDisk: gEDataManager->setRecentFolderForHardDrives(QFileInfo(strMediumLocation).absolutePath()); break;
     3108        case UIMediumDeviceType_DVD:      gEDataManager->setRecentFolderForOpticalDisks(QFileInfo(strMediumLocation).absolutePath()); break;
     3109        case UIMediumDeviceType_Floppy:   gEDataManager->setRecentFolderForFloppyDisks(QFileInfo(strMediumLocation).absolutePath()); break;
    31103110        default: break;
    31113111    }
     
    31153115    switch (enmMediumType)
    31163116    {
    3117         case UIMediumType_HardDisk: recentMediumList = gEDataManager->recentListOfHardDrives(); break;
    3118         case UIMediumType_DVD:      recentMediumList = gEDataManager->recentListOfOpticalDisks(); break;
    3119         case UIMediumType_Floppy:   recentMediumList = gEDataManager->recentListOfFloppyDisks(); break;
     3117        case UIMediumDeviceType_HardDisk: recentMediumList = gEDataManager->recentListOfHardDrives(); break;
     3118        case UIMediumDeviceType_DVD:      recentMediumList = gEDataManager->recentListOfOpticalDisks(); break;
     3119        case UIMediumDeviceType_Floppy:   recentMediumList = gEDataManager->recentListOfFloppyDisks(); break;
    31203120        default: break;
    31213121    }
     
    31273127    switch (enmMediumType)
    31283128    {
    3129         case UIMediumType_HardDisk: gEDataManager->setRecentListOfHardDrives(recentMediumList); break;
    3130         case UIMediumType_DVD:      gEDataManager->setRecentListOfOpticalDisks(recentMediumList); break;
    3131         case UIMediumType_Floppy:   gEDataManager->setRecentListOfFloppyDisks(recentMediumList); break;
     3129        case UIMediumDeviceType_HardDisk: gEDataManager->setRecentListOfHardDrives(recentMediumList); break;
     3130        case UIMediumDeviceType_DVD:      gEDataManager->setRecentListOfOpticalDisks(recentMediumList); break;
     3131        case UIMediumDeviceType_Floppy:   gEDataManager->setRecentListOfFloppyDisks(recentMediumList); break;
    31323132        default: break;
    31333133    }
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r73938 r73953  
    496496          * @param  strMediumLocation  Brings the file path to load medium from.
    497497          * @param  pParent            Brings the dialog parent. */
    498         QString openMedium(UIMediumType enmMediumType, QString strMediumLocation, QWidget *pParent = 0);
     498        QString openMedium(UIMediumDeviceType enmMediumType, QString strMediumLocation, QWidget *pParent = 0);
    499499
    500500        /** Opens external medium using file-open dialog.
     
    503503          * @param  strDefaultFolder  Brings the folder to browse for medium.
    504504          * @param  fUseLastFolder    Brings whether we should propose to use last used folder. */
    505         QString openMediumWithFileOpenDialog(UIMediumType enmMediumType, QWidget *pParent = 0,
     505        QString openMediumWithFileOpenDialog(UIMediumDeviceType enmMediumType, QWidget *pParent = 0,
    506506                                             const QString &strDefaultFolder = QString(), bool fUseLastFolder = true);
    507507
     
    539539          * @param  enmMediumType       Passes the medium type.
    540540          * @param  strMediumLocation   Passes the medium location. */
    541         void updateRecentlyUsedMediumListAndFolder(UIMediumType enmMediumType, QString strMediumLocation);
     541        void updateRecentlyUsedMediumListAndFolder(UIMediumDeviceType enmMediumType, QString strMediumLocation);
    542542    /** @} */
    543543
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIFDCreationDialog.cpp

    r73018 r73953  
    216216
    217217    /* Notify VBoxGlobal about the new medium: */
    218     vboxGlobal().createMedium(UIMedium(newMedium, UIMediumType_Floppy, KMediumState_Created));
     218    vboxGlobal().createMedium(UIMedium(newMedium, UIMediumDeviceType_Floppy, KMediumState_Created));
    219219    /* Notify VBoxGlobal about the new medium: */
    220     vboxGlobal().updateRecentlyUsedMediumListAndFolder(UIMediumType_Floppy, strMediumLocation);
     220    vboxGlobal().updateRecentlyUsedMediumListAndFolder(UIMediumDeviceType_Floppy, strMediumLocation);
    221221
    222222    /* After a successful creation and initilization of the floppy disk we call base class accept
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.cpp

    r73926 r73953  
    4343
    4444UIMedium::UIMedium()
    45     : m_type(UIMediumType_Invalid)
     45    : m_type(UIMediumDeviceType_Invalid)
    4646    , m_medium(CMedium())
    4747    , m_state(KMediumState_NotCreated)
     
    5252}
    5353
    54 UIMedium::UIMedium(const CMedium &medium, UIMediumType type)
     54UIMedium::UIMedium(const CMedium &medium, UIMediumDeviceType type)
    5555    : m_type(type)
    5656    , m_medium(medium)
     
    6262}
    6363
    64 UIMedium::UIMedium(const CMedium &medium, UIMediumType type, KMediumState state)
     64UIMedium::UIMedium(const CMedium &medium, UIMediumDeviceType type, KMediumState state)
    6565    : m_type(type)
    6666    , m_medium(medium)
     
    233233                m_uSize = m_medium.GetSize();
    234234                m_strSize = vboxGlobal().formatSize(m_uSize);
    235                 if (m_type == UIMediumType_HardDisk)
     235                if (m_type == UIMediumDeviceType_HardDisk)
    236236                {
    237237                    m_uLogicalSize = m_medium.GetLogicalSize();
     
    254254
    255255        /* For hard drive medium: */
    256         if (m_type == UIMediumType_HardDisk)
     256        if (m_type == UIMediumDeviceType_HardDisk)
    257257        {
    258258            /* Refresh hard drive disk type: */
     
    396396        /* Refresh tool-tip: */
    397397        m_strToolTip = m_sstrRow.arg(QString("<p style=white-space:pre><b>%1</b></p>").arg(m_fHostDrive ? m_strName : m_strLocation));
    398         if (m_type == UIMediumType_HardDisk)
     398        if (m_type == UIMediumDeviceType_HardDisk)
    399399        {
    400400            m_strToolTip += m_sstrRow.arg(VBoxGlobal::tr("<p style=white-space:pre>Type (Format):  %1 (%2)</p>", "medium")
     
    434434{
    435435    m_strParentId = nullID();
    436     if (m_type == UIMediumType_HardDisk)
     436    if (m_type == UIMediumDeviceType_HardDisk)
    437437    {
    438438        CMedium parentMedium = m_medium.GetParent();
     
    515515    KMediumState eState = m_state;
    516516
    517     if (m_type == UIMediumType_HardDisk)
     517    if (m_type == UIMediumDeviceType_HardDisk)
    518518    {
    519519        if (fNoDiffs)
     
    553553            break;
    554554        default:
    555             strDetails += m_type == UIMediumType_HardDisk ? rootMedium.m_strLogicalSize : rootMedium.m_strSize;
     555            strDetails += m_type == UIMediumDeviceType_HardDisk ? rootMedium.m_strLogicalSize : rootMedium.m_strSize;
    556556            break;
    557557    }
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.h

    r73926 r73953  
    9090    /** Lazy wrapping constructor.
    9191      * Creates the UIMedium associated with the given @a medium of the given @a type. */
    92     UIMedium(const CMedium &medium, UIMediumType type);
     92    UIMedium(const CMedium &medium, UIMediumDeviceType type);
    9393
    9494    /** Wrapping constructor with known medium state.
     
    9696      * given @a medium of the given @a type but sets the UIMedium @a state to passed one.
    9797      * Suitable when the medium state is known such as right after the medium creation. */
    98     UIMedium(const CMedium &medium, UIMediumType type, KMediumState state);
     98    UIMedium(const CMedium &medium, UIMediumDeviceType type, KMediumState state);
    9999
    100100    /** Copy constructor.
     
    117117
    118118    /** Returns the type of UIMedium object. */
    119     UIMediumType type() const { return m_type; }
     119    UIMediumDeviceType type() const { return m_type; }
    120120
    121121    /** Returns the CMedium wrapped by this UIMedium object. */
     
    338338
    339339    /** Holds the type of UIMedium object. */
    340     UIMediumType m_type;
     340    UIMediumDeviceType m_type;
    341341
    342342    /** Holds the CMedium wrapped by this UIMedium object. */
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDefs.cpp

    r72869 r73953  
    3636
    3737
    38 /* Convert global medium type (KDeviceType) to local (UIMediumType): */
    39 UIMediumType UIMediumDefs::mediumTypeToLocal(KDeviceType globalType)
     38/* Convert global medium type (KDeviceType) to local (UIMediumDeviceType): */
     39UIMediumDeviceType UIMediumDefs::mediumTypeToLocal(KDeviceType globalType)
    4040{
    4141    switch (globalType)
    4242    {
    4343        case KDeviceType_HardDisk:
    44             return UIMediumType_HardDisk;
     44            return UIMediumDeviceType_HardDisk;
    4545        case KDeviceType_DVD:
    46             return UIMediumType_DVD;
     46            return UIMediumDeviceType_DVD;
    4747        case KDeviceType_Floppy:
    48             return UIMediumType_Floppy;
     48            return UIMediumDeviceType_Floppy;
    4949        default:
    5050            break;
    5151    }
    52     return UIMediumType_Invalid;
     52    return UIMediumDeviceType_Invalid;
    5353}
    5454
    55 /* Convert local medium type (UIMediumType) to global (KDeviceType): */
    56 KDeviceType UIMediumDefs::mediumTypeToGlobal(UIMediumType localType)
     55/* Convert local medium type (UIMediumDeviceType) to global (KDeviceType): */
     56KDeviceType UIMediumDefs::mediumTypeToGlobal(UIMediumDeviceType localType)
    5757{
    5858    switch (localType)
    5959    {
    60         case UIMediumType_HardDisk:
     60        case UIMediumDeviceType_HardDisk:
    6161            return KDeviceType_HardDisk;
    62         case UIMediumType_DVD:
     62        case UIMediumDeviceType_DVD:
    6363            return KDeviceType_DVD;
    64         case UIMediumType_Floppy:
     64        case UIMediumDeviceType_Floppy:
    6565            return KDeviceType_Floppy;
    6666        default:
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDefs.h

    r72903 r73953  
    5151{
    5252    /** UIMedium types. */
    53     enum UIMediumType
     53    enum UIMediumDeviceType
    5454    {
    55         UIMediumType_HardDisk,
    56         UIMediumType_DVD,
    57         UIMediumType_Floppy,
    58         UIMediumType_All,
    59         UIMediumType_Invalid
     55        UIMediumDeviceType_HardDisk,
     56        UIMediumDeviceType_DVD,
     57        UIMediumDeviceType_Floppy,
     58        UIMediumDeviceType_All,
     59        UIMediumDeviceType_Invalid
    6060    };
    6161
    62     /** Converts global medium type (KDeviceType) to local (UIMediumType). */
    63     SHARED_LIBRARY_STUFF UIMediumType mediumTypeToLocal(KDeviceType globalType);
    64     /** Convert local medium type (UIMediumType) to global (KDeviceType). */
    65     SHARED_LIBRARY_STUFF KDeviceType mediumTypeToGlobal(UIMediumType localType);
     62    /** Converts global medium type (KDeviceType) to local (UIMediumDeviceType). */
     63    SHARED_LIBRARY_STUFF UIMediumDeviceType mediumTypeToLocal(KDeviceType globalType);
     64    /** Convert local medium type (UIMediumDeviceType) to global (KDeviceType). */
     65    SHARED_LIBRARY_STUFF KDeviceType mediumTypeToGlobal(UIMediumDeviceType localType);
    6666
    6767    /** Returns medium formats which are currently supported by @a comVBox for the given @a enmDeviceType. */
     
    9595    /** Medium-target constructor. */
    9696    UIMediumTarget(const QString &strName = QString(), LONG iPort = 0, LONG iDevice = 0,
    97                    UIMediumType aMediumType = UIMediumType_Invalid,
     97                   UIMediumDeviceType aMediumType = UIMediumDeviceType_Invalid,
    9898                   UIMediumTargetType aType = UIMediumTargetType_WithID, const QString &strData = QString())
    9999        : name(strName), port(iPort), device(iDevice)
     
    110110
    111111    /** Determines medium-target medium-type. */
    112     UIMediumType mediumType;
     112    UIMediumDeviceType mediumType;
    113113
    114114    /** Determines medium-target type. */
     
    119119
    120120/* Let QMetaType know about our types: */
    121 Q_DECLARE_METATYPE(UIMediumType);
     121Q_DECLARE_METATYPE(UIMediumDeviceType);
    122122Q_DECLARE_METATYPE(UIMediumTarget);
    123123
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDetailsWidget.cpp

    r71027 r73953  
    7070}
    7171
    72 void UIMediumDetailsWidget::setCurrentType(UIMediumType enmType)
     72void UIMediumDetailsWidget::setCurrentType(UIMediumDeviceType enmType)
    7373{
    7474    /* If known type was requested => raise corresponding container: */
     
    543543        {
    544544            /* Create information-containers: */
    545             for (int i = (int)UIMediumType_HardDisk; i < (int)UIMediumType_All; ++i)
    546             {
    547                 const UIMediumType enmType = (UIMediumType)i;
    548                 prepareInformationContainer(enmType, enmType == UIMediumType_HardDisk ? 5 : 2); /// @todo Remove hard-coded values.
     545            for (int i = (int)UIMediumDeviceType_HardDisk; i < (int)UIMediumDeviceType_All; ++i)
     546            {
     547                const UIMediumDeviceType enmType = (UIMediumDeviceType)i;
     548                prepareInformationContainer(enmType, enmType == UIMediumDeviceType_HardDisk ? 5 : 2); /// @todo Remove hard-coded values.
    549549            }
    550550        }
     
    555555}
    556556
    557 void UIMediumDetailsWidget::prepareInformationContainer(UIMediumType enmType, int cFields)
     557void UIMediumDetailsWidget::prepareInformationContainer(UIMediumDeviceType enmType, int cFields)
    558558{
    559559    /* Create information-container: */
     
    628628        switch (m_newData.m_enmType)
    629629        {
    630             case UIMediumType_HardDisk:
     630            case UIMediumDeviceType_HardDisk:
    631631            {
    632632                /* No type changes for differencing disks: */
     
    646646                break;
    647647            }
    648             case UIMediumType_DVD:
     648            case UIMediumDeviceType_DVD:
    649649            {
    650650                m_pComboBoxType->addItem(QString(), QVariant::fromValue(KMediumType_Readonly));
    651651                break;
    652652            }
    653             case UIMediumType_Floppy:
     653            case UIMediumDeviceType_Floppy:
    654654            {
    655655                m_pComboBoxType->addItem(QString(), QVariant::fromValue(KMediumType_Writethrough));
     
    687687    /* Load size: */
    688688    const bool fEnableResize =    m_newData.m_fValid
    689                                && m_newData.m_enmType == UIMediumType_HardDisk
     689                               && m_newData.m_enmType == UIMediumDeviceType_HardDisk
    690690                               && !(m_newData.m_enmVariant & KMediumVariant_Fixed);
    691691    m_pLabelSize->setEnabled(fEnableResize);
     
    829829}
    830830
    831 QWidget *UIMediumDetailsWidget::infoContainer(UIMediumType enmType) const
     831QWidget *UIMediumDetailsWidget::infoContainer(UIMediumDeviceType enmType) const
    832832{
    833833    /* Return information-container for known medium type: */
     
    835835}
    836836
    837 QLabel *UIMediumDetailsWidget::infoLabel(UIMediumType enmType, int iIndex) const
     837QLabel *UIMediumDetailsWidget::infoLabel(UIMediumDeviceType enmType, int iIndex) const
    838838{
    839839    /* Acquire list of labels: */
     
    844844}
    845845
    846 QILabel *UIMediumDetailsWidget::infoField(UIMediumType enmType, int iIndex) const
     846QILabel *UIMediumDetailsWidget::infoField(UIMediumDeviceType enmType, int iIndex) const
    847847{
    848848    /* Acquire list of fields: */
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDetailsWidget.h

    r71027 r73953  
    120120    UIDataMedium()
    121121        : m_fValid(false)
    122         , m_enmType(UIMediumType_Invalid)
     122        , m_enmType(UIMediumDeviceType_Invalid)
    123123        , m_enmVariant(KMediumVariant_Max)
    124124        , m_fHasChildren(false)
     
    128128
    129129    /** Constructs data with passed @enmType. */
    130     UIDataMedium(UIMediumType enmType)
     130    UIDataMedium(UIMediumDeviceType enmType)
    131131        : m_fValid(false)
    132132        , m_enmType(enmType)
     
    158158    bool m_fValid;
    159159    /** Holds the medium type. */
    160     UIMediumType m_enmType;
     160    UIMediumDeviceType m_enmType;
    161161    /** Holds the medium variant. */
    162162    KMediumVariant m_enmVariant;
     
    195195
    196196    /** Defines the raised details @a enmType. */
    197     void setCurrentType(UIMediumType enmType);
     197    void setCurrentType(UIMediumDeviceType enmType);
    198198
    199199    /** Returns the medium data. */
     
    246246        void prepareTabDetails();
    247247        /** Prepares information-container. */
    248         void prepareInformationContainer(UIMediumType enmType, int cFields);
     248        void prepareInformationContainer(UIMediumDeviceType enmType, int cFields);
    249249    /** @} */
    250250
     
    273273      * @{ */
    274274        /** Returns information-container for passed medium @a enmType. */
    275         QWidget *infoContainer(UIMediumType enmType) const;
     275        QWidget *infoContainer(UIMediumDeviceType enmType) const;
    276276        /** Returns information-label for passed medium @a enmType and @a iIndex. */
    277         QLabel *infoLabel(UIMediumType enmType, int iIndex) const;
     277        QLabel *infoLabel(UIMediumDeviceType enmType, int iIndex) const;
    278278        /** Returns information-field for passed medium @a enmType and @a iIndex. */
    279         QILabel *infoField(UIMediumType enmType, int iIndex) const;
     279        QILabel *infoField(UIMediumDeviceType enmType, int iIndex) const;
    280280    /** @} */
    281281
     
    343343
    344344        /** Holds the map of information-container instances. */
    345         QMap<UIMediumType, QWidget*>          m_aContainers;
     345        QMap<UIMediumDeviceType, QWidget*>          m_aContainers;
    346346        /** Holds the map of information-container label instances. */
    347         QMap<UIMediumType, QList<QLabel*> >   m_aLabels;
     347        QMap<UIMediumDeviceType, QList<QLabel*> >   m_aLabels;
    348348        /** Holds the information-container field instances. */
    349         QMap<UIMediumType, QList<QILabel*> >  m_aFields;
     349        QMap<UIMediumDeviceType, QList<QILabel*> >  m_aFields;
    350350    /** @} */
    351351};
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumItem.cpp

    r72406 r73953  
    215215    switch (m_enmType)
    216216    {
    217         case UIMediumType_HardDisk:
     217        case UIMediumDeviceType_HardDisk:
    218218        {
    219219            m_details.m_aLabels << QApplication::translate("UIMediumManager", "Format:");
     
    235235            break;
    236236        }
    237         case UIMediumType_DVD:
    238         case UIMediumType_Floppy:
     237        case UIMediumDeviceType_DVD:
     238        case UIMediumDeviceType_Floppy:
    239239        {
    240240            m_details.m_aLabels << QApplication::translate("UIMediumManager", "Attached to:");
     
    366366        {
    367367            /* Return failure: */
    368             msgCenter().cannotDetachDevice(comMachine, UIMediumType_HardDisk, location(),
     368            msgCenter().cannotDetachDevice(comMachine, UIMediumDeviceType_HardDisk, location(),
    369369                                           StorageSlot(controller.GetBus(), attachment.GetPort(), attachment.GetDevice()),
    370370                                           treeWidget());
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumItem.h

    r72406 r73953  
    6161    void setMedium(const UIMedium &guiMedium);
    6262
    63     /** Returns UIMediumType of the wrapped UIMedium. */
    64     UIMediumType mediumType() const { return m_guiMedium.type(); }
     63    /** Returns UIMediumDeviceType of the wrapped UIMedium. */
     64    UIMediumDeviceType mediumType() const { return m_guiMedium.type(); }
    6565
    6666    /** Returns KMediumState of the wrapped UIMedium. */
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp

    r73926 r73953  
    202202    if (m_pTabWidget)
    203203    {
    204         m_pTabWidget->setTabText(tabIndex(UIMediumType_HardDisk), UIMediumManager::tr("&Hard disks"));
    205         m_pTabWidget->setTabText(tabIndex(UIMediumType_DVD), UIMediumManager::tr("&Optical disks"));
    206         m_pTabWidget->setTabText(tabIndex(UIMediumType_Floppy), UIMediumManager::tr("&Floppy disks"));
     204        m_pTabWidget->setTabText(tabIndex(UIMediumDeviceType_HardDisk), UIMediumManager::tr("&Hard disks"));
     205        m_pTabWidget->setTabText(tabIndex(UIMediumDeviceType_DVD), UIMediumManager::tr("&Optical disks"));
     206        m_pTabWidget->setTabText(tabIndex(UIMediumDeviceType_Floppy), UIMediumManager::tr("&Floppy disks"));
    207207    }
    208208
    209209    /* Translate HD tree-widget: */
    210     QITreeWidget *pTreeWidgetHD = treeWidget(UIMediumType_HardDisk);
     210    QITreeWidget *pTreeWidgetHD = treeWidget(UIMediumDeviceType_HardDisk);
    211211    if (pTreeWidgetHD)
    212212    {
     
    217217
    218218    /* Translate CD tree-widget: */
    219     QITreeWidget *pTreeWidgetCD = treeWidget(UIMediumType_DVD);
     219    QITreeWidget *pTreeWidgetCD = treeWidget(UIMediumDeviceType_DVD);
    220220    if (pTreeWidgetCD)
    221221    {
     
    225225
    226226    /* Translate FD tree-widget: */
    227     QITreeWidget *pTreeWidgetFD = treeWidget(UIMediumType_Floppy);
     227    QITreeWidget *pTreeWidgetFD = treeWidget(UIMediumDeviceType_Floppy);
    228228    if (pTreeWidgetFD)
    229229    {
     
    446446    if (m_pTabWidget)
    447447    {
    448         m_pTabWidget->setTabIcon(tabIndex(UIMediumType_HardDisk), m_iconHD);
    449         m_pTabWidget->setTabIcon(tabIndex(UIMediumType_DVD), m_iconCD);
    450         m_pTabWidget->setTabIcon(tabIndex(UIMediumType_Floppy), m_iconFD);
     448        m_pTabWidget->setTabIcon(tabIndex(UIMediumDeviceType_HardDisk), m_iconHD);
     449        m_pTabWidget->setTabIcon(tabIndex(UIMediumDeviceType_DVD), m_iconCD);
     450        m_pTabWidget->setTabIcon(tabIndex(UIMediumDeviceType_Floppy), m_iconFD);
    451451    }
    452452
     
    810810        /* Create tabs: */
    811811        for (int i = 0; i < m_iTabCount; ++i)
    812             prepareTab((UIMediumType)i);
     812            prepareTab((UIMediumDeviceType)i);
    813813        /* Configure tab-widget: */
    814814        m_pTabWidget->setFocusPolicy(Qt::TabFocus);
    815         m_pTabWidget->setTabIcon(tabIndex(UIMediumType_HardDisk), m_iconHD);
    816         m_pTabWidget->setTabIcon(tabIndex(UIMediumType_DVD), m_iconCD);
    817         m_pTabWidget->setTabIcon(tabIndex(UIMediumType_Floppy), m_iconFD);
     815        m_pTabWidget->setTabIcon(tabIndex(UIMediumDeviceType_HardDisk), m_iconHD);
     816        m_pTabWidget->setTabIcon(tabIndex(UIMediumDeviceType_DVD), m_iconCD);
     817        m_pTabWidget->setTabIcon(tabIndex(UIMediumDeviceType_Floppy), m_iconFD);
    818818        connect(m_pTabWidget, &QITabWidget::currentChanged, this, &UIMediumManagerWidget::sltHandleCurrentTabChanged);
    819819
     
    826826}
    827827
    828 void UIMediumManagerWidget::prepareTab(UIMediumType type)
     828void UIMediumManagerWidget::prepareTab(UIMediumDeviceType type)
    829829{
    830830    /* Create tab: */
     
    843843
    844844            /* Prepare tree-widget: */
    845             prepareTreeWidget(type, type == UIMediumType_HardDisk ? 3 : 2);
     845            prepareTreeWidget(type, type == UIMediumDeviceType_HardDisk ? 3 : 2);
    846846        }
    847847    }
    848848}
    849849
    850 void UIMediumManagerWidget::prepareTreeWidget(UIMediumType type, int iColumns)
     850void UIMediumManagerWidget::prepareTreeWidget(UIMediumDeviceType type, int iColumns)
    851851{
    852852    /* Create tree-widget: */
     
    919919{
    920920    /* Remember current medium-items: */
    921     if (UIMediumItem *pMediumItem = mediumItem(UIMediumType_HardDisk))
     921    if (UIMediumItem *pMediumItem = mediumItem(UIMediumDeviceType_HardDisk))
    922922        m_strCurrentIdHD = pMediumItem->id();
    923     if (UIMediumItem *pMediumItem = mediumItem(UIMediumType_DVD))
     923    if (UIMediumItem *pMediumItem = mediumItem(UIMediumDeviceType_DVD))
    924924        m_strCurrentIdCD = pMediumItem->id();
    925     if (UIMediumItem *pMediumItem = mediumItem(UIMediumType_Floppy))
     925    if (UIMediumItem *pMediumItem = mediumItem(UIMediumDeviceType_Floppy))
    926926        m_strCurrentIdFD = pMediumItem->id();
    927927
    928928    /* Clear tree-widgets: */
    929     QITreeWidget *pTreeWidgetHD = treeWidget(UIMediumType_HardDisk);
     929    QITreeWidget *pTreeWidgetHD = treeWidget(UIMediumDeviceType_HardDisk);
    930930    if (pTreeWidgetHD)
    931931    {
     
    933933        pTreeWidgetHD->clear();
    934934    }
    935     QITreeWidget *pTreeWidgetCD = treeWidget(UIMediumType_DVD);
     935    QITreeWidget *pTreeWidgetCD = treeWidget(UIMediumDeviceType_DVD);
    936936    if (pTreeWidgetCD)
    937937    {
     
    939939        pTreeWidgetCD->clear();
    940940    }
    941     QITreeWidget *pTreeWidgetFD = treeWidget(UIMediumType_Floppy);
     941    QITreeWidget *pTreeWidgetFD = treeWidget(UIMediumDeviceType_Floppy);
    942942    if (pTreeWidgetFD)
    943943    {
     
    953953
    954954    /* Select first item as current one if nothing selected: */
    955     if (pTreeWidgetHD && !mediumItem(UIMediumType_HardDisk))
     955    if (pTreeWidgetHD && !mediumItem(UIMediumDeviceType_HardDisk))
    956956        if (QTreeWidgetItem *pItem = pTreeWidgetHD->topLevelItem(0))
    957957            setCurrentItem(pTreeWidgetHD, pItem);
    958     if (pTreeWidgetCD && !mediumItem(UIMediumType_DVD))
     958    if (pTreeWidgetCD && !mediumItem(UIMediumDeviceType_DVD))
    959959        if (QTreeWidgetItem *pItem = pTreeWidgetCD->topLevelItem(0))
    960960            setCurrentItem(pTreeWidgetCD, pItem);
    961     if (pTreeWidgetFD && !mediumItem(UIMediumType_Floppy))
     961    if (pTreeWidgetFD && !mediumItem(UIMediumDeviceType_Floppy))
    962962        if (QTreeWidgetItem *pItem = pTreeWidgetFD->topLevelItem(0))
    963963            setCurrentItem(pTreeWidgetFD, pItem);
    964964}
    965965
    966 void UIMediumManagerWidget::refetchCurrentMediumItem(UIMediumType type)
     966void UIMediumManagerWidget::refetchCurrentMediumItem(UIMediumDeviceType type)
    967967{
    968968    /* Get corresponding medium-item: */
     
    994994void UIMediumManagerWidget::refetchCurrentMediumItems()
    995995{
    996     refetchCurrentMediumItem(UIMediumType_HardDisk);
    997     refetchCurrentMediumItem(UIMediumType_DVD);
    998     refetchCurrentMediumItem(UIMediumType_Floppy);
     996    refetchCurrentMediumItem(UIMediumDeviceType_HardDisk);
     997    refetchCurrentMediumItem(UIMediumDeviceType_DVD);
     998    refetchCurrentMediumItem(UIMediumDeviceType_Floppy);
    999999}
    10001000
     
    10221022void UIMediumManagerWidget::updateActionIcons()
    10231023{
    1024     const UIMediumType enmCurrentMediumType = currentMediumType();
    1025     if (enmCurrentMediumType != UIMediumType_Invalid)
     1024    const UIMediumDeviceType enmCurrentMediumType = currentMediumType();
     1025    if (enmCurrentMediumType != UIMediumDeviceType_Invalid)
    10261026    {
    10271027        m_pActionPool->action(UIActionIndexST_M_Medium_S_Add)->setState((int)enmCurrentMediumType);
     
    10421042    const QIcon *pIcon = 0;
    10431043    bool *pfInaccessible = 0;
    1044     const UIMediumType mediumType = pMediumItem->mediumType();
     1044    const UIMediumDeviceType mediumType = pMediumItem->mediumType();
    10451045    switch (mediumType)
    10461046    {
    1047         case UIMediumType_HardDisk:
     1047        case UIMediumDeviceType_HardDisk:
    10481048            pIcon = &m_iconHD;
    10491049            pfInaccessible = &m_fInaccessibleHD;
    10501050            break;
    1051         case UIMediumType_DVD:
     1051        case UIMediumDeviceType_DVD:
    10521052            pIcon = &m_iconCD;
    10531053            pfInaccessible = &m_fInaccessibleCD;
    10541054            break;
    1055         case UIMediumType_Floppy:
     1055        case UIMediumDeviceType_Floppy:
    10561056            pIcon = &m_iconFD;
    10571057            pfInaccessible = &m_fInaccessibleFD;
     
    11261126{
    11271127    /* Get medium type: */
    1128     UIMediumType type = medium.type();
     1128    UIMediumDeviceType type = medium.type();
    11291129
    11301130    /* Create medium-item: */
     
    11331133    {
    11341134        /* Of hard-drive type: */
    1135         case UIMediumType_HardDisk:
     1135        case UIMediumDeviceType_HardDisk:
    11361136        {
    11371137            /* Make sure corresponding tree-widget exists: */
    1138             QITreeWidget *pTreeWidget = treeWidget(UIMediumType_HardDisk);
     1138            QITreeWidget *pTreeWidget = treeWidget(UIMediumDeviceType_HardDisk);
    11391139            if (pTreeWidget)
    11401140            {
     
    11531153        }
    11541154        /* Of optical-image type: */
    1155         case UIMediumType_DVD:
     1155        case UIMediumDeviceType_DVD:
    11561156        {
    11571157            /* Make sure corresponding tree-widget exists: */
    1158             QITreeWidget *pTreeWidget = treeWidget(UIMediumType_DVD);
     1158            QITreeWidget *pTreeWidget = treeWidget(UIMediumDeviceType_DVD);
    11591159            if (pTreeWidget)
    11601160            {
     
    11741174        }
    11751175        /* Of floppy-image type: */
    1176         case UIMediumType_Floppy:
     1176        case UIMediumDeviceType_Floppy:
    11771177        {
    11781178            /* Make sure corresponding tree-widget exists: */
    1179             QITreeWidget *pTreeWidget = treeWidget(UIMediumType_Floppy);
     1179            QITreeWidget *pTreeWidget = treeWidget(UIMediumDeviceType_Floppy);
    11801180            if (pTreeWidget)
    11811181            {
     
    12181218
    12191219    /* Make sure corresponding tree-widget exists: */
    1220     QITreeWidget *pTreeWidget = treeWidget(UIMediumType_HardDisk);
     1220    QITreeWidget *pTreeWidget = treeWidget(UIMediumDeviceType_HardDisk);
    12211221    if (pTreeWidget)
    12221222    {
     
    12691269{
    12701270    /* Get medium type: */
    1271     UIMediumType type = medium.type();
     1271    UIMediumDeviceType type = medium.type();
    12721272
    12731273    /* Search for existing medium-item: */
     
    12971297{
    12981298    /* Search for corresponding tree-widget: */
    1299     QList<UIMediumType> types;
    1300     types << UIMediumType_HardDisk << UIMediumType_DVD << UIMediumType_Floppy;
     1299    QList<UIMediumDeviceType> types;
     1300    types << UIMediumDeviceType_HardDisk << UIMediumDeviceType_DVD << UIMediumDeviceType_Floppy;
    13011301    QITreeWidget *pTreeWidget = 0;
    13021302    UIMediumItem *pMediumItem = 0;
    1303     foreach (UIMediumType type, types)
     1303    foreach (UIMediumDeviceType type, types)
    13041304    {
    13051305        /* Get iterated tree-widget: */
     
    13281328}
    13291329
    1330 QWidget* UIMediumManagerWidget::tab(UIMediumType type) const
     1330QWidget* UIMediumManagerWidget::tab(UIMediumDeviceType type) const
    13311331{
    13321332    /* Determine tab index for passed medium type: */
     
    13411341}
    13421342
    1343 QITreeWidget* UIMediumManagerWidget::treeWidget(UIMediumType type) const
     1343QITreeWidget* UIMediumManagerWidget::treeWidget(UIMediumDeviceType type) const
    13441344{
    13451345    /* Determine tab index for passed medium type: */
     
    13541354}
    13551355
    1356 UIMediumItem* UIMediumManagerWidget::mediumItem(UIMediumType type) const
     1356UIMediumItem* UIMediumManagerWidget::mediumItem(UIMediumDeviceType type) const
    13571357{
    13581358    /* Get corresponding tree-widget: */
     
    13621362}
    13631363
    1364 UIMediumType UIMediumManagerWidget::mediumType(QITreeWidget *pTreeWidget) const
     1364UIMediumDeviceType UIMediumManagerWidget::mediumType(QITreeWidget *pTreeWidget) const
    13651365{
    13661366    /* Determine tab index of passed tree-widget: */
     
    13691369    /* Return medium type for known tab index: */
    13701370    if (iIndex >= 0 && iIndex < m_iTabCount)
    1371         return (UIMediumType)iIndex;
     1371        return (UIMediumDeviceType)iIndex;
    13721372
    13731373    /* Invalid by default: */
    1374     AssertFailedReturn(UIMediumType_Invalid);
    1375 }
    1376 
    1377 UIMediumType UIMediumManagerWidget::currentMediumType() const
     1374    AssertFailedReturn(UIMediumDeviceType_Invalid);
     1375}
     1376
     1377UIMediumDeviceType UIMediumManagerWidget::currentMediumType() const
    13781378{
    13791379    /* Invalid if tab-widget doesn't exists: */
    13801380    if (!m_pTabWidget)
    1381         return UIMediumType_Invalid;
     1381        return UIMediumDeviceType_Invalid;
    13821382
    13831383    /* Return current medium type: */
    1384     return (UIMediumType)m_pTabWidget->currentIndex();
     1384    return (UIMediumDeviceType)m_pTabWidget->currentIndex();
    13851385}
    13861386
     
    14181418
    14191419/* static */
    1420 int UIMediumManagerWidget::tabIndex(UIMediumType type)
     1420int UIMediumManagerWidget::tabIndex(UIMediumDeviceType type)
    14211421{
    14221422    /* Return tab index corresponding to known medium type: */
    14231423    switch (type)
    14241424    {
    1425         case UIMediumType_HardDisk: return 0;
    1426         case UIMediumType_DVD:      return 1;
    1427         case UIMediumType_Floppy:   return 2;
     1425        case UIMediumDeviceType_HardDisk: return 0;
     1426        case UIMediumDeviceType_DVD:      return 1;
     1427        case UIMediumDeviceType_Floppy:   return 2;
    14281428        default: break;
    14291429    }
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.h

    r73783 r73953  
    214214        void prepareTabWidget();
    215215        /** Prepares tab-widget's tab. */
    216         void prepareTab(UIMediumType type);
     216        void prepareTab(UIMediumDeviceType type);
    217217        /** Prepares tab-widget's tree-widget. */
    218         void prepareTreeWidget(UIMediumType type, int iColumns);
     218        void prepareTreeWidget(UIMediumDeviceType type, int iColumns);
    219219        /** Prepares details-widget. */
    220220        void prepareDetailsWidget();
     
    226226
    227227        /** Updates details according latest changes in current item of passed @a type. */
    228         void refetchCurrentMediumItem(UIMediumType type);
     228        void refetchCurrentMediumItem(UIMediumDeviceType type);
    229229        /** Updates details according latest changes in current item of chosen type. */
    230230        void refetchCurrentChosenMediumItem();
     
    252252
    253253        /** Returns tab for passed medium @a type. */
    254         QWidget *tab(UIMediumType type) const;
     254        QWidget *tab(UIMediumDeviceType type) const;
    255255        /** Returns tree-widget for passed medium @a type. */
    256         QITreeWidget *treeWidget(UIMediumType type) const;
     256        QITreeWidget *treeWidget(UIMediumDeviceType type) const;
    257257        /** Returns item for passed medium @a type. */
    258         UIMediumItem *mediumItem(UIMediumType type) const;
     258        UIMediumItem *mediumItem(UIMediumDeviceType type) const;
    259259
    260260        /** Returns medium type for passed @a pTreeWidget. */
    261         UIMediumType mediumType(QITreeWidget *pTreeWidget) const;
     261        UIMediumDeviceType mediumType(QITreeWidget *pTreeWidget) const;
    262262
    263263        /** Returns current medium type. */
    264         UIMediumType currentMediumType() const;
     264        UIMediumDeviceType currentMediumType() const;
    265265        /** Returns current tree-widget. */
    266266        QITreeWidget *currentTreeWidget() const;
     
    274274    /** @name Helper stuff.
    275275      * @{ */
    276         /** Returns tab index for passed UIMediumType. */
    277         static int tabIndex(UIMediumType type);
     276        /** Returns tab index for passed UIMediumDeviceType. */
     277        static int tabIndex(UIMediumDeviceType type);
    278278
    279279        /** Performs search for the @a pTree child which corresponds to the @a condition but not @a pException. */
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.cpp

    r73928 r73953  
    149149
    150150
    151 UIMediumSelector::UIMediumSelector(UIMediumType enmMediumType, const QString &machineName /* = QString() */,
     151UIMediumSelector::UIMediumSelector(UIMediumDeviceType enmMediumType, const QString &machineName /* = QString() */,
    152152                                   const QString &machineSettigFilePath /* = QString() */, QWidget *pParent /* = 0 */)
    153153    :QIWithRetranslateUI<QIDialog>(pParent)
     
    235235    switch (m_enmMediumType)
    236236    {
    237         case UIMediumType_DVD:
     237        case UIMediumDeviceType_DVD:
    238238            strPrefix = "cd";
    239239            break;
    240         case UIMediumType_Floppy:
     240        case UIMediumDeviceType_Floppy:
    241241            strPrefix = "fd";
    242242            break;
    243         case UIMediumType_HardDisk:
    244         case UIMediumType_All:
    245         case UIMediumType_Invalid:
     243        case UIMediumDeviceType_HardDisk:
     244        case UIMediumDeviceType_All:
     245        case UIMediumDeviceType_Invalid:
    246246        default:
    247247            strPrefix = "hd";
     
    262262
    263263    /* Currently create is supported only for Floppy: */
    264     if (m_enmMediumType == UIMediumType_Floppy)
     264    if (m_enmMediumType == UIMediumDeviceType_Floppy)
    265265    {
    266266        m_pActionCreate = new QAction(this);
     
    330330    switch (m_enmMediumType)
    331331    {
    332         case UIMediumType_DVD:
     332        case UIMediumDeviceType_DVD:
    333333            return new UIMediumItemCD(medium, pParent);
    334334            break;
    335         case UIMediumType_Floppy:
     335        case UIMediumDeviceType_Floppy:
    336336            return new UIMediumItemFD(medium, pParent);
    337337            break;
    338         case UIMediumType_HardDisk:
    339         case UIMediumType_All:
    340         case UIMediumType_Invalid:
     338        case UIMediumDeviceType_HardDisk:
     339        case UIMediumDeviceType_All:
     340        case UIMediumDeviceType_Invalid:
    341341        default:
    342342            return createHardDiskItem(medium, pParent);
     
    446446        m_pMainLayout->addWidget(m_pTreeWidget);
    447447        m_pTreeWidget->setAlternatingRowColors(true);
    448         int iColumnCount = (m_enmMediumType == UIMediumType_HardDisk) ? 3 : 2;
     448        int iColumnCount = (m_enmMediumType == UIMediumDeviceType_HardDisk) ? 3 : 2;
    449449        m_pTreeWidget->setColumnCount(iColumnCount);
    450450        m_pTreeWidget->setSortingEnabled(true);
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.h

    r73034 r73953  
    4848public:
    4949
    50     UIMediumSelector(UIMediumType enmMediumType, const QString &machineName = QString(),
     50    UIMediumSelector(UIMediumDeviceType enmMediumType, const QString &machineName = QString(),
    5151                     const QString &machineSettigFilePath = QString(), QWidget *pParent = 0);
    5252    QStringList selectedMediumIds() const;
     
    104104    QVBoxLayout          *m_pMainLayout;
    105105    QITreeWidget         *m_pTreeWidget;
    106     UIMediumType          m_enmMediumType;
     106    UIMediumDeviceType          m_enmMediumType;
    107107    QIDialogButtonBox    *m_pButtonBox;
    108108    UIToolBar            *m_pToolBar;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp

    r73871 r73953  
    223223                strAttData += s_strTableRow4
    224224                    .arg(gpConverter->toString(StorageSlot(controller.GetBus(), attachment.GetPort(), attachment.GetDevice())))
    225                     .arg(UIMedium(attachment.GetMedium(), UIMediumType_HardDisk).location());
     225                    .arg(UIMedium(attachment.GetMedium(), UIMediumDeviceType_HardDisk).location());
    226226                fAttachmentsPresent = true;
    227227            }
     
    287287                    continue;
    288288                /* Append attachment data: */
    289                 UIMedium vboxMedium(attachment.GetMedium(), UIMediumType_DVD);
     289                UIMedium vboxMedium(attachment.GetMedium(), UIMediumDeviceType_DVD);
    290290                strAttData += s_strTableRow4
    291291                    .arg(gpConverter->toString(StorageSlot(controller.GetBus(), attachment.GetPort(), attachment.GetDevice())))
     
    356356                    continue;
    357357                /* Append attachment data: */
    358                 UIMedium vboxMedium(attachment.GetMedium(), UIMediumType_Floppy);
     358                UIMedium vboxMedium(attachment.GetMedium(), UIMediumDeviceType_Floppy);
    359359                strAttData += s_strTableRow4
    360360                    .arg(gpConverter->toString(StorageSlot(controller.GetBus(), attachment.GetPort(), attachment.GetDevice())))
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r73946 r73953  
    204204    /* Apply ad-hoc reconfigurations from the command line: */
    205205    if (vboxGlobal().hasFloppyImageToMount())
    206         mountAdHocImage(KDeviceType_Floppy, UIMediumType_Floppy, vboxGlobal().getFloppyImage());
     206        mountAdHocImage(KDeviceType_Floppy, UIMediumDeviceType_Floppy, vboxGlobal().getFloppyImage());
    207207    if (vboxGlobal().hasDvdImageToMount())
    208         mountAdHocImage(KDeviceType_DVD, UIMediumType_DVD, vboxGlobal().getDvdImage());
     208        mountAdHocImage(KDeviceType_DVD, UIMediumDeviceType_DVD, vboxGlobal().getDvdImage());
    209209
    210210    /* Power UP if this is NOT separate process: */
     
    588588
    589589    /* Mount medium add-hoc: */
    590     mountAdHocImage(KDeviceType_DVD, UIMediumType_DVD, strSource);
     590    mountAdHocImage(KDeviceType_DVD, UIMediumDeviceType_DVD, strSource);
    591591}
    592592
     
    19051905}
    19061906
    1907 bool UISession::mountAdHocImage(KDeviceType enmDeviceType, UIMediumType enmMediumType, const QString &strMediumName)
     1907bool UISession::mountAdHocImage(KDeviceType enmDeviceType, UIMediumDeviceType enmMediumType, const QString &strMediumName)
    19081908{
    19091909    /* Get VBox: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r73944 r73953  
    415415    void setPointerShape(const uchar *pShapeData, bool fHasAlpha, uint uXHot, uint uYHot, uint uWidth, uint uHeight);
    416416    bool preprocessInitialization();
    417     bool mountAdHocImage(KDeviceType enmDeviceType, UIMediumType enmMediumType, const QString &strMediumName);
     417    bool mountAdHocImage(KDeviceType enmDeviceType, UIMediumDeviceType enmMediumType, const QString &strMediumName);
    418418    bool postprocessInitialization();
    419419    int countOfVisibleWindows();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp

    r73926 r73953  
    21232123    void setId(const QString &strId) { m_strId = strId; emit sigChanged(); }
    21242124
    2125     UIMediumType type() const { return m_type; }
    2126     void setType(UIMediumType type) { m_type = type; }
     2125    UIMediumDeviceType type() const { return m_type; }
     2126    void setType(UIMediumDeviceType type) { m_type = type; }
    21272127
    21282128    bool isNull() const { return m_strId == UIMedium().id(); }
     
    21352135
    21362136    QString m_strId;
    2137     UIMediumType m_type;
     2137    UIMediumDeviceType m_type;
    21382138};
    21392139
     
    30363036        switch (m_pMediumIdHolder->type())
    30373037        {
    3038             case UIMediumType_HardDisk:
     3038            case UIMediumDeviceType_HardDisk:
    30393039            {
    30403040                /* Add "Create a new virtual hard disk" action: */
     
    30483048                break;
    30493049            }
    3050             case UIMediumType_DVD:
     3050            case UIMediumDeviceType_DVD:
    30513051            {
    30523052                /* Add "Choose a virtual optical disk file" action: */
     
    30643064                break;
    30653065            }
    3066             case UIMediumType_Floppy:
     3066            case UIMediumDeviceType_Floppy:
    30673067            {
    30683068                /* Add "Choose a virtual floppy disk file" action: */
     
    31243124        /* Get recent medium type & name: */
    31253125        const QStringList mediumInfoList = pChooseRecentMediumAction->data().toString().split(',');
    3126         const UIMediumType enmMediumType = (UIMediumType)mediumInfoList[0].toUInt();
     3126        const UIMediumDeviceType enmMediumType = (UIMediumDeviceType)mediumInfoList[0].toUInt();
    31273127        const QString strMediumLocation = mediumInfoList[1];
    31283128        const QString strMediumId = vboxGlobal().openMedium(enmMediumType, strMediumLocation, this);
     
    37953795}
    37963796
    3797 QString UIMachineSettingsStorage::openMediumSelectorDialog(UIMediumType  enmMediumType)
     3797QString UIMachineSettingsStorage::openMediumSelectorDialog(UIMediumDeviceType  enmMediumType)
    37983798{
    37993799    QWidget *pParent = windowManager().realParentWindow(this);
     
    38363836                strMediumId = getWithNewHDWizard();
    38373837            else if (iAnswer == AlertButton_Choice2)
    3838                 strMediumId = openMediumSelectorDialog(UIMediumType_HardDisk);
     3838                strMediumId = openMediumSelectorDialog(UIMediumDeviceType_HardDisk);
    38393839            break;
    38403840        }
     
    38453845                strMediumId = vboxGlobal().medium(strMediumId).id();
    38463846            else if (iAnswer == AlertButton_Choice2)
    3847                 strMediumId = openMediumSelectorDialog(UIMediumType_DVD);
     3847                strMediumId = openMediumSelectorDialog(UIMediumDeviceType_DVD);
    38483848            break;
    38493849        }
     
    38543854                strMediumId = vboxGlobal().medium(strMediumId).id();
    38553855            else if (iAnswer == AlertButton_Choice2)
    3856                 strMediumId = openMediumSelectorDialog(UIMediumType_Floppy);
     3856                strMediumId = openMediumSelectorDialog(UIMediumDeviceType_Floppy);
    38573857            break;
    38583858        }
     
    39683968}
    39693969
    3970 void UIMachineSettingsStorage::addRecentMediumActions(QMenu *pOpenMediumMenu, UIMediumType enmRecentMediumType)
     3970void UIMachineSettingsStorage::addRecentMediumActions(QMenu *pOpenMediumMenu, UIMediumDeviceType enmRecentMediumType)
    39713971{
    39723972    /* Get recent-medium list: */
     
    39743974    switch (enmRecentMediumType)
    39753975    {
    3976         case UIMediumType_HardDisk: recentMediumList = gEDataManager->recentListOfHardDrives(); break;
    3977         case UIMediumType_DVD:      recentMediumList = gEDataManager->recentListOfOpticalDisks(); break;
    3978         case UIMediumType_Floppy:   recentMediumList = gEDataManager->recentListOfFloppyDisks(); break;
     3976        case UIMediumDeviceType_HardDisk: recentMediumList = gEDataManager->recentListOfHardDrives(); break;
     3977        case UIMediumDeviceType_DVD:      recentMediumList = gEDataManager->recentListOfOpticalDisks(); break;
     3978        case UIMediumDeviceType_Floppy:   recentMediumList = gEDataManager->recentListOfFloppyDisks(); break;
    39793979        default: break;
    39803980    }
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h

    r73926 r73953  
    742742    void prepareConnections();
    743743    /** Opens medium selector dialog and retrieves uuid of a selected medium (if any). */
    744     QString openMediumSelectorDialog(UIMediumType  enmMediumType);
     744    QString openMediumSelectorDialog(UIMediumDeviceType  enmMediumType);
    745745    /** Cleanups all. */
    746746    void cleanup();
     
    768768    void addChooseHostDriveActions(QMenu *pOpenMediumMenu);
    769769    /** Adds 'Choose Recent Medium' actions of passed @a enmRecentMediumType into passed @a pOpenMediumMenu. */
    770     void addRecentMediumActions(QMenu *pOpenMediumMenu, UIMediumType enmRecentMediumType);
     770    void addRecentMediumActions(QMenu *pOpenMediumMenu, UIMediumDeviceType enmRecentMediumType);
    771771
    772772    /** Saves existing storage data from the cache. */
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMediaComboBox.cpp

    r73926 r73953  
    3434UIMediaComboBox::UIMediaComboBox(QWidget *pParent)
    3535    : QComboBox(pParent)
    36     , m_enmMediaType(UIMediumType_Invalid)
     36    , m_enmMediaType(UIMediumDeviceType_Invalid)
    3737    , m_strMachineId(QString())
    3838    , m_strLastItemId(QString())
     
    5252
    5353    /* If at least one real medium present, remove null medium: */
    54     if (count() > 1 && m_enmMediaType == UIMediumType_HardDisk)
     54    if (count() > 1 && m_enmMediaType == UIMediumDeviceType_HardDisk)
    5555    {
    5656        removeItem(0);
     
    122122
    123123    /* Ignore all diffs: */
    124     if (guiMedium.type() == UIMediumType_HardDisk && guiMedium.parentID() != UIMedium::nullID())
     124    if (guiMedium.type() == UIMediumDeviceType_HardDisk && guiMedium.parentID() != UIMedium::nullID())
    125125        return;
    126126
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMediaComboBox.h

    r71948 r73953  
    4646
    4747    /** Defines @a enmMediaType. */
    48     void setType(UIMediumType enmMediaType) { m_enmMediaType = enmMediaType; }
     48    void setType(UIMediumDeviceType enmMediaType) { m_enmMediaType = enmMediaType; }
    4949    /** Returns media type. */
    50     UIMediumType type() const { return m_enmMediaType; }
     50    UIMediumDeviceType type() const { return m_enmMediaType; }
    5151
    5252    /** Defines @a strMachineId. */
     
    9696
    9797    /** Holds the media type. */
    98     UIMediumType  m_enmMediaType;
     98    UIMediumDeviceType  m_enmMediaType;
    9999
    100100    /** Holds the machine ID. */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp

    r71948 r73953  
    4343{
    4444    /* Get current virtual-disk medium type: */
    45     const UIMediumType enmMediumType = UIMediumDefs::mediumTypeToLocal(sourceVirtualDisk().GetDeviceType());
     45    const UIMediumDeviceType enmMediumType = UIMediumDefs::mediumTypeToLocal(sourceVirtualDisk().GetDeviceType());
    4646    /* Get source virtual-disk using file-open dialog: */
    4747    QString strMediumId = vboxGlobal().openMediumWithFileOpenDialog(enmMediumType, thisImp());
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp

    r71948 r73953  
    7474            {
    7575                m_pMediaSelector->setMachineId(strMachineId);
    76                 m_pMediaSelector->setType(UIMediumType_DVD);
     76                m_pMediaSelector->setType(UIMediumDeviceType_DVD);
    7777                m_pMediaSelector->repopulate();
    7878            }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.cpp

    r73597 r73953  
    110110
    111111    /* Inform VBoxGlobal about it: */
    112     vboxGlobal().createMedium(UIMedium(m_virtualDisk, UIMediumType_HardDisk, KMediumState_Created));
     112    vboxGlobal().createMedium(UIMedium(m_virtualDisk, UIMediumDeviceType_HardDisk, KMediumState_Created));
    113113
    114114    return true;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp

    r72696 r73953  
    280280                machine.AttachDevice(strHDName, 0, 0, KDeviceType_HardDisk, medium);
    281281                if (!machine.isOk())
    282                     msgCenter().cannotAttachDevice(machine, UIMediumType_HardDisk, field("virtualDiskLocation").toString(),
     282                    msgCenter().cannotAttachDevice(machine, UIMediumDeviceType_HardDisk, field("virtualDiskLocation").toString(),
    283283                                                   StorageSlot(ctrHDBus, 0, 0), this);
    284284            }
     
    287287            machine.AttachDevice(strDVDName, 1, 0, KDeviceType_DVD, CMedium());
    288288            if (!machine.isOk())
    289                 msgCenter().cannotAttachDevice(machine, UIMediumType_DVD, QString(), StorageSlot(strDVDBus, 1, 0), this);
     289                msgCenter().cannotAttachDevice(machine, UIMediumDeviceType_DVD, QString(), StorageSlot(strDVDBus, 1, 0), this);
    290290
    291291
     
    294294                machine.AttachDevice(strFloppyName, 0, 0, KDeviceType_Floppy, CMedium());
    295295                if (!machine.isOk())
    296                     msgCenter().cannotAttachDevice(machine, UIMediumType_Floppy, QString(),
     296                    msgCenter().cannotAttachDevice(machine, UIMediumDeviceType_Floppy, QString(),
    297297                                                   StorageSlot(KStorageBus_Floppy, 0, 0), this);
    298298            }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.cpp

    r71948 r73953  
    6868{
    6969    /* Get opened medium id: */
    70     QString strMediumId = vboxGlobal().openMediumWithFileOpenDialog(UIMediumType_HardDisk, thisImp());
     70    QString strMediumId = vboxGlobal().openMediumWithFileOpenDialog(UIMediumDeviceType_HardDisk, thisImp());
    7171    if (!strMediumId.isNull())
    7272    {
     
    147147            m_pDiskSelector = new UIMediaComboBox(this);
    148148            {
    149                 m_pDiskSelector->setType(UIMediumType_HardDisk);
     149                m_pDiskSelector->setType(UIMediumDeviceType_HardDisk);
    150150                m_pDiskSelector->repopulate();
    151151            }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r72603 r73953  
    112112                m_pDiskSelector = new UIMediaComboBox(m_pDiskCnt);
    113113                {
    114                     m_pDiskSelector->setType(UIMediumType_HardDisk);
     114                    m_pDiskSelector->setType(UIMediumDeviceType_HardDisk);
    115115                    m_pDiskSelector->repopulate();
    116116                }
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