AntiMicroX
Loading...
Searching...
No Matches
axiseditdialog.h
Go to the documentation of this file.
1/* antimicrox Gamepad to KB+M event mapper
2 * Copyright (C) 2015 Travis Nickles <nickles.travis@gmail.com>
3 * Copyright (C) 2020 Jagoda Górska <juliagoda.pl@protonmail>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef AXISEDITDIALOG_H
20#define AXISEDITDIALOG_H
21
22#include <QDialog>
23
24class JoyAxis;
26class QWidget;
27
28namespace Ui {
29class AxisEditDialog;
30}
31
32class AxisEditDialog : public QDialog
33{
35
36 public:
37 explicit AxisEditDialog(JoyAxis *axis, bool keypadUnlocked, QWidget *parent = 0);
38 AxisEditDialog(QWidget *parent = 0);
40
41 protected:
45
49
50 private:
62 Ui::AxisEditDialog *ui;
63
68
69 private slots:
70 void implementAxisPresets(int index);
71 void implementTriggerPresets(int index);
72 void implementPresets(int index);
73 void presetForThrottleChange(int index);
74 void implementHapticTrigger(int index);
75
76 void updateDeadZoneBox(int value);
77 void updateMaxZoneBox(int value);
78 void updateThrottleUi(int index);
79 void updateJoyValue(int value);
80 void updateDeadZoneSlider(int value);
81 void updateMaxZoneSlider(int value);
84
87 void refreshPreset();
88
89 void checkFinalSettings();
93};
94
95#endif // AXISEDITDIALOG_H
Definition axiseditdialog.h:33
void refreshPreset()
Definition axiseditdialog.cpp:581
void implementHapticTrigger(int index)
Converts the haptic trigger combo box index to a HapticTriggerMode and applies it to the current axis...
Definition axiseditdialog.cpp:701
void updateDeadZoneSlider(int value)
Definition axiseditdialog.cpp:350
~AxisEditDialog()
Definition axiseditdialog.cpp:180
void updateWindowTitleAxisName()
Definition axiseditdialog.cpp:604
void selectAxisCurrentPreset()
Definition axiseditdialog.cpp:396
void updateThrottleUi(int index)
Definition axiseditdialog.cpp:321
JoyAxis * m_axis
Definition axiseditdialog.h:64
void buildHapticTriggerMenu()
Definition axiseditdialog.cpp:657
void openAdvancedNDialog()
Definition axiseditdialog.cpp:376
void openMouseSettingsDialog()
Definition axiseditdialog.cpp:592
void refreshPButtonLabel()
Definition axiseditdialog.cpp:388
void checkFinalSettings()
Definition axiseditdialog.cpp:390
void implementPresets(int index)
Definition axiseditdialog.cpp:182
bool keypadUnlocked
Definition axiseditdialog.h:65
void refreshNButtonLabel()
Definition axiseditdialog.cpp:386
void implementAxisPresets(int index)
Definition axiseditdialog.cpp:199
void buildAxisPresetsMenu()
Definition axiseditdialog.cpp:631
Ui::AxisEditDialog * ui
Definition axiseditdialog.h:62
void openAdvancedPDialog()
Definition axiseditdialog.cpp:366
void updateMaxZoneBox(int value)
Definition axiseditdialog.cpp:319
void updateMaxZoneSlider(int value)
Definition axiseditdialog.cpp:358
void enableMouseSettingButton()
Definition axiseditdialog.cpp:602
void updateJoyValue(int value)
Definition axiseditdialog.cpp:348
void implementTriggerPresets(int index)
Definition axiseditdialog.cpp:537
void updateDeadZoneBox(int value)
Definition axiseditdialog.cpp:317
void buildTriggerPresetsMenu()
Definition axiseditdialog.cpp:648
void presetForThrottleChange(int index)
Definition axiseditdialog.cpp:667
HapticTriggerIndex
Haptic trigger combo box indices.
Definition axiseditdialog.h:55
@ HAPTIC_TRIGGER_RIGID_INDEX
Definition axiseditdialog.h:58
@ HAPTIC_TRIGGER_NONE_INDEX
Definition axiseditdialog.h:56
@ HAPTIC_TRIGGER_VIBRATION_INDEX
Definition axiseditdialog.h:60
@ HAPTIC_TRIGGER_RIGID_GRADIENT_INDEX
Definition axiseditdialog.h:59
@ HAPTIC_TRIGGER_CLICK_INDEX
Definition axiseditdialog.h:57
int initialThrottleState
Definition axiseditdialog.h:67
void selectTriggerPreset()
Definition axiseditdialog.cpp:480
SetAxisThrottleDialog * setAxisThrottleConfirm
Definition axiseditdialog.h:66
void selectHapticTrigger()
Converts HapticTriggerMode from the current axis to combo box index and selects to element.
Definition axiseditdialog.cpp:513
Represents single axis of of joystick (or other input)
Definition joyaxis.h:41
Definition joydpadxml.h:27
Definition setaxisthrottledialog.h:32
Definition aboutdialog.h:26