Changeset 54349 in vbox
- Timestamp:
- Feb 21, 2015 1:05:04 AM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.cpp
r54348 r54349 1222 1222 void retranslateUi() 1223 1223 { 1224 setName(QApplication::translate("UIActionPool", " Disable&Mouse Integration"));1225 setStatusTip(QApplication::translate("UIActionPool", " Temporarily disable host mouse pointer integration"));1224 setName(QApplication::translate("UIActionPool", "&Mouse Integration")); 1225 setStatusTip(QApplication::translate("UIActionPool", "Enable host mouse pointer integration")); 1226 1226 } 1227 1227 }; … … 2772 2772 fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Mouse), false) || fSeparator; 2773 2773 updateMenuInputMouse(); 2774 2775 /* Separator: */ 2776 if (fSeparator) 2777 { 2778 pMenu->addSeparator(); 2779 fSeparator = false; 2780 } 2781 2774 2782 /* 'Mouse Integration' action: */ 2775 2783 fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Mouse_T_Integration)) || fSeparator; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r54348 r54349 595 595 pAction->setEnabled(fIsMouseSupportsAbsolute && fIsMouseSupportsRelative && !fIsMouseHostCursorNeeded); 596 596 if (fIsMouseHostCursorNeeded) 597 pAction->setChecked( false);597 pAction->setChecked(true); 598 598 } 599 599 … … 1301 1301 } 1302 1302 1303 void UIMachineLogic::sltToggleMouseIntegration(bool f Off)1303 void UIMachineLogic::sltToggleMouseIntegration(bool fEnabled) 1304 1304 { 1305 1305 /* Do not process if window(s) missed! */ … … 1308 1308 1309 1309 /* Disable/Enable mouse-integration for all view(s): */ 1310 mouseHandler()->setMouseIntegrationEnabled( !fOff);1310 mouseHandler()->setMouseIntegrationEnabled(fEnabled); 1311 1311 } 1312 1312 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r54337 r54349 243 243 /* "Machine" menu functionality: */ 244 244 void sltShowKeyboardSettings(); 245 void sltToggleMouseIntegration(bool f Disabled);245 void sltToggleMouseIntegration(bool fEnabled); 246 246 void sltTypeCAD(); 247 247 #ifdef Q_WS_X11 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMenuBarEditorWindow.cpp
r54303 r54349 520 520 { 521 521 prepareCopiedAction(pMenu, actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard)); 522 pMenu->addSeparator(); 522 523 prepareCopiedAction(pMenu, actionPool()->action(UIActionIndexRT_M_Input_M_Mouse_T_Integration)); 523 524 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r54305 r54349 1369 1369 } 1370 1370 1371 /* Input options: */ 1372 actionPool()->action(UIActionIndexRT_M_Input_M_Mouse_T_Integration)->setChecked(isMouseIntegrated()); 1373 1371 1374 /* What is the default close action and the restricted are? */ 1372 1375 m_defaultCloseAction = gEDataManager->defaultMachineCloseAction(strMachineID); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r54272 r54349 209 209 UIMachineLogic::prepareActionGroups(); 210 210 211 /* Restrict 'Disable Mouse Integration' action for 'Machine' menu: */212 actionPool()->toRuntime()->setRestrictionForMenuInput(UIActionRestrictionLevel_Logic,213 UIExtraDataMetaDefs::RuntimeMenuInputActionType_MouseIntegration);214 211 /* Restrict 'Adjust Window', 'Guest Autoresize', 'Status Bar' and 'Resize' actions for 'View' menu: */ 215 212 actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic, … … 345 342 } 346 343 347 /* Allow 'Disable Mouse Integration' action for 'Machine' menu: */348 actionPool()->toRuntime()->setRestrictionForMenuInput(UIActionRestrictionLevel_Logic,349 UIExtraDataMetaDefs::RuntimeMenuInputActionType_Invalid);350 344 /* Allow 'Adjust Window', 'Guest Autoresize', 'Status Bar' and 'Resize' actions for 'View' menu: */ 351 345 actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic,
Note:
See TracChangeset
for help on using the changeset viewer.