VirtualBox

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


Ignore:
Timestamp:
Jan 24, 2007 11:03:55 AM (18 years ago)
Author:
vboxsync
Message:

FE/Qt: Small naming corrections.

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

Legend:

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

    r255 r261  
    8484    void onFullscreenChange (bool on);
    8585   
    86     void FixModifierState (LONG *codes, uint *count);
     86    void fixModifierState (LONG *codes, uint *count);
    8787
    8888signals:
     
    196196    bool autoresize_guest : 1;
    197197
    198     bool mfNumLock;
    199     bool mfScrollLock;
    200     bool mfCapsLock;
     198    bool mfNumLock : 1;
     199    bool mfScrollLock : 1;
     200    bool mfCapsLock : 1;
    201201    long muNumLockAdaptionCnt;
    202202    long muCapsLockAdaptionCnt;
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxDefs.h

    r245 r261  
    148148        SessionStateChangeEventType = QEvent::User + 7,
    149149        SnapshotEventType = QEvent::User + 8,
    150         ModifierKeyChangeEventType = QEvent::User + 9,
     150        RuntimeErrorEventType = QEvent::User + 9,
     151        ModifierKeyChangeEventType = QEvent::User + 10,
    151152        EnumerateMediaEventType = QEvent::User + 100,
    152153        ActivateMenuEventType = QEvent::User + 101,
    153         RuntimeErrorEventType = QEvent::User + 102,
    154154    };
    155155};
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp

    r255 r261  
    200200    ModifierKeyChangeEvent(bool fNumLock, bool fCapsLock, bool fScrollLock) :
    201201        QEvent ((QEvent::Type) VBoxDefs::ModifierKeyChangeEventType),
    202         mfNumLock(fNumLock), mfCapsLock(fCapsLock), mfScrollLock(fScrollLock) {}
    203     bool NumLock()    const { return mfNumLock; }
    204     bool CapsLock()   const { return mfCapsLock; }
    205     bool ScrollLock() const { return mfScrollLock; }
     202        mfNumLock (fNumLock), mfCapsLock (fCapsLock), mfScrollLock (fScrollLock) {}
     203    bool numLock()    const { return mfNumLock; }
     204    bool capsLock()   const { return mfCapsLock; }
     205    bool scrollLock() const { return mfScrollLock; }
    206206private:
    207207    bool mfNumLock, mfCapsLock, mfScrollLock;
     
    349349    , ignore_mainwnd_resize (false)
    350350    , autoresize_guest (false)
     351    , mfNumLock (false)
     352    , mfScrollLock (false)
     353    , mfCapsLock (false)
    351354    , muNumLockAdaptionCnt (2)
    352355    , muCapsLockAdaptionCnt (2)
     
    783786            {
    784787                ModifierKeyChangeEvent *me = (ModifierKeyChangeEvent* )e;
    785                 if (me->NumLock() != mfNumLock)
     788                if (me->numLock() != mfNumLock)
    786789                    muNumLockAdaptionCnt = 2;
    787                 if (me->CapsLock() != mfCapsLock)
     790                if (me->capsLock() != mfCapsLock)
    788791                    muCapsLockAdaptionCnt = 2;
    789                 mfNumLock    = me->NumLock();
    790                 mfCapsLock   = me->CapsLock();
    791                 mfScrollLock = me->ScrollLock();
     792                mfNumLock    = me->numLock();
     793                mfCapsLock   = me->capsLock();
     794                mfScrollLock = me->scrollLock();
    792795                return true;
    793796            }
     
    12901293 *  @param  count  pointer to the keycodes counter
    12911294 */
    1292 void VBoxConsoleView::FixModifierState(LONG *codes, uint *count)
     1295void VBoxConsoleView::fixModifierState(LONG *codes, uint *count)
    12931296{
    12941297#if defined(Q_WS_X11)
     
    13471350#else
    13481351
    1349 #warning Adapt VBoxConsoleView::FixModifierState
     1352#warning Adapt VBoxConsoleView::fixModifierState
    13501353
    13511354#endif
     
    14071410                // CapsLock, ScrollLock) as the X server. If not, send KeyPress events
    14081411                // to synchronize the state.
    1409                 FixModifierState (codes, &count);
     1412                fixModifierState (codes, &count);
    14101413            }
    14111414
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