VirtualBox

Ignore:
Timestamp:
Aug 6, 2012 5:01:21 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: 6234: Support for VM groups: Selector menu fixes.

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  
    265265    void retranslateUi()
    266266    {
    267         setText(QApplication::translate("UIActionPool", "&Remove group..."));
    268         setStatusTip(QApplication::translate("UIActionPool", "Remove the 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));
    270270    }
    271271};
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorShortcuts.cpp

    r42563 r42631  
    3636    m_Shortcuts[SettingsVMShortcut]          = UIKeySequence("SettingsVM",          "Ctrl+S");
    3737    m_Shortcuts[CloneVMShortcut]             = UIKeySequence("CloneVM",             "Ctrl+O");
    38     m_Shortcuts[RemoveVMGroupShortcut]       = UIKeySequence("RemoveVMGroup",       "Ctrl+R");
     38    m_Shortcuts[BreakVMGroupShortcut]        = UIKeySequence("BreakVMGroup",        "Ctrl+B");
    3939    m_Shortcuts[RemoveVMShortcut]            = UIKeySequence("RemoveVM",            "Ctrl+R");
    4040    m_Shortcuts[RenameVMGroupShortcut]       = UIKeySequence("RenameVMGroup",       "Ctrl+M");
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorShortcuts.h

    r42563 r42631  
    3838        SettingsVMShortcut,
    3939        CloneVMShortcut,
    40         RemoveVMGroupShortcut,
     40        BreakVMGroupShortcut,
    4141        RemoveVMShortcut,
    4242        RenameVMGroupShortcut,
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp

    r42616 r42631  
    720720                                                 machine.GetName(), machine.GetId());
    721721    }
    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));
    730722}
    731723
     
    13081300
    13091301    /* 'Group' menu connections: */
    1310     connect(m_pGroupMenu, SIGNAL(aboutToShow()), this, SLOT(sltMachineMenuAboutToShow()));
    13111302    connect(m_pActionGroupAddDialog, SIGNAL(triggered()), this, SLOT(sltShowAddMachineDialog()));
    13121303    connect(m_pActionGroupStartOrShow, SIGNAL(triggered()), this, SLOT(sltPerformStartOrShowAction()));
     
    13191310
    13201311    /* 'Machine' menu connections: */
    1321     connect(m_pMachineMenu, SIGNAL(aboutToShow()), this, SLOT(sltMachineMenuAboutToShow()));
    13221312    connect(m_pActionMachineAddDialog, SIGNAL(triggered()), this, SLOT(sltShowAddMachineDialog()));
    13231313    connect(m_pActionMachineSettingsDialog, SIGNAL(triggered()), this, SLOT(sltShowMachineSettingsDialog()));
     
    15341524
    15351525    /* Enable/disable machine-close actions: */
     1526    m_pMachineCloseMenuAction->setEnabled(isActionEnabled(UIActionIndexSelector_Menu_Machine_Close, items));
    15361527    m_pACPIShutdownAction->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Machine_Close_ACPIShutdown, items));
    15371528    m_pPowerOffAction->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Machine_Close_PowerOff, items));
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h

    r42616 r42631  
    9999    void sltShowMachineInFileManager();
    100100    void sltPerformCreateShortcutAction();
    101     void sltMachineMenuAboutToShow();
    102101    void sltMachineCloseMenuAboutToShow();
    103102
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette