- Timestamp:
- Nov 22, 2023 3:59:48 PM (15 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.cpp
r102263 r102265 3841 3841 connect(gShortcutPool, &UIShortcutPool::sigRuntimeShortcutsReloaded, 3842 3842 this, &UIActionPoolManager::sltApplyShortcuts); 3843 connect(gEDataManager, &UIExtraDataManager::sigSettingsExpertModeChange, 3844 this, &UIActionPoolManager::sltHandleSettingsExpertModeChange); 3843 3845 3844 3846 /* Call to base-class: */ … … 4049 4051 } 4050 4052 4053 void UIActionPoolManager::sltHandleSettingsExpertModeChange() 4054 { 4055 /* Invalidate corresponding menus: */ 4056 m_invalidations << UIActionIndexMN_M_File_M_Tools 4057 << UIActionIndexMN_M_Group_M_Tools 4058 << UIActionIndexMN_M_Machine_M_Tools; 4059 } 4060 4051 4061 void UIActionPoolManager::updateMenuFile() 4052 4062 { … … 4136 4146 4137 4147 /* Populate 'File' / 'Tools' menu: */ 4148 const bool fExpertMode = gEDataManager->isSettingsInExpertMode(); 4138 4149 pMenu->addAction(action(UIActionIndexMN_M_File_M_Tools_T_ExtensionPackManager)); 4139 pMenu->addAction(action(UIActionIndexMN_M_File_M_Tools_T_VirtualMediaManager)); 4140 pMenu->addAction(action(UIActionIndexMN_M_File_M_Tools_T_NetworkManager)); 4150 if (fExpertMode) 4151 { 4152 pMenu->addAction(action(UIActionIndexMN_M_File_M_Tools_T_VirtualMediaManager)); 4153 pMenu->addAction(action(UIActionIndexMN_M_File_M_Tools_T_NetworkManager)); 4154 } 4141 4155 pMenu->addAction(action(UIActionIndexMN_M_File_M_Tools_T_CloudProfileManager)); 4142 4156 pMenu->addAction(action(UIActionIndexMN_M_File_M_Tools_T_VMActivityOverview)); … … 4328 4342 4329 4343 /* Populate 'Group' / 'Tools' menu: */ 4344 const bool fExpertMode = gEDataManager->isSettingsInExpertMode(); 4330 4345 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Tools_T_Details)); 4331 4346 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Tools_T_Snapshots)); 4332 4347 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Tools_T_Logs)); 4333 4348 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Tools_T_Activity)); 4334 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Tools_T_FileManager)); 4349 if (fExpertMode) 4350 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Tools_T_FileManager)); 4335 4351 4336 4352 /* Mark menu as valid: */ … … 4347 4363 4348 4364 /* Populate 'Machine' / 'Tools' menu: */ 4365 const bool fExpertMode = gEDataManager->isSettingsInExpertMode(); 4349 4366 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Tools_T_Details)); 4350 4367 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Tools_T_Snapshots)); 4351 4368 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Tools_T_Logs)); 4352 4369 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Tools_T_Activity)); 4353 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Tools_T_FileManager)); 4370 if (fExpertMode) 4371 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Tools_T_FileManager)); 4354 4372 4355 4373 /* Mark menu as valid: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.h
r98103 r102265 244 244 virtual void updateShortcuts() RT_OVERRIDE; 245 245 246 private slots: 247 248 /** Handles signal about settings expert mode change. */ 249 void sltHandleSettingsExpertModeChange(); 250 246 251 private: 247 252
Note:
See TracChangeset
for help on using the changeset viewer.