AntiMicroX
Loading...
Searching...
No Matches
sensorpushbuttongroup.h
Go to the documentation of this file.
1/* antimicrox Gamepad to KB+M event mapper
2 * Copyright (C) 2022 Max Maisel <max.maisel@posteo.de>
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include "joysensordirection.h"
20
21#include <QGridLayout>
22
23class JoySensor;
24class QWidget;
27
Definition joydpadxml.h:27
A direction button in the SensorPushButtonGroup.
Definition joysensorbuttonpushbutton.h:28
The central button in a SensorPushButtonGroup.
Definition joysensorpushbutton.h:28
Represents one sensor in a SetJoystick and its connections to other parts of the application....
Definition joysensor.h:40
The sensor button mapping widget in the main window. The layout is based on a isometric 3D view with ...
Definition sensorpushbuttongroup.h:34
bool m_keypad_unlocked
Definition sensorpushbuttongroup.h:58
void openSensorButtonDialog(JoySensorButtonPushButton *pushbutton)
Shows the button mapping dialog for the given direction button.
Definition sensorpushbuttongroup.cpp:87
JoySensor * getSensor() const
Get the underlying JoySensor object.
Definition sensorpushbuttongroup.cpp:82
JoySensorButtonPushButton * m_fwd_button
Definition sensorpushbuttongroup.h:64
JoySensorPushButton * m_sensor_widget
Definition sensorpushbuttongroup.h:67
void propagateSlotsChanged()
Definition sensorpushbuttongroup.cpp:77
JoySensorButtonPushButton * m_up_button
Definition sensorpushbuttongroup.h:60
void showSensorDialog()
Shows the sensor settings dialog.
Definition sensorpushbuttongroup.cpp:97
bool ifDisplayNames() const
Definition sensorpushbuttongroup.cpp:118
bool m_display_names
Definition sensorpushbuttongroup.h:57
JoySensorButtonPushButton * m_right_button
Definition sensorpushbuttongroup.h:63
void toggleNameDisplay()
Definition sensorpushbuttongroup.cpp:103
JoySensor * m_sensor
Definition sensorpushbuttongroup.h:56
JoySensorButtonPushButton * generateBtnToGrid(JoySensorDirection sensorDir, int gridRow, int gridCol)
Generates a new push button at the given grid coordinates.
Definition sensorpushbuttongroup.cpp:62
JoySensorButtonPushButton * m_bwd_button
Definition sensorpushbuttongroup.h:65
JoySensorButtonPushButton * m_left_button
Definition sensorpushbuttongroup.h:62
JoySensorButtonPushButton * m_down_button
Definition sensorpushbuttongroup.h:61
JoySensorDirection
A bitfield style enum which encodes all possible three dimensional sensor directions....
Definition joysensordirection.h:28