Changeset 73953 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 29, 2018 2:36:45 PM (6 years ago)
- 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 1149 1149 } 1150 1150 1151 void UIMessageCenter::cannotAttachDevice(const CMachine &machine, UIMedium Type enmType,1151 void UIMessageCenter::cannotAttachDevice(const CMachine &machine, UIMediumDeviceType enmType, 1152 1152 const QString &strLocation, const StorageSlot &storageSlot, 1153 1153 QWidget *pParent /* = 0*/) … … 1156 1156 switch (enmType) 1157 1157 { 1158 case UIMedium Type_HardDisk:1158 case UIMediumDeviceType_HardDisk: 1159 1159 { 1160 1160 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>.") … … 1162 1162 break; 1163 1163 } 1164 case UIMedium Type_DVD:1164 case UIMediumDeviceType_DVD: 1165 1165 { 1166 1166 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>.") … … 1168 1168 break; 1169 1169 } 1170 case UIMedium Type_Floppy:1170 case UIMediumDeviceType_Floppy: 1171 1171 { 1172 1172 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>.") … … 1308 1308 switch (medium.type()) 1309 1309 { 1310 case UIMedium Type_HardDisk:1310 case UIMediumDeviceType_HardDisk: 1311 1311 { 1312 1312 strMessage = tr("<p>Are you sure you want to remove the virtual hard disk " … … 1327 1327 break; 1328 1328 } 1329 case UIMedium Type_DVD:1329 case UIMediumDeviceType_DVD: 1330 1330 { 1331 1331 strMessage = tr("<p>Are you sure you want to remove the virtual optical disk " … … 1335 1335 break; 1336 1336 } 1337 case UIMedium Type_Floppy:1337 case UIMediumDeviceType_Floppy: 1338 1338 { 1339 1339 strMessage = tr("<p>Are you sure you want to remove the virtual floppy disk " … … 1405 1405 } 1406 1406 1407 void UIMessageCenter::cannotDetachDevice(const CMachine &machine, UIMedium Type enmType, const QString &strLocation, const StorageSlot &storageSlot, QWidget *pParent /* = 0*/) const1407 void UIMessageCenter::cannotDetachDevice(const CMachine &machine, UIMediumDeviceType enmType, const QString &strLocation, const StorageSlot &storageSlot, QWidget *pParent /* = 0*/) const 1408 1408 { 1409 1409 /* Prepare the message: */ … … 1411 1411 switch (enmType) 1412 1412 { 1413 case UIMedium Type_HardDisk:1413 case UIMediumDeviceType_HardDisk: 1414 1414 { 1415 1415 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>.") … … 1417 1417 break; 1418 1418 } 1419 case UIMedium Type_DVD:1419 case UIMediumDeviceType_DVD: 1420 1420 { 1421 1421 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>.") … … 1423 1423 break; 1424 1424 } 1425 case UIMedium Type_Floppy:1425 case UIMediumDeviceType_Floppy: 1426 1426 { 1427 1427 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>.") … … 1442 1442 switch (medium.type()) 1443 1443 { 1444 case UIMedium Type_DVD:1444 case UIMediumDeviceType_DVD: 1445 1445 { 1446 1446 if (fMount) … … 1458 1458 break; 1459 1459 } 1460 case UIMedium Type_Floppy:1460 case UIMediumDeviceType_Floppy: 1461 1461 { 1462 1462 if (fMount) … … 1490 1490 } 1491 1491 1492 void UIMessageCenter::cannotOpenMedium(const CVirtualBox &vbox, UIMedium Type, const QString &strLocation, QWidget *pParent /* = 0*/) const1492 void UIMessageCenter::cannotOpenMedium(const CVirtualBox &vbox, UIMediumDeviceType, const QString &strLocation, QWidget *pParent /* = 0*/) const 1493 1493 { 1494 1494 /* Show the error: */ … … 2750 2750 qRegisterMetaType<CConsole>(); 2751 2751 qRegisterMetaType<CHostNetworkInterface>(); 2752 qRegisterMetaType<UIMedium Type>();2752 qRegisterMetaType<UIMediumDeviceType>(); 2753 2753 qRegisterMetaType<StorageSlot>(); 2754 2754 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r73586 r73953 319 319 int confirmFloppyAttachmentCreation(const QString &strControllerName, QWidget *pParent = 0) const; 320 320 int confirmRemovingOfLastDVDDevice(QWidget *pParent = 0) const; 321 void cannotAttachDevice(const CMachine &machine, UIMedium Type 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); 322 322 bool warnAboutIncorrectPort(QWidget *pParent = 0) const; 323 323 bool warnAboutIncorrectAddress(QWidget *pParent = 0) const; … … 340 340 void cannotResizeHardDiskStorage(const CMedium &comMedium, const QString &strLocation, const QString &strSizeOld, const QString &strSizeNew, QWidget *pParent = 0) const; 341 341 void cannotResizeHardDiskStorage(const CProgress &comProgress, const QString &strLocation, const QString &strSizeOld, const QString &strSizeNew, QWidget *pParent = 0) const; 342 void cannotDetachDevice(const CMachine &machine, UIMedium Type 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; 343 343 bool cannotRemountMedium(const CMachine &machine, const UIMedium &medium, bool fMount, bool fRetry, QWidget *pParent = 0) const; 344 void cannotOpenMedium(const CVirtualBox &vbox, UIMedium Type type, const QString &strLocation, QWidget *pParent = 0) const;344 void cannotOpenMedium(const CVirtualBox &vbox, UIMediumDeviceType type, const QString &strLocation, QWidget *pParent = 0) const; 345 345 void cannotCloseMedium(const UIMedium &medium, const COMResult &rc, QWidget *pParent = 0) const; 346 346 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.cpp
r71579 r73953 638 638 } 639 639 640 void UIPopupCenter::cannotOpenMedium(QWidget *pParent, const CVirtualBox &comVBox, UIMedium Type /* enmType */, const QString &strLocation)640 void UIPopupCenter::cannotOpenMedium(QWidget *pParent, const CVirtualBox &comVBox, UIMediumDeviceType /* enmType */, const QString &strLocation) 641 641 { 642 642 alertWithDetails(pParent, "cannotOpenMedium", -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.h
r71630 r73953 173 173 const QString &strMachineName, bool fEnable); 174 174 void cannotMountImage(QWidget *pParent, const QString &strMachineName, const QString &strMediumName); 175 void cannotOpenMedium(QWidget *pParent, const CVirtualBox &comVBox, UIMedium Type enmType, const QString &strLocation);175 void cannotOpenMedium(QWidget *pParent, const CVirtualBox &comVBox, UIMediumDeviceType enmType, const QString &strLocation); 176 176 void cannotSaveMachineSettings(QWidget *pParent, const CMachine &comMachine); 177 177 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r73938 r73953 2529 2529 } 2530 2530 2531 QString VBoxGlobal::openMedium(UIMedium Type enmMediumType, QString strMediumLocation, QWidget *pParent /* = 0 */)2531 QString VBoxGlobal::openMedium(UIMediumDeviceType enmMediumType, QString strMediumLocation, QWidget *pParent /* = 0 */) 2532 2532 { 2533 2533 /* Convert to native separators: */ … … 2564 2564 } 2565 2565 2566 QString VBoxGlobal::openMediumWithFileOpenDialog(UIMedium Type enmMediumType, QWidget *pParent,2566 QString VBoxGlobal::openMediumWithFileOpenDialog(UIMediumDeviceType enmMediumType, QWidget *pParent, 2567 2567 const QString &strDefaultFolder /* = QString() */, 2568 2568 bool fUseLastFolder /* = false */) … … 2578 2578 switch (enmMediumType) 2579 2579 { 2580 case UIMedium Type_HardDisk:2580 case UIMediumDeviceType_HardDisk: 2581 2581 { 2582 2582 filters = HDDBackends(virtualBox()); … … 2590 2590 break; 2591 2591 } 2592 case UIMedium Type_DVD:2592 case UIMediumDeviceType_DVD: 2593 2593 { 2594 2594 filters = DVDBackends(virtualBox()); … … 2602 2602 break; 2603 2603 } 2604 case UIMedium Type_Floppy:2604 case UIMediumDeviceType_Floppy: 2605 2605 { 2606 2606 filters = FloppyBackends(virtualBox()); … … 2711 2711 /* Done. */ 2712 2712 if (RT_SUCCESS(vrc)) 2713 return openMedium(UIMedium Type_DVD, QString(szVisoPath), pParent);2713 return openMedium(UIMediumDeviceType_DVD, QString(szVisoPath), pParent); 2714 2714 2715 2715 /** @todo error message. */ … … 2744 2744 2745 2745 /* Determine device & medium types: */ 2746 const UIMedium Type enmMediumType = mediumTypeToLocal(comCurrentAttachment.GetType());2747 AssertMsgReturnVoid(enmMediumType != UIMedium Type_Invalid, ("Incorrect storage medium type!\n"));2746 const UIMediumDeviceType enmMediumType = mediumTypeToLocal(comCurrentAttachment.GetType()); 2747 AssertMsgReturnVoid(enmMediumType != UIMediumDeviceType_Invalid, ("Incorrect storage medium type!\n")); 2748 2748 2749 2749 /* Prepare open-existing-medium action: */ … … 2756 2756 2757 2757 /* Prepare create floppy disk action: */ 2758 if (enmMediumType == UIMedium Type_Floppy)2758 if (enmMediumType == UIMediumDeviceType_Floppy) 2759 2759 { 2760 2760 QAction *pActionCreateFloppy = menu.addAction(UIIconPool::iconSet(":/fd_add_16px.png"), … … 2767 2767 } 2768 2768 /* Prepare ad-hoc-viso action for DVD-ROMs: */ 2769 if (enmMediumType == UIMedium Type_DVD)2769 if (enmMediumType == UIMediumDeviceType_DVD) 2770 2770 { 2771 2771 QAction *pActionAdHocViso = menu.addAction(UIIconPool::iconSet(":/select_file_16px.png"), … … 2785 2785 switch (enmMediumType) 2786 2786 { 2787 case UIMedium Type_DVD: comMedia = host().GetDVDDrives(); break;2788 case UIMedium Type_Floppy: comMedia = host().GetFloppyDrives(); break;2787 case UIMediumDeviceType_DVD: comMedia = host().GetDVDDrives(); break; 2788 case UIMediumDeviceType_Floppy: comMedia = host().GetFloppyDrives(); break; 2789 2789 default: break; 2790 2790 } … … 2826 2826 switch (enmMediumType) 2827 2827 { 2828 case UIMedium Type_HardDisk: recentMediumList = gEDataManager->recentListOfHardDrives(); break;2829 case UIMedium Type_DVD: recentMediumList = gEDataManager->recentListOfOpticalDisks(); break;2830 case UIMedium Type_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; 2831 2831 default: break; 2832 2832 } … … 2876 2876 2877 2877 /* Last action for optical/floppy attachments only: */ 2878 if (enmMediumType == UIMedium Type_DVD || enmMediumType == UIMediumType_Floppy)2878 if (enmMediumType == UIMediumDeviceType_DVD || enmMediumType == UIMediumDeviceType_Floppy) 2879 2879 { 2880 2880 /* Insert separator: */ … … 2887 2887 comCurrentAttachment.GetDevice()))); 2888 2888 pActionUnmountMedium->setText(QApplication::translate("UIMachineSettingsStorage", "Remove disk from virtual drive")); 2889 if (enmMediumType == UIMedium Type_DVD)2889 if (enmMediumType == UIMediumDeviceType_DVD) 2890 2890 pActionUnmountMedium->setIcon(UIIconPool::iconSet(":/cd_unmount_16px.png", ":/cd_unmount_disabled_16px.png")); 2891 else if (enmMediumType == UIMedium Type_Floppy)2891 else if (enmMediumType == UIMediumDeviceType_Floppy) 2892 2892 pActionUnmountMedium->setIcon(UIIconPool::iconSet(":/fd_unmount_16px.png", ":/fd_unmount_disabled_16px.png")); 2893 2893 } … … 2923 2923 2924 2924 /* Invoke file-open dialog to choose medium ID: */ 2925 if (target.mediumType != UIMedium Type_Invalid && target.data.isNull())2925 if (target.mediumType != UIMediumDeviceType_Invalid && target.data.isNull()) 2926 2926 { 2927 2927 /* Keyboard can be captured by machine-view. … … 2987 2987 2988 2988 /* Do not unmount hard-drives: */ 2989 if (target.mediumType == UIMedium Type_HardDisk && !fMount)2989 if (target.mediumType == UIMediumDeviceType_HardDisk && !fMount) 2990 2990 return; 2991 2991 … … 3016 3016 bool fWasMounted = false; 3017 3017 /* Hard drive case: */ 3018 if (target.mediumType == UIMedium Type_HardDisk)3018 if (target.mediumType == UIMediumDeviceType_HardDisk) 3019 3019 { 3020 3020 /* Detaching: */ … … 3022 3022 fWasMounted = comMachine.isOk(); 3023 3023 if (!fWasMounted) 3024 msgCenter().cannotDetachDevice(comMachine, UIMedium Type_HardDisk, strCurrentLocation,3024 msgCenter().cannotDetachDevice(comMachine, UIMediumDeviceType_HardDisk, strCurrentLocation, 3025 3025 StorageSlot(enmCurrentStorageBus, target.port, target.device)); 3026 3026 else … … 3030 3030 fWasMounted = comMachine.isOk(); 3031 3031 if (!fWasMounted) 3032 msgCenter().cannotAttachDevice(comMachine, UIMedium Type_HardDisk, strCurrentLocation,3032 msgCenter().cannotAttachDevice(comMachine, UIMediumDeviceType_HardDisk, strCurrentLocation, 3033 3033 StorageSlot(enmCurrentStorageBus, target.port, target.device)); 3034 3034 } … … 3100 3100 } 3101 3101 3102 void VBoxGlobal::updateRecentlyUsedMediumListAndFolder(UIMedium Type enmMediumType, QString strMediumLocation)3102 void VBoxGlobal::updateRecentlyUsedMediumListAndFolder(UIMediumDeviceType enmMediumType, QString strMediumLocation) 3103 3103 { 3104 3104 /* Remember the path of the last chosen medium: */ 3105 3105 switch (enmMediumType) 3106 3106 { 3107 case UIMedium Type_HardDisk: gEDataManager->setRecentFolderForHardDrives(QFileInfo(strMediumLocation).absolutePath()); break;3108 case UIMedium Type_DVD: gEDataManager->setRecentFolderForOpticalDisks(QFileInfo(strMediumLocation).absolutePath()); break;3109 case UIMedium Type_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; 3110 3110 default: break; 3111 3111 } … … 3115 3115 switch (enmMediumType) 3116 3116 { 3117 case UIMedium Type_HardDisk: recentMediumList = gEDataManager->recentListOfHardDrives(); break;3118 case UIMedium Type_DVD: recentMediumList = gEDataManager->recentListOfOpticalDisks(); break;3119 case UIMedium Type_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; 3120 3120 default: break; 3121 3121 } … … 3127 3127 switch (enmMediumType) 3128 3128 { 3129 case UIMedium Type_HardDisk: gEDataManager->setRecentListOfHardDrives(recentMediumList); break;3130 case UIMedium Type_DVD: gEDataManager->setRecentListOfOpticalDisks(recentMediumList); break;3131 case UIMedium Type_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; 3132 3132 default: break; 3133 3133 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r73938 r73953 496 496 * @param strMediumLocation Brings the file path to load medium from. 497 497 * @param pParent Brings the dialog parent. */ 498 QString openMedium(UIMedium Type enmMediumType, QString strMediumLocation, QWidget *pParent = 0);498 QString openMedium(UIMediumDeviceType enmMediumType, QString strMediumLocation, QWidget *pParent = 0); 499 499 500 500 /** Opens external medium using file-open dialog. … … 503 503 * @param strDefaultFolder Brings the folder to browse for medium. 504 504 * @param fUseLastFolder Brings whether we should propose to use last used folder. */ 505 QString openMediumWithFileOpenDialog(UIMedium Type enmMediumType, QWidget *pParent = 0,505 QString openMediumWithFileOpenDialog(UIMediumDeviceType enmMediumType, QWidget *pParent = 0, 506 506 const QString &strDefaultFolder = QString(), bool fUseLastFolder = true); 507 507 … … 539 539 * @param enmMediumType Passes the medium type. 540 540 * @param strMediumLocation Passes the medium location. */ 541 void updateRecentlyUsedMediumListAndFolder(UIMedium Type enmMediumType, QString strMediumLocation);541 void updateRecentlyUsedMediumListAndFolder(UIMediumDeviceType enmMediumType, QString strMediumLocation); 542 542 /** @} */ 543 543 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIFDCreationDialog.cpp
r73018 r73953 216 216 217 217 /* Notify VBoxGlobal about the new medium: */ 218 vboxGlobal().createMedium(UIMedium(newMedium, UIMedium Type_Floppy, KMediumState_Created));218 vboxGlobal().createMedium(UIMedium(newMedium, UIMediumDeviceType_Floppy, KMediumState_Created)); 219 219 /* Notify VBoxGlobal about the new medium: */ 220 vboxGlobal().updateRecentlyUsedMediumListAndFolder(UIMedium Type_Floppy, strMediumLocation);220 vboxGlobal().updateRecentlyUsedMediumListAndFolder(UIMediumDeviceType_Floppy, strMediumLocation); 221 221 222 222 /* 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 43 43 44 44 UIMedium::UIMedium() 45 : m_type(UIMedium Type_Invalid)45 : m_type(UIMediumDeviceType_Invalid) 46 46 , m_medium(CMedium()) 47 47 , m_state(KMediumState_NotCreated) … … 52 52 } 53 53 54 UIMedium::UIMedium(const CMedium &medium, UIMedium Type type)54 UIMedium::UIMedium(const CMedium &medium, UIMediumDeviceType type) 55 55 : m_type(type) 56 56 , m_medium(medium) … … 62 62 } 63 63 64 UIMedium::UIMedium(const CMedium &medium, UIMedium Type type, KMediumState state)64 UIMedium::UIMedium(const CMedium &medium, UIMediumDeviceType type, KMediumState state) 65 65 : m_type(type) 66 66 , m_medium(medium) … … 233 233 m_uSize = m_medium.GetSize(); 234 234 m_strSize = vboxGlobal().formatSize(m_uSize); 235 if (m_type == UIMedium Type_HardDisk)235 if (m_type == UIMediumDeviceType_HardDisk) 236 236 { 237 237 m_uLogicalSize = m_medium.GetLogicalSize(); … … 254 254 255 255 /* For hard drive medium: */ 256 if (m_type == UIMedium Type_HardDisk)256 if (m_type == UIMediumDeviceType_HardDisk) 257 257 { 258 258 /* Refresh hard drive disk type: */ … … 396 396 /* Refresh tool-tip: */ 397 397 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 == UIMedium Type_HardDisk)398 if (m_type == UIMediumDeviceType_HardDisk) 399 399 { 400 400 m_strToolTip += m_sstrRow.arg(VBoxGlobal::tr("<p style=white-space:pre>Type (Format): %1 (%2)</p>", "medium") … … 434 434 { 435 435 m_strParentId = nullID(); 436 if (m_type == UIMedium Type_HardDisk)436 if (m_type == UIMediumDeviceType_HardDisk) 437 437 { 438 438 CMedium parentMedium = m_medium.GetParent(); … … 515 515 KMediumState eState = m_state; 516 516 517 if (m_type == UIMedium Type_HardDisk)517 if (m_type == UIMediumDeviceType_HardDisk) 518 518 { 519 519 if (fNoDiffs) … … 553 553 break; 554 554 default: 555 strDetails += m_type == UIMedium Type_HardDisk ? rootMedium.m_strLogicalSize : rootMedium.m_strSize;555 strDetails += m_type == UIMediumDeviceType_HardDisk ? rootMedium.m_strLogicalSize : rootMedium.m_strSize; 556 556 break; 557 557 } -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.h
r73926 r73953 90 90 /** Lazy wrapping constructor. 91 91 * Creates the UIMedium associated with the given @a medium of the given @a type. */ 92 UIMedium(const CMedium &medium, UIMedium Type type);92 UIMedium(const CMedium &medium, UIMediumDeviceType type); 93 93 94 94 /** Wrapping constructor with known medium state. … … 96 96 * given @a medium of the given @a type but sets the UIMedium @a state to passed one. 97 97 * Suitable when the medium state is known such as right after the medium creation. */ 98 UIMedium(const CMedium &medium, UIMedium Type type, KMediumState state);98 UIMedium(const CMedium &medium, UIMediumDeviceType type, KMediumState state); 99 99 100 100 /** Copy constructor. … … 117 117 118 118 /** Returns the type of UIMedium object. */ 119 UIMedium Type type() const { return m_type; }119 UIMediumDeviceType type() const { return m_type; } 120 120 121 121 /** Returns the CMedium wrapped by this UIMedium object. */ … … 338 338 339 339 /** Holds the type of UIMedium object. */ 340 UIMedium Type m_type;340 UIMediumDeviceType m_type; 341 341 342 342 /** Holds the CMedium wrapped by this UIMedium object. */ -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDefs.cpp
r72869 r73953 36 36 37 37 38 /* Convert global medium type (KDeviceType) to local (UIMedium Type): */39 UIMedium Type UIMediumDefs::mediumTypeToLocal(KDeviceType globalType)38 /* Convert global medium type (KDeviceType) to local (UIMediumDeviceType): */ 39 UIMediumDeviceType UIMediumDefs::mediumTypeToLocal(KDeviceType globalType) 40 40 { 41 41 switch (globalType) 42 42 { 43 43 case KDeviceType_HardDisk: 44 return UIMedium Type_HardDisk;44 return UIMediumDeviceType_HardDisk; 45 45 case KDeviceType_DVD: 46 return UIMedium Type_DVD;46 return UIMediumDeviceType_DVD; 47 47 case KDeviceType_Floppy: 48 return UIMedium Type_Floppy;48 return UIMediumDeviceType_Floppy; 49 49 default: 50 50 break; 51 51 } 52 return UIMedium Type_Invalid;52 return UIMediumDeviceType_Invalid; 53 53 } 54 54 55 /* Convert local medium type (UIMedium Type) to global (KDeviceType): */56 KDeviceType UIMediumDefs::mediumTypeToGlobal(UIMedium Type localType)55 /* Convert local medium type (UIMediumDeviceType) to global (KDeviceType): */ 56 KDeviceType UIMediumDefs::mediumTypeToGlobal(UIMediumDeviceType localType) 57 57 { 58 58 switch (localType) 59 59 { 60 case UIMedium Type_HardDisk:60 case UIMediumDeviceType_HardDisk: 61 61 return KDeviceType_HardDisk; 62 case UIMedium Type_DVD:62 case UIMediumDeviceType_DVD: 63 63 return KDeviceType_DVD; 64 case UIMedium Type_Floppy:64 case UIMediumDeviceType_Floppy: 65 65 return KDeviceType_Floppy; 66 66 default: -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDefs.h
r72903 r73953 51 51 { 52 52 /** UIMedium types. */ 53 enum UIMedium Type53 enum UIMediumDeviceType 54 54 { 55 UIMedium Type_HardDisk,56 UIMedium Type_DVD,57 UIMedium Type_Floppy,58 UIMedium Type_All,59 UIMedium Type_Invalid55 UIMediumDeviceType_HardDisk, 56 UIMediumDeviceType_DVD, 57 UIMediumDeviceType_Floppy, 58 UIMediumDeviceType_All, 59 UIMediumDeviceType_Invalid 60 60 }; 61 61 62 /** Converts global medium type (KDeviceType) to local (UIMedium Type). */63 SHARED_LIBRARY_STUFF UIMedium Type mediumTypeToLocal(KDeviceType globalType);64 /** Convert local medium type (UIMedium Type) to global (KDeviceType). */65 SHARED_LIBRARY_STUFF KDeviceType mediumTypeToGlobal(UIMedium Type 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); 66 66 67 67 /** Returns medium formats which are currently supported by @a comVBox for the given @a enmDeviceType. */ … … 95 95 /** Medium-target constructor. */ 96 96 UIMediumTarget(const QString &strName = QString(), LONG iPort = 0, LONG iDevice = 0, 97 UIMedium Type aMediumType = UIMediumType_Invalid,97 UIMediumDeviceType aMediumType = UIMediumDeviceType_Invalid, 98 98 UIMediumTargetType aType = UIMediumTargetType_WithID, const QString &strData = QString()) 99 99 : name(strName), port(iPort), device(iDevice) … … 110 110 111 111 /** Determines medium-target medium-type. */ 112 UIMedium Type mediumType;112 UIMediumDeviceType mediumType; 113 113 114 114 /** Determines medium-target type. */ … … 119 119 120 120 /* Let QMetaType know about our types: */ 121 Q_DECLARE_METATYPE(UIMedium Type);121 Q_DECLARE_METATYPE(UIMediumDeviceType); 122 122 Q_DECLARE_METATYPE(UIMediumTarget); 123 123 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDetailsWidget.cpp
r71027 r73953 70 70 } 71 71 72 void UIMediumDetailsWidget::setCurrentType(UIMedium Type enmType)72 void UIMediumDetailsWidget::setCurrentType(UIMediumDeviceType enmType) 73 73 { 74 74 /* If known type was requested => raise corresponding container: */ … … 543 543 { 544 544 /* Create information-containers: */ 545 for (int i = (int)UIMedium Type_HardDisk; i < (int)UIMediumType_All; ++i)546 { 547 const UIMedium Type enmType = (UIMediumType)i;548 prepareInformationContainer(enmType, enmType == UIMedium Type_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. 549 549 } 550 550 } … … 555 555 } 556 556 557 void UIMediumDetailsWidget::prepareInformationContainer(UIMedium Type enmType, int cFields)557 void UIMediumDetailsWidget::prepareInformationContainer(UIMediumDeviceType enmType, int cFields) 558 558 { 559 559 /* Create information-container: */ … … 628 628 switch (m_newData.m_enmType) 629 629 { 630 case UIMedium Type_HardDisk:630 case UIMediumDeviceType_HardDisk: 631 631 { 632 632 /* No type changes for differencing disks: */ … … 646 646 break; 647 647 } 648 case UIMedium Type_DVD:648 case UIMediumDeviceType_DVD: 649 649 { 650 650 m_pComboBoxType->addItem(QString(), QVariant::fromValue(KMediumType_Readonly)); 651 651 break; 652 652 } 653 case UIMedium Type_Floppy:653 case UIMediumDeviceType_Floppy: 654 654 { 655 655 m_pComboBoxType->addItem(QString(), QVariant::fromValue(KMediumType_Writethrough)); … … 687 687 /* Load size: */ 688 688 const bool fEnableResize = m_newData.m_fValid 689 && m_newData.m_enmType == UIMedium Type_HardDisk689 && m_newData.m_enmType == UIMediumDeviceType_HardDisk 690 690 && !(m_newData.m_enmVariant & KMediumVariant_Fixed); 691 691 m_pLabelSize->setEnabled(fEnableResize); … … 829 829 } 830 830 831 QWidget *UIMediumDetailsWidget::infoContainer(UIMedium Type enmType) const831 QWidget *UIMediumDetailsWidget::infoContainer(UIMediumDeviceType enmType) const 832 832 { 833 833 /* Return information-container for known medium type: */ … … 835 835 } 836 836 837 QLabel *UIMediumDetailsWidget::infoLabel(UIMedium Type enmType, int iIndex) const837 QLabel *UIMediumDetailsWidget::infoLabel(UIMediumDeviceType enmType, int iIndex) const 838 838 { 839 839 /* Acquire list of labels: */ … … 844 844 } 845 845 846 QILabel *UIMediumDetailsWidget::infoField(UIMedium Type enmType, int iIndex) const846 QILabel *UIMediumDetailsWidget::infoField(UIMediumDeviceType enmType, int iIndex) const 847 847 { 848 848 /* Acquire list of fields: */ -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDetailsWidget.h
r71027 r73953 120 120 UIDataMedium() 121 121 : m_fValid(false) 122 , m_enmType(UIMedium Type_Invalid)122 , m_enmType(UIMediumDeviceType_Invalid) 123 123 , m_enmVariant(KMediumVariant_Max) 124 124 , m_fHasChildren(false) … … 128 128 129 129 /** Constructs data with passed @enmType. */ 130 UIDataMedium(UIMedium Type enmType)130 UIDataMedium(UIMediumDeviceType enmType) 131 131 : m_fValid(false) 132 132 , m_enmType(enmType) … … 158 158 bool m_fValid; 159 159 /** Holds the medium type. */ 160 UIMedium Type m_enmType;160 UIMediumDeviceType m_enmType; 161 161 /** Holds the medium variant. */ 162 162 KMediumVariant m_enmVariant; … … 195 195 196 196 /** Defines the raised details @a enmType. */ 197 void setCurrentType(UIMedium Type enmType);197 void setCurrentType(UIMediumDeviceType enmType); 198 198 199 199 /** Returns the medium data. */ … … 246 246 void prepareTabDetails(); 247 247 /** Prepares information-container. */ 248 void prepareInformationContainer(UIMedium Type enmType, int cFields);248 void prepareInformationContainer(UIMediumDeviceType enmType, int cFields); 249 249 /** @} */ 250 250 … … 273 273 * @{ */ 274 274 /** Returns information-container for passed medium @a enmType. */ 275 QWidget *infoContainer(UIMedium Type enmType) const;275 QWidget *infoContainer(UIMediumDeviceType enmType) const; 276 276 /** Returns information-label for passed medium @a enmType and @a iIndex. */ 277 QLabel *infoLabel(UIMedium Type enmType, int iIndex) const;277 QLabel *infoLabel(UIMediumDeviceType enmType, int iIndex) const; 278 278 /** Returns information-field for passed medium @a enmType and @a iIndex. */ 279 QILabel *infoField(UIMedium Type enmType, int iIndex) const;279 QILabel *infoField(UIMediumDeviceType enmType, int iIndex) const; 280 280 /** @} */ 281 281 … … 343 343 344 344 /** Holds the map of information-container instances. */ 345 QMap<UIMedium Type, QWidget*> m_aContainers;345 QMap<UIMediumDeviceType, QWidget*> m_aContainers; 346 346 /** Holds the map of information-container label instances. */ 347 QMap<UIMedium Type, QList<QLabel*> > m_aLabels;347 QMap<UIMediumDeviceType, QList<QLabel*> > m_aLabels; 348 348 /** Holds the information-container field instances. */ 349 QMap<UIMedium Type, QList<QILabel*> > m_aFields;349 QMap<UIMediumDeviceType, QList<QILabel*> > m_aFields; 350 350 /** @} */ 351 351 }; -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumItem.cpp
r72406 r73953 215 215 switch (m_enmType) 216 216 { 217 case UIMedium Type_HardDisk:217 case UIMediumDeviceType_HardDisk: 218 218 { 219 219 m_details.m_aLabels << QApplication::translate("UIMediumManager", "Format:"); … … 235 235 break; 236 236 } 237 case UIMedium Type_DVD:238 case UIMedium Type_Floppy:237 case UIMediumDeviceType_DVD: 238 case UIMediumDeviceType_Floppy: 239 239 { 240 240 m_details.m_aLabels << QApplication::translate("UIMediumManager", "Attached to:"); … … 366 366 { 367 367 /* Return failure: */ 368 msgCenter().cannotDetachDevice(comMachine, UIMedium Type_HardDisk, location(),368 msgCenter().cannotDetachDevice(comMachine, UIMediumDeviceType_HardDisk, location(), 369 369 StorageSlot(controller.GetBus(), attachment.GetPort(), attachment.GetDevice()), 370 370 treeWidget()); -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumItem.h
r72406 r73953 61 61 void setMedium(const UIMedium &guiMedium); 62 62 63 /** Returns UIMedium Type of the wrapped UIMedium. */64 UIMedium Type mediumType() const { return m_guiMedium.type(); }63 /** Returns UIMediumDeviceType of the wrapped UIMedium. */ 64 UIMediumDeviceType mediumType() const { return m_guiMedium.type(); } 65 65 66 66 /** Returns KMediumState of the wrapped UIMedium. */ -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r73926 r73953 202 202 if (m_pTabWidget) 203 203 { 204 m_pTabWidget->setTabText(tabIndex(UIMedium Type_HardDisk), UIMediumManager::tr("&Hard disks"));205 m_pTabWidget->setTabText(tabIndex(UIMedium Type_DVD), UIMediumManager::tr("&Optical disks"));206 m_pTabWidget->setTabText(tabIndex(UIMedium Type_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")); 207 207 } 208 208 209 209 /* Translate HD tree-widget: */ 210 QITreeWidget *pTreeWidgetHD = treeWidget(UIMedium Type_HardDisk);210 QITreeWidget *pTreeWidgetHD = treeWidget(UIMediumDeviceType_HardDisk); 211 211 if (pTreeWidgetHD) 212 212 { … … 217 217 218 218 /* Translate CD tree-widget: */ 219 QITreeWidget *pTreeWidgetCD = treeWidget(UIMedium Type_DVD);219 QITreeWidget *pTreeWidgetCD = treeWidget(UIMediumDeviceType_DVD); 220 220 if (pTreeWidgetCD) 221 221 { … … 225 225 226 226 /* Translate FD tree-widget: */ 227 QITreeWidget *pTreeWidgetFD = treeWidget(UIMedium Type_Floppy);227 QITreeWidget *pTreeWidgetFD = treeWidget(UIMediumDeviceType_Floppy); 228 228 if (pTreeWidgetFD) 229 229 { … … 446 446 if (m_pTabWidget) 447 447 { 448 m_pTabWidget->setTabIcon(tabIndex(UIMedium Type_HardDisk), m_iconHD);449 m_pTabWidget->setTabIcon(tabIndex(UIMedium Type_DVD), m_iconCD);450 m_pTabWidget->setTabIcon(tabIndex(UIMedium Type_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); 451 451 } 452 452 … … 810 810 /* Create tabs: */ 811 811 for (int i = 0; i < m_iTabCount; ++i) 812 prepareTab((UIMedium Type)i);812 prepareTab((UIMediumDeviceType)i); 813 813 /* Configure tab-widget: */ 814 814 m_pTabWidget->setFocusPolicy(Qt::TabFocus); 815 m_pTabWidget->setTabIcon(tabIndex(UIMedium Type_HardDisk), m_iconHD);816 m_pTabWidget->setTabIcon(tabIndex(UIMedium Type_DVD), m_iconCD);817 m_pTabWidget->setTabIcon(tabIndex(UIMedium Type_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); 818 818 connect(m_pTabWidget, &QITabWidget::currentChanged, this, &UIMediumManagerWidget::sltHandleCurrentTabChanged); 819 819 … … 826 826 } 827 827 828 void UIMediumManagerWidget::prepareTab(UIMedium Type type)828 void UIMediumManagerWidget::prepareTab(UIMediumDeviceType type) 829 829 { 830 830 /* Create tab: */ … … 843 843 844 844 /* Prepare tree-widget: */ 845 prepareTreeWidget(type, type == UIMedium Type_HardDisk ? 3 : 2);845 prepareTreeWidget(type, type == UIMediumDeviceType_HardDisk ? 3 : 2); 846 846 } 847 847 } 848 848 } 849 849 850 void UIMediumManagerWidget::prepareTreeWidget(UIMedium Type type, int iColumns)850 void UIMediumManagerWidget::prepareTreeWidget(UIMediumDeviceType type, int iColumns) 851 851 { 852 852 /* Create tree-widget: */ … … 919 919 { 920 920 /* Remember current medium-items: */ 921 if (UIMediumItem *pMediumItem = mediumItem(UIMedium Type_HardDisk))921 if (UIMediumItem *pMediumItem = mediumItem(UIMediumDeviceType_HardDisk)) 922 922 m_strCurrentIdHD = pMediumItem->id(); 923 if (UIMediumItem *pMediumItem = mediumItem(UIMedium Type_DVD))923 if (UIMediumItem *pMediumItem = mediumItem(UIMediumDeviceType_DVD)) 924 924 m_strCurrentIdCD = pMediumItem->id(); 925 if (UIMediumItem *pMediumItem = mediumItem(UIMedium Type_Floppy))925 if (UIMediumItem *pMediumItem = mediumItem(UIMediumDeviceType_Floppy)) 926 926 m_strCurrentIdFD = pMediumItem->id(); 927 927 928 928 /* Clear tree-widgets: */ 929 QITreeWidget *pTreeWidgetHD = treeWidget(UIMedium Type_HardDisk);929 QITreeWidget *pTreeWidgetHD = treeWidget(UIMediumDeviceType_HardDisk); 930 930 if (pTreeWidgetHD) 931 931 { … … 933 933 pTreeWidgetHD->clear(); 934 934 } 935 QITreeWidget *pTreeWidgetCD = treeWidget(UIMedium Type_DVD);935 QITreeWidget *pTreeWidgetCD = treeWidget(UIMediumDeviceType_DVD); 936 936 if (pTreeWidgetCD) 937 937 { … … 939 939 pTreeWidgetCD->clear(); 940 940 } 941 QITreeWidget *pTreeWidgetFD = treeWidget(UIMedium Type_Floppy);941 QITreeWidget *pTreeWidgetFD = treeWidget(UIMediumDeviceType_Floppy); 942 942 if (pTreeWidgetFD) 943 943 { … … 953 953 954 954 /* Select first item as current one if nothing selected: */ 955 if (pTreeWidgetHD && !mediumItem(UIMedium Type_HardDisk))955 if (pTreeWidgetHD && !mediumItem(UIMediumDeviceType_HardDisk)) 956 956 if (QTreeWidgetItem *pItem = pTreeWidgetHD->topLevelItem(0)) 957 957 setCurrentItem(pTreeWidgetHD, pItem); 958 if (pTreeWidgetCD && !mediumItem(UIMedium Type_DVD))958 if (pTreeWidgetCD && !mediumItem(UIMediumDeviceType_DVD)) 959 959 if (QTreeWidgetItem *pItem = pTreeWidgetCD->topLevelItem(0)) 960 960 setCurrentItem(pTreeWidgetCD, pItem); 961 if (pTreeWidgetFD && !mediumItem(UIMedium Type_Floppy))961 if (pTreeWidgetFD && !mediumItem(UIMediumDeviceType_Floppy)) 962 962 if (QTreeWidgetItem *pItem = pTreeWidgetFD->topLevelItem(0)) 963 963 setCurrentItem(pTreeWidgetFD, pItem); 964 964 } 965 965 966 void UIMediumManagerWidget::refetchCurrentMediumItem(UIMedium Type type)966 void UIMediumManagerWidget::refetchCurrentMediumItem(UIMediumDeviceType type) 967 967 { 968 968 /* Get corresponding medium-item: */ … … 994 994 void UIMediumManagerWidget::refetchCurrentMediumItems() 995 995 { 996 refetchCurrentMediumItem(UIMedium Type_HardDisk);997 refetchCurrentMediumItem(UIMedium Type_DVD);998 refetchCurrentMediumItem(UIMedium Type_Floppy);996 refetchCurrentMediumItem(UIMediumDeviceType_HardDisk); 997 refetchCurrentMediumItem(UIMediumDeviceType_DVD); 998 refetchCurrentMediumItem(UIMediumDeviceType_Floppy); 999 999 } 1000 1000 … … 1022 1022 void UIMediumManagerWidget::updateActionIcons() 1023 1023 { 1024 const UIMedium Type enmCurrentMediumType = currentMediumType();1025 if (enmCurrentMediumType != UIMedium Type_Invalid)1024 const UIMediumDeviceType enmCurrentMediumType = currentMediumType(); 1025 if (enmCurrentMediumType != UIMediumDeviceType_Invalid) 1026 1026 { 1027 1027 m_pActionPool->action(UIActionIndexST_M_Medium_S_Add)->setState((int)enmCurrentMediumType); … … 1042 1042 const QIcon *pIcon = 0; 1043 1043 bool *pfInaccessible = 0; 1044 const UIMedium Type mediumType = pMediumItem->mediumType();1044 const UIMediumDeviceType mediumType = pMediumItem->mediumType(); 1045 1045 switch (mediumType) 1046 1046 { 1047 case UIMedium Type_HardDisk:1047 case UIMediumDeviceType_HardDisk: 1048 1048 pIcon = &m_iconHD; 1049 1049 pfInaccessible = &m_fInaccessibleHD; 1050 1050 break; 1051 case UIMedium Type_DVD:1051 case UIMediumDeviceType_DVD: 1052 1052 pIcon = &m_iconCD; 1053 1053 pfInaccessible = &m_fInaccessibleCD; 1054 1054 break; 1055 case UIMedium Type_Floppy:1055 case UIMediumDeviceType_Floppy: 1056 1056 pIcon = &m_iconFD; 1057 1057 pfInaccessible = &m_fInaccessibleFD; … … 1126 1126 { 1127 1127 /* Get medium type: */ 1128 UIMedium Type type = medium.type();1128 UIMediumDeviceType type = medium.type(); 1129 1129 1130 1130 /* Create medium-item: */ … … 1133 1133 { 1134 1134 /* Of hard-drive type: */ 1135 case UIMedium Type_HardDisk:1135 case UIMediumDeviceType_HardDisk: 1136 1136 { 1137 1137 /* Make sure corresponding tree-widget exists: */ 1138 QITreeWidget *pTreeWidget = treeWidget(UIMedium Type_HardDisk);1138 QITreeWidget *pTreeWidget = treeWidget(UIMediumDeviceType_HardDisk); 1139 1139 if (pTreeWidget) 1140 1140 { … … 1153 1153 } 1154 1154 /* Of optical-image type: */ 1155 case UIMedium Type_DVD:1155 case UIMediumDeviceType_DVD: 1156 1156 { 1157 1157 /* Make sure corresponding tree-widget exists: */ 1158 QITreeWidget *pTreeWidget = treeWidget(UIMedium Type_DVD);1158 QITreeWidget *pTreeWidget = treeWidget(UIMediumDeviceType_DVD); 1159 1159 if (pTreeWidget) 1160 1160 { … … 1174 1174 } 1175 1175 /* Of floppy-image type: */ 1176 case UIMedium Type_Floppy:1176 case UIMediumDeviceType_Floppy: 1177 1177 { 1178 1178 /* Make sure corresponding tree-widget exists: */ 1179 QITreeWidget *pTreeWidget = treeWidget(UIMedium Type_Floppy);1179 QITreeWidget *pTreeWidget = treeWidget(UIMediumDeviceType_Floppy); 1180 1180 if (pTreeWidget) 1181 1181 { … … 1218 1218 1219 1219 /* Make sure corresponding tree-widget exists: */ 1220 QITreeWidget *pTreeWidget = treeWidget(UIMedium Type_HardDisk);1220 QITreeWidget *pTreeWidget = treeWidget(UIMediumDeviceType_HardDisk); 1221 1221 if (pTreeWidget) 1222 1222 { … … 1269 1269 { 1270 1270 /* Get medium type: */ 1271 UIMedium Type type = medium.type();1271 UIMediumDeviceType type = medium.type(); 1272 1272 1273 1273 /* Search for existing medium-item: */ … … 1297 1297 { 1298 1298 /* Search for corresponding tree-widget: */ 1299 QList<UIMedium Type> types;1300 types << UIMedium Type_HardDisk << UIMediumType_DVD << UIMediumType_Floppy;1299 QList<UIMediumDeviceType> types; 1300 types << UIMediumDeviceType_HardDisk << UIMediumDeviceType_DVD << UIMediumDeviceType_Floppy; 1301 1301 QITreeWidget *pTreeWidget = 0; 1302 1302 UIMediumItem *pMediumItem = 0; 1303 foreach (UIMedium Type type, types)1303 foreach (UIMediumDeviceType type, types) 1304 1304 { 1305 1305 /* Get iterated tree-widget: */ … … 1328 1328 } 1329 1329 1330 QWidget* UIMediumManagerWidget::tab(UIMedium Type type) const1330 QWidget* UIMediumManagerWidget::tab(UIMediumDeviceType type) const 1331 1331 { 1332 1332 /* Determine tab index for passed medium type: */ … … 1341 1341 } 1342 1342 1343 QITreeWidget* UIMediumManagerWidget::treeWidget(UIMedium Type type) const1343 QITreeWidget* UIMediumManagerWidget::treeWidget(UIMediumDeviceType type) const 1344 1344 { 1345 1345 /* Determine tab index for passed medium type: */ … … 1354 1354 } 1355 1355 1356 UIMediumItem* UIMediumManagerWidget::mediumItem(UIMedium Type type) const1356 UIMediumItem* UIMediumManagerWidget::mediumItem(UIMediumDeviceType type) const 1357 1357 { 1358 1358 /* Get corresponding tree-widget: */ … … 1362 1362 } 1363 1363 1364 UIMedium Type UIMediumManagerWidget::mediumType(QITreeWidget *pTreeWidget) const1364 UIMediumDeviceType UIMediumManagerWidget::mediumType(QITreeWidget *pTreeWidget) const 1365 1365 { 1366 1366 /* Determine tab index of passed tree-widget: */ … … 1369 1369 /* Return medium type for known tab index: */ 1370 1370 if (iIndex >= 0 && iIndex < m_iTabCount) 1371 return (UIMedium Type)iIndex;1371 return (UIMediumDeviceType)iIndex; 1372 1372 1373 1373 /* Invalid by default: */ 1374 AssertFailedReturn(UIMedium Type_Invalid);1375 } 1376 1377 UIMedium Type UIMediumManagerWidget::currentMediumType() const1374 AssertFailedReturn(UIMediumDeviceType_Invalid); 1375 } 1376 1377 UIMediumDeviceType UIMediumManagerWidget::currentMediumType() const 1378 1378 { 1379 1379 /* Invalid if tab-widget doesn't exists: */ 1380 1380 if (!m_pTabWidget) 1381 return UIMedium Type_Invalid;1381 return UIMediumDeviceType_Invalid; 1382 1382 1383 1383 /* Return current medium type: */ 1384 return (UIMedium Type)m_pTabWidget->currentIndex();1384 return (UIMediumDeviceType)m_pTabWidget->currentIndex(); 1385 1385 } 1386 1386 … … 1418 1418 1419 1419 /* static */ 1420 int UIMediumManagerWidget::tabIndex(UIMedium Type type)1420 int UIMediumManagerWidget::tabIndex(UIMediumDeviceType type) 1421 1421 { 1422 1422 /* Return tab index corresponding to known medium type: */ 1423 1423 switch (type) 1424 1424 { 1425 case UIMedium Type_HardDisk: return 0;1426 case UIMedium Type_DVD: return 1;1427 case UIMedium Type_Floppy: return 2;1425 case UIMediumDeviceType_HardDisk: return 0; 1426 case UIMediumDeviceType_DVD: return 1; 1427 case UIMediumDeviceType_Floppy: return 2; 1428 1428 default: break; 1429 1429 } -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.h
r73783 r73953 214 214 void prepareTabWidget(); 215 215 /** Prepares tab-widget's tab. */ 216 void prepareTab(UIMedium Type type);216 void prepareTab(UIMediumDeviceType type); 217 217 /** Prepares tab-widget's tree-widget. */ 218 void prepareTreeWidget(UIMedium Type type, int iColumns);218 void prepareTreeWidget(UIMediumDeviceType type, int iColumns); 219 219 /** Prepares details-widget. */ 220 220 void prepareDetailsWidget(); … … 226 226 227 227 /** Updates details according latest changes in current item of passed @a type. */ 228 void refetchCurrentMediumItem(UIMedium Type type);228 void refetchCurrentMediumItem(UIMediumDeviceType type); 229 229 /** Updates details according latest changes in current item of chosen type. */ 230 230 void refetchCurrentChosenMediumItem(); … … 252 252 253 253 /** Returns tab for passed medium @a type. */ 254 QWidget *tab(UIMedium Type type) const;254 QWidget *tab(UIMediumDeviceType type) const; 255 255 /** Returns tree-widget for passed medium @a type. */ 256 QITreeWidget *treeWidget(UIMedium Type type) const;256 QITreeWidget *treeWidget(UIMediumDeviceType type) const; 257 257 /** Returns item for passed medium @a type. */ 258 UIMediumItem *mediumItem(UIMedium Type type) const;258 UIMediumItem *mediumItem(UIMediumDeviceType type) const; 259 259 260 260 /** Returns medium type for passed @a pTreeWidget. */ 261 UIMedium Type mediumType(QITreeWidget *pTreeWidget) const;261 UIMediumDeviceType mediumType(QITreeWidget *pTreeWidget) const; 262 262 263 263 /** Returns current medium type. */ 264 UIMedium Type currentMediumType() const;264 UIMediumDeviceType currentMediumType() const; 265 265 /** Returns current tree-widget. */ 266 266 QITreeWidget *currentTreeWidget() const; … … 274 274 /** @name Helper stuff. 275 275 * @{ */ 276 /** Returns tab index for passed UIMedium Type. */277 static int tabIndex(UIMedium Type type);276 /** Returns tab index for passed UIMediumDeviceType. */ 277 static int tabIndex(UIMediumDeviceType type); 278 278 279 279 /** 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 149 149 150 150 151 UIMediumSelector::UIMediumSelector(UIMedium Type enmMediumType, const QString &machineName /* = QString() */,151 UIMediumSelector::UIMediumSelector(UIMediumDeviceType enmMediumType, const QString &machineName /* = QString() */, 152 152 const QString &machineSettigFilePath /* = QString() */, QWidget *pParent /* = 0 */) 153 153 :QIWithRetranslateUI<QIDialog>(pParent) … … 235 235 switch (m_enmMediumType) 236 236 { 237 case UIMedium Type_DVD:237 case UIMediumDeviceType_DVD: 238 238 strPrefix = "cd"; 239 239 break; 240 case UIMedium Type_Floppy:240 case UIMediumDeviceType_Floppy: 241 241 strPrefix = "fd"; 242 242 break; 243 case UIMedium Type_HardDisk:244 case UIMedium Type_All:245 case UIMedium Type_Invalid:243 case UIMediumDeviceType_HardDisk: 244 case UIMediumDeviceType_All: 245 case UIMediumDeviceType_Invalid: 246 246 default: 247 247 strPrefix = "hd"; … … 262 262 263 263 /* Currently create is supported only for Floppy: */ 264 if (m_enmMediumType == UIMedium Type_Floppy)264 if (m_enmMediumType == UIMediumDeviceType_Floppy) 265 265 { 266 266 m_pActionCreate = new QAction(this); … … 330 330 switch (m_enmMediumType) 331 331 { 332 case UIMedium Type_DVD:332 case UIMediumDeviceType_DVD: 333 333 return new UIMediumItemCD(medium, pParent); 334 334 break; 335 case UIMedium Type_Floppy:335 case UIMediumDeviceType_Floppy: 336 336 return new UIMediumItemFD(medium, pParent); 337 337 break; 338 case UIMedium Type_HardDisk:339 case UIMedium Type_All:340 case UIMedium Type_Invalid:338 case UIMediumDeviceType_HardDisk: 339 case UIMediumDeviceType_All: 340 case UIMediumDeviceType_Invalid: 341 341 default: 342 342 return createHardDiskItem(medium, pParent); … … 446 446 m_pMainLayout->addWidget(m_pTreeWidget); 447 447 m_pTreeWidget->setAlternatingRowColors(true); 448 int iColumnCount = (m_enmMediumType == UIMedium Type_HardDisk) ? 3 : 2;448 int iColumnCount = (m_enmMediumType == UIMediumDeviceType_HardDisk) ? 3 : 2; 449 449 m_pTreeWidget->setColumnCount(iColumnCount); 450 450 m_pTreeWidget->setSortingEnabled(true); -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.h
r73034 r73953 48 48 public: 49 49 50 UIMediumSelector(UIMedium Type enmMediumType, const QString &machineName = QString(),50 UIMediumSelector(UIMediumDeviceType enmMediumType, const QString &machineName = QString(), 51 51 const QString &machineSettigFilePath = QString(), QWidget *pParent = 0); 52 52 QStringList selectedMediumIds() const; … … 104 104 QVBoxLayout *m_pMainLayout; 105 105 QITreeWidget *m_pTreeWidget; 106 UIMedium Type m_enmMediumType;106 UIMediumDeviceType m_enmMediumType; 107 107 QIDialogButtonBox *m_pButtonBox; 108 108 UIToolBar *m_pToolBar; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r73871 r73953 223 223 strAttData += s_strTableRow4 224 224 .arg(gpConverter->toString(StorageSlot(controller.GetBus(), attachment.GetPort(), attachment.GetDevice()))) 225 .arg(UIMedium(attachment.GetMedium(), UIMedium Type_HardDisk).location());225 .arg(UIMedium(attachment.GetMedium(), UIMediumDeviceType_HardDisk).location()); 226 226 fAttachmentsPresent = true; 227 227 } … … 287 287 continue; 288 288 /* Append attachment data: */ 289 UIMedium vboxMedium(attachment.GetMedium(), UIMedium Type_DVD);289 UIMedium vboxMedium(attachment.GetMedium(), UIMediumDeviceType_DVD); 290 290 strAttData += s_strTableRow4 291 291 .arg(gpConverter->toString(StorageSlot(controller.GetBus(), attachment.GetPort(), attachment.GetDevice()))) … … 356 356 continue; 357 357 /* Append attachment data: */ 358 UIMedium vboxMedium(attachment.GetMedium(), UIMedium Type_Floppy);358 UIMedium vboxMedium(attachment.GetMedium(), UIMediumDeviceType_Floppy); 359 359 strAttData += s_strTableRow4 360 360 .arg(gpConverter->toString(StorageSlot(controller.GetBus(), attachment.GetPort(), attachment.GetDevice()))) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r73946 r73953 204 204 /* Apply ad-hoc reconfigurations from the command line: */ 205 205 if (vboxGlobal().hasFloppyImageToMount()) 206 mountAdHocImage(KDeviceType_Floppy, UIMedium Type_Floppy, vboxGlobal().getFloppyImage());206 mountAdHocImage(KDeviceType_Floppy, UIMediumDeviceType_Floppy, vboxGlobal().getFloppyImage()); 207 207 if (vboxGlobal().hasDvdImageToMount()) 208 mountAdHocImage(KDeviceType_DVD, UIMedium Type_DVD, vboxGlobal().getDvdImage());208 mountAdHocImage(KDeviceType_DVD, UIMediumDeviceType_DVD, vboxGlobal().getDvdImage()); 209 209 210 210 /* Power UP if this is NOT separate process: */ … … 588 588 589 589 /* Mount medium add-hoc: */ 590 mountAdHocImage(KDeviceType_DVD, UIMedium Type_DVD, strSource);590 mountAdHocImage(KDeviceType_DVD, UIMediumDeviceType_DVD, strSource); 591 591 } 592 592 … … 1905 1905 } 1906 1906 1907 bool UISession::mountAdHocImage(KDeviceType enmDeviceType, UIMedium Type enmMediumType, const QString &strMediumName)1907 bool UISession::mountAdHocImage(KDeviceType enmDeviceType, UIMediumDeviceType enmMediumType, const QString &strMediumName) 1908 1908 { 1909 1909 /* Get VBox: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r73944 r73953 415 415 void setPointerShape(const uchar *pShapeData, bool fHasAlpha, uint uXHot, uint uYHot, uint uWidth, uint uHeight); 416 416 bool preprocessInitialization(); 417 bool mountAdHocImage(KDeviceType enmDeviceType, UIMedium Type enmMediumType, const QString &strMediumName);417 bool mountAdHocImage(KDeviceType enmDeviceType, UIMediumDeviceType enmMediumType, const QString &strMediumName); 418 418 bool postprocessInitialization(); 419 419 int countOfVisibleWindows(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r73926 r73953 2123 2123 void setId(const QString &strId) { m_strId = strId; emit sigChanged(); } 2124 2124 2125 UIMedium Type type() const { return m_type; }2126 void setType(UIMedium Type type) { m_type = type; }2125 UIMediumDeviceType type() const { return m_type; } 2126 void setType(UIMediumDeviceType type) { m_type = type; } 2127 2127 2128 2128 bool isNull() const { return m_strId == UIMedium().id(); } … … 2135 2135 2136 2136 QString m_strId; 2137 UIMedium Type m_type;2137 UIMediumDeviceType m_type; 2138 2138 }; 2139 2139 … … 3036 3036 switch (m_pMediumIdHolder->type()) 3037 3037 { 3038 case UIMedium Type_HardDisk:3038 case UIMediumDeviceType_HardDisk: 3039 3039 { 3040 3040 /* Add "Create a new virtual hard disk" action: */ … … 3048 3048 break; 3049 3049 } 3050 case UIMedium Type_DVD:3050 case UIMediumDeviceType_DVD: 3051 3051 { 3052 3052 /* Add "Choose a virtual optical disk file" action: */ … … 3064 3064 break; 3065 3065 } 3066 case UIMedium Type_Floppy:3066 case UIMediumDeviceType_Floppy: 3067 3067 { 3068 3068 /* Add "Choose a virtual floppy disk file" action: */ … … 3124 3124 /* Get recent medium type & name: */ 3125 3125 const QStringList mediumInfoList = pChooseRecentMediumAction->data().toString().split(','); 3126 const UIMedium Type enmMediumType = (UIMediumType)mediumInfoList[0].toUInt();3126 const UIMediumDeviceType enmMediumType = (UIMediumDeviceType)mediumInfoList[0].toUInt(); 3127 3127 const QString strMediumLocation = mediumInfoList[1]; 3128 3128 const QString strMediumId = vboxGlobal().openMedium(enmMediumType, strMediumLocation, this); … … 3795 3795 } 3796 3796 3797 QString UIMachineSettingsStorage::openMediumSelectorDialog(UIMedium Type enmMediumType)3797 QString UIMachineSettingsStorage::openMediumSelectorDialog(UIMediumDeviceType enmMediumType) 3798 3798 { 3799 3799 QWidget *pParent = windowManager().realParentWindow(this); … … 3836 3836 strMediumId = getWithNewHDWizard(); 3837 3837 else if (iAnswer == AlertButton_Choice2) 3838 strMediumId = openMediumSelectorDialog(UIMedium Type_HardDisk);3838 strMediumId = openMediumSelectorDialog(UIMediumDeviceType_HardDisk); 3839 3839 break; 3840 3840 } … … 3845 3845 strMediumId = vboxGlobal().medium(strMediumId).id(); 3846 3846 else if (iAnswer == AlertButton_Choice2) 3847 strMediumId = openMediumSelectorDialog(UIMedium Type_DVD);3847 strMediumId = openMediumSelectorDialog(UIMediumDeviceType_DVD); 3848 3848 break; 3849 3849 } … … 3854 3854 strMediumId = vboxGlobal().medium(strMediumId).id(); 3855 3855 else if (iAnswer == AlertButton_Choice2) 3856 strMediumId = openMediumSelectorDialog(UIMedium Type_Floppy);3856 strMediumId = openMediumSelectorDialog(UIMediumDeviceType_Floppy); 3857 3857 break; 3858 3858 } … … 3968 3968 } 3969 3969 3970 void UIMachineSettingsStorage::addRecentMediumActions(QMenu *pOpenMediumMenu, UIMedium Type enmRecentMediumType)3970 void UIMachineSettingsStorage::addRecentMediumActions(QMenu *pOpenMediumMenu, UIMediumDeviceType enmRecentMediumType) 3971 3971 { 3972 3972 /* Get recent-medium list: */ … … 3974 3974 switch (enmRecentMediumType) 3975 3975 { 3976 case UIMedium Type_HardDisk: recentMediumList = gEDataManager->recentListOfHardDrives(); break;3977 case UIMedium Type_DVD: recentMediumList = gEDataManager->recentListOfOpticalDisks(); break;3978 case UIMedium Type_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; 3979 3979 default: break; 3980 3980 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h
r73926 r73953 742 742 void prepareConnections(); 743 743 /** Opens medium selector dialog and retrieves uuid of a selected medium (if any). */ 744 QString openMediumSelectorDialog(UIMedium Type enmMediumType);744 QString openMediumSelectorDialog(UIMediumDeviceType enmMediumType); 745 745 /** Cleanups all. */ 746 746 void cleanup(); … … 768 768 void addChooseHostDriveActions(QMenu *pOpenMediumMenu); 769 769 /** Adds 'Choose Recent Medium' actions of passed @a enmRecentMediumType into passed @a pOpenMediumMenu. */ 770 void addRecentMediumActions(QMenu *pOpenMediumMenu, UIMedium Type enmRecentMediumType);770 void addRecentMediumActions(QMenu *pOpenMediumMenu, UIMediumDeviceType enmRecentMediumType); 771 771 772 772 /** Saves existing storage data from the cache. */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMediaComboBox.cpp
r73926 r73953 34 34 UIMediaComboBox::UIMediaComboBox(QWidget *pParent) 35 35 : QComboBox(pParent) 36 , m_enmMediaType(UIMedium Type_Invalid)36 , m_enmMediaType(UIMediumDeviceType_Invalid) 37 37 , m_strMachineId(QString()) 38 38 , m_strLastItemId(QString()) … … 52 52 53 53 /* If at least one real medium present, remove null medium: */ 54 if (count() > 1 && m_enmMediaType == UIMedium Type_HardDisk)54 if (count() > 1 && m_enmMediaType == UIMediumDeviceType_HardDisk) 55 55 { 56 56 removeItem(0); … … 122 122 123 123 /* Ignore all diffs: */ 124 if (guiMedium.type() == UIMedium Type_HardDisk && guiMedium.parentID() != UIMedium::nullID())124 if (guiMedium.type() == UIMediumDeviceType_HardDisk && guiMedium.parentID() != UIMedium::nullID()) 125 125 return; 126 126 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMediaComboBox.h
r71948 r73953 46 46 47 47 /** Defines @a enmMediaType. */ 48 void setType(UIMedium Type enmMediaType) { m_enmMediaType = enmMediaType; }48 void setType(UIMediumDeviceType enmMediaType) { m_enmMediaType = enmMediaType; } 49 49 /** Returns media type. */ 50 UIMedium Type type() const { return m_enmMediaType; }50 UIMediumDeviceType type() const { return m_enmMediaType; } 51 51 52 52 /** Defines @a strMachineId. */ … … 96 96 97 97 /** Holds the media type. */ 98 UIMedium Type m_enmMediaType;98 UIMediumDeviceType m_enmMediaType; 99 99 100 100 /** Holds the machine ID. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp
r71948 r73953 43 43 { 44 44 /* Get current virtual-disk medium type: */ 45 const UIMedium Type enmMediumType = UIMediumDefs::mediumTypeToLocal(sourceVirtualDisk().GetDeviceType());45 const UIMediumDeviceType enmMediumType = UIMediumDefs::mediumTypeToLocal(sourceVirtualDisk().GetDeviceType()); 46 46 /* Get source virtual-disk using file-open dialog: */ 47 47 QString strMediumId = vboxGlobal().openMediumWithFileOpenDialog(enmMediumType, thisImp()); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
r71948 r73953 74 74 { 75 75 m_pMediaSelector->setMachineId(strMachineId); 76 m_pMediaSelector->setType(UIMedium Type_DVD);76 m_pMediaSelector->setType(UIMediumDeviceType_DVD); 77 77 m_pMediaSelector->repopulate(); 78 78 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.cpp
r73597 r73953 110 110 111 111 /* Inform VBoxGlobal about it: */ 112 vboxGlobal().createMedium(UIMedium(m_virtualDisk, UIMedium Type_HardDisk, KMediumState_Created));112 vboxGlobal().createMedium(UIMedium(m_virtualDisk, UIMediumDeviceType_HardDisk, KMediumState_Created)); 113 113 114 114 return true; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r72696 r73953 280 280 machine.AttachDevice(strHDName, 0, 0, KDeviceType_HardDisk, medium); 281 281 if (!machine.isOk()) 282 msgCenter().cannotAttachDevice(machine, UIMedium Type_HardDisk, field("virtualDiskLocation").toString(),282 msgCenter().cannotAttachDevice(machine, UIMediumDeviceType_HardDisk, field("virtualDiskLocation").toString(), 283 283 StorageSlot(ctrHDBus, 0, 0), this); 284 284 } … … 287 287 machine.AttachDevice(strDVDName, 1, 0, KDeviceType_DVD, CMedium()); 288 288 if (!machine.isOk()) 289 msgCenter().cannotAttachDevice(machine, UIMedium Type_DVD, QString(), StorageSlot(strDVDBus, 1, 0), this);289 msgCenter().cannotAttachDevice(machine, UIMediumDeviceType_DVD, QString(), StorageSlot(strDVDBus, 1, 0), this); 290 290 291 291 … … 294 294 machine.AttachDevice(strFloppyName, 0, 0, KDeviceType_Floppy, CMedium()); 295 295 if (!machine.isOk()) 296 msgCenter().cannotAttachDevice(machine, UIMedium Type_Floppy, QString(),296 msgCenter().cannotAttachDevice(machine, UIMediumDeviceType_Floppy, QString(), 297 297 StorageSlot(KStorageBus_Floppy, 0, 0), this); 298 298 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.cpp
r71948 r73953 68 68 { 69 69 /* Get opened medium id: */ 70 QString strMediumId = vboxGlobal().openMediumWithFileOpenDialog(UIMedium Type_HardDisk, thisImp());70 QString strMediumId = vboxGlobal().openMediumWithFileOpenDialog(UIMediumDeviceType_HardDisk, thisImp()); 71 71 if (!strMediumId.isNull()) 72 72 { … … 147 147 m_pDiskSelector = new UIMediaComboBox(this); 148 148 { 149 m_pDiskSelector->setType(UIMedium Type_HardDisk);149 m_pDiskSelector->setType(UIMediumDeviceType_HardDisk); 150 150 m_pDiskSelector->repopulate(); 151 151 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r72603 r73953 112 112 m_pDiskSelector = new UIMediaComboBox(m_pDiskCnt); 113 113 { 114 m_pDiskSelector->setType(UIMedium Type_HardDisk);114 m_pDiskSelector->setType(UIMediumDeviceType_HardDisk); 115 115 m_pDiskSelector->repopulate(); 116 116 }
Note:
See TracChangeset
for help on using the changeset viewer.