Files
edgetx-gx12/companion/src/simulation/joystickdialog.ui
T
Max PapernoandBertrand Songis 6e2474081f [Simulator] Further Simulator improvements. (#4282)
* Refactor CompStoreObj to use templates. Clean up some formatting.

* [Simulator] Add SimulatorOptions type to replace individual simulator options; Fix storage handler for custom types; Cleanup some redundant code.

* [Simulator][Joystick] Rework the joystick options/calibration dialog.  Can now enable/disable/select the Joystick from there. Delay start of calibration until Start is pressed (otherwise looks like last calibration didn't work). And generally refactor a lot of it to be smarter.

* Cosmetics.

* [Simulator] Add state handling for RadioWidget class. Split code to cpp file.

* [Simulator] Add SimulatorStartupDialog as its own UI class.

* [Simulator] Multiple changes and new features:
    All Horus data source options are now fully supported with data properly saved after use (SD path, .otx file, or custom data path);
    Loading .otx files now works for all radio types (but not saving data back to .otx);
    Switch and knob/slider states are now saved to per radio profile;
    Joystick configuration/calibration is now available directly from inside Simulator;
    Due to refactoring, all previously saved per-profile simulator settings are now invalid;
    Further consolidated simulator dialog startup/shutdown, now handles temp. paths internally, etc;
    With WIN_USE_CONSOLE defined, Simulator and Companion when started from Windows command line will now use that console for all messages (instead of opening a new one). This allows full debug output to be seen at all stages of execution and after exit.

* [Simulator] Fix build w/out SDL Joystick support.

* [Simulator] Fix bogus throttle warning on simulator start; Add forgotten RadioWidgetState flags to stream handlers; Add debug state saver in SimulatorOptions.
2017-01-25 16:20:45 +01:00

1034 lines
29 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>joystickDialog</class>
<widget class="QDialog" name="joystickDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>473</width>
<height>335</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>Configure Joystick</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="2" rowspan="4">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="1">
<widget class="QWidget" name="calibrationWidget" native="true">
<property name="enabled">
<bool>false</bool>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="spacing">
<number>6</number>
</property>
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Ch2</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSlider" name="Ch_3">
<property name="minimum">
<number>-32767</number>
</property>
<property name="maximum">
<number>32676</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="invertedAppearance">
<bool>false</bool>
</property>
<property name="invertedControls">
<bool>false</bool>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickInterval">
<number>0</number>
</property>
<property name="channel" stdset="0">
<number>2</number>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QComboBox" name="jsmapCB_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="channel" stdset="0">
<number>1</number>
</property>
<item>
<property name="text">
<string>Not Assigned</string>
</property>
</item>
<item>
<property name="text">
<string>Right Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Right Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>Left Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Left Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>P1</string>
</property>
</item>
<item>
<property name="text">
<string>P2</string>
</property>
</item>
<item>
<property name="text">
<string>P3/LS</string>
</property>
</item>
<item>
<property name="text">
<string>RS</string>
</property>
</item>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Ch1</string>
</property>
</widget>
</item>
<item row="2" column="3">
<widget class="QComboBox" name="jsmapCB_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="channel" stdset="0">
<number>2</number>
</property>
<item>
<property name="text">
<string>Not Assigned</string>
</property>
</item>
<item>
<property name="text">
<string>Right Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Right Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>Left Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Left Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>P1</string>
</property>
</item>
<item>
<property name="text">
<string>P2</string>
</property>
</item>
<item>
<property name="text">
<string>P3/LS</string>
</property>
</item>
<item>
<property name="text">
<string>RS</string>
</property>
</item>
</widget>
</item>
<item row="1" column="1">
<widget class="QSlider" name="Ch_2">
<property name="minimum">
<number>-32767</number>
</property>
<property name="maximum">
<number>32676</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="invertedAppearance">
<bool>false</bool>
</property>
<property name="invertedControls">
<bool>false</bool>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickInterval">
<number>0</number>
</property>
<property name="channel" stdset="0">
<number>1</number>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QComboBox" name="jsmapCB_1">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="channel" stdset="0">
<number>0</number>
</property>
<item>
<property name="text">
<string>Not Assigned</string>
</property>
</item>
<item>
<property name="text">
<string>Right Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Right Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>Left Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Left Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>P1</string>
</property>
</item>
<item>
<property name="text">
<string>P2</string>
</property>
</item>
<item>
<property name="text">
<string>P3/LS</string>
</property>
</item>
<item>
<property name="text">
<string>RS</string>
</property>
</item>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Ch4</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QSlider" name="Ch_5">
<property name="minimum">
<number>-32767</number>
</property>
<property name="maximum">
<number>32676</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="invertedAppearance">
<bool>false</bool>
</property>
<property name="invertedControls">
<bool>false</bool>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickInterval">
<number>0</number>
</property>
<property name="channel" stdset="0">
<number>4</number>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Ch6</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Ch3</string>
</property>
</widget>
</item>
<item row="4" column="3">
<widget class="QComboBox" name="jsmapCB_5">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="channel" stdset="0">
<number>4</number>
</property>
<item>
<property name="text">
<string>Not Assigned</string>
</property>
</item>
<item>
<property name="text">
<string>Right Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Right Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>Left Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Left Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>P1</string>
</property>
</item>
<item>
<property name="text">
<string>P2</string>
</property>
</item>
<item>
<property name="text">
<string>P3/LS</string>
</property>
</item>
<item>
<property name="text">
<string>RS</string>
</property>
</item>
</widget>
</item>
<item row="3" column="1">
<widget class="QSlider" name="Ch_4">
<property name="minimum">
<number>-32767</number>
</property>
<property name="maximum">
<number>32676</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="invertedAppearance">
<bool>false</bool>
</property>
<property name="invertedControls">
<bool>false</bool>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickInterval">
<number>0</number>
</property>
<property name="channel" stdset="0">
<number>3</number>
</property>
</widget>
</item>
<item row="3" column="3">
<widget class="QComboBox" name="jsmapCB_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="channel" stdset="0">
<number>3</number>
</property>
<item>
<property name="text">
<string>Not Assigned</string>
</property>
</item>
<item>
<property name="text">
<string>Right Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Right Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>Left Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Left Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>P1</string>
</property>
</item>
<item>
<property name="text">
<string>P2</string>
</property>
</item>
<item>
<property name="text">
<string>P3/LS</string>
</property>
</item>
<item>
<property name="text">
<string>RS</string>
</property>
</item>
</widget>
</item>
<item row="5" column="1">
<widget class="QSlider" name="Ch_6">
<property name="minimum">
<number>-32767</number>
</property>
<property name="maximum">
<number>32676</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="invertedAppearance">
<bool>false</bool>
</property>
<property name="invertedControls">
<bool>false</bool>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickInterval">
<number>0</number>
</property>
<property name="channel" stdset="0">
<number>5</number>
</property>
</widget>
</item>
<item row="5" column="3">
<widget class="QComboBox" name="jsmapCB_6">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="channel" stdset="0">
<number>5</number>
</property>
<item>
<property name="text">
<string>Not Assigned</string>
</property>
</item>
<item>
<property name="text">
<string>Right Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Right Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>Left Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Left Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>P1</string>
</property>
</item>
<item>
<property name="text">
<string>P2</string>
</property>
</item>
<item>
<property name="text">
<string>P3/LS</string>
</property>
</item>
<item>
<property name="text">
<string>RS</string>
</property>
</item>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Ch5</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Ch7</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QSlider" name="Ch_7">
<property name="minimum">
<number>-32767</number>
</property>
<property name="maximum">
<number>32676</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="invertedAppearance">
<bool>false</bool>
</property>
<property name="invertedControls">
<bool>false</bool>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickInterval">
<number>0</number>
</property>
<property name="channel" stdset="0">
<number>6</number>
</property>
</widget>
</item>
<item row="6" column="3">
<widget class="QComboBox" name="jsmapCB_7">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="channel" stdset="0">
<number>6</number>
</property>
<item>
<property name="text">
<string>Not Assigned</string>
</property>
</item>
<item>
<property name="text">
<string>Right Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Right Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>Left Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Left Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>P1</string>
</property>
</item>
<item>
<property name="text">
<string>P2</string>
</property>
</item>
<item>
<property name="text">
<string>P3/LS</string>
</property>
</item>
<item>
<property name="text">
<string>RS</string>
</property>
</item>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>Ch8</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QSlider" name="Ch_8">
<property name="minimum">
<number>-32767</number>
</property>
<property name="maximum">
<number>32676</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="invertedAppearance">
<bool>false</bool>
</property>
<property name="invertedControls">
<bool>false</bool>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickInterval">
<number>0</number>
</property>
<property name="channel" stdset="0">
<number>7</number>
</property>
</widget>
</item>
<item row="7" column="3">
<widget class="QComboBox" name="jsmapCB_8">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="channel" stdset="0">
<number>7</number>
</property>
<item>
<property name="text">
<string>Not Assigned</string>
</property>
</item>
<item>
<property name="text">
<string>Right Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Right Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>Left Vertical</string>
</property>
</item>
<item>
<property name="text">
<string>Left Horizontal</string>
</property>
</item>
<item>
<property name="text">
<string>P1</string>
</property>
</item>
<item>
<property name="text">
<string>P2</string>
</property>
</item>
<item>
<property name="text">
<string>P3/LS</string>
</property>
</item>
<item>
<property name="text">
<string>RS</string>
</property>
</item>
</widget>
</item>
<item row="0" column="1">
<widget class="QSlider" name="Ch_1">
<property name="minimum">
<number>-32767</number>
</property>
<property name="maximum">
<number>32676</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="invertedAppearance">
<bool>false</bool>
</property>
<property name="invertedControls">
<bool>false</bool>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickInterval">
<number>0</number>
</property>
<property name="channel" stdset="0">
<number>0</number>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QCheckBox" name="ChInv_1">
<property name="text">
<string notr="true"/>
</property>
<property name="channel" stdset="0">
<number>0</number>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QCheckBox" name="ChInv_2">
<property name="text">
<string notr="true"/>
</property>
<property name="channel" stdset="0">
<number>1</number>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QCheckBox" name="ChInv_3">
<property name="text">
<string notr="true"/>
</property>
<property name="channel" stdset="0">
<number>2</number>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QCheckBox" name="ChInv_4">
<property name="text">
<string notr="true"/>
</property>
<property name="channel" stdset="0">
<number>3</number>
</property>
</widget>
</item>
<item row="4" column="2">
<widget class="QCheckBox" name="ChInv_5">
<property name="text">
<string notr="true"/>
</property>
<property name="channel" stdset="0">
<number>4</number>
</property>
</widget>
</item>
<item row="5" column="2">
<widget class="QCheckBox" name="ChInv_6">
<property name="text">
<string notr="true"/>
</property>
<property name="channel" stdset="0">
<number>5</number>
</property>
</widget>
</item>
<item row="6" column="2">
<widget class="QCheckBox" name="ChInv_7">
<property name="text">
<string notr="true"/>
</property>
<property name="channel" stdset="0">
<number>6</number>
</property>
</widget>
</item>
<item row="7" column="2">
<widget class="QCheckBox" name="ChInv_8">
<property name="text">
<string notr="true"/>
</property>
<property name="channel" stdset="0">
<number>7</number>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="QLabel" name="howtoLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>400</width>
<height>40</height>
</size>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background:rgb(255, 255, 0);</string>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="text">
<string>Instructions</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QComboBox" name="joystickCB">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="joystickChkB">
<property name="text">
<string>Enable</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="1">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="cancelButton">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Cancel</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>198</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="backButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Back</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="nextButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Start</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="okButton">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Ok</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="3" column="1">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0" rowspan="4">
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>