AntiMicroX
Public Member Functions | Private Slots | Private Attributes
JoySensorEditDialog Class Reference

The configuration dialog for a JoySensor itself. More...

#include <joysensoreditdialog.h>

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

Public Member Functions

 JoySensorEditDialog (JoySensor *sensor, QWidget *parent=nullptr)
 
 ~JoySensorEditDialog ()
 

Private Slots

void implementPresets (int index)
 Preset combo box event handler. Applies selected preset to underlying sensor. More...
 
void openMouseSettingsDialog ()
 Opens sensor mouse settings dialog. More...
 
void enableMouseSettingButton ()
 
void updateSensorStats (float x, float y, float z)
 Updates the numerical sensor values on the screen. More...
 
void updateWindowTitleSensorName ()
 Shows the sensor name in dialog title. More...
 
void updateSensorDelaySpinBox (int value)
 Update QDoubleSpinBox value based on updated sensor delay value. More...
 
void updateSensorDelaySlider (double value)
 Update QSlider value based on value from QDoubleSpinBox. More...
 
void setSensorDelay (double value)
 Sensor delay change event handler Converts the double value from the SpinBox to int and pass it to JoySensor. More...
 

Private Attributes

Ui::JoySensorEditDialog * m_ui
 
bool m_keypad_unlocked
 
JoySensorm_sensor
 
JoySensorPreset m_preset
 

Detailed Description

The configuration dialog for a JoySensor itself.

Constructor & Destructor Documentation

◆ JoySensorEditDialog()

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

◆ ~JoySensorEditDialog()

JoySensorEditDialog::~JoySensorEditDialog ( )

Member Function Documentation

◆ enableMouseSettingButton

void JoySensorEditDialog::enableMouseSettingButton ( )
privateslot
Here is the caller graph for this function:

◆ implementPresets

void JoySensorEditDialog::implementPresets ( int  index)
privateslot

Preset combo box event handler. Applies selected preset to underlying sensor.

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

◆ openMouseSettingsDialog

void JoySensorEditDialog::openMouseSettingsDialog ( )
privateslot

Opens sensor mouse settings dialog.

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

◆ setSensorDelay

void JoySensorEditDialog::setSensorDelay ( double  value)
privateslot

Sensor delay change event handler Converts the double value from the SpinBox to int and pass it to JoySensor.

Here is the caller graph for this function:

◆ updateSensorDelaySlider

void JoySensorEditDialog::updateSensorDelaySlider ( double  value)
privateslot

Update QSlider value based on value from QDoubleSpinBox.

Parameters
Valuefrom QDoubleSpinBox.
Here is the caller graph for this function:

◆ updateSensorDelaySpinBox

void JoySensorEditDialog::updateSensorDelaySpinBox ( int  value)
privateslot

Update QDoubleSpinBox value based on updated sensor delay value.

Parameters
Delayvalue obtained from JoySensor.
Here is the caller graph for this function:

◆ updateSensorStats

void JoySensorEditDialog::updateSensorStats ( float  x,
float  y,
float  z 
)
privateslot

Updates the numerical sensor values on the screen.

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

◆ updateWindowTitleSensorName

void JoySensorEditDialog::updateWindowTitleSensorName ( )
privateslot

Shows the sensor name in dialog title.

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

Field Documentation

◆ m_keypad_unlocked

bool JoySensorEditDialog::m_keypad_unlocked
private

◆ m_preset

JoySensorPreset JoySensorEditDialog::m_preset
private

◆ m_sensor

JoySensor* JoySensorEditDialog::m_sensor
private

◆ m_ui

Ui::JoySensorEditDialog* JoySensorEditDialog::m_ui
private

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