[Simulator] UI tweaks for last major update. (#4414)

* [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.
This commit is contained in:
Max Paperno
2017-02-06 18:27:03 +01:00
committed by Bertrand Songis
parent b0eeeb4dbc
commit ded843b989
7 changed files with 280 additions and 124 deletions
+52 -11
View File
@@ -14,7 +14,7 @@
<string>OpenTx Simulator</string>
</property>
<property name="windowIcon">
<iconset>
<iconset resource="../companion.qrc">
<normaloff>:/icon.png</normaloff>:/icon.png</iconset>
</property>
<property name="dockNestingEnabled">
@@ -23,7 +23,14 @@
<property name="dockOptions">
<set>QMainWindow::AllowNestedDocks|QMainWindow::AllowTabbedDocks|QMainWindow::AnimatedDocks</set>
</property>
<widget class="QWidget" name="centralwidget"/>
<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>
@@ -40,6 +47,16 @@
<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">
@@ -79,7 +96,7 @@
</widget>
<action name="actionReloadLua">
<property name="icon">
<iconset>
<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">
@@ -94,7 +111,7 @@
</action>
<action name="actionReloadRadioData">
<property name="icon">
<iconset>
<iconset resource="../companion.qrc">
<normaloff>:/images/simulator/icons/svg/restart.svg</normaloff>:/images/simulator/icons/svg/restart.svg</iconset>
</property>
<property name="text">
@@ -109,7 +126,7 @@
</action>
<action name="actionShowKeymap">
<property name="icon">
<iconset>
<iconset resource="../companion.qrc">
<normaloff>:/images/simulator/icons/svg/info.svg</normaloff>:/images/simulator/icons/svg/info.svg</iconset>
</property>
<property name="text">
@@ -124,7 +141,7 @@
</action>
<action name="actionJoystickSettings">
<property name="icon">
<iconset>
<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">
@@ -139,7 +156,7 @@
</action>
<action name="actionScreenshot">
<property name="icon">
<iconset>
<iconset resource="../companion.qrc">
<normaloff>:/images/simulator/icons/svg/camera.svg</normaloff>:/images/simulator/icons/svg/camera.svg</iconset>
</property>
<property name="text">
@@ -152,15 +169,15 @@
<string>F8</string>
</property>
</action>
<action name="actionToggleRadioTitle">
<action name="actionDockRadio">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Radio Titlebar</string>
<string>Dock In Main Window</string>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The title bar on the main radio window allows you to undock it or move it around separately from the other windows. Hiding the title makes a more compact and streamlined appearance.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>Show the radio in the main window or as a separate &quot;floating&quot; window.</string>
</property>
</action>
<action name="actionToggleMenuBar">
@@ -177,7 +194,31 @@
<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/>
<resources>
<include location="../companion.qrc"/>
</resources>
<connections/>
</ui>