BIM: Fixed wrong ui for ProjectManager tool

This commit is contained in:
Yorik van Havre
2024-07-08 14:47:04 +02:00
committed by Yorik van Havre
parent 65aee3edff
commit 39676c32cd

View File

@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>482</width>
<height>691</height>
<width>402</width>
<height>470</height>
</rect>
</property>
<property name="windowTitle">
@@ -15,16 +15,9 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="labelEditing">
<property name="font">
<font>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
<widget class="QLabel" name="label">
<property name="text">
<string>Warning! You are editing the current document. Click &quot;Create new document&quot; to create a new one.</string>
<string>This screen allows you to configure a new BIM project in FreeCAD.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
@@ -32,49 +25,43 @@
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<widget class="QComboBox" name="presets">
<item>
<widget class="QComboBox" name="presets">
<property name="minimumSize">
<size>
<width>250</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Use a preset stored on your computer</string>
</property>
<item>
<property name="text">
<string>Use preset...</string>
</property>
</item>
</widget>
<property name="text">
<string>Use preset...</string>
</property>
</item>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonSave">
<widget class="QPushButton" name="buttonSaveTemplate">
<property name="toolTip">
<string>Save the contents of this screen as a preset. Presets are stored as .txt files in your FreeCAD user folder</string>
<string>Saves the current document as a template, including all the current BIM settings</string>
</property>
<property name="text">
<string>Save preset</string>
<string>Save template...</string>
</property>
<property name="icon">
<iconset theme="gtk-save">
<normaloff>.</normaloff>.</iconset>
<normaloff/>
</iconset>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonLoadTemplate">
<property name="toolTip">
<string>Loads the contents of a FCStd file into the active document, applying all the BIM settings stored in it if any</string>
</property>
<property name="text">
<string>Load template...</string>
</property>
<property name="icon">
<iconset theme="gtk-open">
<normaloff/>
</iconset>
</property>
</widget>
</item>
@@ -90,125 +77,34 @@
<rect>
<x>0</x>
<y>0</y>
<width>452</width>
<height>1763</height>
<width>369</width>
<height>1214</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QGroupBox" name="groupNewDocument">
<property name="title">
<string>Project</string>
<string>Create new document</string>
</property>
<property name="checkable">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<widget class="QLabel" name="label">
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QLabel" name="label_18">
<property name="text">
<string>This screen allows you to configure a BIM project in FreeCAD. When working with IFC, the project is an actual IFC entity, and the root of your model.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
<string>Project name</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QLabel" name="label_18">
<property name="text">
<string>Project name</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="projectName">
<property name="toolTip">
<string>A name for your project</string>
</property>
<property name="text">
<string>Unnamed</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QCheckBox" name="nativeIFC">
<property name="toolTip">
<string>Is this project an IFC project? Note: You can always turn any FreeCAD model (BIM or not) into an IFC project later on.</string>
</property>
<property name="text">
<string>Native IFC project</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_9">
<property name="text">
<string>(</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox">
<property name="toolTip">
<string>If locked, any new object created in FreeCAD will automatically become an IFC object and part of this project</string>
</property>
<property name="text">
<string>Locked</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_10">
<property name="text">
<string>)</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="createNewDocument">
<property name="toolTip">
<string>Create a new document or use the current one?</string>
</property>
<item row="0" column="1">
<widget class="QLineEdit" name="projectName">
<property name="text">
<string>Create new document</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="addHumanFigure">
<property name="toolTip">
<string>If this is checked, a human figure will be added, which helps greatly to give a sense of scale when viewing the model</string>
</property>
<property name="text">
<string>Add a human figure</string>
</property>
<property name="checked">
<bool>true</bool>
<string>Unnamed</string>
</property>
</widget>
</item>
@@ -216,12 +112,22 @@
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupSite">
<widget class="QCheckBox" name="addHumanFigure">
<property name="toolTip">
<string>Add a site object</string>
<string>If this is checked, a human figure will be added, which helps greatly to give a sense of scale when viewing the model</string>
</property>
<property name="text">
<string>Add a human figure</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupSite">
<property name="title">
<string>Create site</string>
<string>Create Site</string>
</property>
<property name="flat">
<bool>false</bool>
@@ -244,20 +150,17 @@
<layout class="QGridLayout" name="gridLayout">
<item row="3" column="1">
<widget class="QDoubleSpinBox" name="siteLongitude">
<property name="toolTip">
<string>The East longitude (can be negative)</string>
</property>
<property name="suffix">
<string> E</string>
</property>
<property name="decimals">
<number>4</number>
</property>
<property name="minimum">
<double>-180.000000000000000</double>
</property>
<property name="maximum">
<double>180.000000000000000</double>
<double>180.0</double>
</property>
<property name="minimum">
<double>-180.0</double>
</property>
</widget>
</item>
@@ -277,9 +180,6 @@
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="siteName">
<property name="toolTip">
<string>A name for your site</string>
</property>
<property name="text">
<string>Default Site</string>
</property>
@@ -294,9 +194,6 @@
</item>
<item row="5" column="1">
<widget class="QDoubleSpinBox" name="siteDeviation">
<property name="toolTip">
<string>An optional difference between the up (Y axis) direction of this model and the true geographic North direction</string>
</property>
<property name="suffix">
<string> °</string>
</property>
@@ -314,20 +211,13 @@
</item>
<item row="6" column="1">
<widget class="Gui::InputField" name="siteElevation">
<property name="toolTip">
<string>A base elevation for this site, or the difference between the level 0 (XY plane) of this model, and the actual elevation of that point on Earth</string>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="siteAddress">
<property name="toolTip">
<string>The physical address of your site</string>
</property>
</widget>
<widget class="QLineEdit" name="siteAddress"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
@@ -345,20 +235,17 @@
</item>
<item row="2" column="1">
<widget class="QDoubleSpinBox" name="siteLatitude">
<property name="toolTip">
<string>The North latitude (can be negative)</string>
</property>
<property name="suffix">
<string> N</string>
</property>
<property name="decimals">
<number>4</number>
</property>
<property name="minimum">
<double>-90.000000000000000</double>
</property>
<property name="maximum">
<double>90.000000000000000</double>
<double>90.0</double>
</property>
<property name="minimum">
<double>-90.0</double>
</property>
</widget>
</item>
@@ -369,11 +256,8 @@
</item>
<item>
<widget class="QGroupBox" name="groupBuilding">
<property name="toolTip">
<string>Add a building object</string>
</property>
<property name="title">
<string>Create building</string>
<string>Create Building</string>
</property>
<property name="checkable">
<bool>true</bool>
@@ -414,9 +298,6 @@
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="buildingName">
<property name="toolTip">
<string>A name for your building</string>
</property>
<property name="text">
<string>Default Building</string>
</property>
@@ -451,9 +332,6 @@
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>The main use class of this building</string>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
@@ -474,9 +352,6 @@
</item>
<item row="7" column="1">
<widget class="QSpinBox" name="countVAxes">
<property name="toolTip">
<string>Number of vertical axes</string>
</property>
<property name="value">
<number>0</number>
</property>
@@ -491,9 +366,6 @@
</item>
<item row="9" column="1">
<widget class="QSpinBox" name="countHAxes">
<property name="toolTip">
<string>Number of horizontal axes</string>
</property>
<property name="value">
<number>0</number>
</property>
@@ -501,9 +373,6 @@
</item>
<item row="5" column="1">
<widget class="Gui::InputField" name="buildingWidth">
<property name="toolTip">
<string>The estimated width of your building</string>
</property>
<property name="text">
<string>0 </string>
</property>
@@ -514,9 +383,6 @@
</item>
<item row="13" column="1">
<widget class="QSpinBox" name="lineWidth">
<property name="toolTip">
<string>The line width for axes and rectangle</string>
</property>
<property name="value">
<number>2</number>
</property>
@@ -524,9 +390,6 @@
</item>
<item row="8" column="1">
<widget class="Gui::InputField" name="distVAxes">
<property name="toolTip">
<string>Distance between the vertical axes</string>
</property>
<property name="text">
<string>0 </string>
</property>
@@ -537,9 +400,6 @@
</item>
<item row="4" column="1">
<widget class="Gui::InputField" name="buildingLength">
<property name="toolTip">
<string>The estimated length of your building</string>
</property>
<property name="text">
<string>0 </string>
</property>
@@ -550,9 +410,6 @@
</item>
<item row="10" column="1">
<widget class="Gui::InputField" name="distHAxes">
<property name="toolTip">
<string>Distance between the horizontal axes</string>
</property>
<property name="text">
<string>0 </string>
</property>
@@ -564,15 +421,12 @@
<item row="13" column="0">
<widget class="QLabel" name="label_30">
<property name="text">
<string>Line width</string>
<string>Axes line width</string>
</property>
</widget>
</item>
<item row="14" column="1">
<widget class="Gui::ColorButton" name="lineColor">
<property name="toolTip">
<string>The color for axes and rectangle</string>
</property>
<property name="color">
<color>
<red>33</red>
@@ -585,27 +439,7 @@
<item row="14" column="0">
<widget class="QLabel" name="label_31">
<property name="text">
<string>Line color</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="label_11">
<property name="text">
<string>Create rectangle</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QCheckBox" name="checkBox_2">
<property name="toolTip">
<string>If checked, a rectangle of the gross building size you entered above will be placed</string>
</property>
<property name="text">
<string/>
</property>
<property name="checked">
<bool>true</bool>
<string>Axes color</string>
</property>
</widget>
</item>
@@ -616,78 +450,62 @@
</item>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="toolTip">
<string>Add level objects</string>
</property>
<property name="title">
<string>Create levels</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>true</bool>
<string>Levels</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QLabel" name="label_8">
<property name="text">
<string>List of levels</string>
</property>
</widget>
</item>
<item>
<widget class="QTreeWidget" name="treeWidget">
<property name="toolTip">
<string>A list of the levels of the building. Double-click to rename or change level</string>
</property>
<attribute name="headerDefaultSectionSize">
<number>200</number>
</attribute>
<column>
<property name="text">
<string>Name</string>
</property>
</column>
<column>
<property name="text">
<string>Level</string>
</property>
</column>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QPushButton" name="buttonAddLevel">
<property name="toolTip">
<string>Add a new level. Double-click on it to change name and level</string>
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="1">
<widget class="QSpinBox" name="countLevels">
<property name="singleStep">
<number>1</number>
</property>
<property name="text">
<string>Add</string>
</property>
<property name="icon">
<iconset theme="add">
<normaloff>.</normaloff>.</iconset>
<property name="value">
<number>0</number>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonDelLevel">
<property name="toolTip">
<string>Delete a selected level</string>
</property>
<item row="1" column="0">
<widget class="QLabel" name="label_32">
<property name="text">
<string>Delete</string>
<string>Level height</string>
</property>
<property name="icon">
<iconset theme="remove">
<normaloff>.</normaloff>.</iconset>
</widget>
</item>
<item row="1" column="1">
<widget class="Gui::InputField" name="levelHeight">
<property name="text">
<string>0 </string>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_33">
<property name="text">
<string>Number of levels</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="levelsAxis">
<property name="text">
<string>Bind levels to vertical axes</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="levelsWP">
<property name="text">
<string>Define a working plane for each level</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_34">
<property name="text">
@@ -697,9 +515,6 @@
</item>
<item>
<widget class="QListWidget" name="groupsList">
<property name="toolTip">
<string>A list of default groups. Double-click to rename</string>
</property>
<property name="dragEnabled">
<bool>true</bool>
</property>
@@ -720,18 +535,20 @@
</property>
<property name="icon">
<iconset theme="add">
<normaloff>.</normaloff>.</iconset>
<normaloff/>
</iconset>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonDel">
<property name="text">
<string>Delete</string>
<string>Del</string>
</property>
<property name="icon">
<iconset theme="remove">
<normaloff>.</normaloff>.</iconset>
<normaloff/>
</iconset>
</property>
</widget>
</item>
@@ -744,8 +561,30 @@
</widget>
</widget>
</item>
<item>
<widget class="QLabel" name="label_35">
<property name="text">
<string>The above settings can be saved as a preset. Presets are stored as .txt files in your FreeCAD user folder</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QPushButton" name="buttonSave">
<property name="text">
<string>Save preset</string>
</property>
<property name="icon">
<iconset theme="gtk-save">
<normaloff/>
</iconset>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
@@ -766,7 +605,8 @@
</property>
<property name="icon">
<iconset theme="gtk-ok">
<normaloff>.</normaloff>.</iconset>
<normaloff/>
</iconset>
</property>
</widget>
</item>
@@ -777,7 +617,8 @@
</property>
<property name="icon">
<iconset theme="gtk-cancel">
<normaloff>.</normaloff>.</iconset>
<normaloff/>
</iconset>
</property>
</widget>
</item>