AntiMicroX
Public Slots | Public Member Functions | Protected Member Functions | Properties | Private Slots | Private Attributes
JoySensorButtonPushButton Class Reference

A direction button in the SensorPushButtonGroup. More...

#include <joysensorbuttonpushbutton.h>

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

Public Slots

void disableFlashes () override
 Disables highlight when the sensor axis is moved. More...
 
void enableFlashes () override
 Enables highlight when the sensor axis is moved. More...
 
- Public Slots inherited from FlashButtonWidget
void refreshLabel ()
 
void toggleNameDisplay ()
 
virtual void disableFlashes ()=0
 
virtual void enableFlashes ()=0
 

Public Member Functions

 JoySensorButtonPushButton (JoySensorButton *button, bool displayNames, QWidget *parent=nullptr)
 
JoySensorButtongetButton ()
 Get the JoySensorButton for this mapping. More...
 
void tryFlash ()
 Highlights the button when mapped button is active. More...
 
- 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 ()
 

Properties

bool isflashing
 
- Properties inherited from FlashButtonWidget
bool isflashing
 

Private Slots

void showContextMenu (const QPoint &point)
 Shows sensor context menu. More...
 

Private Attributes

JoySensorButtonm_button
 

Additional Inherited Members

- Protected Slots inherited from FlashButtonWidget
void flash ()
 
void unflash ()
 

Detailed Description

A direction button in the SensorPushButtonGroup.

Constructor & Destructor Documentation

◆ JoySensorButtonPushButton()

JoySensorButtonPushButton::JoySensorButtonPushButton ( JoySensorButton button,
bool  displayNames,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ disableFlashes

void JoySensorButtonPushButton::disableFlashes ( )
overrideslot

Disables highlight when the sensor axis is moved.

Here is the call graph for this function:

◆ enableFlashes

void JoySensorButtonPushButton::enableFlashes ( )
overrideslot

Enables highlight when the sensor axis is moved.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ generateLabel()

QString JoySensorButtonPushButton::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:

◆ getButton()

JoySensorButton * JoySensorButtonPushButton::getButton ( )

Get the JoySensorButton for this mapping.

Here is the caller graph for this function:

◆ showContextMenu

void JoySensorButtonPushButton::showContextMenu ( const QPoint &  point)
privateslot

Shows sensor context menu.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tryFlash()

void JoySensorButtonPushButton::tryFlash ( )

Highlights the button when mapped button is active.

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ m_button

JoySensorButton* JoySensorButtonPushButton::m_button
private

Property Documentation

◆ isflashing

bool JoySensorButtonPushButton::isflashing
read

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