Changeset 73847 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 22, 2018 7:03:19 PM (6 years ago)
- 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 687 687 case UIExtraDataMetaDefs::RuntimeMenuInputActionType_Mouse: strResult = "Mouse"; break; 688 688 case UIExtraDataMetaDefs::RuntimeMenuInputActionType_MouseIntegration: strResult = "MouseIntegration"; break; 689 case UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeHostKeyCombo: strResult = "TypeHostKeyCombo"; break; 689 690 case UIExtraDataMetaDefs::RuntimeMenuInputActionType_All: strResult = "All"; break; 690 691 default: … … 715 716 keys << "Mouse"; values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_Mouse; 716 717 keys << "MouseIntegration"; values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_MouseIntegration; 718 keys << "TypeHostKeyCombo"; values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeHostKeyCombo; 717 719 keys << "All"; values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_All; 718 720 /* Invalid type for unknown words: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolRuntime.cpp
r73841 r73847 1816 1816 }; 1817 1817 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. */ 1819 1819 class UIActionToggleRuntimePerformTypeHostKeyCombo : public UIActionToggle 1820 1820 { … … 1825 1825 /** Constructs action passing @a pParent to the base-class. */ 1826 1826 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) 1832 1828 {} 1833 1829 … … 1853 1849 virtual QString shortcutExtraDataID() const /* override */ 1854 1850 { 1855 return QString("TypeHostKeyCo de");1851 return QString("TypeHostKeyCombo"); 1856 1852 } 1857 1853 … … 1869 1865 virtual void retranslateUi() /* override */ 1870 1866 { 1871 setName(QApplication::translate("UIActionPool", "&Insert %1", "that means send the %1 key sequence to the virtual machine").arg("Ho meKey Combo"));1872 setStatusTip(QApplication::translate("UIActionPool", "Send the %1 sequence to the virtual machine").arg("Ho meKey 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")); 1873 1869 } 1874 1870 }; … … 4034 4030 /* 'Type Alt Print Screen' action: */ 4035 4031 fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeAltPrintScreen)) || fSeparator; 4032 /* 'Type Host Key Combo' action: */ 4036 4033 fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Keyboard_T_TypeHostKeyCombo)) || fSeparator; 4037 4034 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r73841 r73847 1681 1681 } 1682 1682 1683 void UIMachineLogic::sltTypeHostKeyComboPressRelease(bool actionToggle)1683 void UIMachineLogic::sltTypeHostKeyComboPressRelease(bool fToggleSequence) 1684 1684 { 1685 1685 QList<unsigned> shortCodes = UIHostCombo::modifiersToScanCodes(gEDataManager->hostKeyCombination()); 1686 QVector 1686 QVector<LONG> codes; 1687 1687 foreach (unsigned idxCode, shortCodes) 1688 1688 { 1689 /* Check if we need to include extend code for this key: */1689 /* Check if we need to include extended code for this key: */ 1690 1690 if (idxCode & 0x100) 1691 1691 codes << 0xE0; 1692 if ( actionToggle)1692 if (fToggleSequence) 1693 1693 { 1694 1694 /* Add the press code: */ 1695 1695 codes << (idxCode & 0x7F); 1696 1696 } 1697 1697 else -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r73841 r73847 269 269 void sltTypePrintScreen(); 270 270 void sltTypeAltPrintScreen(); 271 void sltTypeHostKeyComboPressRelease(bool );271 void sltTypeHostKeyComboPressRelease(bool fToggleSequence); 272 272 void sltTakeSnapshot(); 273 273 void sltShowInformationDialog();
Note:
See TracChangeset
for help on using the changeset viewer.