Commit 5e0c5f4c authored by Bryant's avatar Bryant

Replaced joystick buttons UI with QLabels.

Added an 11th button display.
parent 8d0f9620
...@@ -7,6 +7,7 @@ JoystickWidget::JoystickWidget(JoystickInput* joystick, QWidget *parent) : ...@@ -7,6 +7,7 @@ JoystickWidget::JoystickWidget(JoystickInput* joystick, QWidget *parent) :
m_ui(new Ui::JoystickWidget) m_ui(new Ui::JoystickWidget)
{ {
m_ui->setupUi(this); m_ui->setupUi(this);
clearKeys();
this->joystick = joystick; this->joystick = joystick;
m_ui->rollMapSpinBox->setValue(joystick->getMappingXAxis()); m_ui->rollMapSpinBox->setValue(joystick->getMappingXAxis());
...@@ -87,55 +88,59 @@ void JoystickWidget::clearKeys() ...@@ -87,55 +88,59 @@ void JoystickWidget::clearKeys()
{ {
QString colorstyle; QString colorstyle;
QColor buttonStyleColor = QColor(200, 20, 20); 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()); colorstyle = QString("QLabel { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: %1;}").arg(buttonStyleColor.name());
m_ui->buttonLabel0->setStyleSheet(colorstyle); m_ui->button0->setStyleSheet(colorstyle);
m_ui->buttonLabel1->setStyleSheet(colorstyle); m_ui->button1->setStyleSheet(colorstyle);
m_ui->buttonLabel2->setStyleSheet(colorstyle); m_ui->button2->setStyleSheet(colorstyle);
m_ui->buttonLabel3->setStyleSheet(colorstyle); m_ui->button3->setStyleSheet(colorstyle);
m_ui->buttonLabel4->setStyleSheet(colorstyle); m_ui->button4->setStyleSheet(colorstyle);
m_ui->buttonLabel5->setStyleSheet(colorstyle); m_ui->button5->setStyleSheet(colorstyle);
m_ui->buttonLabel6->setStyleSheet(colorstyle); m_ui->button6->setStyleSheet(colorstyle);
m_ui->buttonLabel7->setStyleSheet(colorstyle); m_ui->button7->setStyleSheet(colorstyle);
m_ui->buttonLabel8->setStyleSheet(colorstyle); m_ui->button8->setStyleSheet(colorstyle);
m_ui->buttonLabel9->setStyleSheet(colorstyle); m_ui->button9->setStyleSheet(colorstyle);
m_ui->button10->setStyleSheet(colorstyle);
} }
void JoystickWidget::pressKey(int key) void JoystickWidget::pressKey(int key)
{ {
QString colorstyle; QString colorstyle;
QColor buttonStyleColor = QColor(20, 200, 20); QColor buttonStyleColor = QColor(20, 200, 20);
colorstyle = QString("QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: %1;}").arg(buttonStyleColor.name()); colorstyle = QString("QLabel { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: %1;}").arg(buttonStyleColor.name());
switch(key) { switch(key) {
case 0: case 0:
m_ui->buttonLabel0->setStyleSheet(colorstyle); m_ui->button0->setStyleSheet(colorstyle);
break; break;
case 1: case 1:
m_ui->buttonLabel1->setStyleSheet(colorstyle); m_ui->button1->setStyleSheet(colorstyle);
break; break;
case 2: case 2:
m_ui->buttonLabel2->setStyleSheet(colorstyle); m_ui->button2->setStyleSheet(colorstyle);
break; break;
case 3: case 3:
m_ui->buttonLabel3->setStyleSheet(colorstyle); m_ui->button3->setStyleSheet(colorstyle);
break; break;
case 4: case 4:
m_ui->buttonLabel4->setStyleSheet(colorstyle); m_ui->button4->setStyleSheet(colorstyle);
break; break;
case 5: case 5:
m_ui->buttonLabel5->setStyleSheet(colorstyle); m_ui->button5->setStyleSheet(colorstyle);
break; break;
case 6: case 6:
m_ui->buttonLabel6->setStyleSheet(colorstyle); m_ui->button6->setStyleSheet(colorstyle);
break; break;
case 7: case 7:
m_ui->buttonLabel7->setStyleSheet(colorstyle); m_ui->button7->setStyleSheet(colorstyle);
break; break;
case 8: case 8:
m_ui->buttonLabel8->setStyleSheet(colorstyle); m_ui->button8->setStyleSheet(colorstyle);
break; break;
case 9: case 9:
m_ui->buttonLabel9->setStyleSheet(colorstyle); m_ui->button9->setStyleSheet(colorstyle);
break;
case 10:
m_ui->button10->setStyleSheet(colorstyle);
break; break;
} }
QTimer::singleShot(20, this, SLOT(clearKeys())); QTimer::singleShot(20, this, SLOT(clearKeys()));
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>654</width> <width>497</width>
<height>376</height> <height>448</height>
</rect> </rect>
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
...@@ -19,416 +19,314 @@ ...@@ -19,416 +19,314 @@
<property name="windowTitle"> <property name="windowTitle">
<string>Dialog</string> <string>Dialog</string>
</property> </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"> <property name="margin">
<number>8</number> <number>8</number>
</property> </property>
<property name="spacing"> <property name="spacing">
<number>8</number> <number>8</number>
</property> </property>
<item row="1" column="1" colspan="2"> <item row="1" column="0">
<widget class="QLabel" name="statusLabel"> <widget class="QGroupBox" name="groupBox">
<property name="text">
<string>No joystick detecte yet.. waiting</string>
</property>
</widget>
</item>
<item row="0" column="2">
<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="minimumSize"> <property name="minimumSize">
<size> <size>
<width>40</width> <width>0</width>
<height>20</height> <height>0</height>
</size> </size>
</property> </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"> <property name="maximumSize">
<size> <size>
<width>40</width> <width>40</width>
<height>24</height> <height>400</height>
</size> </size>
</property> </property>
<property name="frameShadow"> <property name="title">
<enum>QFrame::Plain</enum> <string>Buttons</string>
</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="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>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignCenter</set>
</property> </property>
</widget> <property name="flat">
</item> <bool>false</bool>
<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>
<property name="smallDecimalPoint"> <layout class="QVBoxLayout" name="verticalLayout">
<bool>true</bool> <property name="spacing">
<number>1</number>
</property> </property>
<property name="numDigits"> <property name="margin">
<number>3</number> <number>3</number>
</property> </property>
<property name="segmentStyle"> <item>
<enum>QLCDNumber::Flat</enum> <widget class="QLabel" name="button0">
<property name="enabled">
<bool>true</bool>
</property> </property>
</widget> <property name="sizePolicy">
</item> <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<item row="1" column="0" rowspan="2"> <horstretch>0</horstretch>
<widget class="QSlider" name="xSlider"> <verstretch>0</verstretch>
<property name="minimum"> </sizepolicy>
<number>-100</number>
</property> </property>
<property name="maximum"> <property name="text">
<number>100</number> <string>0</string>
</property> </property>
<property name="orientation"> <property name="alignment">
<enum>Qt::Vertical</enum> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </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> <item>
<widget class="QGroupBox" name="buttonLabel0"> <widget class="QLabel" name="button1">
<property name="autoFillBackground"> <property name="enabled">
<bool>false</bool> <bool>true</bool>
</property> </property>
<property name="styleSheet"> <property name="sizePolicy">
<string>QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}</string> <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="title"> <property name="text">
<string/> <string>1</string>
</property> </property>
<property name="flat"> <property name="alignment">
<bool>false</bool> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="buttonLabel1"> <widget class="QLabel" name="button2">
<property name="autoFillBackground"> <property name="enabled">
<bool>false</bool> <bool>true</bool>
</property> </property>
<property name="styleSheet"> <property name="sizePolicy">
<string>QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}</string> <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="title"> <property name="text">
<string/> <string>2</string>
</property> </property>
<property name="flat"> <property name="alignment">
<bool>false</bool> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="buttonLabel2"> <widget class="QLabel" name="button3">
<property name="autoFillBackground"> <property name="enabled">
<bool>false</bool> <bool>true</bool>
</property> </property>
<property name="styleSheet"> <property name="sizePolicy">
<string>QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}</string> <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="title"> <property name="text">
<string/> <string>3</string>
</property> </property>
<property name="flat"> <property name="alignment">
<bool>false</bool> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="buttonLabel3"> <widget class="QLabel" name="button4">
<property name="autoFillBackground"> <property name="enabled">
<bool>false</bool> <bool>true</bool>
</property> </property>
<property name="styleSheet"> <property name="sizePolicy">
<string>QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}</string> <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="title"> <property name="text">
<string/> <string>4</string>
</property> </property>
<property name="flat"> <property name="alignment">
<bool>false</bool> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="buttonLabel4"> <widget class="QLabel" name="button5">
<property name="autoFillBackground"> <property name="enabled">
<bool>false</bool> <bool>true</bool>
</property> </property>
<property name="styleSheet"> <property name="sizePolicy">
<string>QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}</string> <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="title"> <property name="text">
<string/> <string>5</string>
</property> </property>
<property name="flat"> <property name="alignment">
<bool>false</bool> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="buttonLabel5"> <widget class="QLabel" name="button6">
<property name="autoFillBackground"> <property name="enabled">
<bool>false</bool> <bool>true</bool>
</property> </property>
<property name="styleSheet"> <property name="sizePolicy">
<string>QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}</string> <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="title"> <property name="text">
<string/> <string>6</string>
</property> </property>
<property name="flat"> <property name="alignment">
<bool>false</bool> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="buttonLabel6"> <widget class="QLabel" name="button7">
<property name="autoFillBackground"> <property name="enabled">
<bool>false</bool> <bool>true</bool>
</property> </property>
<property name="styleSheet"> <property name="sizePolicy">
<string>QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}</string> <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="title"> <property name="text">
<string/> <string>7</string>
</property> </property>
<property name="flat"> <property name="alignment">
<bool>false</bool> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="buttonLabel7"> <widget class="QLabel" name="button8">
<property name="autoFillBackground"> <property name="enabled">
<bool>false</bool> <bool>true</bool>
</property> </property>
<property name="styleSheet"> <property name="sizePolicy">
<string>QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}</string> <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="title"> <property name="text">
<string/> <string>8</string>
</property> </property>
<property name="flat"> <property name="alignment">
<bool>false</bool> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="buttonLabel8"> <widget class="QLabel" name="button9">
<property name="autoFillBackground"> <property name="enabled">
<bool>false</bool> <bool>true</bool>
</property> </property>
<property name="styleSheet"> <property name="sizePolicy">
<string>QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}</string> <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="title"> <property name="text">
<string/> <string>9</string>
</property> </property>
<property name="flat"> <property name="alignment">
<bool>false</bool> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="buttonLabel9"> <widget class="QLabel" name="button10">
<property name="autoFillBackground"> <property name="enabled">
<bool>false</bool> <bool>true</bool>
</property> </property>
<property name="styleSheet"> <property name="sizePolicy">
<string>QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #FF2222;}</string> <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="title"> <property name="text">
<string/> <string>10</string>
</property> </property>
<property name="flat"> <property name="alignment">
<bool>false</bool> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="1" column="3"> <item row="1" column="4">
<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">
<widget class="QGroupBox" name="groupBox_4"> <widget class="QGroupBox" name="groupBox_4">
<property name="title"> <property name="title">
<string>Mappings</string> <string>Mappings</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_3" columnstretch="30,10"> <property name="alignment">
<item row="3" column="0"> <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"> <widget class="QLabel" name="label_6">
<property name="text"> <property name="text">
<string>Throttle</string> <string>Throttle</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0"> <item row="5" column="1">
<widget class="QLabel" name="label_8"> <widget class="QLabel" name="label_8">
<property name="text"> <property name="text">
<string>Stabilized Button</string> <string>Stabilized Button</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0"> <item row="4" column="1">
<widget class="QLabel" name="label_7"> <widget class="QLabel" name="label_7">
<property name="text"> <property name="text">
<string>Auto Button</string> <string>Auto Button</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="0"> <item row="6" column="1">
<widget class="QLabel" name="label_9"> <widget class="QLabel" name="label_9">
<property name="text"> <property name="text">
<string>Manual Button</string> <string>Manual Button</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="1" column="1">
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="label_4">
<property name="text"> <property name="text">
<string>Pitch Axis</string> <string>Pitch Axis</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item row="2" column="1">
<widget class="QLabel" name="label_5"> <widget class="QLabel" name="label_5">
<property name="text"> <property name="text">
<string>Yaw Axis</string> <string>Yaw Axis</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0"> <item row="0" column="1">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
<property name="text"> <property name="text">
<string>Roll Axis</string> <string>Roll Axis</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="0" colspan="2"> <item row="7" column="1" colspan="2">
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
...@@ -441,30 +339,224 @@ ...@@ -441,30 +339,224 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="0" column="1"> <item row="0" column="2">
<widget class="QSpinBox" name="rollMapSpinBox"/> <widget class="QSpinBox" name="rollMapSpinBox"/>
</item> </item>
<item row="1" column="1"> <item row="1" column="2">
<widget class="QSpinBox" name="pitchMapSpinBox"/> <widget class="QSpinBox" name="pitchMapSpinBox"/>
</item> </item>
<item row="2" column="1"> <item row="2" column="2">
<widget class="QSpinBox" name="yawMapSpinBox"/> <widget class="QSpinBox" name="yawMapSpinBox"/>
</item> </item>
<item row="3" column="1"> <item row="3" column="2">
<widget class="QSpinBox" name="throttleMapSpinBox"/> <widget class="QSpinBox" name="throttleMapSpinBox"/>
</item> </item>
<item row="4" column="1"> <item row="4" column="2">
<widget class="QSpinBox" name="autoMapSpinBox"/> <widget class="QSpinBox" name="autoMapSpinBox"/>
</item> </item>
<item row="5" column="1"> <item row="5" column="2">
<widget class="QSpinBox" name="stabilizedMapSpinBox"/> <widget class="QSpinBox" name="stabilizedMapSpinBox"/>
</item> </item>
<item row="6" column="1"> <item row="6" column="2">
<widget class="QSpinBox" name="manualMapSpinBox"/> <widget class="QSpinBox" name="manualMapSpinBox"/>
</item> </item>
</layout> </layout>
</widget> </widget>
</item> </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> </layout>
</widget> </widget>
<resources/> <resources/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment