* [Simulator] Debug output: Adjust exclusion filter, help text <kbd> background color, fix help text typos & mark as translatable. * [Simulator] Radio Outputs: Fix wrong FM highlighted (closes #4408) and current FM not highlighted until switched once; Change highlight color role of active LS/FM so it is always shown (fixes #4393); Active LSs now much more obvious (bold font & sunken frame). * [Simulator] Rework some SimulatorMainWindow functionality: * Fix floating dock widgets appearing behind other applications on Linux (https://github.com/opentx/opentx/issues/4403#issuecomment-277510273); * Fix previously-unused floating dock widgets appearing in top-left corner upon subsequent launches of application (https://github.com/opentx/opentx/pull/4385#issuecomment-277315158); * Fix various anomalies due to not using a "central widget" in QMainWindow (extra separators appearing, vertical resize not working in some cases), radio widget is now central by default; * Add (keep) option to float the radio widget separate from main window, though this may cause the minor visual anomalies mentioned above; * Add options to disable radio widget size constraints while docked.
225 lines
6.7 KiB
XML
225 lines
6.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>SimulatorMainWindow</class>
|
|
<widget class="QMainWindow" name="SimulatorMainWindow">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>644</width>
|
|
<height>371</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>OpenTx Simulator</string>
|
|
</property>
|
|
<property name="windowIcon">
|
|
<iconset resource="../companion.qrc">
|
|
<normaloff>:/icon.png</normaloff>:/icon.png</iconset>
|
|
</property>
|
|
<property name="dockNestingEnabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="dockOptions">
|
|
<set>QMainWindow::AllowNestedDocks|QMainWindow::AllowTabbedDocks|QMainWindow::AnimatedDocks</set>
|
|
</property>
|
|
<widget class="QWidget" name="centralwidget">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Ignored" vsizetype="Ignored">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
</widget>
|
|
<widget class="QMenuBar" name="menubar">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>644</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="nativeMenuBar">
|
|
<bool>false</bool>
|
|
</property>
|
|
<widget class="QMenu" name="menuView">
|
|
<property name="title">
|
|
<string>View</string>
|
|
</property>
|
|
<widget class="QMenu" name="menuRadio_Window">
|
|
<property name="title">
|
|
<string>Radio Window</string>
|
|
</property>
|
|
<addaction name="actionFixedRadioWidth"/>
|
|
<addaction name="actionFixedRadioHeight"/>
|
|
<addaction name="actionDockRadio"/>
|
|
</widget>
|
|
<addaction name="actionToggleMenuBar"/>
|
|
<addaction name="menuRadio_Window"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menuReload">
|
|
<property name="title">
|
|
<string>Reload...</string>
|
|
</property>
|
|
<addaction name="actionReloadLua"/>
|
|
<addaction name="actionReloadRadioData"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menuTools">
|
|
<property name="title">
|
|
<string>Tools</string>
|
|
</property>
|
|
<addaction name="actionScreenshot"/>
|
|
<addaction name="actionJoystickSettings"/>
|
|
<addaction name="actionShowKeymap"/>
|
|
</widget>
|
|
<addaction name="menuView"/>
|
|
<addaction name="menuReload"/>
|
|
<addaction name="menuTools"/>
|
|
</widget>
|
|
<widget class="QToolBar" name="toolBar">
|
|
<property name="windowTitle">
|
|
<string>Toolbar</string>
|
|
</property>
|
|
<attribute name="toolBarArea">
|
|
<enum>LeftToolBarArea</enum>
|
|
</attribute>
|
|
<attribute name="toolBarBreak">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
<addaction name="actionReloadLua"/>
|
|
<addaction name="actionReloadRadioData"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionScreenshot"/>
|
|
<addaction name="actionJoystickSettings"/>
|
|
<addaction name="actionShowKeymap"/>
|
|
</widget>
|
|
<action name="actionReloadLua">
|
|
<property name="icon">
|
|
<iconset resource="../companion.qrc">
|
|
<normaloff>:/images/simulator/icons/svg/reload_script.svg</normaloff>:/images/simulator/icons/svg/reload_script.svg</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Reload Lua Scripts</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Reload the Lua environment on the simulated radio.</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>F7</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionReloadRadioData">
|
|
<property name="icon">
|
|
<iconset resource="../companion.qrc">
|
|
<normaloff>:/images/simulator/icons/svg/restart.svg</normaloff>:/images/simulator/icons/svg/restart.svg</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Reload Radio Data</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Reload all radio data without restarting the simulator.</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>F9</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionShowKeymap">
|
|
<property name="icon">
|
|
<iconset resource="../companion.qrc">
|
|
<normaloff>:/images/simulator/icons/svg/info.svg</normaloff>:/images/simulator/icons/svg/info.svg</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Key Mapping</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Show keyboard maping reference.</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>F1</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionJoystickSettings">
|
|
<property name="icon">
|
|
<iconset resource="../companion.qrc">
|
|
<normaloff>:/images/simulator/icons/svg/joystick_settings.svg</normaloff>:/images/simulator/icons/svg/joystick_settings.svg</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Joystick Settings</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Open joystick configuration settings dialog.</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>F3</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionScreenshot">
|
|
<property name="icon">
|
|
<iconset resource="../companion.qrc">
|
|
<normaloff>:/images/simulator/icons/svg/camera.svg</normaloff>:/images/simulator/icons/svg/camera.svg</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>LCD Screenshot</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Save a screenshot of the current simulated LCD screen.</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>F8</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionDockRadio">
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>Dock In Main Window</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Show the radio in the main window or as a separate "floating" window.</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionToggleMenuBar">
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>Menu Bar</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Show or hide the top menu bar.</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Alt+M</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionFixedRadioWidth">
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>Constrain Width</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Set radio widget width to be a fixed size.</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionFixedRadioHeight">
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>Constrain Height</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Set radio widget height to be a fixed size.</string>
|
|
</property>
|
|
</action>
|
|
</widget>
|
|
<resources>
|
|
<include location="../companion.qrc"/>
|
|
</resources>
|
|
<connections/>
|
|
</ui>
|