Changeset 107355 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Dec 18, 2024 1:13:22 PM (4 weeks ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.cpp
r107289 r107355 394 394 }; 395 395 396 /** Simple action extension, used as 'Machine Manager' action class. */ 397 class UIActionToggleManagerToolsGlobalShowMachineManager : public UIActionToggle 398 { 399 Q_OBJECT; 400 401 public: 402 403 /** Constructs action passing @a pParent to the base-class. */ 404 UIActionToggleManagerToolsGlobalShowMachineManager(UIActionPool *pParent) 405 : UIActionToggle(pParent) 406 { 407 setProperty("UIToolType", QVariant::fromValue(UIToolType_Machines)); 408 /// @todo use icons with check-boxes 409 setIcon(UIIconPool::iconSetFull(":/machine_24px.png", ":/machine_16px.png"")); 410 } 411 412 protected: 413 414 /** Returns shortcut extra-data ID. */ 415 virtual QString shortcutExtraDataID() const RT_OVERRIDE 416 { 417 return QString("ToolsGlobalMachineManager"); 418 } 419 420 /** Handles translation event. */ 421 virtual void retranslateUi() RT_OVERRIDE 422 { 423 setName(QApplication::translate("UIActionPool", "&Machine Manager")); 424 setStatusTip(QApplication::translate("UIActionPool", "Open the Machine Manager")); 425 } 426 }; 427 396 428 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 397 429 /** Simple action extension, used as 'Show Extra-data Manager' action class. */ … … 3501 3533 m_pool[UIActionIndexMN_M_File_M_Tools_T_CloudProfileManager] = new UIActionToggleManagerToolsGlobalShowCloudProfileManager(this); 3502 3534 m_pool[UIActionIndexMN_M_File_M_Tools_T_VMActivityOverview] = new UIActionToggleManagerToolsGlobalShowVMActivityOverview(this); 3535 m_pool[UIActionIndexMN_M_File_M_Tools_T_MachineManager] = new UIActionToggleManagerToolsGlobalShowMachineManager(this); 3503 3536 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 3504 3537 m_pool[UIActionIndexMN_M_File_S_ShowExtraDataManager] = new UIActionSimpleManagerFileShowExtraDataManager(this); … … 3660 3693 m_groupPool[UIActionIndexMN_M_File_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_File_M_Tools_T_CloudProfileManager)); 3661 3694 m_groupPool[UIActionIndexMN_M_File_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_File_M_Tools_T_VMActivityOverview)); 3695 m_groupPool[UIActionIndexMN_M_File_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_File_M_Tools_T_MachineManager)); 3662 3696 3663 3697 /* 'Group' action groups: */ … … 4030 4064 pMenu->addAction(action(UIActionIndexMN_M_File_M_Tools_T_CloudProfileManager)); 4031 4065 pMenu->addAction(action(UIActionIndexMN_M_File_M_Tools_T_VMActivityOverview)); 4066 //pMenu->addAction(action(UIActionIndexMN_M_File_M_Tools_T_MachineManager)); 4032 4067 4033 4068 /* Mark menu as valid: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.h
r106061 r107355 56 56 UIActionIndexMN_M_File_M_Tools_T_CloudProfileManager, 57 57 UIActionIndexMN_M_File_M_Tools_T_VMActivityOverview, 58 UIActionIndexMN_M_File_M_Tools_T_MachineManager, 58 59 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 59 60 UIActionIndexMN_M_File_S_ShowExtraDataManager, -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.cpp
r107289 r107355 234 234 actions[UIToolType_Cloud] = actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_CloudProfileManager); 235 235 actions[UIToolType_Activities] = actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_VMActivityOverview); 236 #ifdef VBOX_GUI_WITH_ADVANCED_WIDGETS 237 actions[UIToolType_Machines] = actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_MachineManager); 238 #endif 236 239 if (actions.contains(enmType)) 237 240 actions.value(enmType)->setChecked(true); … … 427 430 case UIToolType_Cloud: pItem->reconfigure(tr("Cloud")); break; 428 431 case UIToolType_Activities: pItem->reconfigure(tr("Activities")); break; 432 #ifdef VBOX_GUI_WITH_ADVANCED_WIDGETS 433 case UIToolType_Machines: pItem->reconfigure(tr("Machines")); break; 434 #endif 429 435 case UIToolType_Details: pItem->reconfigure(tr("Details")); break; 430 436 case UIToolType_Snapshots: pItem->reconfigure(tr("Snapshots")); break; … … 499 505 UIIconPool::iconSet(":/resources_monitor_24px.png", 500 506 ":/resources_monitor_disabled_24px.png")); 507 508 #ifdef VBOX_GUI_WITH_ADVANCED_WIDGETS 509 /* Machines: */ 510 m_items << new UIToolsItem(scene(), UIToolClass_Global, UIToolType_Machines, QString(), 511 UIIconPool::iconSet(":/machine_details_manager_24px.png", 512 ":/machine_details_manager_disabled_24px.png")); 513 #endif 501 514 502 515 break; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.h
r106061 r107355 39 39 40 40 /* GUI includes: */ 41 #include "UIManagerDefs.h" 41 42 #include "UIToolsItem.h" 42 43
Note:
See TracChangeset
for help on using the changeset viewer.