BIM: Reworked preferences and setup screens

* Reworded welcome screen, removed "update" section
* Removed Webtools and Start option from setup dialog - fixes #14179
* Renamed Arch preferecnes to BIM - fixes #14121
* Moved NativeIFC preferences to BIM - fixes #14137
This commit is contained in:
Yorik van Havre
2024-05-22 09:18:41 +02:00
committed by Yorik van Havre
parent 6b5f829ca2
commit d28a797119
8 changed files with 493 additions and 417 deletions
+2 -2
View File
@@ -439,10 +439,11 @@ class BIMWorkbench(Workbench):
def QT_TRANSLATE_NOOP(context, text):
return text
t1 = QT_TRANSLATE_NOOP("QObject", "Arch")
t1 = QT_TRANSLATE_NOOP("QObject", "BIM")
t2 = QT_TRANSLATE_NOOP("QObject", "Draft")
FreeCADGui.addPreferencePage(":/ui/preferences-arch.ui", t1)
FreeCADGui.addPreferencePage(":/ui/preferences-archdefaults.ui", t1)
FreeCADGui.addPreferencePage(":/ui/preferencesNativeIFC.ui", t1)
if hasattr(FreeCADGui, "draftToolBar"):
if hasattr(FreeCADGui.draftToolBar, "loadedPreferences"):
return
@@ -667,7 +668,6 @@ t = QT_TRANSLATE_NOOP("QObject", "Import-Export")
FreeCADGui.addPreferencePage(":/ui/preferences-ifc.ui", t)
FreeCADGui.addPreferencePage(":/ui/preferences-ifc-export.ui", t)
FreeCADGui.addPreferencePage(":/ui/preferences-dae.ui", t)
FreeCADGui.addPreferencePage(":/ui/preferencesNativeIFC.ui", t)
# Add unit tests
FreeCAD.__unit_test__ += ["TestArch"]
+1
View File
@@ -154,6 +154,7 @@
<file>icons/Tree_Part.svg</file>
<file>icons/banner.png</file>
<file>icons/preferences-arch.svg</file>
<file>icons/preferences-bim.svg</file>
<file>icons/techdraw-ArchView.svg</file>
<file>icons/techdraw-PageDefault.svg</file>
<file>icons/warning.svg</file>
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="64px" height="64px" id="svg2816" version="1.1" inkscape:version="0.48.5 r10040" sodipodi:docname="Arch_Wall_Tree.svg">
<defs id="defs2818">
<inkscape:perspective sodipodi:type="inkscape:persp3d" inkscape:vp_x="0 : 32 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_z="64 : 32 : 1" inkscape:persp3d-origin="32 : 21.333333 : 1" id="perspective2824"/>
<inkscape:perspective id="perspective3622" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
<inkscape:perspective id="perspective3622-9" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
<inkscape:perspective id="perspective3653" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
<inkscape:perspective id="perspective3675" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
<inkscape:perspective id="perspective3697" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
<inkscape:perspective id="perspective3720" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
<inkscape:perspective id="perspective3742" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
<inkscape:perspective id="perspective3764" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
<inkscape:perspective id="perspective3785" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
<inkscape:perspective id="perspective3806" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
<inkscape:perspective id="perspective3806-3" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
<inkscape:perspective id="perspective3835" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
</defs>
<sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="8" inkscape:cx="25.737591" inkscape:cy="23.828811" inkscape:current-layer="layer1" showgrid="true" inkscape:document-units="px" inkscape:grid-bbox="true" inkscape:snap-bbox="true" inkscape:bbox-paths="true" inkscape:bbox-nodes="true" inkscape:snap-bbox-edge-midpoints="true" inkscape:snap-bbox-midpoints="true" inkscape:object-paths="true" inkscape:object-nodes="true" inkscape:window-width="1600" inkscape:window-height="837" inkscape:window-x="0" inkscape:window-y="27" inkscape:window-maximized="1" inkscape:snap-global="true">
<inkscape:grid type="xygrid" id="grid3236" empspacing="2" visible="true" enabled="true" snapvisiblegridlinesonly="true"/>
</sodipodi:namedview>
<metadata id="metadata2821">
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title/>
<dc:creator>
<cc:Agent>
<dc:title>[yorikvanhavre]</dc:title>
</cc:Agent>
</dc:creator>
<dc:title>Arch_Wall_Tree</dc:title>
<dc:date>2011-12-06</dc:date>
<dc:relation>https://www.freecad.org/wiki/index.php?title=Artwork</dc:relation>
<dc:publisher>
<cc:Agent>
<dc:title>FreeCAD</dc:title>
</cc:Agent>
</dc:publisher>
<dc:identifier>FreeCAD/src/Mod/Arch/Resources/icons/Arch_Wall_Tree.svg</dc:identifier>
<dc:rights>
<cc:Agent>
<dc:title>FreeCAD LGPL2+</dc:title>
</cc:Agent>
</dc:rights>
<cc:license>https://www.gnu.org/copyleft/lesser.html</cc:license>
<dc:contributor>
<cc:Agent>
<dc:title>[agryson] Alexander Gryson</dc:title>
</cc:Agent>
</dc:contributor>
</cc:Work>
</rdf:RDF>
</metadata>
<g id="layer1" inkscape:label="Layer 1" inkscape:groupmode="layer">
<g id="g4052" transform="matrix(0.91666667,0,0,1,-50.916667,0)">
<path inkscape:connector-curvature="0" id="path3276" d="m 85,53 0,-10 24,8 0,10 z" style="fill:#d3d7cf;stroke:#2e3436;stroke-width:2.0889318;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" sodipodi:nodetypes="ccccc"/>
<path sodipodi:nodetypes="ccccc" inkscape:connector-curvature="0" id="path4048" d="m 87.208102,45.791898 0,5.832408 19.644748,6.583796 0,-5.780382 z" style="fill:none;stroke:#ffffff;stroke-width:2.0889318;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
<g id="g4056" transform="translate(-60,0)">
<path inkscape:connector-curvature="0" id="path3278" d="m 109,51 12,-8 0,10 -12,8 z" style="fill:#babdb6;stroke:#2e3436;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"/>
<path sodipodi:nodetypes="ccccc" inkscape:connector-curvature="0" id="path4050" d="M 110.96532,57.306462 111,52.052025 l 8,-5.329494 0,5.225444 z" style="fill:none;stroke:#d3d7cf;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
<g id="g4056-6" transform="matrix(1,0,0,-1,-71,88.72253)">
<path inkscape:connector-curvature="0" id="path3278-2" d="m 109,43.72253 11,-4 0,10 -11,4 z" style="fill:#d3d7cf;stroke:#2e3436;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" sodipodi:nodetypes="ccccc"/>
<path sodipodi:nodetypes="ccccc" inkscape:connector-curvature="0" id="path4050-9" d="m 110.99875,50.861814 0.001,-5.733219 7.00781,-2.532042 -0.002,5.724779 z" style="fill:none;stroke:#ffffff;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
<g id="g4052-1" transform="matrix(0.91666667,0,0,1,-72.916667,-8)">
<path inkscape:connector-curvature="0" id="path3276-2" d="m 85,53 0,-10 24,8 0,10 z" style="fill:#d3d7cf;stroke:#2e3436;stroke-width:2.0889318;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" sodipodi:nodetypes="ccccc"/>
<path sodipodi:nodetypes="ccccc" inkscape:connector-curvature="0" id="path4048-7" d="m 87.208102,45.791898 0,5.832408 19.644748,6.583796 0,-5.780382 z" style="fill:none;stroke:#ffffff;stroke-width:2.0889318;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
<g id="g4056-6-9" transform="matrix(1,0,0,-1,-104,76.72253)">
<path inkscape:connector-curvature="0" id="path3278-2-3" d="m 109,43.72253 11,-4 0,10 -11,4 z" style="fill:#d3d7cf;stroke:#2e3436;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" sodipodi:nodetypes="ccccc"/>
<path sodipodi:nodetypes="ccccc" inkscape:connector-curvature="0" id="path4050-9-6" d="m 110.99875,50.861814 0.001,-5.733219 7.00781,-2.532042 -0.002,5.724779 z" style="fill:none;stroke:#ffffff;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
<g id="g4052-0" transform="matrix(0.91666667,0,0,1,-61.916667,-16)">
<path inkscape:connector-curvature="0" id="path3276-6" d="m 85,53 0,-10 24,8 0,10 z" style="fill:#d3d7cf;stroke:#2e3436;stroke-width:2.0889318;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" sodipodi:nodetypes="ccccc"/>
<path sodipodi:nodetypes="ccccc" inkscape:connector-curvature="0" id="path4048-2" d="m 87.208102,45.791898 0,5.832408 19.644748,6.583796 0,-5.780382 z" style="fill:none;stroke:#ffffff;stroke-width:2.0889318;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
<g id="g4056-61" transform="translate(-60,-12)">
<path inkscape:connector-curvature="0" id="path3278-8" d="m 109,51 12,-8 0,10 -12,8 z" style="fill:#babdb6;stroke:#2e3436;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"/>
<path sodipodi:nodetypes="ccccc" inkscape:connector-curvature="0" id="path4050-7" d="M 110.96532,57.306462 111,52.052025 l 8,-5.329494 0,5.225444 z" style="fill:none;stroke:#d3d7cf;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
<g id="g4052-9" transform="matrix(0.91666667,0,0,1,-50.916667,-24)">
<path inkscape:connector-curvature="0" id="path3276-20" d="m 85,53 0,-10 24,8 0,10 z" style="fill:#d3d7cf;stroke:#2e3436;stroke-width:2.0889318;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" sodipodi:nodetypes="ccccc"/>
<path sodipodi:nodetypes="ccccc" inkscape:connector-curvature="0" id="path4048-23" d="m 87.208102,45.791898 0,5.832408 19.644748,6.583796 0,-5.780382 z" style="fill:none;stroke:#ffffff;stroke-width:2.0889318;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
<g id="g4056-7" transform="translate(-60,-24)">
<path inkscape:connector-curvature="0" id="path3278-5" d="m 109,51 12,-8 0,10 -12,8 z" style="fill:#babdb6;stroke:#2e3436;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"/>
<path sodipodi:nodetypes="ccccc" inkscape:connector-curvature="0" id="path4050-92" d="M 110.96532,57.306462 111,52.052025 l 8,-5.329494 0,5.225444 z" style="fill:none;stroke:#d3d7cf;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
<g id="g4052-1-2" transform="matrix(0.91666667,0,0,1,-72.916667,-32)">
<path inkscape:connector-curvature="0" id="path3276-2-8" d="m 85,53 0,-10 24,8 0,10 z" style="fill:#d3d7cf;stroke:#2e3436;stroke-width:2.0889318;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" sodipodi:nodetypes="ccccc"/>
<path sodipodi:nodetypes="ccccc" inkscape:connector-curvature="0" id="path4048-7-9" d="m 87.208102,45.791898 0,5.832408 19.644748,6.583796 0,-5.780382 z" style="fill:none;stroke:#ffffff;stroke-width:2.0889318;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/>
</g>
<path style="fill:#ffffff;stroke:#2e3436;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" d="M 27,19 49,27 61,19 39,11 z" id="path4312" inkscape:connector-curvature="0"/>
<path style="fill:#ffffff;stroke:#2e3436;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" d="M 5,11 27,19 39,11 17,3 z" id="path4312-1" inkscape:connector-curvature="0"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 11 KiB

