AntiMicroX
setnamesdialog.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 SETNAMESDIALOG_H
20 #define SETNAMESDIALOG_H
21 
22 #include <QDialog>
23 
24 class InputDevice;
25 class QWidget;
26 
27 namespace Ui {
28 class SetNamesDialog;
29 }
30 
31 class SetNamesDialog : public QDialog
32 {
33  Q_OBJECT
34 
35  public:
36  explicit SetNamesDialog(InputDevice *device, QWidget *parent = nullptr);
38 
39  InputDevice *getDevice() const;
40 
41  private:
42  Ui::SetNamesDialog *ui;
43 
45 
46  private slots:
47  void saveSetNameChanges();
48 };
49 
50 #endif // SETNAMESDIALOG_H
SetNamesDialog::~SetNamesDialog
~SetNamesDialog()
Definition: setnamesdialog.cpp:48
SetJoystick::getName
QString getName() const
Definition: setjoystick.cpp:948
globalvariables.h
InputDevice
Abstract class representing a hardware input device, e.g a joystick or controller.
Definition: inputdevice.h:50
SetNamesDialog::saveSetNameChanges
void saveSetNameChanges()
Definition: setnamesdialog.cpp:50
InputDevice::getSetJoystick
SetJoystick * getSetJoystick(int index)
Definition: inputdevice.cpp:581
SetNamesDialog::getDevice
InputDevice * getDevice() const
Definition: setnamesdialog.cpp:64
SetNamesDialog::device
InputDevice * device
Definition: setnamesdialog.h:44
Ui
Definition: aboutdialog.h:26
SetNamesDialog::SetNamesDialog
SetNamesDialog(InputDevice *device, QWidget *parent=nullptr)
Definition: setnamesdialog.cpp:29
setnamesdialog.h
inputdevice.h
SetNamesDialog::ui
Ui::SetNamesDialog * ui
Definition: setnamesdialog.h:42
InputDevice::getJoystick_sets
QMap< int, SetJoystick * > & getJoystick_sets()
Definition: inputdevice.cpp:1715
SetJoystick::setName
void setName(QString name)
Definition: setjoystick.cpp:933
SetNamesDialog
Definition: setnamesdialog.h:31