AntiMicroX
Public Slots | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes
JoyAxisWidget Class Reference

#include <joyaxiswidget.h>

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

Public Slots

void disableFlashes () override
 
void enableFlashes () override
 
- Public Slots inherited from FlashButtonWidget
void refreshLabel ()
 
void toggleNameDisplay ()
 
virtual void disableFlashes ()=0
 
virtual void enableFlashes ()=0
 

Public Member Functions

 JoyAxisWidget (JoyAxis *axis, bool displayNames, QWidget *parent=0)
 
JoyAxisgetAxis () const
 
void tryFlash ()
 
- Public Member Functions inherited from FlashButtonWidget
 FlashButtonWidget (QWidget *parent=nullptr)
 
 FlashButtonWidget (bool displayNames, QWidget *parent=nullptr)
 
bool isButtonFlashing ()
 
void setDisplayNames (bool display)
 
bool isDisplayingNames ()
 

Protected Member Functions

virtual QString generateLabel () override
 Generate the string that will be displayed on the button. More...
 
- Protected Member Functions inherited from FlashButtonWidget
virtual void paintEvent (QPaintEvent *event)
 
virtual void retranslateUi ()
 
bool ifDisplayNames ()
 

Private Slots

void showContextMenu (const QPoint &point)
 

Private Attributes

JoyAxism_axis
 

Additional Inherited Members

- Protected Slots inherited from FlashButtonWidget
void flash ()
 
void unflash ()
 
- Properties inherited from FlashButtonWidget
bool isflashing
 

Constructor & Destructor Documentation

◆ JoyAxisWidget()

JoyAxisWidget::JoyAxisWidget ( JoyAxis axis,
bool  displayNames,
QWidget *  parent = 0 
)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ disableFlashes

void JoyAxisWidget::disableFlashes ( )
overrideslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ enableFlashes

void JoyAxisWidget::enableFlashes ( )
overrideslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ generateLabel()

QString JoyAxisWidget::generateLabel ( )
overrideprotectedvirtual

Generate the string that will be displayed on the button.

Returns
Display string

Implements FlashButtonWidget.

Here is the call graph for this function:

◆ getAxis()

JoyAxis * JoyAxisWidget::getAxis ( ) const
Here is the caller graph for this function:

◆ showContextMenu

void JoyAxisWidget::showContextMenu ( const QPoint &  point)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tryFlash()

void JoyAxisWidget::tryFlash ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ m_axis

JoyAxis* JoyAxisWidget::m_axis
private

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