+339 -368
View File
@@ -9,8 +9,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>565</width>
<height>679</height>
<width>580</width>
<height>691</height>
</rect>
</property>
<property name="windowTitle">
@@ -43,55 +43,14 @@
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>608</width>
<height>702</height>
<y>-546</y>
<width>667</width>
<height>871</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="3" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Preferred working units</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Default size of a grid square</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="label_17">
<property name="text">
<string>Main grid line every</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="Gui::InputField" name="settingText">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The default size of texts and dimension texts. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;Draft &amp;gt; Texts and dimensions &amp;gt; Font size, TechDraw &amp;gt; TechDraw 2 &amp;gt; Font size&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>0 </string>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
</property>
</widget>
</item>
<item row="8" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Default text size</string>
</property>
</widget>
</item>
<item row="11" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
@@ -99,13 +58,6 @@
</property>
</widget>
</item>
<item row="15" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string>Default workbench</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_14">
<property name="text">
@@ -113,215 +65,50 @@
</property>
</widget>
</item>
<item row="16" column="0">
<widget class="QLabel" name="label_11">
<property name="text">
<string>Open a new document at startup</string>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Default line width</string>
</property>
</widget>
</item>
<item row="13" column="1">
<widget class="QLineEdit" name="settingAuthor">
<item row="15" column="1">
<widget class="QCheckBox" name="settingNewdocument">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Your name (optional). You can also add your email like this: John Doe &amp;lt;[email protected]&amp;gt;. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;General &amp;gt; Document &amp;gt; Author name&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Check this to make FreeCAD start with a new blank document. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;General &amp;gt; Document &amp;gt; Create new document at startup&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="17" column="0">
<widget class="QLabel" name="label_12">
<item row="0" column="1">
<widget class="QComboBox" name="comboPresets">
<property name="toolTip">
<string>Choose one of the presets in this list to fill all the settings below with predetermined values. Then, adjust to your likings</string>
</property>
<item>
<property name="text">
<string>Choose your preferred working unit...</string>
</property>
</item>
<item>
<property name="text">
<string>Centimeters</string>
</property>
</item>
<item>
<property name="text">
<string>Meters</string>
</property>
</item>
<item>
<property name="text">
<string>US / Imperial</string>
</property>
</item>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="label_17">
<property name="text">
<string>Number of backup files</string>
<string>Main grid line every</string>
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="QSpinBox" name="settingLinewidth">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Default line width. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;Display &amp;gt; Part colors &amp;gt; Default line width, Draft &amp;gt; Visual settings &amp;gt; Default line width&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="suffix">
<string> px</string>
</property>
<property name="value">
<number>2</number>
</property>
</widget>
</item>
<item row="9" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Default font</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QComboBox" name="settingWP">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Where the grid appears at FreeCAD startup. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;Draft &amp;gt; General settings &amp;gt; Default working plane&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<item>
<property name="text">
<string>Auto (continuously adapts to the current view)</string>
</property>
</item>
<item>
<property name="text">
<string>Top (XY)</string>
</property>
</item>
<item>
<property name="text">
<string>Front (XZ)</string>
</property>
</item>
<item>
<property name="text">
<string>Side (YZ)</string>
</property>
</item>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="label_15">
<property name="text">
<string>Default grid position</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QSpinBox" name="settingDecimals">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The number of decimals you wish to see used in the interface controls and measurements. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;General &amp;gt; Units &amp;gt; Number of decimals&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="value">
<number>2</number>
</property>
</widget>
</item>
<item row="9" column="1">
<widget class="QFontComboBox" name="settingFont">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Default font. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;Draft &amp;gt; Texts and dimensions &amp;gt; Font family, TechDraw &amp;gt; TechDraw 1 &amp;gt; Label Font&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item row="12" column="1">
<widget class="Gui::InputField" name="settingArrowsize">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Default dimension arrow size. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;TechDraw &amp;gt; TechDraw 2 &amp;gt; Arrow size, Draft &amp;gt; Texts and dimensions &amp;gt; Arrow size&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>0 </string>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
</property>
</widget>
</item>
<item row="11" column="1">
<widget class="QComboBox" name="settingDimstyle">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Default dimension style. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;Draft &amp;gt; Texts and dimensions &amp;gt; Arrow style, TechDraw &amp;gt; TechDraw 2 &amp;gt; Arrow Style&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<item>
<property name="text">
<string>dot</string>
</property>
</item>
<item>
<property name="text">
<string>arrow</string>
</property>
</item>
<item>
<property name="text">
<string>slash</string>
</property>
</item>
<item>
<property name="text">
<string>thick slash</string>
</property>
</item>
</widget>
</item>
<item row="13" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>Default author for new files</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QSpinBox" name="settingSquares">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;How many small squares between each main line of the grid. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;Draft &amp;gt; Grid and snapping &amp;gt; Main line every&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="suffix">
<string> square(s)</string>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
</item>
<item row="17" column="1">
<widget class="QSpinBox" name="settingBackupfiles">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The number of backup files to keep when saving a file. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;General &amp;gt; Document &amp;gt; Maximum number of backup files&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
</item>
<item row="14" column="1">
<widget class="QComboBox" name="settingLicense">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Optional license you wish to use for new files. Keep &amp;quot;All rights reserved&amp;quot; if you don't wish to use any particular license. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;General &amp;gt; Document &amp;gt; Default license&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<item>
<property name="text">
<string>All rights reserved (no specific license)</string>
</property>
</item>
<item>
<property name="text">
<string>CC-BY</string>
</property>
</item>
<item>
<property name="text">
<string>CC-BY-SA</string>
</property>
</item>
<item>
<property name="text">
<string>CC-BY-NC</string>
</property>
</item>
<item>
<property name="text">
<string>CC-BY-SA-NC</string>
</property>
</item>
<item>
<property name="text">
<string/>
</property>
</item>
</widget>
</item>
<item row="3" column="1">
<widget class="QComboBox" name="settingUnits">
<property name="toolTip">
@@ -359,6 +146,174 @@
</item>
</widget>
</item>
<item row="8" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Default text size</string>
</property>
</widget>
</item>
<item row="16" column="0">
<widget class="QLabel" name="label_12">
<property name="text">
<string>Number of backup files</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QSpinBox" name="settingDecimals">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The number of decimals you wish to see used in the interface controls and measurements. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;General &amp;gt; Units &amp;gt; Number of decimals&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="value">
<number>2</number>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QSpinBox" name="settingSquares">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;How many small squares between each main line of the grid. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;Draft &amp;gt; Grid and snapping &amp;gt; Main line every&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="suffix">
<string> square(s)</string>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
</item>
<item row="11" column="1">
<widget class="QComboBox" name="settingDimstyle">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Default dimension style. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;Draft &amp;gt; Texts and dimensions &amp;gt; Arrow style, TechDraw &amp;gt; TechDraw 2 &amp;gt; Arrow Style&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<item>
<property name="text">
<string>dot</string>
</property>
</item>
<item>
<property name="text">
<string>arrow</string>
</property>
</item>
<item>
<property name="text">
<string>slash</string>
</property>
</item>
<item>
<property name="text">
<string>thick slash</string>
</property>
</item>
</widget>
</item>
<item row="17" column="0">
<widget class="QLabel" name="label_28">
<property name="text">
<string>Default camera altitude</string>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="label_15">
<property name="text">
<string>Default grid position</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Preferred working units</string>
</property>
</widget>
</item>
<item row="15" column="0">
<widget class="QLabel" name="label_11">
<property name="text">
<string>Open a new document at startup</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_27">
<property name="text">
<string>Fill with default values</string>
</property>
</widget>
</item>
<item row="2" column="0">
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="QLabel" name="label_19">
<property name="text">
<string>3D view background</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_31">
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_22">
<property name="text">
<string>Geometry color</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_13">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item row="9" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Default font</string>
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="QSpinBox" name="settingLinewidth">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Default line width. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;Display &amp;gt; Part colors &amp;gt; Default line width, Draft &amp;gt; Visual settings &amp;gt; Default line width&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="suffix">
<string> px</string>
</property>
<property name="value">
<number>2</number>
</property>
</widget>
</item>
<item row="16" column="1">
<widget class="QSpinBox" name="settingBackupfiles">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The number of backup files to keep when saving a file. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;General &amp;gt; Document &amp;gt; Maximum number of backup files&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Default size of a grid square</string>
</property>
</widget>
</item>
<item row="14" column="0">
<widget class="QLabel" name="label_9">
<property name="text">
@@ -366,6 +321,13 @@
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Default line width</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="Gui::InputField" name="settingGrid">
<property name="toolTip">
@@ -379,99 +341,6 @@
</property>
</widget>
</item>
<item row="12" column="0">
<widget class="QLabel" name="label_16">
<property name="text">
<string>Default dimension arrow size</string>
</property>
</widget>
</item>
<item row="16" column="1">
<widget class="QCheckBox" name="settingNewdocument">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Check this to make FreeCAD start with a new blank document. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;General &amp;gt; Document &amp;gt; Create new document at startup&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_27">
<property name="text">
<string>Fill with default values</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="comboPresets">
<property name="toolTip">
<string>Choose one of the presets in this list to fill all the settings below with predetermined values. Then, adjust to your likings</string>
</property>
<item>
<property name="text">
<string>Choose your preferred working unit...</string>
</property>
</item>
<item>
<property name="text">
<string>Centimeters</string>
</property>
</item>
<item>
<property name="text">
<string>Meters</string>
</property>
</item>
<item>
<property name="text">
<string>US / Imperial</string>
</property>
</item>
</widget>
</item>
<item row="15" column="1">
<widget class="QComboBox" name="settingWorkbench">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is the default workbench you will start with when launching FreeCAD. Options:&lt;/p&gt;&lt;p&gt;- &lt;span style=&quot; font-weight:600;&quot;&gt;No changes&lt;/span&gt;: Everything stays the way it is now&lt;/p&gt;&lt;p&gt;- &lt;span style=&quot; font-weight:600;&quot;&gt;BIM workbench&lt;/span&gt;: FreeCAD will start directly in the BIM workbench&lt;/p&gt;&lt;p&gt;- &lt;span style=&quot; font-weight:600;&quot;&gt;Start workbench, BIM afterwards&lt;/span&gt;: FreeCAD will still show the Start page, but will switch automatically to the BIM workbench when opening or creating a file&lt;/p&gt;&lt;p&gt;Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;General &amp;gt; Auto load module&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<item>
<property name="text">
<string>No change</string>
</property>
</item>
<item>
<property name="text">
<string>BIM workbench</string>
</property>
</item>
<item>
<property name="text">
<string>Start workbench, switch to BIM afterwards</string>
</property>
</item>
</widget>
</item>
<item row="18" column="0">
<widget class="QLabel" name="label_28">
<property name="text">
<string>Default camera altitude</string>
</property>
</widget>
</item>
<item row="18" column="1">
<widget class="QSpinBox" name="settingCameraHeight">
<property name="toolTip">
<string>This is the altitude of the camera when you create a blank file. Good values are between 5 (view a few centimeters wide) and 5000 (view a few meters wide)</string>
</property>
<property name="maximum">
<number>99999</number>
</property>
<property name="value">
<number>5</number>
</property>
</widget>
</item>
<item row="2" column="1">
<layout class="QGridLayout" name="gridLayout_2">
<item row="3" column="3">
@@ -588,37 +457,139 @@
</item>
</layout>
</item>
<item row="2" column="0">
<layout class="QVBoxLayout" name="verticalLayout_5">
<item row="17" column="1">
<widget class="QSpinBox" name="settingCameraHeight">
<property name="toolTip">
<string>This is the altitude of the camera when you create a blank file. Good values are between 5 (view a few centimeters wide) and 5000 (view a few meters wide)</string>
</property>
<property name="maximum">
<number>99999</number>
</property>
<property name="value">
<number>5</number>
</property>
</widget>
</item>
<item row="13" column="1">
<widget class="QLineEdit" name="settingAuthor">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Your name (optional). You can also add your email like this: John Doe &amp;lt;[email protected]&amp;gt;. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;General &amp;gt; Document &amp;gt; Author name&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="Gui::InputField" name="settingText">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The default size of texts and dimension texts. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;Draft &amp;gt; Texts and dimensions &amp;gt; Font size, TechDraw &amp;gt; TechDraw 2 &amp;gt; Font size&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>0 </string>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
</property>
</widget>
</item>
<item row="12" column="0">
<widget class="QLabel" name="label_16">
<property name="text">
<string>Default dimension arrow size</string>
</property>
</widget>
</item>
<item row="14" column="1">
<widget class="QComboBox" name="settingLicense">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Optional license you wish to use for new files. Keep &amp;quot;All rights reserved&amp;quot; if you don't wish to use any particular license. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;General &amp;gt; Document &amp;gt; Default license&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<item>
<widget class="QLabel" name="label_19">
<property name="text">
<string>3D view background</string>
</property>
</widget>
<property name="text">
<string>All rights reserved (no specific license)</string>
</property>
</item>
<item>
<widget class="QLabel" name="label_31">
<property name="text">
<string/>
</property>
</widget>
<property name="text">
<string>CC-BY</string>
</property>
</item>
<item>
<widget class="QLabel" name="label_22">
<property name="text">
<string>Geometry color</string>
</property>
</widget>
<property name="text">
<string>CC-BY-SA</string>
</property>
</item>
<item>
<widget class="QLabel" name="label_13">
<property name="text">
<string/>
</property>
</widget>
<property name="text">
<string>CC-BY-NC</string>
</property>
</item>
</layout>
<item>
<property name="text">
<string>CC-BY-SA-NC</string>
</property>
</item>
<item>
<property name="text">
<string/>
</property>
</item>
</widget>
</item>
<item row="12" column="1">
<widget class="Gui::InputField" name="settingArrowsize">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Default dimension arrow size. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;TechDraw &amp;gt; TechDraw 2 &amp;gt; Arrow size, Draft &amp;gt; Texts and dimensions &amp;gt; Arrow size&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>0 </string>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
</property>
</widget>
</item>
<item row="9" column="1">
<widget class="QFontComboBox" name="settingFont">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Default font. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;Draft &amp;gt; Texts and dimensions &amp;gt; Font family, TechDraw &amp;gt; TechDraw 1 &amp;gt; Label Font&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item row="13" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>Default author for new files</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QComboBox" name="settingWP">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Where the grid appears at FreeCAD startup. Location in preferences: &lt;span style=&quot; font-weight:600;&quot;&gt;Draft &amp;gt; General settings &amp;gt; Default working plane&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<item>
<property name="text">
<string>Auto (continuously adapts to the current view)</string>
</property>
</item>
<item>
<property name="text">
<string>Top (XY)</string>
</property>
</item>
<item>
<property name="text">
<string>Front (XZ)</string>
</property>
</item>
<item>
<property name="text">
<string>Side (YZ)</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
@@ -639,7 +610,7 @@
<item>
<widget class="QLabel" name="labelVersion">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Tip: You are currently using FreeCAD version %1. Consider using the &lt;a href=&quot;https://github.com/FreeCAD/FreeCAD/releases&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;latest development version %2&lt;/span&gt;&lt;/a&gt;, which brings all the latest improvements to FreeCAD.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;b&gt;Tip&lt;/b&gt;: You are currently using FreeCAD version %1. Consider using the &lt;a href=&quot;https://github.com/FreeCAD/FreeCAD/releases&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;latest development version %2&lt;/span&gt;&lt;/a&gt;, which brings all the latest improvements to FreeCAD.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
+30 -12
View File
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>427</width>
<height>688</height>
<width>412</width>
<height>789</height>
</rect>
</property>
<property name="windowTitle">
@@ -16,15 +16,33 @@
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="image">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>400</width>
<height>178</height>
</size>
</property>
<property name="baseSize">
<size>
<width>400</width>
<height>178</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="../Arch.qrc">:/icons/banner.png</pixmap>
</property>
<property name="scaledContents">
<bool>false</bool>
</property>
</widget>
</item>
<item>
@@ -92,9 +110,9 @@
</widget>
</item>
<item>
<widget class="QLabel" name="label_6">
<widget class="QLabel" name="label_8">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;You might also want to start from an existing floor plan or 3D model made in another application. Under menu &lt;span style=&quot; font-weight:600;&quot;&gt;File -&amp;gt; Import&lt;/span&gt;, you will find a wide range of file formats that can be imported into FreeCAD.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>There is no mandatory behaviour here though, and you can also start creating walls and columns directly, and care about organizing things in levels later.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
@@ -102,14 +120,12 @@
</widget>
</item>
<item>
<widget class="QLabel" name="label_8">
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<widget class="QLabel" name="label_6">
<property name="text">
<string>Keep updated!</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;You might also want to start from an existing floor plan or 3D model made in another application. Under menu &lt;span style=&quot; font-weight:600;&quot;&gt;File -&amp;gt; Import&lt;/span&gt;, you will find a wide range of file formats that can be imported into FreeCAD.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
@@ -125,7 +141,9 @@
</item>
</layout>
</widget>
<resources/>
<resources>
<include location="../Arch.qrc"/>
</resources>
<connections>
<connection>
<sender>buttonBox</sender>
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>534</width>
<height>691</height>
<height>718</height>
</rect>
</property>
<property name="windowTitle">
@@ -369,6 +369,13 @@ unit to work with when opening the file.</string>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Check also NativeIFC-specific preferences under BIM -&gt; NativeIFC</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
+8 -1
View File
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>555</width>
<height>689</height>
<height>729</height>
</rect>
</property>
<property name="windowTitle">
@@ -476,6 +476,13 @@ are placed in a 'Group' instead.
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Check also NativeIFC-specific preferences under BIM -&gt; NativeIFC</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
+5 -33
View File
@@ -79,10 +79,11 @@ class BIM_Setup:
import RebarTools
except ImportError:
m.append("Reinforcement")
try:
import BIMServer
except ImportError:
m.append("WebTools")
# disabled as WebTools can currentyl not be installed because of WebGui dependency
#try:
# import BIMServer
#except ImportError:
# m.append("WebTools")
if sys.version_info.major < 3:
try:
import CommandsFrame
@@ -253,18 +254,6 @@ class BIM_Setup:
FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Document").SetString(
"prefLicenseUrl", ""
) # TODO - set correct license URL
bimdefault = self.form.settingWorkbench.currentIndex()
if bimdefault == 1:
FreeCAD.ParamGet("User parameter:BaseApp/Preferences/General").SetString(
"AutoloadModule", "BIMWorkbench"
)
elif bimdefault == 2:
FreeCAD.ParamGet("User parameter:BaseApp/Preferences/General").SetString(
"AutoloadModule", "StartWorkbench"
)
FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Start").SetString(
"AutoloadModule", "BIMWorkbench"
)
newdoc = self.form.settingNewdocument.isChecked()
FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Document").SetBool(
"CreateNewDoc", newdoc
@@ -531,21 +520,6 @@ class BIM_Setup:
lic = [0, 1, 2, 1, 3, 4, 1, 0, 0, 0][
lic
] # less choices in our simplified dialog
bimdefault = FreeCAD.ParamGet(
"User parameter:BaseApp/Preferences/General"
).GetString("AutoloadModule", "")
if bimdefault == "BIMWorkbench":
bimdefault = 1
elif (
bimdefault == "StartWorkbench"
and FreeCAD.ParamGet(
"User parameter:BaseApp/Preferences/Mod/Start"
).GetString("AutoloadModule", "")
== "BIMWorkbench"
):
bimdefault = 2
else:
bimdefault = 0
newdoc = FreeCAD.ParamGet(
"User parameter:BaseApp/Preferences/Document"
).GetBool("CreateNewDoc", False)
@@ -604,8 +578,6 @@ class BIM_Setup:
self.form.settingAuthor.setText(author)
if lic != None:
self.form.settingLicense.setCurrentIndex(lic)
if bimdefault != None:
self.form.settingWorkbench.setCurrentIndex(bimdefault)
if newdoc != None:
self.form.settingNewdocument.setChecked(newdoc)
if bkp != None: