Changeset 107266 in vbox
- Timestamp:
- Dec 9, 2024 4:52:53 PM (7 weeks ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r107265 r107266 95 95 } 96 96 97 UIVirtualMachineItem *UIVirtualBoxManagerWidget::currentItem() const98 {99 return m_pPaneChooser->currentItem();100 }101 102 QList<UIVirtualMachineItem*> UIVirtualBoxManagerWidget::currentItems() const103 {104 return m_pPaneChooser->currentItems();105 }106 107 bool UIVirtualBoxManagerWidget::isGroupItemSelected() const108 {109 return m_pPaneChooser->isGroupItemSelected();110 }111 112 bool UIVirtualBoxManagerWidget::isGlobalItemSelected() const113 {114 return m_pPaneChooser->isGlobalItemSelected();115 }116 117 bool UIVirtualBoxManagerWidget::isMachineItemSelected() const118 {119 return m_pPaneChooser->isMachineItemSelected();120 }121 122 bool UIVirtualBoxManagerWidget::isLocalMachineItemSelected() const123 {124 return m_pPaneChooser->isLocalMachineItemSelected();125 }126 127 bool UIVirtualBoxManagerWidget::isCloudMachineItemSelected() const128 {129 return m_pPaneChooser->isCloudMachineItemSelected();130 }131 132 bool UIVirtualBoxManagerWidget::isSingleGroupSelected() const133 {134 return m_pPaneChooser->isSingleGroupSelected();135 }136 137 bool UIVirtualBoxManagerWidget::isSingleLocalGroupSelected() const138 {139 return m_pPaneChooser->isSingleLocalGroupSelected();140 }141 142 bool UIVirtualBoxManagerWidget::isSingleCloudProviderGroupSelected() const143 {144 return m_pPaneChooser->isSingleCloudProviderGroupSelected();145 }146 147 bool UIVirtualBoxManagerWidget::isSingleCloudProfileGroupSelected() const148 {149 return m_pPaneChooser->isSingleCloudProfileGroupSelected();150 }151 152 bool UIVirtualBoxManagerWidget::isAllItemsOfOneGroupSelected() const153 {154 return m_pPaneChooser->isAllItemsOfOneGroupSelected();155 }156 157 QString UIVirtualBoxManagerWidget::fullGroupName() const158 {159 return m_pPaneChooser->fullGroupName();160 }161 162 bool UIVirtualBoxManagerWidget::isGroupSavingInProgress() const163 {164 return m_pPaneChooser->isGroupSavingInProgress();165 }166 167 bool UIVirtualBoxManagerWidget::isCloudProfileUpdateInProgress() const168 {169 return m_pPaneChooser->isCloudProfileUpdateInProgress();170 }171 172 void UIVirtualBoxManagerWidget::switchToGlobalItem()173 {174 AssertPtrReturnVoid(m_pPaneChooser);175 m_pPaneChooser->setCurrentGlobal();176 }177 178 void UIVirtualBoxManagerWidget::openGroupNameEditor()179 {180 m_pPaneChooser->openGroupNameEditor();181 }182 183 void UIVirtualBoxManagerWidget::disbandGroup()184 {185 m_pPaneChooser->disbandGroup();186 }187 188 void UIVirtualBoxManagerWidget::removeMachine()189 {190 m_pPaneChooser->removeMachine();191 }192 193 void UIVirtualBoxManagerWidget::moveMachineToGroup(const QString &strName /* = QString() */)194 {195 m_pPaneChooser->moveMachineToGroup(strName);196 }197 198 QStringList UIVirtualBoxManagerWidget::possibleGroupsForMachineToMove(const QUuid &uId)199 {200 return m_pPaneChooser->possibleGroupsForMachineToMove(uId);201 }202 203 QStringList UIVirtualBoxManagerWidget::possibleGroupsForGroupToMove(const QString &strFullName)204 {205 return m_pPaneChooser->possibleGroupsForGroupToMove(strFullName);206 }207 208 void UIVirtualBoxManagerWidget::refreshMachine()209 {210 m_pPaneChooser->refreshMachine();211 }212 213 void UIVirtualBoxManagerWidget::sortGroup()214 {215 m_pPaneChooser->sortGroup();216 }217 218 void UIVirtualBoxManagerWidget::setMachineSearchWidgetVisibility(bool fVisible)219 {220 m_pPaneChooser->setMachineSearchWidgetVisibility(fVisible);221 }222 223 void UIVirtualBoxManagerWidget::setToolsTypeGlobal(UIToolType enmType)224 {225 m_pMenuToolsGlobal->setToolsType(enmType);226 }227 228 UIToolType UIVirtualBoxManagerWidget::toolsTypeGlobal() const229 {230 return m_pMenuToolsGlobal ? m_pMenuToolsGlobal->toolsType() : UIToolType_Invalid;231 }232 233 void UIVirtualBoxManagerWidget::setToolsTypeMachine(UIToolType enmType)234 {235 m_pMenuToolsMachine->setToolsType(enmType);236 }237 238 UIToolType UIVirtualBoxManagerWidget::toolsTypeMachine() const239 {240 return m_pMenuToolsMachine ? m_pMenuToolsMachine->toolsType() : UIToolType_Invalid;241 }242 243 UIToolType UIVirtualBoxManagerWidget::currentGlobalTool() const244 {245 return m_pPaneToolsGlobal ? m_pPaneToolsGlobal->currentTool() : UIToolType_Invalid;246 }247 248 UIToolType UIVirtualBoxManagerWidget::currentMachineTool() const249 {250 return m_pPaneToolsMachine ? m_pPaneToolsMachine->currentTool() : UIToolType_Invalid;251 }252 253 bool UIVirtualBoxManagerWidget::isGlobalToolOpened(UIToolType enmType) const254 {255 return m_pPaneToolsGlobal ? m_pPaneToolsGlobal->isToolOpened(enmType) : false;256 }257 258 bool UIVirtualBoxManagerWidget::isMachineToolOpened(UIToolType enmType) const259 {260 return m_pPaneToolsMachine ? m_pPaneToolsMachine->isToolOpened(enmType) : false;261 }262 263 void UIVirtualBoxManagerWidget::switchGlobalToolTo(UIToolType enmType)264 {265 /* Open corresponding tool: */266 m_pPaneToolsGlobal->openTool(enmType);267 268 /* Let the parent know: */269 emit sigToolTypeChangeGlobal();270 271 /* Update toolbar: */272 updateToolbar();273 274 /* Handle current tool type change: */275 handleCurrentToolTypeChange(enmType);276 }277 278 void UIVirtualBoxManagerWidget::switchMachineToolTo(UIToolType enmType)279 {280 /* Open corresponding tool: */281 m_pPaneToolsMachine->openTool(enmType);282 283 /* Let the parent know: */284 emit sigToolTypeChangeMachine();285 286 /* Update toolbar: */287 updateToolbar();288 289 /* Handle current tool type change: */290 handleCurrentToolTypeChange(enmType);291 }292 293 void UIVirtualBoxManagerWidget::closeGlobalTool(UIToolType enmType)294 {295 m_pPaneToolsGlobal->closeTool(enmType);296 }297 298 void UIVirtualBoxManagerWidget::closeMachineTool(UIToolType enmType)299 {300 m_pPaneToolsMachine->closeTool(enmType);301 }302 303 bool UIVirtualBoxManagerWidget::isCurrentStateItemSelected() const304 {305 return m_pPaneToolsMachine->isCurrentStateItemSelected();306 }307 308 QUuid UIVirtualBoxManagerWidget::currentSnapshotId()309 {310 return m_pPaneToolsMachine->currentSnapshotId();311 }312 313 97 void UIVirtualBoxManagerWidget::updateToolBarMenuButtons(bool fSeparateMenuSection) 314 98 { … … 316 100 if (pButton) 317 101 pButton->setPopupMode(fSeparateMenuSection ? QToolButton::MenuButtonPopup : QToolButton::DelayedPopup); 102 } 103 104 UIVirtualMachineItem *UIVirtualBoxManagerWidget::currentItem() const 105 { 106 return m_pPaneChooser->currentItem(); 107 } 108 109 QList<UIVirtualMachineItem*> UIVirtualBoxManagerWidget::currentItems() const 110 { 111 return m_pPaneChooser->currentItems(); 112 } 113 114 bool UIVirtualBoxManagerWidget::isGroupItemSelected() const 115 { 116 return m_pPaneChooser->isGroupItemSelected(); 117 } 118 119 bool UIVirtualBoxManagerWidget::isGlobalItemSelected() const 120 { 121 return m_pPaneChooser->isGlobalItemSelected(); 122 } 123 124 bool UIVirtualBoxManagerWidget::isMachineItemSelected() const 125 { 126 return m_pPaneChooser->isMachineItemSelected(); 127 } 128 129 bool UIVirtualBoxManagerWidget::isLocalMachineItemSelected() const 130 { 131 return m_pPaneChooser->isLocalMachineItemSelected(); 132 } 133 134 bool UIVirtualBoxManagerWidget::isCloudMachineItemSelected() const 135 { 136 return m_pPaneChooser->isCloudMachineItemSelected(); 137 } 138 139 bool UIVirtualBoxManagerWidget::isSingleGroupSelected() const 140 { 141 return m_pPaneChooser->isSingleGroupSelected(); 142 } 143 144 bool UIVirtualBoxManagerWidget::isSingleLocalGroupSelected() const 145 { 146 return m_pPaneChooser->isSingleLocalGroupSelected(); 147 } 148 149 bool UIVirtualBoxManagerWidget::isSingleCloudProviderGroupSelected() const 150 { 151 return m_pPaneChooser->isSingleCloudProviderGroupSelected(); 152 } 153 154 bool UIVirtualBoxManagerWidget::isSingleCloudProfileGroupSelected() const 155 { 156 return m_pPaneChooser->isSingleCloudProfileGroupSelected(); 157 } 158 159 bool UIVirtualBoxManagerWidget::isAllItemsOfOneGroupSelected() const 160 { 161 return m_pPaneChooser->isAllItemsOfOneGroupSelected(); 162 } 163 164 QString UIVirtualBoxManagerWidget::fullGroupName() const 165 { 166 return m_pPaneChooser->fullGroupName(); 167 } 168 169 bool UIVirtualBoxManagerWidget::isGroupSavingInProgress() const 170 { 171 return m_pPaneChooser->isGroupSavingInProgress(); 172 } 173 174 bool UIVirtualBoxManagerWidget::isCloudProfileUpdateInProgress() const 175 { 176 return m_pPaneChooser->isCloudProfileUpdateInProgress(); 177 } 178 179 void UIVirtualBoxManagerWidget::switchToGlobalItem() 180 { 181 AssertPtrReturnVoid(m_pPaneChooser); 182 m_pPaneChooser->setCurrentGlobal(); 183 } 184 185 void UIVirtualBoxManagerWidget::openGroupNameEditor() 186 { 187 m_pPaneChooser->openGroupNameEditor(); 188 } 189 190 void UIVirtualBoxManagerWidget::disbandGroup() 191 { 192 m_pPaneChooser->disbandGroup(); 193 } 194 195 void UIVirtualBoxManagerWidget::removeMachine() 196 { 197 m_pPaneChooser->removeMachine(); 198 } 199 200 void UIVirtualBoxManagerWidget::moveMachineToGroup(const QString &strName /* = QString() */) 201 { 202 m_pPaneChooser->moveMachineToGroup(strName); 203 } 204 205 QStringList UIVirtualBoxManagerWidget::possibleGroupsForMachineToMove(const QUuid &uId) 206 { 207 return m_pPaneChooser->possibleGroupsForMachineToMove(uId); 208 } 209 210 QStringList UIVirtualBoxManagerWidget::possibleGroupsForGroupToMove(const QString &strFullName) 211 { 212 return m_pPaneChooser->possibleGroupsForGroupToMove(strFullName); 213 } 214 215 void UIVirtualBoxManagerWidget::refreshMachine() 216 { 217 m_pPaneChooser->refreshMachine(); 218 } 219 220 void UIVirtualBoxManagerWidget::sortGroup() 221 { 222 m_pPaneChooser->sortGroup(); 223 } 224 225 void UIVirtualBoxManagerWidget::setMachineSearchWidgetVisibility(bool fVisible) 226 { 227 m_pPaneChooser->setMachineSearchWidgetVisibility(fVisible); 228 } 229 230 void UIVirtualBoxManagerWidget::setToolsTypeGlobal(UIToolType enmType) 231 { 232 m_pMenuToolsGlobal->setToolsType(enmType); 233 } 234 235 UIToolType UIVirtualBoxManagerWidget::toolsTypeGlobal() const 236 { 237 return m_pMenuToolsGlobal ? m_pMenuToolsGlobal->toolsType() : UIToolType_Invalid; 238 } 239 240 void UIVirtualBoxManagerWidget::setToolsTypeMachine(UIToolType enmType) 241 { 242 m_pMenuToolsMachine->setToolsType(enmType); 243 } 244 245 UIToolType UIVirtualBoxManagerWidget::toolsTypeMachine() const 246 { 247 return m_pMenuToolsMachine ? m_pMenuToolsMachine->toolsType() : UIToolType_Invalid; 248 } 249 250 UIToolType UIVirtualBoxManagerWidget::currentGlobalTool() const 251 { 252 return m_pPaneToolsGlobal ? m_pPaneToolsGlobal->currentTool() : UIToolType_Invalid; 253 } 254 255 UIToolType UIVirtualBoxManagerWidget::currentMachineTool() const 256 { 257 return m_pPaneToolsMachine ? m_pPaneToolsMachine->currentTool() : UIToolType_Invalid; 258 } 259 260 bool UIVirtualBoxManagerWidget::isGlobalToolOpened(UIToolType enmType) const 261 { 262 return m_pPaneToolsGlobal ? m_pPaneToolsGlobal->isToolOpened(enmType) : false; 263 } 264 265 bool UIVirtualBoxManagerWidget::isMachineToolOpened(UIToolType enmType) const 266 { 267 return m_pPaneToolsMachine ? m_pPaneToolsMachine->isToolOpened(enmType) : false; 268 } 269 270 void UIVirtualBoxManagerWidget::switchGlobalToolTo(UIToolType enmType) 271 { 272 /* Open corresponding tool: */ 273 m_pPaneToolsGlobal->openTool(enmType); 274 275 /* Let the parent know: */ 276 emit sigToolTypeChangeGlobal(); 277 278 /* Update toolbar: */ 279 updateToolbar(); 280 281 /* Handle current tool type change: */ 282 handleCurrentToolTypeChange(enmType); 283 } 284 285 void UIVirtualBoxManagerWidget::switchMachineToolTo(UIToolType enmType) 286 { 287 /* Open corresponding tool: */ 288 m_pPaneToolsMachine->openTool(enmType); 289 290 /* Let the parent know: */ 291 emit sigToolTypeChangeMachine(); 292 293 /* Update toolbar: */ 294 updateToolbar(); 295 296 /* Handle current tool type change: */ 297 handleCurrentToolTypeChange(enmType); 298 } 299 300 void UIVirtualBoxManagerWidget::closeGlobalTool(UIToolType enmType) 301 { 302 m_pPaneToolsGlobal->closeTool(enmType); 303 } 304 305 void UIVirtualBoxManagerWidget::closeMachineTool(UIToolType enmType) 306 { 307 m_pPaneToolsMachine->closeTool(enmType); 308 } 309 310 bool UIVirtualBoxManagerWidget::isCurrentStateItemSelected() const 311 { 312 return m_pPaneToolsMachine->isCurrentStateItemSelected(); 313 } 314 315 QUuid UIVirtualBoxManagerWidget::currentSnapshotId() 316 { 317 return m_pPaneToolsMachine->currentSnapshotId(); 318 318 } 319 319 … … 1051 1051 case UIToolType_FileManager: 1052 1052 { 1053 m_pToolBar->addAction( m_pActionPool->action(UIActionIndex_M_FileManager_T_Preferences));1054 m_pToolBar->addAction( m_pActionPool->action(UIActionIndex_M_FileManager_T_Operations));1055 m_pToolBar->addAction( m_pActionPool->action(UIActionIndex_M_FileManager_T_Log));1053 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_FileManager_T_Preferences)); 1054 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_FileManager_T_Operations)); 1055 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_FileManager_T_Log)); 1056 1056 m_pToolBar->addSeparator(); 1057 1057 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Settings)); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h
r107265 r107266 47 47 class UIChooser; 48 48 class UISlidingAnimation; 49 class UITabBar;50 49 class UIToolPaneGlobal; 51 50 class UIToolPaneMachine; … … 141 140 /** Returns the action-pool instance. */ 142 141 UIActionPool *actionPool() const { return m_pActionPool; } 142 /** @} */ 143 144 /** @name Tool-bar stuff. 145 * @{ */ 146 /** Updates tool-bar menu buttons. */ 147 void updateToolBarMenuButtons(bool fSeparateMenuSection); 143 148 /** @} */ 144 149 … … 241 246 /** @} */ 242 247 243 /** @name Tool-bar stuff.244 * @{ */245 /** Updates tool-bar menu buttons. */246 void updateToolBarMenuButtons(bool fSeparateMenuSection);247 /** @} */248 249 248 /** @name Help browser stuff. 250 249 * @{ */
Note:
See TracChangeset
for help on using the changeset viewer.