[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.
This commit is contained in:
committed by
Bertrand Songis
parent
b53ec7392c
commit
6e2474081f
@@ -246,13 +246,29 @@
|
||||
<string>Show Help/Keymap</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Keymap</string>
|
||||
<string>Keymap Help</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F1</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btn_joystickDialog">
|
||||
<property name="toolTip">
|
||||
<string>Open the Joystick Settings window (F3)</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string>Telemetry Simulator</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Joystick Config.</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F3</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btn_telemSim">
|
||||
<property name="toolTip">
|
||||
@@ -262,7 +278,7 @@
|
||||
<string>Telemetry Simulator</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Telemetry Simulator</string>
|
||||
<string>Telemetry Sim.</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F4</string>
|
||||
@@ -278,7 +294,7 @@
|
||||
<string>Trainer Simulator</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Trainer Simulator</string>
|
||||
<string>Trainer Sim.</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F5</string>
|
||||
@@ -310,7 +326,7 @@
|
||||
<string>Reload Lua Scripts</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Reload Lua Scripts</string>
|
||||
<string>Lua Reload</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F7</string>
|
||||
|
||||
Reference in New Issue
Block a user