VirtualBox

Ignore:
Timestamp:
Mar 6, 2024 3:32:29 PM (13 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
162073
Message:

FE/Qt: Remove COMDef.h include from UISoftKeyboard.h

Location:
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp

    r103650 r103706  
    420420    int height() const;
    421421
    422     void setScanCode(LONG scanCode);
    423     LONG scanCode() const;
    424 
    425     void addScanCodePrefix(LONG scanCode);
    426 
    427     void setUsageId(LONG usageId);
    428     void setUsagePage(LONG usagePage);
    429     QPair<LONG, LONG> usagePageIdPair() const;
     422    void setScanCode(qint32 scanCode);
     423    qint32 scanCode() const;
     424
     425    void addScanCodePrefix(qint32 scanCode);
     426
     427    void setUsageId(qint32 usageId);
     428    void setUsagePage(qint32 usagePage);
     429    QPair<qint32, qint32> usagePageIdPair() const;
    430430
    431431    void setSpaceWidthAfter(int iSpace);
     
    453453
    454454    void setParentWidget(UISoftKeyboardWidget* pParent);
    455     QVector<LONG> scanCodeWithPrefix() const;
     455    QVector<qint32> scanCodeWithPrefix() const;
    456456
    457457    void setIsOSMenuKey(bool fFlag);
     
    495495    int      m_iHeight;
    496496    int      m_iSpaceWidthAfter;
    497     LONG     m_scanCode;
    498     QVector<LONG> m_scanCodePrefix;
     497    qint32     m_scanCode;
     498    QVector<qint32> m_scanCodePrefix;
    499499
    500500    /** @name Cutouts are used to create non-rectangle keys polygons.
     
    509509    int  m_iPosition;
    510510    UISoftKeyboardWidget  *m_pParentWidget;
    511     LONG m_iUsageId;
    512     LONG m_iUsagePage;
     511    qint32 m_iUsageId;
     512    qint32 m_iUsagePage;
    513513    KeyboardRegion m_enmKeyboardRegion;
    514514    /** This is used for multimedia keys, OS key etc where we want to have a non-modifiable
     
    648648
    649649    void sigStatusBarMessage(const QString &strMessage);
    650     void sigPutKeyboardSequence(QVector<LONG> sequence);
    651     void sigPutUsageCodesPress(QVector<QPair<LONG, LONG> > sequence);
    652     void sigPutUsageCodesRelease(QVector<QPair<LONG, LONG> > sequence);
     650    void sigPutKeyboardSequence(QVector<qint32> sequence);
     651    void sigPutUsageCodesPress(QVector<QPair<qint32, qint32> > sequence);
     652    void sigPutUsageCodesRelease(QVector<QPair<qint32, qint32> > sequence);
    653653    void sigCurrentLayoutChange();
    654654    void sigKeyToEdit(UISoftKeyboardKey* pKey);
     
    16351635}
    16361636
    1637 void UISoftKeyboardKey::setScanCode(LONG scanCode)
     1637void UISoftKeyboardKey::setScanCode(qint32 scanCode)
    16381638{
    16391639    m_scanCode = scanCode;
    16401640}
    16411641
    1642 LONG UISoftKeyboardKey::scanCode() const
     1642qint32 UISoftKeyboardKey::scanCode() const
    16431643{
    16441644    return m_scanCode;
    16451645}
    16461646
    1647 void UISoftKeyboardKey::addScanCodePrefix(LONG scanCodePrefix)
     1647void UISoftKeyboardKey::addScanCodePrefix(qint32 scanCodePrefix)
    16481648{
    16491649    m_scanCodePrefix << scanCodePrefix;
     
    16601660}
    16611661
    1662 void UISoftKeyboardKey::setUsageId(LONG usageId)
     1662void UISoftKeyboardKey::setUsageId(qint32 usageId)
    16631663{
    16641664    m_iUsageId = usageId;
    16651665}
    16661666
    1667 void UISoftKeyboardKey::setUsagePage(LONG usagePage)
     1667void UISoftKeyboardKey::setUsagePage(qint32 usagePage)
    16681668{
    16691669    m_iUsagePage = usagePage;
    16701670}
    16711671
    1672 QPair<LONG, LONG> UISoftKeyboardKey::usagePageIdPair() const
    1673 {
    1674     return QPair<LONG, LONG>(m_iUsageId, m_iUsagePage);
     1672QPair<qint32, qint32> UISoftKeyboardKey::usagePageIdPair() const
     1673{
     1674    return QPair<qint32, qint32>(m_iUsageId, m_iUsagePage);
    16751675}
    16761676
     
    29042904#if 0
    29052905
    2906     QVector<LONG> sequence;
     2906    QVector<qint32> sequence;
    29072907    if (!pKey->scanCodePrefix().isEmpty())
    29082908        sequence <<  pKey->scanCodePrefix();
     
    29232923#else
    29242924
    2925     QVector<QPair<LONG, LONG> > sequence;
    2926     sequence << QPair<LONG, LONG>(pKey->usagePageIdPair());
     2925    QVector<QPair<qint32, qint32> > sequence;
     2926    sequence << QPair<qint32, qint32>(pKey->usagePageIdPair());
    29272927    /* Add the pressed modifiers in the reverse order: */
    29282928    for (int i = m_pressedModifiers.size() - 1; i >= 0; --i)
     
    29482948
    29492949#if 0
    2950     QVector<LONG> sequence;
     2950    QVector<qint32> sequence;
    29512951     /* Add the pressed modifiers first: */
    29522952    for (int i = 0; i < m_pressedModifiers.size(); ++i)
     
    29652965#else
    29662966
    2967     QVector<QPair<LONG, LONG> > sequence;
     2967    QVector<QPair<qint32, qint32> > sequence;
    29682968
    29692969     /* Add the pressed modifiers first: */
     
    29872987    pKey->setState(KeyState_NotPressed);
    29882988
    2989     QVector<QPair<LONG, LONG> > sequence;
     2989    QVector<QPair<qint32, qint32> > sequence;
    29902990    sequence << pKey->usagePageIdPair();
    29912991    if (fRelease)
     
    34433443            {
    34443444                bool fOk = false;
    3445                 LONG iCode = strPrefix.toInt(&fOk, 16);
     3445                qint32 iCode = strPrefix.toInt(&fOk, 16);
    34463446                if (fOk)
    34473447                    key.addScanCodePrefix(iCode);
     
    40514051}
    40524052
    4053 void UISoftKeyboard::sltPutKeyboardSequence(QVector<LONG> sequence)
     4053void UISoftKeyboard::sltPutKeyboardSequence(QVector<qint32> sequence)
    40544054{
    40554055    m_pMachine->putScancodes(sequence);
    40564056}
    40574057
    4058 void UISoftKeyboard::sltPutUsageCodesPress(QVector<QPair<LONG, LONG> > sequence)
     4058void UISoftKeyboard::sltPutUsageCodesPress(QVector<QPair<qint32, qint32> > sequence)
    40594059{
    40604060    for (int i = 0; i < sequence.size(); ++i)
     
    40624062}
    40634063
    4064 void UISoftKeyboard::sltPutUsageCodesRelease(QVector<QPair<LONG, LONG> > sequence)
     4064void UISoftKeyboard::sltPutUsageCodesRelease(QVector<QPair<qint32, qint32> > sequence)
    40654065{
    40664066    for (int i = 0; i < sequence.size(); ++i)
  • trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.h

    r102548 r103706  
    3434/* Qt includes: */
    3535#include <QMainWindow>
    36 
    37 /* COM includes: */
    38 #include "COMDefs.h"
    3936
    4037/* GUI includes: */
     
    8279
    8380    void sltKeyboardLedsChange();
    84     void sltPutKeyboardSequence(QVector<LONG> sequence);
    85     void sltPutUsageCodesPress(QVector<QPair<LONG, LONG> > sequence);
    86     void sltPutUsageCodesRelease(QVector<QPair<LONG, LONG> > sequence);
     81    void sltPutKeyboardSequence(QVector<qint32> sequence);
     82    void sltPutUsageCodesPress(QVector<QPair<qint32, qint32> > sequence);
     83    void sltPutUsageCodesRelease(QVector<QPair<qint32, qint32> > sequence);
    8784
    8885    /** Handles the signal we get from the layout selector widget.
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