Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
5e0c5f4c
Commit
5e0c5f4c
authored
Nov 01, 2012
by
Bryant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced joystick buttons UI with QLabels.
Added an 11th button display.
parent
8d0f9620
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
393 additions
and
296 deletions
+393
-296
JoystickWidget.cc
src/ui/JoystickWidget.cc
+28
-23
JoystickWidget.ui
src/ui/JoystickWidget.ui
+365
-273
No files found.
src/ui/JoystickWidget.cc
View file @
5e0c5f4c
...
...
@@ -7,6 +7,7 @@ JoystickWidget::JoystickWidget(JoystickInput* joystick, QWidget *parent) :
m_ui
(
new
Ui
::
JoystickWidget
)
{
m_ui
->
setupUi
(
this
);
clearKeys
();
this
->
joystick
=
joystick
;
m_ui
->
rollMapSpinBox
->
setValue
(
joystick
->
getMappingXAxis
());
...
...
@@ -87,55 +88,59 @@ void JoystickWidget::clearKeys()
{
QString
colorstyle
;
QColor
buttonStyleColor
=
QColor
(
200
,
20
,
20
);
colorstyle
=
QString
(
"QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: %1;}"
).
arg
(
buttonStyleColor
.
name
());
m_ui
->
buttonLabel0
->
setStyleSheet
(
colorstyle
);
m_ui
->
buttonLabel1
->
setStyleSheet
(
colorstyle
);
m_ui
->
buttonLabel2
->
setStyleSheet
(
colorstyle
);
m_ui
->
buttonLabel3
->
setStyleSheet
(
colorstyle
);
m_ui
->
buttonLabel4
->
setStyleSheet
(
colorstyle
);
m_ui
->
buttonLabel5
->
setStyleSheet
(
colorstyle
);
m_ui
->
buttonLabel6
->
setStyleSheet
(
colorstyle
);
m_ui
->
buttonLabel7
->
setStyleSheet
(
colorstyle
);
m_ui
->
buttonLabel8
->
setStyleSheet
(
colorstyle
);
m_ui
->
buttonLabel9
->
setStyleSheet
(
colorstyle
);
colorstyle
=
QString
(
"QLabel { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: %1;}"
).
arg
(
buttonStyleColor
.
name
());
m_ui
->
button0
->
setStyleSheet
(
colorstyle
);
m_ui
->
button1
->
setStyleSheet
(
colorstyle
);
m_ui
->
button2
->
setStyleSheet
(
colorstyle
);
m_ui
->
button3
->
setStyleSheet
(
colorstyle
);
m_ui
->
button4
->
setStyleSheet
(
colorstyle
);
m_ui
->
button5
->
setStyleSheet
(
colorstyle
);
m_ui
->
button6
->
setStyleSheet
(
colorstyle
);
m_ui
->
button7
->
setStyleSheet
(
colorstyle
);
m_ui
->
button8
->
setStyleSheet
(
colorstyle
);
m_ui
->
button9
->
setStyleSheet
(
colorstyle
);
m_ui
->
button10
->
setStyleSheet
(
colorstyle
);
}
void
JoystickWidget
::
pressKey
(
int
key
)
{
QString
colorstyle
;
QColor
buttonStyleColor
=
QColor
(
20
,
200
,
20
);
colorstyle
=
QString
(
"Q
GroupBox
{ border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: %1;}"
).
arg
(
buttonStyleColor
.
name
());
colorstyle
=
QString
(
"Q
Label
{ border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: %1;}"
).
arg
(
buttonStyleColor
.
name
());
switch
(
key
)
{
case
0
:
m_ui
->
button
Label
0
->
setStyleSheet
(
colorstyle
);
m_ui
->
button0
->
setStyleSheet
(
colorstyle
);
break
;
case
1
:
m_ui
->
button
Label
1
->
setStyleSheet
(
colorstyle
);
m_ui
->
button1
->
setStyleSheet
(
colorstyle
);
break
;
case
2
:
m_ui
->
button
Label
2
->
setStyleSheet
(
colorstyle
);
m_ui
->
button2
->
setStyleSheet
(
colorstyle
);
break
;
case
3
:
m_ui
->
button
Label
3
->
setStyleSheet
(
colorstyle
);
m_ui
->
button3
->
setStyleSheet
(
colorstyle
);
break
;
case
4
:
m_ui
->
button
Label
4
->
setStyleSheet
(
colorstyle
);
m_ui
->
button4
->
setStyleSheet
(
colorstyle
);
break
;
case
5
:
m_ui
->
button
Label
5
->
setStyleSheet
(
colorstyle
);
m_ui
->
button5
->
setStyleSheet
(
colorstyle
);
break
;
case
6
:
m_ui
->
button
Label
6
->
setStyleSheet
(
colorstyle
);
m_ui
->
button6
->
setStyleSheet
(
colorstyle
);
break
;
case
7
:
m_ui
->
button
Label
7
->
setStyleSheet
(
colorstyle
);
m_ui
->
button7
->
setStyleSheet
(
colorstyle
);
break
;
case
8
:
m_ui
->
button
Label
8
->
setStyleSheet
(
colorstyle
);
m_ui
->
button8
->
setStyleSheet
(
colorstyle
);
break
;
case
9
:
m_ui
->
buttonLabel9
->
setStyleSheet
(
colorstyle
);
m_ui
->
button9
->
setStyleSheet
(
colorstyle
);
break
;
case
10
:
m_ui
->
button10
->
setStyleSheet
(
colorstyle
);
break
;
}
QTimer
::
singleShot
(
20
,
this
,
SLOT
(
clearKeys
()));
...
...
src/ui/JoystickWidget.ui
View file @
5e0c5f4c
...
...
@@ -6,8 +6,8 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
654
</width>
<height>
376
</height>
<width>
497
</width>
<height>
448
</height>
</rect>
</property>
<property
name=
"minimumSize"
>
...
...
@@ -19,416 +19,314 @@
<property
name=
"windowTitle"
>
<string>
Dialog
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_2"
columnstretch=
"10,
10,1,5
"
>
<layout
class=
"QGridLayout"
name=
"gridLayout_2"
columnstretch=
"10,
0,0,0,10
"
>
<property
name=
"margin"
>
<number>
8
</number>
</property>
<property
name=
"spacing"
>
<number>
8
</number>
</property>
<item
row=
"1"
column=
"1"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"statusLabel"
>
<property
name=
"text"
>
<string>
No joystick detecte yet.. waiting
</string>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QGroupBox"
name=
"groupBox"
>
<property
name=
"minimumSize"
>
<size>
<width>
0
</width>
<height>
0
</height>
</size>
</property>
</widget>
</item>
<item
row=
"0"
column=
"2"
>
<widget
class=
"QGroupBox"
name=
"groupBox_3"
>
<property
name=
"maximumSize"
>
<size>
<width>
6
0
</width>
<height>
16777215
</height>
<width>
4
0
</width>
<height>
400
</height>
</size>
</property>
<property
name=
"title"
>
<string>
Throttle
</string>
<string>
Buttons
</string>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_2"
>
<property
name=
"alignment"
>
<set>
Qt::AlignCenter
</set>
</property>
<property
name=
"flat"
>
<bool>
false
</bool>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout"
>
<property
name=
"spacing"
>
<number>
0
</number>
<number>
1
</number>
</property>
<property
name=
"margin"
>
<number>
2
</number>
<number>
3
</number>
</property>
<item>
<widget
class=
"QProgressBar"
name=
"thrust"
>
<property
name=
"minimumSize"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
</property>
<property
name=
"value"
>
<number>
0
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QGroupBox"
name=
"groupBox_2"
>
<property
name=
"title"
>
<string>
Stick
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<property
name=
"margin"
>
<number>
6
</number>
</property>
<item
row=
"4"
column=
"2"
colspan=
"3"
>
<widget
class=
"QSlider"
name=
"ySlider"
>
<property
name=
"minimum"
>
<number>
-100
</number>
</property>
<property
name=
"maximum"
>
<number>
100
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
</widget>
</item>
<item
row=
"4"
column=
"5"
>
<widget
class=
"QLCDNumber"
name=
"yValue"
>
<property
name=
"maximumSize"
>
<size>
<width>
40
</width>
<height>
24
</height>
</size>
</property>
<property
name=
"frameShadow"
>
<enum>
QFrame::Plain
</enum>
</property>
<property
name=
"smallDecimalPoint"
>
<widget
class=
"QLabel"
name=
"button0"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
</property>
<property
name=
"
numDigits
"
>
<
number>
3
</number
>
</property
>
<property
name=
"segmentStyle"
>
<
enum>
QLCDNumber::Flat
</enum
>
<property
name=
"
sizePolicy
"
>
<
sizepolicy
hsizetype=
"Minimum"
vsizetype=
"Minimum"
>
<horstretch>
0
</horstretch
>
<verstretch>
0
</verstretch
>
<
/sizepolicy
>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
rowspan=
"3"
colspan=
"5"
>
<widget
class=
"QDial"
name=
"dial"
>
<property
name=
"minimum"
>
<number>
-100
</number>
</property>
<property
name=
"maximum"
>
<number>
100
</number>
</property>
</widget>
</item>
<item
row=
"4"
column=
"1"
>
<widget
class=
"QLabel"
name=
"label_2"
>
<property
name=
"text"
>
<string>
Y
</string>
<string>
0
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
</set>
</property>
</widget>
</item>
<item
row=
"4"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label"
>
<property
name=
"text"
>
<string>
X
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLCDNumber"
name=
"xValue"
>
<property
name=
"minimumSize"
>
<size>
<width>
0
</width>
<height>
0
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
40
</width>
<height>
24
</height>
</size>
</property>
<property
name=
"frameShadow"
>
<enum>
QFrame::Plain
</enum>
</property>
<property
name=
"smallDecimalPoint"
>
<bool>
true
</bool>
</property>
<property
name=
"numDigits"
>
<number>
3
</number>
</property>
<property
name=
"segmentStyle"
>
<enum>
QLCDNumber::Flat
</enum>
<set>
Qt::AlignCenter
</set>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
rowspan=
"2"
>
<widget
class=
"QSlider"
name=
"xSlider"
>
<property
name=
"minimum"
>
<number>
-100
</number>
</property>
<property
name=
"maximum"
>
<number>
100
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"0"
column=
"0"
rowspan=
"3"
>
<widget
class=
"QGroupBox"
name=
"groupBox"
>
<property
name=
"maximumSize"
>
<size>
<width>
40
</width>
<height>
16777215
</height>
</size>
</property>
<property
name=
"title"
>
<string>
Buttons
</string>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout"
>
<property
name=
"margin"
>
<number>
2
</number>
</property>
<item>
<widget
class=
"Q
GroupBox"
name=
"buttonLabel0
"
>
<property
name=
"
autoFillBackgroun
d"
>
<bool>
fals
e
</bool>
<widget
class=
"Q
Label"
name=
"button1
"
>
<property
name=
"
enable
d"
>
<bool>
tru
e
</bool>
</property>
<property
name=
"styleSheet"
>
<string>
QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}
</string>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Minimum"
vsizetype=
"Minimum"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"t
itle
"
>
<string
/
>
<property
name=
"t
ext
"
>
<string
>
1
</string
>
</property>
<property
name=
"
fla
t"
>
<
bool>
false
</bool
>
<property
name=
"
alignmen
t"
>
<
set>
Qt::AlignCenter
</set
>
</property>
</widget>
</item>
<item>
<widget
class=
"Q
GroupBox"
name=
"buttonLabel1
"
>
<property
name=
"
autoFillBackgroun
d"
>
<bool>
fals
e
</bool>
<widget
class=
"Q
Label"
name=
"button2
"
>
<property
name=
"
enable
d"
>
<bool>
tru
e
</bool>
</property>
<property
name=
"styleSheet"
>
<string>
QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}
</string>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Minimum"
vsizetype=
"Minimum"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"t
itle
"
>
<string
/
>
<property
name=
"t
ext
"
>
<string
>
2
</string
>
</property>
<property
name=
"
fla
t"
>
<
bool>
false
</bool
>
<property
name=
"
alignmen
t"
>
<
set>
Qt::AlignCenter
</set
>
</property>
</widget>
</item>
<item>
<widget
class=
"Q
GroupBox"
name=
"buttonLabel2
"
>
<property
name=
"
autoFillBackgroun
d"
>
<bool>
fals
e
</bool>
<widget
class=
"Q
Label"
name=
"button3
"
>
<property
name=
"
enable
d"
>
<bool>
tru
e
</bool>
</property>
<property
name=
"styleSheet"
>
<string>
QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}
</string>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Minimum"
vsizetype=
"Minimum"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"t
itle
"
>
<string
/
>
<property
name=
"t
ext
"
>
<string
>
3
</string
>
</property>
<property
name=
"
fla
t"
>
<
bool>
false
</bool
>
<property
name=
"
alignmen
t"
>
<
set>
Qt::AlignCenter
</set
>
</property>
</widget>
</item>
<item>
<widget
class=
"Q
GroupBox"
name=
"buttonLabel3
"
>
<property
name=
"
autoFillBackgroun
d"
>
<bool>
fals
e
</bool>
<widget
class=
"Q
Label"
name=
"button4
"
>
<property
name=
"
enable
d"
>
<bool>
tru
e
</bool>
</property>
<property
name=
"styleSheet"
>
<string>
QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}
</string>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Minimum"
vsizetype=
"Minimum"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"t
itle
"
>
<string
/
>
<property
name=
"t
ext
"
>
<string
>
4
</string
>
</property>
<property
name=
"
fla
t"
>
<
bool>
false
</bool
>
<property
name=
"
alignmen
t"
>
<
set>
Qt::AlignCenter
</set
>
</property>
</widget>
</item>
<item>
<widget
class=
"Q
GroupBox"
name=
"buttonLabel4
"
>
<property
name=
"
autoFillBackgroun
d"
>
<bool>
fals
e
</bool>
<widget
class=
"Q
Label"
name=
"button5
"
>
<property
name=
"
enable
d"
>
<bool>
tru
e
</bool>
</property>
<property
name=
"styleSheet"
>
<string>
QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}
</string>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Minimum"
vsizetype=
"Minimum"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"t
itle
"
>
<string
/
>
<property
name=
"t
ext
"
>
<string
>
5
</string
>
</property>
<property
name=
"
fla
t"
>
<
bool>
false
</bool
>
<property
name=
"
alignmen
t"
>
<
set>
Qt::AlignCenter
</set
>
</property>
</widget>
</item>
<item>
<widget
class=
"Q
GroupBox"
name=
"buttonLabel5
"
>
<property
name=
"
autoFillBackgroun
d"
>
<bool>
fals
e
</bool>
<widget
class=
"Q
Label"
name=
"button6
"
>
<property
name=
"
enable
d"
>
<bool>
tru
e
</bool>
</property>
<property
name=
"styleSheet"
>
<string>
QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}
</string>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Minimum"
vsizetype=
"Minimum"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"t
itle
"
>
<string
/
>
<property
name=
"t
ext
"
>
<string
>
6
</string
>
</property>
<property
name=
"
fla
t"
>
<
bool>
false
</bool
>
<property
name=
"
alignmen
t"
>
<
set>
Qt::AlignCenter
</set
>
</property>
</widget>
</item>
<item>
<widget
class=
"Q
GroupBox"
name=
"buttonLabel6
"
>
<property
name=
"
autoFillBackgroun
d"
>
<bool>
fals
e
</bool>
<widget
class=
"Q
Label"
name=
"button7
"
>
<property
name=
"
enable
d"
>
<bool>
tru
e
</bool>
</property>
<property
name=
"styleSheet"
>
<string>
QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}
</string>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Minimum"
vsizetype=
"Minimum"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"t
itle
"
>
<string
/
>
<property
name=
"t
ext
"
>
<string
>
7
</string
>
</property>
<property
name=
"
fla
t"
>
<
bool>
false
</bool
>
<property
name=
"
alignmen
t"
>
<
set>
Qt::AlignCenter
</set
>
</property>
</widget>
</item>
<item>
<widget
class=
"Q
GroupBox"
name=
"buttonLabel7
"
>
<property
name=
"
autoFillBackgroun
d"
>
<bool>
fals
e
</bool>
<widget
class=
"Q
Label"
name=
"button8
"
>
<property
name=
"
enable
d"
>
<bool>
tru
e
</bool>
</property>
<property
name=
"styleSheet"
>
<string>
QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}
</string>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Minimum"
vsizetype=
"Minimum"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"t
itle
"
>
<string
/
>
<property
name=
"t
ext
"
>
<string
>
8
</string
>
</property>
<property
name=
"
fla
t"
>
<
bool>
false
</bool
>
<property
name=
"
alignmen
t"
>
<
set>
Qt::AlignCenter
</set
>
</property>
</widget>
</item>
<item>
<widget
class=
"Q
GroupBox"
name=
"buttonLabel8
"
>
<property
name=
"
autoFillBackgroun
d"
>
<bool>
fals
e
</bool>
<widget
class=
"Q
Label"
name=
"button9
"
>
<property
name=
"
enable
d"
>
<bool>
tru
e
</bool>
</property>
<property
name=
"styleSheet"
>
<string>
QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}
</string>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Minimum"
vsizetype=
"Minimum"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"t
itle
"
>
<string
/
>
<property
name=
"t
ext
"
>
<string
>
9
</string
>
</property>
<property
name=
"
fla
t"
>
<
bool>
false
</bool
>
<property
name=
"
alignmen
t"
>
<
set>
Qt::AlignCenter
</set
>
</property>
</widget>
</item>
<item>
<widget
class=
"Q
GroupBox"
name=
"buttonLabel9
"
>
<property
name=
"
autoFillBackgroun
d"
>
<bool>
fals
e
</bool>
<widget
class=
"Q
Label"
name=
"button10
"
>
<property
name=
"
enable
d"
>
<bool>
tru
e
</bool>
</property>
<property
name=
"styleSheet"
>
<string>
QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}
</string>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Minimum"
vsizetype=
"Minimum"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"t
itle
"
>
<string
/
>
<property
name=
"t
ext
"
>
<string
>
10
</string
>
</property>
<property
name=
"
fla
t"
>
<
bool>
false
</bool
>
<property
name=
"
alignmen
t"
>
<
set>
Qt::AlignCenter
</set
>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"1"
column=
"3"
>
<widget
class=
"QDialogButtonBox"
name=
"buttonBox"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"standardButtons"
>
<set>
QDialogButtonBox::Cancel|QDialogButtonBox::Ok
</set>
</property>
</widget>
</item>
<item
row=
"0"
column=
"3"
>
<item
row=
"1"
column=
"4"
>
<widget
class=
"QGroupBox"
name=
"groupBox_4"
>
<property
name=
"title"
>
<string>
Mappings
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_3"
columnstretch=
"30,10"
>
<item
row=
"3"
column=
"0"
>
<property
name=
"alignment"
>
<set>
Qt::AlignCenter
</set>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_3"
columnstretch=
"30,10,0"
>
<item
row=
"3"
column=
"1"
>
<widget
class=
"QLabel"
name=
"label_6"
>
<property
name=
"text"
>
<string>
Throttle
</string>
</property>
</widget>
</item>
<item
row=
"5"
column=
"
0
"
>
<item
row=
"5"
column=
"
1
"
>
<widget
class=
"QLabel"
name=
"label_8"
>
<property
name=
"text"
>
<string>
Stabilized Button
</string>
</property>
</widget>
</item>
<item
row=
"4"
column=
"
0
"
>
<item
row=
"4"
column=
"
1
"
>
<widget
class=
"QLabel"
name=
"label_7"
>
<property
name=
"text"
>
<string>
Auto Button
</string>
</property>
</widget>
</item>
<item
row=
"6"
column=
"
0
"
>
<item
row=
"6"
column=
"
1
"
>
<widget
class=
"QLabel"
name=
"label_9"
>
<property
name=
"text"
>
<string>
Manual Button
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"
0
"
>
<item
row=
"1"
column=
"
1
"
>
<widget
class=
"QLabel"
name=
"label_4"
>
<property
name=
"text"
>
<string>
Pitch Axis
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"
0
"
>
<item
row=
"2"
column=
"
1
"
>
<widget
class=
"QLabel"
name=
"label_5"
>
<property
name=
"text"
>
<string>
Yaw Axis
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"
0
"
>
<item
row=
"0"
column=
"
1
"
>
<widget
class=
"QLabel"
name=
"label_3"
>
<property
name=
"text"
>
<string>
Roll Axis
</string>
</property>
</widget>
</item>
<item
row=
"7"
column=
"
0
"
colspan=
"2"
>
<item
row=
"7"
column=
"
1
"
colspan=
"2"
>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
...
...
@@ -441,30 +339,224 @@
</property>
</spacer>
</item>
<item
row=
"0"
column=
"
1
"
>
<item
row=
"0"
column=
"
2
"
>
<widget
class=
"QSpinBox"
name=
"rollMapSpinBox"
/>
</item>
<item
row=
"1"
column=
"
1
"
>
<item
row=
"1"
column=
"
2
"
>
<widget
class=
"QSpinBox"
name=
"pitchMapSpinBox"
/>
</item>
<item
row=
"2"
column=
"
1
"
>
<item
row=
"2"
column=
"
2
"
>
<widget
class=
"QSpinBox"
name=
"yawMapSpinBox"
/>
</item>
<item
row=
"3"
column=
"
1
"
>
<item
row=
"3"
column=
"
2
"
>
<widget
class=
"QSpinBox"
name=
"throttleMapSpinBox"
/>
</item>
<item
row=
"4"
column=
"
1
"
>
<item
row=
"4"
column=
"
2
"
>
<widget
class=
"QSpinBox"
name=
"autoMapSpinBox"
/>
</item>
<item
row=
"5"
column=
"
1
"
>
<item
row=
"5"
column=
"
2
"
>
<widget
class=
"QSpinBox"
name=
"stabilizedMapSpinBox"
/>
</item>
<item
row=
"6"
column=
"
1
"
>
<item
row=
"6"
column=
"
2
"
>
<widget
class=
"QSpinBox"
name=
"manualMapSpinBox"
/>
</item>
</layout>
</widget>
</item>
<item
row=
"1"
column=
"2"
>
<widget
class=
"QGroupBox"
name=
"groupBox_2"
>
<property
name=
"title"
>
<string>
Stick
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignCenter
</set>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<property
name=
"margin"
>
<number>
6
</number>
</property>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QLCDNumber"
name=
"xValue"
>
<property
name=
"minimumSize"
>
<size>
<width>
0
</width>
<height>
0
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
40
</width>
<height>
24
</height>
</size>
</property>
<property
name=
"frameShadow"
>
<enum>
QFrame::Plain
</enum>
</property>
<property
name=
"smallDecimalPoint"
>
<bool>
true
</bool>
</property>
<property
name=
"numDigits"
>
<number>
3
</number>
</property>
<property
name=
"segmentStyle"
>
<enum>
QLCDNumber::Flat
</enum>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
rowspan=
"2"
>
<widget
class=
"QSlider"
name=
"xSlider"
>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
<property
name=
"minimum"
>
<number>
-100
</number>
</property>
<property
name=
"maximum"
>
<number>
100
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
</widget>
</item>
<item
row=
"4"
column=
"6"
>
<widget
class=
"QLCDNumber"
name=
"yValue"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
40
</width>
<height>
24
</height>
</size>
</property>
<property
name=
"frameShadow"
>
<enum>
QFrame::Plain
</enum>
</property>
<property
name=
"smallDecimalPoint"
>
<bool>
true
</bool>
</property>
<property
name=
"numDigits"
>
<number>
3
</number>
</property>
<property
name=
"segmentStyle"
>
<enum>
QLCDNumber::Flat
</enum>
</property>
</widget>
</item>
<item
row=
"0"
column=
"2"
rowspan=
"3"
colspan=
"5"
>
<widget
class=
"QDial"
name=
"dial"
>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
<property
name=
"minimum"
>
<number>
-100
</number>
</property>
<property
name=
"maximum"
>
<number>
100
</number>
</property>
</widget>
</item>
<item
row=
"4"
column=
"2"
>
<widget
class=
"QLabel"
name=
"label_2"
>
<property
name=
"text"
>
<string>
Y
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
</set>
</property>
</widget>
</item>
<item
row=
"4"
column=
"3"
colspan=
"3"
>
<widget
class=
"QSlider"
name=
"ySlider"
>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
<property
name=
"minimum"
>
<number>
-100
</number>
</property>
<property
name=
"maximum"
>
<number>
100
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
</widget>
</item>
<item
row=
"4"
column=
"1"
>
<widget
class=
"QLabel"
name=
"label"
>
<property
name=
"text"
>
<string>
X
</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"1"
column=
"3"
>
<widget
class=
"QGroupBox"
name=
"groupBox_3"
>
<property
name=
"maximumSize"
>
<size>
<width>
60
</width>
<height>
16777215
</height>
</size>
</property>
<property
name=
"title"
>
<string>
Throttle
</string>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_2"
>
<property
name=
"spacing"
>
<number>
0
</number>
</property>
<property
name=
"margin"
>
<number>
2
</number>
</property>
<item>
<widget
class=
"QProgressBar"
name=
"thrust"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
</property>
<property
name=
"value"
>
<number>
0
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"2"
column=
"0"
colspan=
"5"
>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
<item>
<widget
class=
"QLabel"
name=
"statusLabel"
>
<property
name=
"lineWidth"
>
<number>
1
</number>
</property>
<property
name=
"text"
>
<string>
No joystick detected yet.. waiting
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QDialogButtonBox"
name=
"buttonBox"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"standardButtons"
>
<set>
QDialogButtonBox::Cancel|QDialogButtonBox::Ok
</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment