Changeset 55417 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Apr 24, 2015 8:16:17 AM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.cpp
r52730 r55417 549 549 550 550 551 class UIActionStateCommonStartOrShow : public UIActionPolymorphic 551 class UIActionStateCommonStartOrShow : public UIActionPolymorphicMenu 552 552 { 553 553 Q_OBJECT; … … 556 556 557 557 UIActionStateCommonStartOrShow(UIActionPool *pParent) 558 : UIActionPolymorphic (pParent,559 ":/vm_start_32px.png", ":/vm_start_16px.png",560 ":/vm_start_disabled_32px.png", ":/vm_start_disabled_16px.png") {}558 : UIActionPolymorphicMenu(pParent, 559 ":/vm_start_32px.png", ":/vm_start_16px.png", 560 ":/vm_start_disabled_32px.png", ":/vm_start_disabled_16px.png") {} 561 561 562 562 protected: … … 573 573 case 0: 574 574 { 575 showMenu(); 575 576 setName(QApplication::translate("UIActionPool", "S&tart")); 576 577 setStatusTip(QApplication::translate("UIActionPool", "Start the selected virtual machines")); … … 581 582 case 1: 582 583 { 584 hideMenu(); 583 585 setName(QApplication::translate("UIActionPool", "S&how")); 584 586 setStatusTip(QApplication::translate("UIActionPool", "Switch to the windows of the selected virtual machines")); … … 590 592 break; 591 593 } 594 } 595 }; 596 597 class UIActionSimpleStartDefault : public UIActionSimple 598 { 599 Q_OBJECT; 600 601 public: 602 603 UIActionSimpleStartDefault(UIActionPool *pParent) 604 : UIActionSimple(pParent, 605 ":/vm_start_32px.png", ":/vm_start_16px.png", 606 ":/vm_start_disabled_32px.png", ":/vm_start_disabled_16px.png") {} 607 608 protected: 609 610 QString shortcutExtraDataID() const 611 { 612 return QString("StartVMDefault"); 613 } 614 615 void retranslateUi() 616 { 617 setName(QApplication::translate("UIActionPool", "&Default Start")); 618 setStatusTip(QApplication::translate("UIActionPool", "Start the selected virtual machines")); 619 } 620 }; 621 622 class UIActionSimpleStartSeparate : public UIActionSimple 623 { 624 Q_OBJECT; 625 626 public: 627 628 UIActionSimpleStartSeparate(UIActionPool *pParent) 629 : UIActionSimple(pParent, 630 ":/vm_start_32px.png", ":/vm_start_16px.png", 631 ":/vm_start_disabled_32px.png", ":/vm_start_disabled_16px.png") {} 632 633 protected: 634 635 QString shortcutExtraDataID() const 636 { 637 return QString("StartVMSeparate"); 638 } 639 640 void retranslateUi() 641 { 642 setName(QApplication::translate("UIActionPool", "S&eparate Start")); 643 setStatusTip(QApplication::translate("UIActionPool", "Start the selected virtual machines with detachable GUI")); 592 644 } 593 645 }; … … 950 1002 m_pool[UIActionIndexST_M_Group_S_Rename] = new UIActionSimpleGroupRename(this); 951 1003 m_pool[UIActionIndexST_M_Group_S_Remove] = new UIActionSimpleGroupRemove(this); 952 m_pool[UIActionIndexST_M_Group_P_StartOrShow] = new UIActionStateCommonStartOrShow(this); 1004 m_pool[UIActionIndexST_M_Group_M_StartOrShow] = new UIActionStateCommonStartOrShow(this); 1005 m_pool[UIActionIndexST_M_Group_M_StartOrShow_S_StartDefault] = new UIActionSimpleStartDefault(this); 1006 m_pool[UIActionIndexST_M_Group_M_StartOrShow_S_StartSeparate] = new UIActionSimpleStartSeparate(this); 953 1007 m_pool[UIActionIndexST_M_Group_T_Pause] = new UIActionToggleCommonPauseAndResume(this); 954 1008 m_pool[UIActionIndexST_M_Group_S_Reset] = new UIActionSimpleCommonReset(this); … … 972 1026 m_pool[UIActionIndexST_M_Machine_S_Remove] = new UIActionSimpleMachineRemove(this); 973 1027 m_pool[UIActionIndexST_M_Machine_S_AddGroup] = new UIActionSimpleMachineAddGroup(this); 974 m_pool[UIActionIndexST_M_Machine_P_StartOrShow] = new UIActionStateCommonStartOrShow(this); 1028 m_pool[UIActionIndexST_M_Machine_M_StartOrShow] = new UIActionStateCommonStartOrShow(this); 1029 m_pool[UIActionIndexST_M_Machine_M_StartOrShow_S_StartDefault] = new UIActionSimpleStartDefault(this); 1030 m_pool[UIActionIndexST_M_Machine_M_StartOrShow_S_StartSeparate] = new UIActionSimpleStartSeparate(this); 975 1031 m_pool[UIActionIndexST_M_Machine_T_Pause] = new UIActionToggleCommonPauseAndResume(this); 976 1032 m_pool[UIActionIndexST_M_Machine_S_Reset] = new UIActionSimpleCommonReset(this); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.h
r55401 r55417 47 47 UIActionIndexST_M_Group_S_Rename, 48 48 UIActionIndexST_M_Group_S_Remove, 49 UIActionIndexST_M_Group_P_StartOrShow, 49 UIActionIndexST_M_Group_M_StartOrShow, 50 UIActionIndexST_M_Group_M_StartOrShow_S_StartDefault, 51 UIActionIndexST_M_Group_M_StartOrShow_S_StartSeparate, 50 52 UIActionIndexST_M_Group_T_Pause, 51 53 UIActionIndexST_M_Group_S_Reset, … … 69 71 UIActionIndexST_M_Machine_S_Remove, 70 72 UIActionIndexST_M_Machine_S_AddGroup, 71 UIActionIndexST_M_Machine_P_StartOrShow, 73 UIActionIndexST_M_Machine_M_StartOrShow, 74 UIActionIndexST_M_Machine_M_StartOrShow_S_StartDefault, 75 UIActionIndexST_M_Machine_M_StartOrShow_S_StartSeparate, 72 76 UIActionIndexST_M_Machine_T_Pause, 73 77 UIActionIndexST_M_Machine_S_Reset, -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r55359 r55417 26 26 # include <QResizeEvent> 27 27 # include <QStackedWidget> 28 # include <QToolButton> 28 29 # include <QTimer> 29 30 … … 458 459 { 459 460 /* Check if current item could be started/showed: */ 460 if (!isActionEnabled(UIActionIndexST_M_Group_ P_StartOrShow, QList<UIVMItem*>() << pItem))461 if (!isActionEnabled(UIActionIndexST_M_Group_M_StartOrShow, QList<UIVMItem*>() << pItem)) 461 462 continue; 462 463 … … 466 467 VBoxGlobal::LaunchMode_Headless : 467 468 VBoxGlobal::LaunchMode_Default); 469 } 470 } 471 472 void UISelectorWindow::sltPerformDefaultStart() 473 { 474 /* Get selected items: */ 475 QList<UIVMItem*> items = currentItems(); 476 AssertMsgReturnVoid(!items.isEmpty(), ("At least one item should be selected!\n")); 477 478 /* For every selected item: */ 479 foreach (UIVMItem *pItem, items) 480 { 481 /* Check if current item could be started/showed: */ 482 if (!isActionEnabled(UIActionIndexST_M_Group_M_StartOrShow, QList<UIVMItem*>() << pItem)) 483 continue; 484 485 /* Launch/show current VM: */ 486 CMachine machine = pItem->machine(); 487 vboxGlobal().launchMachine(machine, qApp->keyboardModifiers() == Qt::ShiftModifier ? 488 VBoxGlobal::LaunchMode_Headless : 489 VBoxGlobal::LaunchMode_Default); 490 } 491 } 492 493 void UISelectorWindow::sltPerformSeparateStart() 494 { 495 /* Get selected items: */ 496 QList<UIVMItem*> items = currentItems(); 497 AssertMsgReturnVoid(!items.isEmpty(), ("At least one item should be selected!\n")); 498 499 /* For every selected item: */ 500 foreach (UIVMItem *pItem, items) 501 { 502 /* Check if current item could be started/showed: */ 503 if (!isActionEnabled(UIActionIndexST_M_Group_M_StartOrShow, QList<UIVMItem*>() << pItem)) 504 continue; 505 506 /* Launch/show current VM: */ 507 CMachine machine = pItem->machine(); 508 vboxGlobal().launchMachine(machine, qApp->keyboardModifiers() == Qt::ShiftModifier ? 509 VBoxGlobal::LaunchMode_Headless : 510 VBoxGlobal::LaunchMode_Separate); 468 511 } 469 512 } … … 1107 1150 menuBar()->addMenu(actionPool()->action(UIActionIndexST_M_File)->menu()); 1108 1151 1152 /* Prepare 'Group' / 'Start or Show' menu: */ 1153 prepareMenuGroupStartOrShow(actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow)->menu()); 1154 1155 /* Prepare 'Machine' / 'Start or Show' menu: */ 1156 prepareMenuMachineStartOrShow(actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow)->menu()); 1157 1109 1158 /* Prepare 'Group' / 'Close' menu: */ 1110 1159 prepareMenuGroupClose(actionPool()->action(UIActionIndexST_M_Group_M_Close)->menu()); … … 1177 1226 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Group_S_Remove)); 1178 1227 pMenu->addSeparator(); 1179 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Group_ P_StartOrShow));1228 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow)); 1180 1229 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Group_T_Pause)); 1181 1230 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Group_S_Reset)); … … 1196 1245 << actionPool()->action(UIActionIndexST_M_Group_S_Rename) 1197 1246 << actionPool()->action(UIActionIndexST_M_Group_S_Remove) 1198 << actionPool()->action(UIActionIndexST_M_Group_ P_StartOrShow)1247 << actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow) 1199 1248 << actionPool()->action(UIActionIndexST_M_Group_T_Pause) 1200 1249 << actionPool()->action(UIActionIndexST_M_Group_S_Reset) … … 1221 1270 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Machine_S_AddGroup)); 1222 1271 pMenu->addSeparator(); 1223 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Machine_ P_StartOrShow));1272 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow)); 1224 1273 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Machine_T_Pause)); 1225 1274 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Machine_S_Reset)); … … 1242 1291 << actionPool()->action(UIActionIndexST_M_Machine_S_Remove) 1243 1292 << actionPool()->action(UIActionIndexST_M_Machine_S_AddGroup) 1244 << actionPool()->action(UIActionIndexST_M_Machine_ P_StartOrShow)1293 << actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow) 1245 1294 << actionPool()->action(UIActionIndexST_M_Machine_T_Pause) 1246 1295 << actionPool()->action(UIActionIndexST_M_Machine_S_Reset) … … 1253 1302 } 1254 1303 1304 void UISelectorWindow::prepareMenuGroupStartOrShow(QMenu *pMenu) 1305 { 1306 /* Do not touch if filled already: */ 1307 if (!pMenu->isEmpty()) 1308 return; 1309 1310 /* Populate 'Group' / 'Start or Show' menu: */ 1311 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow_S_StartDefault)); 1312 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow_S_StartSeparate)); 1313 1314 /* Remember action list: */ 1315 m_groupActions << actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow_S_StartDefault) 1316 << actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow_S_StartSeparate); 1317 } 1318 1319 void UISelectorWindow::prepareMenuMachineStartOrShow(QMenu *pMenu) 1320 { 1321 /* Do not touch if filled already: */ 1322 if (!pMenu->isEmpty()) 1323 return; 1324 1325 /* Populate 'Machine' / 'Start or Show' menu: */ 1326 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow_S_StartDefault)); 1327 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow_S_StartSeparate)); 1328 1329 /* Remember action list: */ 1330 m_machineActions << actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow_S_StartDefault) 1331 << actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow_S_StartSeparate); 1332 } 1333 1255 1334 void UISelectorWindow::prepareMenuGroupClose(QMenu *pMenu) 1256 1335 { … … 1315 1394 mVMToolBar->addAction(actionPool()->action(UIActionIndexST_M_Machine_S_New)); 1316 1395 mVMToolBar->addAction(actionPool()->action(UIActionIndexST_M_Machine_S_Settings)); 1317 mVMToolBar->addAction(actionPool()->action(UIActionIndexST_M_Machine_P_StartOrShow));1318 1396 mVMToolBar->addAction(actionPool()->action(UIActionIndexST_M_Machine_S_Discard)); 1397 mVMToolBar->addAction(actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow)); 1319 1398 1320 1399 /* Prepare graphics VM list: */ … … 1385 1464 /* 'Group' menu connections: */ 1386 1465 connect(actionPool()->action(UIActionIndexST_M_Group_S_Add), SIGNAL(triggered()), this, SLOT(sltShowAddMachineDialog())); 1387 connect(actionPool()->action(UIActionIndexST_M_Group_ P_StartOrShow), SIGNAL(triggered()), this, SLOT(sltPerformStartOrShowAction()));1466 connect(actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow), SIGNAL(triggered()), this, SLOT(sltPerformStartOrShowAction())); 1388 1467 connect(actionPool()->action(UIActionIndexST_M_Group_T_Pause), SIGNAL(toggled(bool)), this, SLOT(sltPerformPauseResumeAction(bool))); 1389 1468 connect(actionPool()->action(UIActionIndexST_M_Group_S_Reset), SIGNAL(triggered()), this, SLOT(sltPerformResetAction())); … … 1397 1476 connect(actionPool()->action(UIActionIndexST_M_Machine_S_Settings), SIGNAL(triggered()), this, SLOT(sltShowMachineSettingsDialog())); 1398 1477 connect(actionPool()->action(UIActionIndexST_M_Machine_S_Clone), SIGNAL(triggered()), this, SLOT(sltShowCloneMachineWizard())); 1399 connect(actionPool()->action(UIActionIndexST_M_Machine_ P_StartOrShow), SIGNAL(triggered()), this, SLOT(sltPerformStartOrShowAction()));1478 connect(actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow), SIGNAL(triggered()), this, SLOT(sltPerformStartOrShowAction())); 1400 1479 connect(actionPool()->action(UIActionIndexST_M_Machine_T_Pause), SIGNAL(toggled(bool)), this, SLOT(sltPerformPauseResumeAction(bool))); 1401 1480 connect(actionPool()->action(UIActionIndexST_M_Machine_S_Reset), SIGNAL(triggered()), this, SLOT(sltPerformResetAction())); … … 1404 1483 connect(actionPool()->action(UIActionIndexST_M_Machine_S_ShowInFileManager), SIGNAL(triggered()), this, SLOT(sltShowMachineInFileManager())); 1405 1484 connect(actionPool()->action(UIActionIndexST_M_Machine_S_CreateShortcut), SIGNAL(triggered()), this, SLOT(sltPerformCreateShortcutAction())); 1485 1486 /* 'Group/Start or Show' menu connections: */ 1487 connect(actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow_S_StartDefault), SIGNAL(triggered()), this, SLOT(sltPerformDefaultStart())); 1488 connect(actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow_S_StartSeparate), SIGNAL(triggered()), this, SLOT(sltPerformSeparateStart())); 1489 1490 /* 'Machine/Start or Show' menu connections: */ 1491 connect(actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow_S_StartDefault), SIGNAL(triggered()), this, SLOT(sltPerformDefaultStart())); 1492 connect(actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow_S_StartSeparate), SIGNAL(triggered()), this, SLOT(sltPerformSeparateStart())); 1406 1493 1407 1494 /* 'Group/Close' menu connections: */ … … 1559 1646 actionPool()->action(UIActionIndexST_M_Group_S_Rename)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_S_Rename, items)); 1560 1647 actionPool()->action(UIActionIndexST_M_Group_S_Remove)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_S_Remove, items)); 1561 actionPool()->action(UIActionIndexST_M_Group_P_StartOrShow)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_P_StartOrShow, items));1562 1648 actionPool()->action(UIActionIndexST_M_Group_T_Pause)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_T_Pause, items)); 1563 1649 actionPool()->action(UIActionIndexST_M_Group_S_Reset)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_S_Reset, items)); … … 1574 1660 actionPool()->action(UIActionIndexST_M_Machine_S_Remove)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_Remove, items)); 1575 1661 actionPool()->action(UIActionIndexST_M_Machine_S_AddGroup)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_AddGroup, items)); 1576 actionPool()->action(UIActionIndexST_M_Machine_P_StartOrShow)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_P_StartOrShow, items));1577 1662 actionPool()->action(UIActionIndexST_M_Machine_T_Pause)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_T_Pause, items)); 1578 1663 actionPool()->action(UIActionIndexST_M_Machine_S_Reset)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_Reset, items)); … … 1584 1669 actionPool()->action(UIActionIndexST_M_Machine_S_SortParent)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_SortParent, items)); 1585 1670 1671 /* Enable/disable group-start-or-show actions: */ 1672 actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_StartOrShow, items)); 1673 actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow_S_StartDefault)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_StartOrShow_S_StartDefault, items)); 1674 actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow_S_StartSeparate)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_StartOrShow_S_StartSeparate, items)); 1675 1676 /* Enable/disable machine-start-or-show actions: */ 1677 actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_StartOrShow, items)); 1678 actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow_S_StartDefault)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_StartOrShow_S_StartDefault, items)); 1679 actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow_S_StartSeparate)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_StartOrShow_S_StartSeparate, items)); 1680 1586 1681 /* Enable/disable group-close actions: */ 1587 1682 actionPool()->action(UIActionIndexST_M_Group_M_Close)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_Close, items)); … … 1599 1694 if (pItem && pItem->accessible()) 1600 1695 { 1601 actionPool()->action(UIActionIndexST_M_Group_P_StartOrShow)->toActionPolymorphic()->setState(UIVMItem::isItemPoweredOff(pItem) ? 0 : 1); 1602 actionPool()->action(UIActionIndexST_M_Machine_P_StartOrShow)->toActionPolymorphic()->setState(UIVMItem::isItemPoweredOff(pItem) ? 0 : 1); 1696 actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow)->toActionPolymorphicMenu()->setState(UIVMItem::isItemPoweredOff(pItem) ? 0 : 1); 1697 actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow)->toActionPolymorphicMenu()->setState(UIVMItem::isItemPoweredOff(pItem) ? 0 : 1); 1698 QToolButton *pButton = qobject_cast<QToolButton*>(mVMToolBar->widgetForAction(actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow))); 1699 if (pButton) 1700 pButton->setPopupMode(UIVMItem::isItemPoweredOff(pItem) ? QToolButton::MenuButtonPopup : QToolButton::DelayedPopup); 1603 1701 } 1604 1702 else 1605 1703 { 1606 actionPool()->action(UIActionIndexST_M_Group_P_StartOrShow)->toActionPolymorphic()->setState(0); 1607 actionPool()->action(UIActionIndexST_M_Machine_P_StartOrShow)->toActionPolymorphic()->setState(0); 1704 actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow)->toActionPolymorphicMenu()->setState(0); 1705 actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow)->toActionPolymorphicMenu()->setState(0); 1706 QToolButton *pButton = qobject_cast<QToolButton*>(mVMToolBar->widgetForAction(actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow))); 1707 if (pButton) 1708 pButton->setPopupMode(UIVMItem::isItemPoweredOff(pItem) ? QToolButton::MenuButtonPopup : QToolButton::DelayedPopup); 1608 1709 } 1609 1710 … … 1674 1775 isItemsPoweredOff(items); 1675 1776 } 1676 case UIActionIndexST_M_Group_P_StartOrShow: 1677 case UIActionIndexST_M_Machine_P_StartOrShow: 1777 case UIActionIndexST_M_Group_M_StartOrShow: 1778 case UIActionIndexST_M_Group_M_StartOrShow_S_StartDefault: 1779 case UIActionIndexST_M_Group_M_StartOrShow_S_StartSeparate: 1780 case UIActionIndexST_M_Machine_M_StartOrShow: 1781 case UIActionIndexST_M_Machine_M_StartOrShow_S_StartDefault: 1782 case UIActionIndexST_M_Machine_M_StartOrShow_S_StartSeparate: 1678 1783 { 1679 1784 return !m_pChooser->isGroupSavingInProgress() && -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r55401 r55417 88 88 void sltShowCloneMachineWizard(); 89 89 void sltPerformStartOrShowAction(); 90 void sltPerformDefaultStart(); 91 void sltPerformSeparateStart(); 90 92 void sltPerformDiscardAction(); 91 93 void sltPerformPauseResumeAction(bool fPause); … … 126 128 void prepareMenuGroup(QMenu *pMenu); 127 129 void prepareMenuMachine(QMenu *pMenu); 130 void prepareMenuGroupStartOrShow(QMenu *pMenu); 131 void prepareMenuMachineStartOrShow(QMenu *pMenu); 128 132 void prepareMenuGroupClose(QMenu *pMenu); 129 133 void prepareMenuMachineClose(QMenu *pMenu); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemMachine.cpp
r55145 r55417 1150 1150 Qt::QueuedConnection); 1151 1151 connect(m_pStartButton, SIGNAL(sigButtonClicked()), 1152 actionPool()->action(UIActionIndexST_M_Machine_ P_StartOrShow), SLOT(trigger()),1152 actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow), SLOT(trigger()), 1153 1153 Qt::QueuedConnection); 1154 1154 connect(m_pPauseButton, SIGNAL(sigButtonClicked()), -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r55359 r55417 543 543 void UIGChooserModel::activateMachineItem() 544 544 { 545 actionPool()->action(UIActionIndexST_M_Machine_ P_StartOrShow)->activate(QAction::Trigger);545 actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow)->activate(QAction::Trigger); 546 546 } 547 547 … … 1186 1186 m_pContextMenuGroup->addAction(actionPool()->action(UIActionIndexST_M_Group_S_Remove)); 1187 1187 m_pContextMenuGroup->addSeparator(); 1188 m_pContextMenuGroup->addAction(actionPool()->action(UIActionIndexST_M_Group_ P_StartOrShow));1188 m_pContextMenuGroup->addAction(actionPool()->action(UIActionIndexST_M_Group_M_StartOrShow)); 1189 1189 m_pContextMenuGroup->addAction(actionPool()->action(UIActionIndexST_M_Group_T_Pause)); 1190 1190 m_pContextMenuGroup->addAction(actionPool()->action(UIActionIndexST_M_Group_S_Reset)); … … 1207 1207 m_pContextMenuMachine->addAction(actionPool()->action(UIActionIndexST_M_Machine_S_AddGroup)); 1208 1208 m_pContextMenuMachine->addSeparator(); 1209 m_pContextMenuMachine->addAction(actionPool()->action(UIActionIndexST_M_Machine_ P_StartOrShow));1209 m_pContextMenuMachine->addAction(actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow)); 1210 1210 m_pContextMenuMachine->addAction(actionPool()->action(UIActionIndexST_M_Machine_T_Pause)); 1211 1211 m_pContextMenuMachine->addAction(actionPool()->action(UIActionIndexST_M_Machine_S_Reset));
Note:
See TracChangeset
for help on using the changeset viewer.