VirtualBox

Ignore:
Timestamp:
Dec 25, 2007 5:42:01 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
26954
Message:

FE/Qt: Made C-A-D pressed while the VM is in focus and running act as a last resort and ungrab the keyboard and mouse if the user accidentially forgets the host key and can't see it on the statusbar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h

    r5999 r6184  
    8181    void setMouseIntegrationEnabled (bool enabled);
    8282
    83     bool isMouseAbsolute() const { return mouse_absolute; }
     83    bool isMouseAbsolute() const { return mMouseAbsolute; }
    8484
    8585    void setAutoresizeGuest (bool on);
     
    146146    {
    147147        emit keyboardStateChanged (
    148             (kbd_captured ? KeyboardCaptured : 0) |
     148            (mKbdCaptured ? KeyboardCaptured : 0) |
    149149            (mIsHostkeyPressed ? HostKeyPressed : 0));
    150150    }
    151151
    152152    void emitMouseStateChanged() {
    153         emit mouseStateChanged ((mouse_captured ? MouseCaptured : 0) |
    154                                 (mouse_absolute ? MouseAbsolute : 0) |
    155                                 (!mouse_integration ? MouseAbsoluteDisabled : 0));
     153        emit mouseStateChanged ((mMouseCaptured ? MouseCaptured : 0) |
     154                                (mMouseAbsolute ? MouseAbsolute : 0) |
     155                                (!mMouseIntegration ? MouseAbsoluteDisabled : 0));
    156156    }
    157157
     
    166166#endif
    167167
    168     void captureKbd (bool capture, bool emit_signal = true);
    169     void captureMouse (bool capture, bool emit_signal = true);
     168    void captureKbd (bool aCapture, bool aEmitSignal = true);
     169    void captureMouse (bool aCapture, bool aEmitSignal = true);
    170170
    171171    bool processHotKey (const QKeySequence &key, QMenuData *data);
     
    179179    void setPointerShape (MousePointerChangeEvent *me);
    180180
    181     bool isPaused() { return last_state == CEnums::Paused; }
    182     bool isRunning() { return last_state == CEnums::Running; }
     181    bool isPaused() { return mLastState == CEnums::Paused; }
     182    bool isRunning() { return mLastState == CEnums::Running; }
    183183
    184184    static void dimImage (QImage &img);
     
    198198    const VBoxGlobalSettings &gs;
    199199
    200     CEnums::MachineState last_state;
    201 
    202     bool attached : 1;
    203     bool kbd_captured : 1;
    204     bool mouse_captured : 1;
    205     bool mouse_absolute : 1;
    206     bool mouse_integration : 1;
    207     QPoint last_pos;
    208     QPoint captured_pos;
     200    CEnums::MachineState mLastState;
     201
     202    bool mAttached : 1;
     203    bool mKbdCaptured : 1;
     204    bool mMouseCaptured : 1;
     205    bool mMouseAbsolute : 1;
     206    bool mMouseIntegration : 1;
     207    QPoint mLastPos;
     208    QPoint mCapturedPos;
    209209
    210210        bool mDisableAutoCapture : 1;
     
    217217    bool mIsHostkeyAlone : 1;
    218218
    219     /** kbd_captured value during the the last host key press or release */
     219    /** mKbdCaptured value during the the last host key press or release */
    220220    bool hostkey_in_capture : 1;
    221221
Note: See TracChangeset for help on using the changeset viewer.

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