AntiMicroX
Loading...
Searching...
No Matches
joycontrolstickeditdialog.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 JOYCONTROLSTICKEDITDIALOG_H
20#define JOYCONTROLSTICKEDITDIALOG_H
21
23
24#include <QDialog>
25
26class JoyControlStick;
27class QWidget;
28
29namespace Ui {
31}
32
33class JoyControlStickEditDialog : public QDialog
34{
36
37 public:
38 explicit JoyControlStickEditDialog(JoyControlStick *stick, bool keypadUnlocked, QWidget *parent = nullptr);
39 // JoyControlStickEditDialog(QWidget *parent = nullptr);
41
42 protected:
44
45 private:
46 Ui::JoyControlStickEditDialog *ui;
49
52
53 private slots:
54 void implementPresets(int index);
55 void implementModes(int index);
56
57 void refreshStickStats(int x, int y);
58 void updateMouseMode(int index);
59
60 void checkMaxZone(int value);
64 void changeCircleAdjust(int value);
65 void updateStickDelaySpinBox(int value);
66 void updateStickDelaySlider(double value);
69};
70
71#endif // JOYCONTROLSTICKEDITDIALOG_H
Some helper methods which run in the IO thread and are called from the GUI thread.
Definition joycontrolstickeditdialoghelper.h:31
Definition joycontrolstickeditdialog.h:34
Ui::JoyControlStickEditDialog * ui
Definition joycontrolstickeditdialog.h:46
JoyControlStick * stick
Definition joycontrolstickeditdialog.h:50
JoyControlStickEditDialogHelper & getHelperLocal()
Definition joycontrolstickeditdialog.cpp:666
void selectCurrentPreset()
Definition joycontrolstickeditdialog.cpp:471
void implementPresets(int index)
Definition joycontrolstickeditdialog.cpp:196
void enableMouseSettingButton()
Definition joycontrolstickeditdialog.cpp:594
void updateMouseMode(int index)
Definition joycontrolstickeditdialog.cpp:569
bool keypadUnlocked
Definition joycontrolstickeditdialog.h:47
void openModifierEditDialog()
Definition joycontrolstickeditdialog.cpp:654
~JoyControlStickEditDialog()
Definition joycontrolstickeditdialog.cpp:194
void refreshStickStats(int x, int y)
Definition joycontrolstickeditdialog.cpp:392
void openMouseSettingsDialog()
Definition joycontrolstickeditdialog.cpp:584
void changeModifierSummary()
Definition joycontrolstickeditdialog.cpp:661
void changeCircleAdjust(int value)
Definition joycontrolstickeditdialog.cpp:625
void updateStickDelaySpinBox(int value)
Update QDoubleSpinBox value based on updated stick delay value.
Definition joycontrolstickeditdialog.cpp:634
void checkMaxZone(int value)
Definition joycontrolstickeditdialog.cpp:422
void implementModes(int index)
Definition joycontrolstickeditdialog.cpp:430
void updateWindowTitleStickName()
Definition joycontrolstickeditdialog.cpp:596
JoyControlStickEditDialogHelper helper
Definition joycontrolstickeditdialog.h:51
void updateStickDelaySlider(double value)
Update QSlider value based on value from QDoubleSpinBox.
Definition joycontrolstickeditdialog.cpp:644
Represents stick of a joystick.
Definition joycontrolstick.h:38
Definition joydpadxml.h:27
Definition aboutdialog.h:26