AntiMicroX
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Attributes
SimpleKeyGrabberButton Class Reference

Button widget used for detecting pressed buttons it is used mainly in advanced button mapping window (this button with text '...' is spawned when insert button is pressed) More...

#include <simplekeygrabberbutton.h>

Inheritance diagram for SimpleKeyGrabberButton:
[legend]
Collaboration diagram for SimpleKeyGrabberButton:
[legend]

Public Slots

void refreshButtonLabel ()
 

Signals

void buttonCodeChanged (int value)
 

Public Member Functions

 SimpleKeyGrabberButton (QWidget *parent=nullptr)
 
void setValue (int value, int alias, JoyButtonSlot::JoySlotInputAction mode=JoyButtonSlot::JoyKeyboard)
 
void setValue (int value, JoyButtonSlot::JoySlotInputAction mode=JoyButtonSlot::JoyKeyboard)
 
void setValue (QString value, JoyButtonSlot::JoySlotInputAction mode=JoyButtonSlot::JoyLoadProfile)
 
void setValues (QString value, JoyButtonSlot::JoySlotInputAction mode=JoyButtonSlot::JoyMix)
 
void setValues (QString value, QList< JoyButtonSlot * > *jbtn, JoyButtonSlot::JoySlotInputAction mode=JoyButtonSlot::JoyMix)
 
JoyButtonSlotgetValue ()
 
JoyButtonSlotgetValueNonPointer ()
 
void setValue (JoyButtonSlot *jbS)
 
bool isEdited ()
 
bool isGrabbing ()
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event)
 
virtual bool eventFilter (QObject *obj, QEvent *event)
 

Private Attributes

bool grabNextAction
 
bool grabbingWheel
 
bool edited
 
JoyButtonSlot buttonslot
 

Detailed Description

Button widget used for detecting pressed buttons it is used mainly in advanced button mapping window (this button with text '...' is spawned when insert button is pressed)

Constructor & Destructor Documentation

◆ SimpleKeyGrabberButton()

SimpleKeyGrabberButton::SimpleKeyGrabberButton ( QWidget *  parent = nullptr)
explicit

Member Function Documentation

◆ buttonCodeChanged

void SimpleKeyGrabberButton::buttonCodeChanged ( int  value)
signal
Here is the caller graph for this function:

◆ eventFilter()

bool SimpleKeyGrabberButton::eventFilter ( QObject *  obj,
QEvent event 
)
protectedvirtual
Here is the call graph for this function:

◆ getValue()

JoyButtonSlot * SimpleKeyGrabberButton::getValue ( )
Here is the caller graph for this function:

◆ getValueNonPointer()

JoyButtonSlot & SimpleKeyGrabberButton::getValueNonPointer ( )

◆ isEdited()

bool SimpleKeyGrabberButton::isEdited ( )

◆ isGrabbing()

bool SimpleKeyGrabberButton::isGrabbing ( )

◆ keyPressEvent()

void SimpleKeyGrabberButton::keyPressEvent ( QKeyEvent event)
protectedvirtual
Here is the call graph for this function:

◆ refreshButtonLabel

void SimpleKeyGrabberButton::refreshButtonLabel ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setValue() [1/4]

void SimpleKeyGrabberButton::setValue ( int  value,
int  alias,
JoyButtonSlot::JoySlotInputAction  mode = JoyButtonSlot::JoyKeyboard 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setValue() [2/4]

void SimpleKeyGrabberButton::setValue ( int  value,
JoyButtonSlot::JoySlotInputAction  mode = JoyButtonSlot::JoyKeyboard 
)
Here is the call graph for this function:

◆ setValue() [3/4]

void SimpleKeyGrabberButton::setValue ( JoyButtonSlot jbS)

◆ setValue() [4/4]

void SimpleKeyGrabberButton::setValue ( QString  value,
JoyButtonSlot::JoySlotInputAction  mode = JoyButtonSlot::JoyLoadProfile 
)
Here is the call graph for this function:

◆ setValues() [1/2]

void SimpleKeyGrabberButton::setValues ( QString  value,
JoyButtonSlot::JoySlotInputAction  mode = JoyButtonSlot::JoyMix 
)
Here is the call graph for this function:

◆ setValues() [2/2]

void SimpleKeyGrabberButton::setValues ( QString  value,
QList< JoyButtonSlot * > *  jbtn,
JoyButtonSlot::JoySlotInputAction  mode = JoyButtonSlot::JoyMix 
)
Here is the call graph for this function:

Field Documentation

◆ buttonslot

JoyButtonSlot SimpleKeyGrabberButton::buttonslot
private

◆ edited

bool SimpleKeyGrabberButton::edited
private

◆ grabbingWheel

bool SimpleKeyGrabberButton::grabbingWheel
private

◆ grabNextAction

bool SimpleKeyGrabberButton::grabNextAction
private

The documentation for this class was generated from the following files: