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

The central button in a SensorPushButtonGroup. More...

#include <joysensorpushbutton.h>

Inheritance diagram for JoySensorPushButton:
[legend]
Collaboration diagram for JoySensorPushButton:
[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

 JoySensorPushButton (JoySensor *sensor, bool displayNames, QWidget *parent=nullptr)
 
JoySensorgetSensor () const
 Get the underlying JoySensor object. More...
 
void tryFlash ()
 Highlights the button when sensor is not centered. 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 ()
 

Private Slots

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

Private Attributes

JoySensorm_sensor
 

Additional Inherited Members

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

Detailed Description

The central button in a SensorPushButtonGroup.

Constructor & Destructor Documentation

◆ JoySensorPushButton()

JoySensorPushButton::JoySensorPushButton ( JoySensor sensor,
bool  displayNames,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ disableFlashes

void JoySensorPushButton::disableFlashes ( )
overrideslot

Disables highlight when the sensor axis is moved.

Here is the call graph for this function:

◆ enableFlashes

void JoySensorPushButton::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 JoySensorPushButton::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:

◆ getSensor()

JoySensor * JoySensorPushButton::getSensor ( ) const

Get the underlying JoySensor object.

◆ showContextMenu

void JoySensorPushButton::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 JoySensorPushButton::tryFlash ( )

Highlights the button when sensor is not centered.

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

Field Documentation

◆ m_sensor

JoySensor* JoySensorPushButton::m_sensor
private

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