AntiMicroX
Loading...
Searching...
No Matches
joyaxiscontextmenu.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 JOYAXISCONTEXTMENU_H
20#define JOYAXISCONTEXTMENU_H
21
23
24#include <QMenu>
25
26class JoyAxis;
27class QWidget;
28
29class JoyAxisContextMenu : public QMenu
30{
32
33 public:
34 explicit JoyAxisContextMenu(JoyAxis *axis, QWidget *parent = nullptr);
35 void buildMenu();
36 void buildAxisMenu();
37 void buildTriggerMenu();
38
39 protected:
40 int getPresetIndex();
42
43 private slots:
47
48 private:
50
53};
54
55#endif // JOYAXISCONTEXTMENU_H
Definition joyaxiscontextmenuhelper.h:27
Definition joyaxiscontextmenu.h:30
void openMouseSettingsDialog()
Definition joyaxiscontextmenu.cpp:362
void buildMenu()
Definition joyaxiscontextmenu.cpp:41
JoyAxis * axis
Definition joyaxiscontextmenu.h:51
JoyAxisContextMenuHelper helper
Definition joyaxiscontextmenu.h:52
JoyAxisContextMenuHelper & getHelperLocal()
Definition joyaxiscontextmenu.cpp:473
void setAxisPreset(QAction *action)
Definition joyaxiscontextmenu.cpp:267
void buildAxisMenu()
Definition joyaxiscontextmenu.cpp:61
void setTriggerPreset(QAction *action)
Definition joyaxiscontextmenu.cpp:441
int getPresetIndex()
Definition joyaxiscontextmenu.cpp:183
void buildTriggerMenu()
Definition joyaxiscontextmenu.cpp:368
int getTriggerPresetIndex()
Definition joyaxiscontextmenu.cpp:410
Represents single axis of of joystick (or other input)
Definition joyaxis.h:41
Definition joydpadxml.h:27