AntiMicroX
Loading...
Searching...
No Matches
joysensoreditdialog.h
Go to the documentation of this file.
1/* antimicrox Gamepad to KB+M event mapper
2 * Copyright (C) 2022 Max Maisel <max.maisel@posteo.de>
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include "joysensorpreset.h"
20
21#include <QDialog>
22
23class JoySensor;
24class QWidget;
25
26namespace Ui {
28}
29
33class JoySensorEditDialog : public QDialog
34{
36
37 public:
38 explicit JoySensorEditDialog(JoySensor *sensor, QWidget *parent = nullptr);
40
41 private:
42 Ui::JoySensorEditDialog *m_ui;
44
47
48 private slots:
49 void implementPresets(int index);
50
53 void updateSensorStats(float x, float y, float z);
55 void updateSensorDelaySpinBox(int value);
56 void updateSensorDelaySlider(double value);
57 void setSensorDelay(double value);
58};
Definition joydpadxml.h:27
The configuration dialog for a JoySensor itself.
Definition joysensoreditdialog.h:34
Ui::JoySensorEditDialog * m_ui
Definition joysensoreditdialog.h:42
~JoySensorEditDialog()
Definition joysensoreditdialog.cpp:157
void openMouseSettingsDialog()
Opens sensor mouse settings dialog.
Definition joysensoreditdialog.cpp:180
void enableMouseSettingButton()
Definition joysensoreditdialog.cpp:190
JoySensorPreset m_preset
Definition joysensoreditdialog.h:46
void updateSensorDelaySlider(double value)
Update QSlider value based on value from QDoubleSpinBox.
Definition joysensoreditdialog.cpp:259
void updateSensorDelaySpinBox(int value)
Update QDoubleSpinBox value based on updated sensor delay value.
Definition joysensoreditdialog.cpp:249
bool m_keypad_unlocked
Definition joysensoreditdialog.h:43
void updateSensorStats(float x, float y, float z)
Updates the numerical sensor values on the screen.
Definition joysensoreditdialog.cpp:195
void updateWindowTitleSensorName()
Shows the sensor name in dialog title.
Definition joysensoreditdialog.cpp:219
JoySensor * m_sensor
Definition joysensoreditdialog.h:45
void implementPresets(int index)
Preset combo box event handler. Applies selected preset to underlying sensor.
Definition joysensoreditdialog.cpp:162
void setSensorDelay(double value)
Sensor delay change event handler Converts the double value from the SpinBox to int and pass it to Jo...
Definition joysensoreditdialog.cpp:271
Defines presets for a sensor.
Definition joysensorpreset.h:25
Represents one sensor in a SetJoystick and its connections to other parts of the application....
Definition joysensor.h:40
Definition aboutdialog.h:26