From dacc8593d94eeb3826f554b80ddf31f274c5fab8 Mon Sep 17 00:00:00 2001 From: donovaly Date: Fri, 27 Mar 2020 00:04:00 +0100 Subject: [PATCH] [TD] fix preferences dialogs see: https://forum.freecadweb.org/viewtopic.php?p=380990#p381051 --- src/Mod/TechDraw/Gui/DlgPrefsTechDraw1.ui | 103 ++-- src/Mod/TechDraw/Gui/DlgPrefsTechDraw3.ui | 587 +++++++++++++--------- src/Mod/TechDraw/Gui/DlgPrefsTechDraw4.ui | 126 +++-- 3 files changed, 504 insertions(+), 312 deletions(-) diff --git a/src/Mod/TechDraw/Gui/DlgPrefsTechDraw1.ui b/src/Mod/TechDraw/Gui/DlgPrefsTechDraw1.ui index 819c9f728c..9ff2e1e169 100644 --- a/src/Mod/TechDraw/Gui/DlgPrefsTechDraw1.ui +++ b/src/Mod/TechDraw/Gui/DlgPrefsTechDraw1.ui @@ -7,7 +7,7 @@ 0 0 460 - 829 + 760 @@ -19,7 +19,7 @@ 0 - 760 + 0 @@ -28,8 +28,8 @@ - - + + @@ -40,7 +40,7 @@ 0 - 141 + 0 @@ -52,9 +52,9 @@ Drawing Update - - - + + + @@ -80,7 +80,7 @@ - + @@ -88,6 +88,12 @@ 0 + + + 0 + 20 + + Whether or not a page's 'Keep Update' property can override the global 'Update With 3D' parameter @@ -106,7 +112,7 @@ can override the global 'Update With 3D' parameter - + @@ -137,7 +143,7 @@ This can slow down the response time. - + @@ -145,6 +151,12 @@ This can slow down the response time. 0 + + + 0 + 20 + + true @@ -173,7 +185,7 @@ for ProjectionGroups - + @@ -216,7 +228,7 @@ for ProjectionGroups Normal line color - + 0 0 @@ -286,7 +298,7 @@ for ProjectionGroups Preselection color - + 255 255 @@ -318,7 +330,7 @@ for ProjectionGroups Section face color - + 225 225 @@ -350,7 +362,7 @@ for ProjectionGroups Selected item color - + 28 173 @@ -402,7 +414,7 @@ for ProjectionGroups Background color around pages - + 80 80 @@ -434,7 +446,7 @@ for ProjectionGroups Hatch image color - + 0 0 @@ -461,7 +473,7 @@ for ProjectionGroups Color of dimension lines and text. - + 0 0 @@ -493,7 +505,7 @@ for ProjectionGroups Geometric hatch pattern color - + 0 0 @@ -550,6 +562,12 @@ for ProjectionGroups + + + 0 + 20 + + true @@ -574,7 +592,7 @@ for ProjectionGroups Face color (if not transparent) - + 255 255 @@ -618,7 +636,7 @@ for ProjectionGroups Default color for leader lines - + 0 0 @@ -635,7 +653,7 @@ for ProjectionGroups - + 0 0 @@ -655,7 +673,7 @@ for ProjectionGroups - + @@ -771,7 +789,7 @@ for ProjectionGroups - + 0 @@ -781,10 +799,7 @@ for ProjectionGroups Label size - - Qt::AlignRight - - + 8.000000000000000 @@ -800,7 +815,7 @@ for ProjectionGroups - + @@ -834,7 +849,7 @@ for ProjectionGroups - + 0 @@ -885,7 +900,7 @@ for ProjectionGroups - + 191 @@ -895,9 +910,6 @@ for ProjectionGroups Starting directory for menu 'Insert Page using Template' - - Gui::FileChooser::Directory - TemplateDir @@ -925,7 +937,7 @@ for ProjectionGroups - + 191 @@ -962,7 +974,7 @@ for ProjectionGroups - + 191 @@ -999,7 +1011,7 @@ for ProjectionGroups - + 191 @@ -1009,9 +1021,6 @@ for ProjectionGroups Default directory for welding symbols - - Gui::FileChooser::Directory - WeldingDir @@ -1039,7 +1048,7 @@ for ProjectionGroups - + 191 @@ -1105,7 +1114,7 @@ for ProjectionGroups - + @@ -1124,15 +1133,15 @@ for ProjectionGroups - - + + Qt::Vertical - 17 - 17 + 20 + 19 diff --git a/src/Mod/TechDraw/Gui/DlgPrefsTechDraw3.ui b/src/Mod/TechDraw/Gui/DlgPrefsTechDraw3.ui index c3e3c2d63b..49317bca81 100644 --- a/src/Mod/TechDraw/Gui/DlgPrefsTechDraw3.ui +++ b/src/Mod/TechDraw/Gui/DlgPrefsTechDraw3.ui @@ -6,8 +6,8 @@ 0 0 - 448 - 891 + 460 + 790 @@ -19,8 +19,8 @@ Dimensions - - + + @@ -31,7 +31,7 @@ 0 - 250 + 0 @@ -43,214 +43,22 @@ Dimensions - - - - - - - - 0 - 0 - - - - - 12 - - - - Character used to indicate diameter dimensions - - - - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - DiameterSymbol - - - /Mod/TechDraw/Dimensions - - - - - - - false - - - - 0 - 0 - - - - Number of decimals if 'Use Global Decimals' is not used - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - 2 - - - AltDecimals - - - /Mod/TechDraw/Dimensions - - - - - - - - 0 - 0 - - - - Use system setting for number of decimals - - - Use Global Decimals - - - true - - - UseGlobalDecimals - - - /Mod/TechDraw/Dimensions - - - - - - - - true - - - - Font Size - - - - - - - - 0 - 0 - - - - Arrowhead style - - - -1 - - - ArrowStyle - - - Mod/TechDraw/Dimensions - - - - - - - Alternate Decimals - - - + + + + + + 0 + 0 + + Standard and Style - - - - - true - - - - Arrow Size - - - - - - - - true - - - - Arrow Style - - - - - - - - 0 - 0 - - - - Dimension text font size - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - 4.000000000000000 - - - FontSize - - - /Mod/TechDraw/Dimensions - - - - - - - - 0 - 0 - - - - Arrowhead size - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - 5.000000000000000 - - - ArrowSize - - - Mod/TechDraw/Dimensions - - - @@ -259,6 +67,12 @@ 0 + + + 184 + 22 + + Standard to be used for dimensional values @@ -290,10 +104,109 @@ - - + + + + + 0 + 0 + + + + Use system setting for number of decimals + - Diameter Symbol + Use Global Decimals + + + true + + + UseGlobalDecimals + + + /Mod/TechDraw/Dimensions + + + + + + + + 0 + 0 + + + + + 0 + 22 + + + + Append unit to dimension values + + + Show Units + + + ShowUnits + + + /Mod/TechDraw/Dimensions + + + + + + + Alternate Decimals + + + + + + + false + + + + 0 + 0 + + + + + 0 + 22 + + + + Number of decimals if 'Use Global Decimals' is not used + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + 2 + + + AltDecimals + + + /Mod/TechDraw/Dimensions + + + + + + + + true + + + + Font Size @@ -310,34 +223,163 @@ - - + + 0 0 - - Append unit to dimension values + + + 0 + 22 + - - Show Units + + Dimension text font size + + + 4.000000000000000 - ShowUnits + FontSize /Mod/TechDraw/Dimensions + + + + Diameter Symbol + + + + + + + + 0 + 0 + + + + + 0 + 22 + + + + + 12 + + + + Character used to indicate diameter dimensions + + + + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + DiameterSymbol + + + /Mod/TechDraw/Dimensions + + + + + + + + true + + + + Arrow Style + + + + + + + + 0 + 0 + + + + + 0 + 22 + + + + Arrowhead style + + + -1 + + + ArrowStyle + + + Mod/TechDraw/Dimensions + + + + + + + + true + + + + Arrow Size + + + + + + + + 0 + 0 + + + + + 0 + 22 + + + + Arrowhead size + + + 5.000000000000000 + + + ArrowSize + + + Mod/TechDraw/Dimensions + + + - + @@ -371,6 +413,12 @@ 0 + + + 0 + 0 + + Style for section lines @@ -465,6 +513,12 @@ + + + 0 + 22 + + Default appearance of cut surface in section view @@ -507,6 +561,12 @@ 0 + + + 0 + 0 + + Forces last leader line segment to be horizontal @@ -525,20 +585,23 @@ - + 0 0 + + + 0 + 0 + + Length of balloon leader line kink - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - + 5.000000000000000 @@ -557,6 +620,12 @@ 0 + + + 0 + 0 + + Type for centerlines @@ -633,6 +702,12 @@ 0 + + + 0 + 0 + + Shape of balloon annotations @@ -727,6 +802,12 @@ 0 + + + 184 + 0 + + Standard to be used to draw section lines @@ -772,6 +853,12 @@ 0 + + + 0 + 0 + + Outline shape for detail views @@ -821,6 +908,12 @@ 0 + + + 0 + 0 + + true @@ -848,6 +941,12 @@ 0 + + + 0 + 0 + + Default name in LineGroup CSV file @@ -885,6 +984,12 @@ 0 + + + 0 + 0 + + Style for balloon leader line ends @@ -919,6 +1024,12 @@ 0 + + + 0 + 0 + + Restrict Filled Triangle line end to vertical or horizontal directions @@ -968,6 +1079,12 @@ 0 + + + 0 + 0 + + Show arc centers in printed output @@ -999,6 +1116,12 @@ + + + 0 + 0 + + 2 @@ -1069,7 +1192,7 @@ - + @@ -1129,6 +1252,12 @@ 0 + + + 184 + 0 + + Use first- or third-angle mutliview projection convention @@ -1165,6 +1294,12 @@ 0 + + + 0 + 0 + + Style for hidden lines @@ -1199,7 +1334,7 @@ - + @@ -1218,7 +1353,7 @@ - + Qt::Vertical @@ -1226,7 +1361,7 @@ 20 - 40 + 20 diff --git a/src/Mod/TechDraw/Gui/DlgPrefsTechDraw4.ui b/src/Mod/TechDraw/Gui/DlgPrefsTechDraw4.ui index 399558154c..8c9b8c1cea 100644 --- a/src/Mod/TechDraw/Gui/DlgPrefsTechDraw4.ui +++ b/src/Mod/TechDraw/Gui/DlgPrefsTechDraw4.ui @@ -6,47 +6,15 @@ 0 0 - 440 - 381 + 460 + 330 Advanced - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - 12 - true - - - - QFrame::Box - - - Items in italics are default values for new objects. They have no effect on existing objects. - - - true - - - - + + @@ -57,7 +25,7 @@ 0 - 300 + 0 @@ -69,8 +37,8 @@ Advanced - - + + @@ -80,6 +48,12 @@ 0 + + + 0 + 20 + + false @@ -114,6 +88,12 @@ Only change unless you know what you are doing! + + + 0 + 20 + + Limit of 64x64 pixel SVG tiles used to hatch a single face. For large scalings you might get an error about to many SVG tiles. @@ -150,6 +130,12 @@ Then you need to increase the tile limit. 0 + + + 0 + 20 + + Dump intermediate results during Detail view processing @@ -166,6 +152,12 @@ Then you need to increase the tile limit. + + + 0 + 20 + + Include 2D Objects in projection @@ -213,6 +205,12 @@ Then you need to increase the tile limit. 0 + + + 0 + 20 + + true @@ -240,6 +238,12 @@ Then you need to increase the tile limit. 0 + + + 0 + 20 + + Highlights border of section cut in section views @@ -256,6 +260,12 @@ Then you need to increase the tile limit. + + + 0 + 20 + + Maximum hatch line segments to use when hatching a face with a PAT pattern @@ -386,6 +396,12 @@ can be a performance penalty in complex models. + + + 0 + 20 + + Override automatic dimension format @@ -405,6 +421,38 @@ can be a performance penalty in complex models. + + + + + 12 + true + + + + QFrame::Box + + + Items in italics are default values for new objects. They have no effect on existing objects. + + + true + + + + + + + Qt::Vertical + + + + 20 + 20 + + + +