AntiMicroX
Loading...
Searching...
No Matches
src
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
22
#include "
uihelpers/joyaxiscontextmenuhelper.h
"
23
24
#include <QMenu>
25
26
class
JoyAxis
;
27
class
QWidget;
28
29
class
JoyAxisContextMenu
:
public
QMenu
30
{
31
Q_OBJECT
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
();
41
int
getTriggerPresetIndex
();
42
43
private
slots
:
44
void
setAxisPreset
(
QAction
*
action
);
45
void
setTriggerPreset
(
QAction
*
action
);
46
void
openMouseSettingsDialog
();
47
48
private
:
49
JoyAxisContextMenuHelper
&
getHelperLocal
();
50
51
JoyAxis
*
axis
;
52
JoyAxisContextMenuHelper
helper
;
53
};
54
55
#endif
// JOYAXISCONTEXTMENU_H
JoyAxisContextMenuHelper
Definition
joyaxiscontextmenuhelper.h:27
JoyAxisContextMenu
Definition
joyaxiscontextmenu.h:30
JoyAxisContextMenu::openMouseSettingsDialog
void openMouseSettingsDialog()
Definition
joyaxiscontextmenu.cpp:362
JoyAxisContextMenu::buildMenu
void buildMenu()
Definition
joyaxiscontextmenu.cpp:41
JoyAxisContextMenu::axis
JoyAxis * axis
Definition
joyaxiscontextmenu.h:51
JoyAxisContextMenu::helper
JoyAxisContextMenuHelper helper
Definition
joyaxiscontextmenu.h:52
JoyAxisContextMenu::getHelperLocal
JoyAxisContextMenuHelper & getHelperLocal()
Definition
joyaxiscontextmenu.cpp:473
JoyAxisContextMenu::setAxisPreset
void setAxisPreset(QAction *action)
Definition
joyaxiscontextmenu.cpp:267
JoyAxisContextMenu::buildAxisMenu
void buildAxisMenu()
Definition
joyaxiscontextmenu.cpp:61
JoyAxisContextMenu::setTriggerPreset
void setTriggerPreset(QAction *action)
Definition
joyaxiscontextmenu.cpp:441
JoyAxisContextMenu::getPresetIndex
int getPresetIndex()
Definition
joyaxiscontextmenu.cpp:183
JoyAxisContextMenu::buildTriggerMenu
void buildTriggerMenu()
Definition
joyaxiscontextmenu.cpp:368
JoyAxisContextMenu::getTriggerPresetIndex
int getTriggerPresetIndex()
Definition
joyaxiscontextmenu.cpp:410
JoyAxis
Represents single axis of of joystick (or other input)
Definition
joyaxis.h:41
JoyDPadXml
Definition
joydpadxml.h:27
joyaxiscontextmenuhelper.h
Generated by
1.9.8