From ad977bb807cb1f9627c6ade62c7144cd5fa6937b Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Thu, 30 Jan 2020 00:29:23 -0600 Subject: [PATCH] Draft: disable the Toolbar mode of Gui commands The `Taskview` mode (value 1) is set fixed in `DraftGui.py` even if the widget shows the other value `Toolbar` (value 0), as this mode is unmaintained and obsolete. At the same time, clarify the behavior with a new tooltip. --- src/Mod/Draft/DraftGui.py | 2 +- .../Draft/Resources/ui/preferences-draft.ui | 144 ++++++++++-------- 2 files changed, 84 insertions(+), 62 deletions(-) diff --git a/src/Mod/Draft/DraftGui.py b/src/Mod/Draft/DraftGui.py index 567b5b13a44d..4d03e7e60727 100644 --- a/src/Mod/Draft/DraftGui.py +++ b/src/Mod/Draft/DraftGui.py @@ -217,7 +217,7 @@ def __init__(self): self.sourceCmd = None self.cancel = None self.pointcallback = None - self.taskmode = Draft.getParam("UiMode",1) + self.taskmode = 1 # Draft.getParam("UiMode",1) #print("taskmode: ",str(self.taskmode)) self.paramcolor = Draft.getParam("color",255)>>8 self.color = QtGui.QColor(self.paramcolor) diff --git a/src/Mod/Draft/Resources/ui/preferences-draft.ui b/src/Mod/Draft/Resources/ui/preferences-draft.ui index ff68e344079d..ef6084ad4925 100644 --- a/src/Mod/Draft/Resources/ui/preferences-draft.ui +++ b/src/Mod/Draft/Resources/ui/preferences-draft.ui @@ -6,8 +6,8 @@ 0 0 - 486 - 808 + 584 + 881 @@ -17,7 +17,16 @@ 6 - + + 9 + + + 9 + + + 9 + + 9 @@ -36,6 +45,11 @@ + + The "taskview" mode will use the task panel system for user interaction. + +The "toolbar" mode is obsolete, and is disabled. It always uses the "taskview" mode regardless of this setting. + Draft interface mode @@ -60,7 +74,15 @@ - This is the UI mode in which the Draft module will work: Toolbar mode will place all Draft settings in a separate toolbar, while taskbar mode will use the FreeCAD Taskview system for all its user interaction + The "taskview" mode will use the task panel system for user interaction. + +The "toolbar" mode is obsolete, and is disabled. It always uses the "taskview" mode regardless of this setting. + + + false + + + Taskview 1 @@ -515,15 +537,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutRelative Mod/Draft - - false - @@ -565,15 +587,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutContinue Mod/Draft - - false - @@ -615,15 +637,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutClose Mod/Draft - - false - @@ -667,15 +689,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutCopy Mod/Draft - - false - @@ -715,15 +737,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutSubelementMode Mod/Draft - - false - @@ -763,15 +785,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutFill Mod/Draft - - false - @@ -815,15 +837,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutExit Mod/Draft - - false - @@ -863,15 +885,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutSelectEdge Mod/Draft - - false - @@ -911,15 +933,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutAddHold Mod/Draft - - false - @@ -963,15 +985,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutLength Mod/Draft - - false - @@ -1011,15 +1033,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutWipe Mod/Draft - - false - @@ -1059,15 +1081,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutSetWP Mod/Draft - - false - @@ -1111,15 +1133,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutCycleSnap Mod/Draft - - false - @@ -1169,15 +1191,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutSnap Mod/Draft - - false - @@ -1217,15 +1239,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutIncreaseRadius Mod/Draft - - false - @@ -1265,15 +1287,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutDecreaseRadius Mod/Draft - - false - @@ -1317,15 +1339,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutRestrictX Mod/Draft - - false - @@ -1365,15 +1387,15 @@ Values with differences below this value will be treated as same. This value wil + + false + inCommandShortcutRestrictY Mod/Draft - - false - @@ -1413,15 +1435,15 @@ Values with differences below this value will be treated as same. This value wil + + false + RestrictZ Mod/Draft - - false -