AntiMicroX
Loading...
Searching...
No Matches
stickpushbuttongroup.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 STICKPUSHBUTTONGROUP_H
20#define STICKPUSHBUTTONGROUP_H
21
23
24#include <QGridLayout>
25
26class JoyControlStick;
27class QWidget;
30
31class StickPushButtonGroup : public QGridLayout
32{
34
35 public:
37 QWidget *parent = nullptr);
39
40 bool ifDisplayNames() const;
41
46
51
53
54 protected:
55 void generateButtons();
56
57 signals:
59
60 public slots:
61 void changeButtonLayout();
62 void toggleNameDisplay();
63
64 private slots:
67 void showStickDialog();
68
69 private:
73
78
83
85
88 int gridCol);
89};
90
91#endif // STICKPUSHBUTTONGROUP_H
Definition joycontrolstickbuttonpushbutton.h:28
Definition joycontrolstickpushbutton.h:28
Represents stick of a joystick.
Definition joycontrolstick.h:38
Definition joydpadxml.h:27
JoyStickDirections
Definition joycontrolstickdirectionstype.h:26
Definition stickpushbuttongroup.h:32
JoyControlStickButtonPushButton * generateBtnToGrid(JoyControlStickButtonPushButton *pushbutton, JoyControlStick *stick, JoyStickDirectionsType::JoyStickDirections stickValue, int gridRow, int gridCol)
Definition stickpushbuttongroup.cpp:70
void openStickButtonDialog(JoyControlStickButtonPushButton *pushbutton)
Definition stickpushbuttongroup.cpp:122
JoyControlStickPushButton * stickWidget
Definition stickpushbuttongroup.h:84
JoyControlStickButtonPushButton * upButton
Definition stickpushbuttongroup.h:74
void showStickDialog()
Definition stickpushbuttongroup.cpp:129
JoyControlStickButtonPushButton * getDownLeftButton() const
Definition stickpushbuttongroup.cpp:166
void propogateSlotsChanged()
Definition stickpushbuttongroup.cpp:118
bool displayNames
Definition stickpushbuttongroup.h:71
JoyControlStickButtonPushButton * downButton
Definition stickpushbuttongroup.h:75
JoyControlStick * getStick() const
Definition stickpushbuttongroup.cpp:120
JoyControlStickButtonPushButton * getUpLeftButton() const
Definition stickpushbuttongroup.cpp:162
JoyControlStickButtonPushButton * getDownButton() const
Definition stickpushbuttongroup.cpp:156
void changeButtonLayout()
Definition stickpushbuttongroup.cpp:86
JoyControlStickPushButton * getStickWidget() const
Definition stickpushbuttongroup.cpp:170
JoyControlStickButtonPushButton * upRightButton
Definition stickpushbuttongroup.h:80
void toggleNameDisplay()
Definition stickpushbuttongroup.cpp:135
bool ifDisplayNames() const
Definition stickpushbuttongroup.cpp:152
JoyControlStickButtonPushButton * getUpRightButton() const
Definition stickpushbuttongroup.cpp:164
JoyControlStickButtonPushButton * upLeftButton
Definition stickpushbuttongroup.h:79
JoyControlStickButtonPushButton * leftButton
Definition stickpushbuttongroup.h:76
JoyControlStickButtonPushButton * getDownRightButton() const
Definition stickpushbuttongroup.cpp:168
bool keypadUnlocked
Definition stickpushbuttongroup.h:72
JoyControlStickButtonPushButton * getUpButton() const
Definition stickpushbuttongroup.cpp:154
JoyControlStickButtonPushButton * downRightButton
Definition stickpushbuttongroup.h:82
JoyControlStickButtonPushButton * downLeftButton
Definition stickpushbuttongroup.h:81
void generateButtons()
Definition stickpushbuttongroup.cpp:46
JoyControlStickButtonPushButton * rightButton
Definition stickpushbuttongroup.h:77
JoyControlStickButtonPushButton * getRightButton() const
Definition stickpushbuttongroup.cpp:160
JoyControlStick * stick
Definition stickpushbuttongroup.h:70
JoyControlStickButtonPushButton * getLeftButton() const
Definition stickpushbuttongroup.cpp:158