VirtualBox

Changeset 73847 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 22, 2018 7:03:19 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9085: A bit of fixes and missed part for r124533.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp

    r72821 r73847  
    687687        case UIExtraDataMetaDefs::RuntimeMenuInputActionType_Mouse:              strResult = "Mouse"; break;
    688688        case UIExtraDataMetaDefs::RuntimeMenuInputActionType_MouseIntegration:   strResult = "MouseIntegration"; break;
     689        case UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeHostKeyCombo:   strResult = "TypeHostKeyCombo"; break;
    689690        case UIExtraDataMetaDefs::RuntimeMenuInputActionType_All:                strResult = "All"; break;
    690691        default:
     
    715716    keys << "Mouse";              values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_Mouse;
    716717    keys << "MouseIntegration";   values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_MouseIntegration;
     718    keys << "TypeHostKeyCombo";   values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeHostKeyCombo;
    717719    keys << "All";                values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_All;
    718720    /* Invalid type for unknown words: */
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolRuntime.cpp

    r73841 r73847  
    18161816};
    18171817
    1818 /** Toggle action extension, used as 'Perform Host Key Combo press/release' action class. */
     1818/** Toggle action extension, used as 'Perform Host Key Combo Press/Release' action class. */
    18191819class UIActionToggleRuntimePerformTypeHostKeyCombo : public UIActionToggle
    18201820{
     
    18251825    /** Constructs action passing @a pParent to the base-class. */
    18261826    UIActionToggleRuntimePerformTypeHostKeyCombo(UIActionPool *pParent)
    1827         : UIActionToggle
    1828           (pParent,
    1829            ":/vm_pause_on_16px.png", ":/vm_pause_16px.png",
    1830            ":/vm_pause_on_disabled_16px.png", ":/vm_pause_disabled_16px.png",
    1831            true)
     1827        : UIActionToggle(pParent, true)
    18321828    {}
    18331829
     
    18531849    virtual QString shortcutExtraDataID() const /* override */
    18541850    {
    1855         return QString("TypeHostKeyCode");
     1851        return QString("TypeHostKeyCombo");
    18561852    }
    18571853
     
    18691865    virtual void retranslateUi() /* override */
    18701866    {
    1871         setName(QApplication::translate("UIActionPool", "&Insert %1", "that means send the %1 key sequence to the virtual machine").arg("Home Key Combo"));
    1872         setStatusTip(QApplication::translate("UIActionPool", "Send the %1 sequence to the virtual machine").arg("Home Key Combo"));
     1867        setName(QApplication::translate("UIActionPool", "&Insert %1", "that means send the %1 key sequence to the virtual machine").arg("Host Key Combo"));
     1868        setStatusTip(QApplication::translate("UIActionPool", "Send the %1 sequence to the virtual machine").arg("Host Key Combo"));
    18731869    }
    18741870};
     
    40344030    /* 'Type Alt Print Screen' action: */
    40354031    fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeAltPrintScreen)) || fSeparator;
     4032    /* 'Type Host Key Combo' action: */
    40364033    fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Keyboard_T_TypeHostKeyCombo)) || fSeparator;
    40374034
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r73841 r73847  
    16811681}
    16821682
    1683 void UIMachineLogic::sltTypeHostKeyComboPressRelease(bool actionToggle)
     1683void UIMachineLogic::sltTypeHostKeyComboPressRelease(bool fToggleSequence)
    16841684{
    16851685    QList<unsigned> shortCodes = UIHostCombo::modifiersToScanCodes(gEDataManager->hostKeyCombination());
    1686     QVector <LONG> codes;
     1686    QVector<LONG> codes;
    16871687    foreach (unsigned idxCode, shortCodes)
    16881688    {
    1689         /* Check if we need to include extend code for this key: */
     1689        /* Check if we need to include extended code for this key: */
    16901690        if (idxCode & 0x100)
    16911691            codes << 0xE0;
    1692         if (actionToggle)
     1692        if (fToggleSequence)
    16931693        {
    16941694            /* Add the press code: */
    1695              codes << (idxCode & 0x7F);
     1695            codes << (idxCode & 0x7F);
    16961696        }
    16971697        else
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h

    r73841 r73847  
    269269    void sltTypePrintScreen();
    270270    void sltTypeAltPrintScreen();
    271     void sltTypeHostKeyComboPressRelease(bool);
     271    void sltTypeHostKeyComboPressRelease(bool fToggleSequence);
    272272    void sltTakeSnapshot();
    273273    void sltShowInformationDialog();
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