AntiMicroX
Loading...
Searching...
No Matches
dpadeditdialog.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 DPADEDITDIALOG_H
20#define DPADEDITDIALOG_H
21
23
24#include <QDialog>
25
26class JoyDPad;
27class QWidget;
28
29namespace Ui {
30class DPadEditDialog;
31}
32
33class DPadEditDialog : public QDialog
34{
36
37 public:
38 explicit DPadEditDialog(JoyDPad *dpad, QWidget *parent = nullptr);
40
41 JoyDPad *getDPad() const;
43
44 protected:
46
47 private slots:
48 void implementPresets(int index);
49 void implementModes(int index);
53 void updateDPadDelaySpinBox(int value);
54 void updateDPadDelaySlider(double value);
55
56 private:
57 Ui::DPadEditDialog *ui;
59
62};
63
64#endif // DPADEDITDIALOG_H
Definition dpadeditdialoghelper.h:27
Definition dpadeditdialog.h:34
void implementPresets(int index)
Definition dpadeditdialog.cpp:96
void updateWindowTitleDPadName()
Definition dpadeditdialog.cpp:452
void selectCurrentPreset()
Definition dpadeditdialog.cpp:315
DPadEditDialogHelper helper
Definition dpadeditdialog.h:61
~DPadEditDialog()
Definition dpadeditdialog.cpp:94
JoyDPad * dpad
Definition dpadeditdialog.h:60
Ui::DPadEditDialog * ui
Definition dpadeditdialog.h:57
void updateDPadDelaySlider(double value)
Update QSlider value based on value from QDoubleSpinBox.
Definition dpadeditdialog.cpp:442
void openMouseSettingsDialog()
Definition dpadeditdialog.cpp:416
void enableMouseSettingButton()
Definition dpadeditdialog.cpp:426
DPadEditDialogHelper const & getHelper()
Definition dpadeditdialog.cpp:480
JoyDPad * getDPad() const
Definition dpadeditdialog.cpp:478
void implementModes(int index)
Definition dpadeditdialog.cpp:287
void updateDPadDelaySpinBox(int value)
Update QDoubleSpinBox value based on updated dpad delay value.
Definition dpadeditdialog.cpp:432
DPadEditDialogHelper & getHelperLocal()
Definition dpadeditdialog.cpp:482
Definition joydpadxml.h:27
Definition joydpad.h:25
Definition aboutdialog.h:26