From 6d353393ff733fe6557bf4c757af84d55403bebf Mon Sep 17 00:00:00 2001
From: Roy-043
Date: Thu, 27 Feb 2025 14:01:49 +0100
Subject: [PATCH] Gui: put SolidWorks navigation style in A-Z order
#19568 adds the SolidWorks navigation style. In the Gui the new style appeared at the bottom of the list below 'Touchpad'. This PR restores the A-Z order of the list.
---
src/Mod/Tux/NavigationIndicatorGui.py | 104 +++++++++++++-------------
1 file changed, 52 insertions(+), 52 deletions(-)
diff --git a/src/Mod/Tux/NavigationIndicatorGui.py b/src/Mod/Tux/NavigationIndicatorGui.py
index f2c8b8d81a..b76ea9afd5 100644
--- a/src/Mod/Tux/NavigationIndicatorGui.py
+++ b/src/Mod/Tux/NavigationIndicatorGui.py
@@ -74,9 +74,9 @@ def RePopulateIcons():
a6.setIcon(QtGui.QIcon(":/icons/NavigationOpenInventor_" + StyleSheetType + ".svg"))
a7.setIcon(QtGui.QIcon(":/icons/NavigationOpenSCAD_" + StyleSheetType + ".svg"))
a8.setIcon(QtGui.QIcon(":/icons/NavigationRevit_" + StyleSheetType + ".svg"))
- a9.setIcon(QtGui.QIcon(":/icons/NavigationTinkerCAD_" + StyleSheetType + ".svg"))
- a10.setIcon(QtGui.QIcon(":/icons/NavigationTouchpad_" + StyleSheetType + ".svg"))
- a11.setIcon(QtGui.QIcon(":/icons/NavigationSolidWorks_" + StyleSheetType + ".svg"))
+ a9.setIcon(QtGui.QIcon(":/icons/NavigationSolidWorks_" + StyleSheetType + ".svg"))
+ a10.setIcon(QtGui.QIcon(":/icons/NavigationTinkerCAD_" + StyleSheetType + ".svg"))
+ a11.setIcon(QtGui.QIcon(":/icons/NavigationTouchpad_" + StyleSheetType + ".svg"))
def retranslateUi():
@@ -474,6 +474,44 @@ def retranslateUi():
global t9
t9 = (
+ "SolidWorks "
+ + text06
+ + """
+
+
+ | """
+ + text01
+ + """ |
+ """
+ + text02
+ + """ |
+ """
+ + text02
+ + """ |
+ """
+ + text03
+ + """ |
+ """
+ + text04
+ + """ |
+
+
+  |
+  |
+  |
+  |
+  |
+
+
+ """
+ + text08
+ + ": "
+ + text10
+ + "
"
+ )
+
+ global t10
+ t10 = (
"TinkerCAD "
+ text06
+ """
@@ -501,8 +539,8 @@ def retranslateUi():
"""
)
- global t10
- t10 = (
+ global t11
+ t11 = (
"Touchpad "
+ text06
+ """
@@ -567,44 +605,6 @@ def retranslateUi():
+ ""
)
- global t11
- t11 = (
- "SolidWorks "
- + text06
- + """
-
-
- | """
- + text01
- + """ |
- """
- + text02
- + """ |
- """
- + text02
- + """ |
- """
- + text03
- + """ |
- """
- + text04
- + """ |
-
-
-  |
-  |
-  |
-  |
-  |
-
-
- """
- + text08
- + ": "
- + text10
- + ""
- )
-
menuSettings.setTitle(translate("NavigationIndicator", "Settings"))
menuOrbit.setTitle(translate("NavigationIndicator", "Orbit style"))
aCompact.setText(translate("NavigationIndicator", "Compact"))
@@ -700,19 +700,19 @@ a8.setData("Gui::RevitNavigationStyle")
a8.setObjectName("Indicator_NavigationRevit")
a9 = QtGui.QAction(gStyle)
-a9.setText("TinkerCAD ")
-a9.setData("Gui::TinkerCADNavigationStyle")
-a9.setObjectName("Indicator_NavigationTinkerCAD")
+a9.setText("SolidWorks ")
+a9.setData("Gui::SolidWorksNavigationStyle")
+a9.setObjectName("Indicator_NavigationSolidWorks")
a10 = QtGui.QAction(gStyle)
-a10.setText("Touchpad ")
-a10.setData("Gui::TouchpadNavigationStyle")
-a10.setObjectName("Indicator_NavigationTouchpad")
+a10.setText("TinkerCAD ")
+a10.setData("Gui::TinkerCADNavigationStyle")
+a10.setObjectName("Indicator_NavigationTinkerCAD")
a11 = QtGui.QAction(gStyle)
-a11.setText("SolidWorks ")
-a11.setData("Gui::SolidWorksNavigationStyle")
-a11.setObjectName("Indicator_NavigationSolidWorks")
+a11.setText("Touchpad ")
+a11.setData("Gui::TouchpadNavigationStyle")
+a11.setObjectName("Indicator_NavigationTouchpad")
RePopulateIcons()