VirtualBox

Changeset 54349 in vbox


Ignore:
Timestamp:
Feb 21, 2015 1:05:04 AM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: 7253: Runtime UI: Invert state/name of the Disable Mouse-integration action.

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  
    12221222    void retranslateUi()
    12231223    {
    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"));
    12261226    }
    12271227};
     
    27722772    fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Mouse), false) || fSeparator;
    27732773    updateMenuInputMouse();
     2774
     2775    /* Separator: */
     2776    if (fSeparator)
     2777    {
     2778        pMenu->addSeparator();
     2779        fSeparator = false;
     2780    }
     2781
    27742782    /* 'Mouse Integration' action: */
    27752783    fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Mouse_T_Integration)) || fSeparator;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r54348 r54349  
    595595    pAction->setEnabled(fIsMouseSupportsAbsolute && fIsMouseSupportsRelative && !fIsMouseHostCursorNeeded);
    596596    if (fIsMouseHostCursorNeeded)
    597         pAction->setChecked(false);
     597        pAction->setChecked(true);
    598598}
    599599
     
    13011301}
    13021302
    1303 void UIMachineLogic::sltToggleMouseIntegration(bool fOff)
     1303void UIMachineLogic::sltToggleMouseIntegration(bool fEnabled)
    13041304{
    13051305    /* Do not process if window(s) missed! */
     
    13081308
    13091309    /* Disable/Enable mouse-integration for all view(s): */
    1310     mouseHandler()->setMouseIntegrationEnabled(!fOff);
     1310    mouseHandler()->setMouseIntegrationEnabled(fEnabled);
    13111311}
    13121312
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h

    r54337 r54349  
    243243    /* "Machine" menu functionality: */
    244244    void sltShowKeyboardSettings();
    245     void sltToggleMouseIntegration(bool fDisabled);
     245    void sltToggleMouseIntegration(bool fEnabled);
    246246    void sltTypeCAD();
    247247#ifdef Q_WS_X11
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMenuBarEditorWindow.cpp

    r54303 r54349  
    520520    {
    521521        prepareCopiedAction(pMenu, actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard));
     522        pMenu->addSeparator();
    522523        prepareCopiedAction(pMenu, actionPool()->action(UIActionIndexRT_M_Input_M_Mouse_T_Integration));
    523524    }
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r54305 r54349  
    13691369        }
    13701370
     1371        /* Input options: */
     1372        actionPool()->action(UIActionIndexRT_M_Input_M_Mouse_T_Integration)->setChecked(isMouseIntegrated());
     1373
    13711374        /* What is the default close action and the restricted are? */
    13721375        m_defaultCloseAction = gEDataManager->defaultMachineCloseAction(strMachineID);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp

    r54272 r54349  
    209209    UIMachineLogic::prepareActionGroups();
    210210
    211     /* Restrict 'Disable Mouse Integration' action for 'Machine' menu: */
    212     actionPool()->toRuntime()->setRestrictionForMenuInput(UIActionRestrictionLevel_Logic,
    213                                                           UIExtraDataMetaDefs::RuntimeMenuInputActionType_MouseIntegration);
    214211    /* Restrict 'Adjust Window', 'Guest Autoresize', 'Status Bar' and 'Resize' actions for 'View' menu: */
    215212    actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic,
     
    345342    }
    346343
    347     /* Allow 'Disable Mouse Integration' action for 'Machine' menu: */
    348     actionPool()->toRuntime()->setRestrictionForMenuInput(UIActionRestrictionLevel_Logic,
    349                                                           UIExtraDataMetaDefs::RuntimeMenuInputActionType_Invalid);
    350344    /* Allow 'Adjust Window', 'Guest Autoresize', 'Status Bar' and 'Resize' actions for 'View' menu: */
    351345    actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic,
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