Changeset 50939 in vbox for trunk/src/VBox
- Timestamp:
- Apr 1, 2014 9:51:21 AM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
- 8 copied
- 24 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/VirtualBox2.qrc
r50897 r50939 105 105 <file alias="cd_read_16px.png">images/cd_read_16px.png</file> 106 106 <file alias="cd_write_16px.png">images/cd_write_16px.png</file> 107 <file alias="cd_copy_16px.png">images/cd_copy_16px.png</file> 108 <file alias="cd_copy_disabled_16px.png">images/cd_copy_disabled_16px.png</file> 109 <file alias="cd_copy_22px.png">images/cd_copy_22px.png</file> 110 <file alias="cd_copy_disabled_22px.png">images/cd_copy_disabled_22px.png</file> 111 <file alias="cd_modify_16px.png">images/cd_modify_16px.png</file> 112 <file alias="cd_modify_disabled_16px.png">images/cd_modify_disabled_16px.png</file> 113 <file alias="cd_modify_22px.png">images/cd_modify_22px.png</file> 114 <file alias="cd_modify_disabled_22px.png">images/cd_modify_disabled_22px.png</file> 115 <file alias="cd_release_16px.png">images/cd_release_16px.png</file> 116 <file alias="cd_release_disabled_16px.png">images/cd_release_disabled_16px.png</file> 117 <file alias="cd_release_22px.png">images/cd_release_22px.png</file> 118 <file alias="cd_release_disabled_22px.png">images/cd_release_disabled_22px.png</file> 119 <file alias="cd_remove_16px.png">images/cd_remove_16px.png</file> 120 <file alias="cd_remove_disabled_16px.png">images/cd_remove_disabled_16px.png</file> 121 <file alias="cd_remove_22px.png">images/cd_remove_22px.png</file> 122 <file alias="cd_remove_disabled_22px.png">images/cd_remove_disabled_22px.png</file> 107 123 <file alias="cd_unmount_16px.png">images/cd_unmount_16px.png</file> 108 124 <file alias="cd_unmount_disabled_16px.png">images/cd_unmount_disabled_16px.png</file> … … 117 133 <file alias="fd_add_16px.png">images/fd_add_16px.png</file> 118 134 <file alias="fd_add_disabled_16px.png">images/fd_add_disabled_16px.png</file> 135 <file alias="fd_copy_16px.png">images/fd_copy_16px.png</file> 136 <file alias="fd_copy_disabled_16px.png">images/fd_copy_disabled_16px.png</file> 137 <file alias="fd_copy_22px.png">images/fd_copy_22px.png</file> 138 <file alias="fd_copy_disabled_22px.png">images/fd_copy_disabled_22px.png</file> 139 <file alias="fd_modify_16px.png">images/fd_modify_16px.png</file> 140 <file alias="fd_modify_disabled_16px.png">images/fd_modify_disabled_16px.png</file> 141 <file alias="fd_modify_22px.png">images/fd_modify_22px.png</file> 142 <file alias="fd_modify_disabled_22px.png">images/fd_modify_disabled_22px.png</file> 143 <file alias="fd_release_16px.png">images/fd_release_16px.png</file> 144 <file alias="fd_release_disabled_16px.png">images/fd_release_disabled_16px.png</file> 145 <file alias="fd_release_22px.png">images/fd_release_22px.png</file> 146 <file alias="fd_release_disabled_22px.png">images/fd_release_disabled_22px.png</file> 147 <file alias="fd_remove_16px.png">images/fd_remove_16px.png</file> 148 <file alias="fd_remove_disabled_16px.png">images/fd_remove_disabled_16px.png</file> 149 <file alias="fd_remove_22px.png">images/fd_remove_22px.png</file> 150 <file alias="fd_remove_disabled_22px.png">images/fd_remove_disabled_22px.png</file> 119 151 <file alias="mouse_16px.png">images/mouse_16px.png</file> 120 152 <file alias="mouse_disabled_16px.png">images/mouse_disabled_16px.png</file> -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r50886 r50939 845 845 if (qobject_cast<QTreeWidget*>(focusWidget())) 846 846 pTreeWidget->setFocus(); 847 848 /* Update action icons: */ 849 updateActionIcons(); 847 850 848 851 /* Re-fetch currently chosen medium-item: */ … … 1006 1009 /* Configure copy-action: */ 1007 1010 m_pActionCopy->setShortcut(QKeySequence("Ctrl+O")); 1008 m_pActionCopy->setIcon(UIIconPool::iconSetFull(QSize(22, 22), QSize(16, 16),1009 ":/hd_copy_22px.png", ":/hd_copy_16px.png",1010 ":/hd_copy_disabled_22px.png", ":/hd_copy_disabled_16px.png"));1011 1011 connect(m_pActionCopy, SIGNAL(triggered()), this, SLOT(sltCopyMedium())); 1012 1012 } … … 1017 1017 /* Configure modify-action: */ 1018 1018 m_pActionModify->setShortcut(QKeySequence("Ctrl+Space")); 1019 m_pActionModify->setIcon(UIIconPool::iconSetFull(QSize(22, 22), QSize(16, 16),1020 ":/hd_modify_22px.png", ":/hd_modify_16px.png",1021 ":/hd_modify_disabled_22px.png", ":/hd_modify_disabled_16px.png"));1022 1019 connect(m_pActionModify, SIGNAL(triggered()), this, SLOT(sltModifyMedium())); 1023 1020 } … … 1028 1025 /* Configure remove-action: */ 1029 1026 m_pActionRemove->setShortcut(QKeySequence(QKeySequence::Delete)); 1030 m_pActionRemove->setIcon(UIIconPool::iconSetFull(QSize(22, 22), QSize(16, 16),1031 ":/hd_remove_22px.png", ":/hd_remove_16px.png",1032 ":/hd_remove_disabled_22px.png", ":/hd_remove_disabled_16px.png"));1033 1027 connect(m_pActionRemove, SIGNAL(triggered()), this, SLOT(sltRemoveMedium())); 1034 1028 } … … 1039 1033 /* Configure release-action: */ 1040 1034 m_pActionRelease->setShortcut(QKeySequence("Ctrl+L")); 1041 m_pActionRelease->setIcon(UIIconPool::iconSetFull(QSize(22, 22), QSize(16, 16),1042 ":/hd_release_22px.png", ":/hd_release_16px.png",1043 ":/hd_release_disabled_22px.png", ":/hd_release_disabled_16px.png"));1044 1035 connect(m_pActionRelease, SIGNAL(triggered()), this, SLOT(sltReleaseMedium())); 1045 1036 } … … 1050 1041 /* Configure refresh-action: */ 1051 1042 m_pActionRefresh->setShortcut(QKeySequence(QKeySequence::Refresh)); 1052 m_pActionRefresh->setIcon(UIIconPool::iconSetFull(QSize(22, 22), QSize(16, 16),1053 ":/refresh_22px.png", ":/refresh_16px.png",1054 ":/refresh_disabled_22px.png", ":/refresh_disabled_16px.png"));1055 1043 connect(m_pActionRefresh, SIGNAL(triggered()), this, SLOT(sltRefreshAll())); 1056 1044 } 1045 1046 /* Update action icons: */ 1047 updateActionIcons(); 1057 1048 } 1058 1049 … … 1356 1347 } 1357 1348 1349 void UIMediumManager::updateActionIcons() 1350 { 1351 QString strPrefix; 1352 switch (currentMediumType()) 1353 { 1354 case UIMediumType_HardDisk: strPrefix = "hd"; break; 1355 case UIMediumType_DVD: strPrefix = "cd"; break; 1356 case UIMediumType_Floppy: strPrefix = "fd"; break; 1357 default: break; 1358 } 1359 AssertReturnVoid(!strPrefix.isNull()); 1360 m_pActionCopy->setIcon(UIIconPool::iconSetFull(QSize(22, 22), QSize(16, 16), 1361 QString(":/%1_copy_22px.png").arg(strPrefix), 1362 QString(":/%1_copy_16px.png").arg(strPrefix), 1363 QString(":/%1_copy_disabled_22px.png").arg(strPrefix), 1364 QString(":/%1_copy_disabled_16px.png").arg(strPrefix))); 1365 m_pActionModify->setIcon(UIIconPool::iconSetFull(QSize(22, 22), QSize(16, 16), 1366 QString(":/%1_modify_22px.png").arg(strPrefix), 1367 QString(":/%1_modify_16px.png").arg(strPrefix), 1368 QString(":/%1_modify_disabled_22px.png").arg(strPrefix), 1369 QString(":/%1_modify_disabled_16px.png").arg(strPrefix))); 1370 m_pActionRemove->setIcon(UIIconPool::iconSetFull(QSize(22, 22), QSize(16, 16), 1371 QString(":/%1_remove_22px.png").arg(strPrefix), 1372 QString(":/%1_remove_16px.png").arg(strPrefix), 1373 QString(":/%1_remove_disabled_22px.png").arg(strPrefix), 1374 QString(":/%1_remove_disabled_16px.png").arg(strPrefix))); 1375 m_pActionRelease->setIcon(UIIconPool::iconSetFull(QSize(22, 22), QSize(16, 16), 1376 QString(":/%1_release_22px.png").arg(strPrefix), 1377 QString(":/%1_release_16px.png").arg(strPrefix), 1378 QString(":/%1_release_disabled_22px.png").arg(strPrefix), 1379 QString(":/%1_release_disabled_16px.png").arg(strPrefix))); 1380 if (m_pActionRefresh->icon().isNull()) 1381 m_pActionRefresh->setIcon(UIIconPool::iconSetFull(QSize(22, 22), QSize(16, 16), 1382 ":/refresh_22px.png", ":/refresh_16px.png", 1383 ":/refresh_disabled_22px.png", ":/refresh_disabled_16px.png")); 1384 } 1385 1358 1386 void UIMediumManager::updateTabIcons(UIMediumItem *pMediumItem, Action action) 1359 1387 { -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.h
r50768 r50939 145 145 /** Update actions according currently chosen item. */ 146 146 void updateActions(); 147 /** Update action icons according currently chosen tab. */ 148 void updateActionIcons(); 147 149 /** Update tab icons according last @a action happened with @a pItem. */ 148 150 void updateTabIcons(UIMediumItem *pItem, Action action);
Note:
See TracChangeset
for help on using the changeset viewer.