AntiMicroX
Loading...
Searching...
No Matches
joysensorstatusbox.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 <QSize>
20#include <QWidget>
21
22class JoySensor;
23class QPaintEvent;
24
32class JoySensorStatusBox : public QWidget
33{
35
36 public:
37 explicit JoySensorStatusBox(QWidget *parent = nullptr);
38
40 JoySensor *getSensor() const;
41
42 virtual QSize sizeHint() const override;
43
44 protected:
45 virtual void paintEvent(QPaintEvent *event) override;
47
48 private:
50};
Definition joydpadxml.h:27
The GUI sensor position indicator widget.
Definition joysensorstatusbox.h:33
JoySensor * getSensor() const
Get the visualized sensor object.
Definition joysensorstatusbox.cpp:69
JoySensor * m_sensor
Definition joysensorstatusbox.h:49
virtual QSize sizeHint() const override
Definition joysensorstatusbox.cpp:71
void drawArtificialHorizon()
draws the artificial horizon instrument on the screen
Definition joysensorstatusbox.cpp:85
virtual void paintEvent(QPaintEvent *event) override
Definition joysensorstatusbox.cpp:73
void setSensor(JoySensor *sensor)
Sets the to be visualized sensor.
Definition joysensorstatusbox.cpp:47
Represents one sensor in a SetJoystick and its connections to other parts of the application....
Definition joysensor.h:40