Changeset 107289 in vbox
- Timestamp:
- Dec 11, 2024 4:29:51 PM (7 weeks ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r107148 r107289 1647 1647 switch (enmToolType) 1648 1648 { 1649 case UIToolType_Welcome: 1650 case UIToolType_Extensions: 1651 case UIToolType_Media: 1652 case UIToolType_Network: 1653 case UIToolType_Cloud: 1654 case UIToolType_CloudConsole: 1655 case UIToolType_ VMActivityOverview:strResult = "Activities"; break;1656 case UIToolType_Details: 1657 case UIToolType_Snapshots: 1658 case UIToolType_Logs: 1659 case UIToolType_VMActivity: 1660 case UIToolType_FileManager: 1649 case UIToolType_Welcome: strResult = "Welcome"; break; 1650 case UIToolType_Extensions: strResult = "Extensions"; break; 1651 case UIToolType_Media: strResult = "Media"; break; 1652 case UIToolType_Network: strResult = "Network"; break; 1653 case UIToolType_Cloud: strResult = "Cloud"; break; 1654 case UIToolType_CloudConsole: strResult = "CloudConsole"; break; 1655 case UIToolType_Activities: strResult = "Activities"; break; 1656 case UIToolType_Details: strResult = "Details"; break; 1657 case UIToolType_Snapshots: strResult = "Snapshots"; break; 1658 case UIToolType_Logs: strResult = "Logs"; break; 1659 case UIToolType_VMActivity: strResult = "Activity"; break; 1660 case UIToolType_FileManager: strResult = "FileManager"; break; 1661 1661 default: 1662 1662 { … … 1684 1684 return UIToolType_CloudConsole; 1685 1685 if (strToolType.compare("Activities", Qt::CaseInsensitive) == 0) 1686 return UIToolType_ VMActivityOverview;1686 return UIToolType_Activities; 1687 1687 if (strToolType.compare("Details", Qt::CaseInsensitive) == 0) 1688 1688 return UIToolType_Details; -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp
r107148 r107289 296 296 case UIToolType_Cloud: 297 297 case UIToolType_CloudConsole: 298 case UIToolType_ VMActivityOverview:298 case UIToolType_Activities: 299 299 return true; 300 300 default: -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r107148 r107289 954 954 UIToolType_Cloud, 955 955 UIToolType_CloudConsole, 956 UIToolType_ VMActivityOverview,956 UIToolType_Activities, 957 957 /* Machine types: */ 958 958 UIToolType_Error, -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.cpp
r106709 r107289 372 372 : UIActionToggle(pParent) 373 373 { 374 setProperty("UIToolType", QVariant::fromValue(UIToolType_ VMActivityOverview));374 setProperty("UIToolType", QVariant::fromValue(UIToolType_Activities)); 375 375 /// @todo use icons with check-boxes 376 376 setIcon(UIIconPool::iconSetFull(":/resources_monitor_24px.png", ":/resources_monitor_16px.png", -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneGlobal.cpp
r106061 r107289 218 218 break; 219 219 } 220 case UIToolType_ VMActivityOverview:220 case UIToolType_Activities: 221 221 { 222 222 /* Create VM Activity Overview: */ … … 230 230 231 231 /* Configure pane: */ 232 m_pPaneVMActivityOverview->setProperty("ToolType", QVariant::fromValue(UIToolType_ VMActivityOverview));232 m_pPaneVMActivityOverview->setProperty("ToolType", QVariant::fromValue(UIToolType_Activities)); 233 233 connect(m_pPaneVMActivityOverview, &UIVMActivityOverviewWidget::sigSwitchToMachineActivityPane, 234 234 this, &UIToolPaneGlobal::sigSwitchToMachineActivityPane); … … 265 265 switch (enmType) 266 266 { 267 case UIToolType_Welcome: 268 case UIToolType_Extensions: 269 case UIToolType_Media: 270 case UIToolType_Network: 271 case UIToolType_Cloud: 272 case UIToolType_ VMActivityOverview: m_pPaneVMActivityOverview = 0; break;267 case UIToolType_Welcome: m_pPaneWelcome = 0; break; 268 case UIToolType_Extensions: m_pPaneExtensions = 0; break; 269 case UIToolType_Media: m_pPaneMedia = 0; break; 270 case UIToolType_Network: m_pPaneNetwork = 0; break; 271 case UIToolType_Cloud: m_pPaneCloud = 0; break; 272 case UIToolType_Activities: m_pPaneVMActivityOverview = 0; break; 273 273 default: break; 274 274 } … … 304 304 pCurrentToolWidget = m_pPaneCloud; 305 305 break; 306 case UIToolType_ VMActivityOverview:306 case UIToolType_Activities: 307 307 pCurrentToolWidget = m_pPaneVMActivityOverview; 308 308 break; … … 319 319 320 320 /* Update activity overview pane if open: */ 321 if (isToolOpened(UIToolType_ VMActivityOverview))321 if (isToolOpened(UIToolType_Activities)) 322 322 { 323 323 AssertPtrReturnVoid(m_pPaneVMActivityOverview); … … 350 350 /* Determine whether resource monitor is currently active tool: */ 351 351 if (m_pPaneVMActivityOverview) 352 m_pPaneVMActivityOverview->setIsCurrentTool(m_fActive && currentTool() == UIToolType_ VMActivityOverview);353 } 352 m_pPaneVMActivityOverview->setIsCurrentTool(m_fActive && currentTool() == UIToolType_Activities); 353 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r107286 r107289 3446 3446 const bool fCloudMenuShown = fGlobalMenuShown && m_pWidget->currentGlobalTool() == UIToolType_Cloud; 3447 3447 actionPool()->action(UIActionIndexMN_M_Cloud)->setVisible(fCloudMenuShown); 3448 /* Determine whether Resources menu should be visible: */3449 const bool fResourcesMenuShown = fGlobalMenuShown && m_pWidget->currentGlobalTool() == UIToolType_ VMActivityOverview;3448 /* Determine whether Activities menu should be visible: */ 3449 const bool fResourcesMenuShown = fGlobalMenuShown && m_pWidget->currentGlobalTool() == UIToolType_Activities; 3450 3450 actionPool()->action(UIActionIndexMN_M_VMActivityOverview)->setVisible(fResourcesMenuShown); 3451 3451 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerAdvancedWidget.cpp
r107288 r107289 517 517 518 518 void UIVirtualBoxManagerAdvancedWidget::sltHandleCloudProfileStateChange(const QString &strProviderShortName, 519 const QString &strProfileName)519 const QString &strProfileName) 520 520 { 521 521 RT_NOREF(strProviderShortName, strProfileName); … … 523 523 /* If Global Activity Overview tool is currently chosen: */ 524 524 if ( m_pStackedWidget->currentWidget() == m_pPaneToolsGlobal 525 && m_pPaneToolsGlobal->currentTool() == UIToolType_ VMActivityOverview)525 && m_pPaneToolsGlobal->currentTool() == UIToolType_Activities) 526 526 m_pPaneToolsGlobal->setCloudMachineItems(m_pPaneChooser->cloudMachineItems()); 527 527 } … … 608 608 AssertPtrReturnVoid(m_pPaneChooser); 609 609 AssertPtrReturnVoid(m_pMenuToolsGlobal); 610 m_pMenuToolsGlobal->setToolsType(UIToolType_ VMActivityOverview);610 m_pMenuToolsGlobal->setToolsType(UIToolType_Activities); 611 611 m_pPaneChooser->setCurrentGlobal(); 612 612 } … … 930 930 break; 931 931 } 932 case UIToolType_ VMActivityOverview:932 case UIToolType_Activities: 933 933 { 934 934 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_VMActivityOverview_M_Columns)); … … 1196 1196 if (UIToolStuff::isTypeOfClass(enmType, UIToolClass_Global)) 1197 1197 { 1198 bool fActivityOverviewActive = enmType == UIToolType_ VMActivityOverview;1198 bool fActivityOverviewActive = enmType == UIToolType_Activities; 1199 1199 m_pPaneChooser->setKeepCloudNodesUpdated(fActivityOverviewActive); 1200 1200 if (fActivityOverviewActive) -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r107284 r107289 549 549 /* If Global Activity Overview tool is currently chosen: */ 550 550 if ( m_pStackedWidget->currentWidget() == m_pPaneToolsGlobal 551 && m_pPaneToolsGlobal->currentTool() == UIToolType_ VMActivityOverview)551 && m_pPaneToolsGlobal->currentTool() == UIToolType_Activities) 552 552 m_pPaneToolsGlobal->setCloudMachineItems(m_pPaneChooser->cloudMachineItems()); 553 553 } … … 634 634 AssertPtrReturnVoid(m_pPaneChooser); 635 635 AssertPtrReturnVoid(m_pMenuToolsGlobal); 636 m_pMenuToolsGlobal->setToolsType(UIToolType_ VMActivityOverview);636 m_pMenuToolsGlobal->setToolsType(UIToolType_Activities); 637 637 m_pPaneChooser->setCurrentGlobal(); 638 638 } … … 971 971 break; 972 972 } 973 case UIToolType_ VMActivityOverview:973 case UIToolType_Activities: 974 974 { 975 975 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_VMActivityOverview_M_Columns)); … … 1237 1237 if (UIToolStuff::isTypeOfClass(enmType, UIToolClass_Global)) 1238 1238 { 1239 bool fActivityOverviewActive = enmType == UIToolType_ VMActivityOverview;1239 bool fActivityOverviewActive = enmType == UIToolType_Activities; 1240 1240 m_pPaneChooser->setKeepCloudNodesUpdated(fActivityOverviewActive); 1241 1241 if (fActivityOverviewActive) -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.cpp
r106061 r107289 233 233 actions[UIToolType_Network] = actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_NetworkManager); 234 234 actions[UIToolType_Cloud] = actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_CloudProfileManager); 235 actions[UIToolType_ VMActivityOverview] = actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_VMActivityOverview);235 actions[UIToolType_Activities] = actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_VMActivityOverview); 236 236 if (actions.contains(enmType)) 237 237 actions.value(enmType)->setChecked(true); … … 421 421 switch (pItem->itemType()) 422 422 { 423 case UIToolType_Welcome: 424 case UIToolType_Extensions: 425 case UIToolType_Media: 426 case UIToolType_Network: 427 case UIToolType_Cloud: 428 case UIToolType_ VMActivityOverview:pItem->reconfigure(tr("Activities")); break;429 case UIToolType_Details: 430 case UIToolType_Snapshots: 431 case UIToolType_Logs: 432 case UIToolType_VMActivity: 433 case UIToolType_FileManager: 423 case UIToolType_Welcome: pItem->reconfigure(tr("Welcome")); break; 424 case UIToolType_Extensions: pItem->reconfigure(tr("Extensions")); break; 425 case UIToolType_Media: pItem->reconfigure(tr("Media")); break; 426 case UIToolType_Network: pItem->reconfigure(tr("Network")); break; 427 case UIToolType_Cloud: pItem->reconfigure(tr("Cloud")); break; 428 case UIToolType_Activities: pItem->reconfigure(tr("Activities")); break; 429 case UIToolType_Details: pItem->reconfigure(tr("Details")); break; 430 case UIToolType_Snapshots: pItem->reconfigure(tr("Snapshots")); break; 431 case UIToolType_Logs: pItem->reconfigure(tr("Logs")); break; 432 case UIToolType_VMActivity: pItem->reconfigure(tr("Activity")); break; 433 case UIToolType_FileManager: pItem->reconfigure(tr("File Manager")); break; 434 434 default: break; 435 435 } … … 496 496 497 497 /* Activities: */ 498 m_items << new UIToolsItem(scene(), UIToolClass_Global, UIToolType_ VMActivityOverview, QString(),498 m_items << new UIToolsItem(scene(), UIToolClass_Global, UIToolType_Activities, QString(), 499 499 UIIconPool::iconSet(":/resources_monitor_24px.png", 500 500 ":/resources_monitor_disabled_24px.png"));
Note:
See TracChangeset
for help on using the changeset viewer.