Changeset 42631 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Aug 6, 2012 5:01:21 PM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.cpp
r42563 r42631 265 265 void retranslateUi() 266 266 { 267 setText(QApplication::translate("UIActionPool", "& Removegroup..."));268 setStatusTip(QApplication::translate("UIActionPool", " Removethe selected virtual machine group"));269 setShortcut(gSS->keySequence(UISelectorShortcuts:: RemoveVMShortcut));267 setText(QApplication::translate("UIActionPool", "&Break group...")); 268 setStatusTip(QApplication::translate("UIActionPool", "Break the selected virtual machine group")); 269 setShortcut(gSS->keySequence(UISelectorShortcuts::BreakVMGroupShortcut)); 270 270 } 271 271 }; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorShortcuts.cpp
r42563 r42631 36 36 m_Shortcuts[SettingsVMShortcut] = UIKeySequence("SettingsVM", "Ctrl+S"); 37 37 m_Shortcuts[CloneVMShortcut] = UIKeySequence("CloneVM", "Ctrl+O"); 38 m_Shortcuts[ RemoveVMGroupShortcut] = UIKeySequence("RemoveVMGroup", "Ctrl+R");38 m_Shortcuts[BreakVMGroupShortcut] = UIKeySequence("BreakVMGroup", "Ctrl+B"); 39 39 m_Shortcuts[RemoveVMShortcut] = UIKeySequence("RemoveVM", "Ctrl+R"); 40 40 m_Shortcuts[RenameVMGroupShortcut] = UIKeySequence("RenameVMGroup", "Ctrl+M"); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorShortcuts.h
r42563 r42631 38 38 SettingsVMShortcut, 39 39 CloneVMShortcut, 40 RemoveVMGroupShortcut,40 BreakVMGroupShortcut, 41 41 RemoveVMShortcut, 42 42 RenameVMGroupShortcut, -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r42616 r42631 720 720 machine.GetName(), machine.GetId()); 721 721 } 722 }723 724 void UISelectorWindow::sltMachineMenuAboutToShow()725 {726 /* Get selected items: */727 QList<UIVMItem*> items = currentItems();728 /* Enable/disable 'Machine/Close' menu according logic: */729 m_pMachineCloseMenuAction->setEnabled(isActionEnabled(UIActionIndexSelector_Menu_Machine_Close, items));730 722 } 731 723 … … 1308 1300 1309 1301 /* 'Group' menu connections: */ 1310 connect(m_pGroupMenu, SIGNAL(aboutToShow()), this, SLOT(sltMachineMenuAboutToShow()));1311 1302 connect(m_pActionGroupAddDialog, SIGNAL(triggered()), this, SLOT(sltShowAddMachineDialog())); 1312 1303 connect(m_pActionGroupStartOrShow, SIGNAL(triggered()), this, SLOT(sltPerformStartOrShowAction())); … … 1319 1310 1320 1311 /* 'Machine' menu connections: */ 1321 connect(m_pMachineMenu, SIGNAL(aboutToShow()), this, SLOT(sltMachineMenuAboutToShow()));1322 1312 connect(m_pActionMachineAddDialog, SIGNAL(triggered()), this, SLOT(sltShowAddMachineDialog())); 1323 1313 connect(m_pActionMachineSettingsDialog, SIGNAL(triggered()), this, SLOT(sltShowMachineSettingsDialog())); … … 1534 1524 1535 1525 /* Enable/disable machine-close actions: */ 1526 m_pMachineCloseMenuAction->setEnabled(isActionEnabled(UIActionIndexSelector_Menu_Machine_Close, items)); 1536 1527 m_pACPIShutdownAction->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Machine_Close_ACPIShutdown, items)); 1537 1528 m_pPowerOffAction->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Machine_Close_PowerOff, items)); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r42616 r42631 99 99 void sltShowMachineInFileManager(); 100 100 void sltPerformCreateShortcutAction(); 101 void sltMachineMenuAboutToShow();102 101 void sltMachineCloseMenuAboutToShow(); 103 102
Note:
See TracChangeset
for help on using the changeset viewer.