Skip to content

Commit

Permalink
Gui export to safe re-formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrahimraeyat committed Nov 7, 2022
1 parent cc11d2e commit 1b2afbf
Show file tree
Hide file tree
Showing 4 changed files with 2,131 additions and 1,932 deletions.
345 changes: 199 additions & 146 deletions safe/punch/Resources/ui/safe_panel.ui
Expand Up @@ -6,159 +6,176 @@
<rect>
<x>0</x>
<y>0</y>
<width>268</width>
<height>391</height>
<width>260</width>
<height>346</height>
</rect>
</property>
<property name="windowTitle">
<string>Export to SAFE</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCheckBox" name="slabs_checkbox">
<property name="text">
<string>Slabs</string>
<layout class="QFormLayout" name="formLayout">
<property name="verticalSpacing">
<number>10</number>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="openings_checkbox">
<property name="text">
<string>Openings</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="strips_checkbox">
<property name="text">
<string>Strips</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="stiff_elements_checkbox">
<property name="text">
<string>Stiff Elements</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="loads_checkbox">
<property name="text">
<string>Area Loads</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="wall_loads">
<property name="text">
<string>Wall Loads</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="punches">
<property name="text">
<string>Punches</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="analysis_2d">
<property name="text">
<string>2D Ananlysis</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Soil Properties</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Name</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="soil_modulus">
<property name="prefix">
<string/>
</property>
<property name="suffix">
<string> kgf/cm/cm2</string>
</property>
<property name="decimals">
<number>2</number>
</property>
<property name="minimum">
<double>0.100000000000000</double>
</property>
<property name="maximum">
<double>10.000000000000000</double>
</property>
<property name="singleStep">
<double>0.100000000000000</double>
</property>
<property name="value">
<double>2.000000000000000</double>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="soil_name">
<property name="text">
<string>SOIL</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Modulus</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<item row="0" column="0">
<widget class="QCheckBox" name="slabs_checkbox">
<property name="text">
<string>Slabs</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="openings_checkbox">
<property name="text">
<string>Openings</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="loads_checkbox">
<property name="text">
<string>Area Loads</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="wall_loads">
<property name="text">
<string>Wall Loads</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="strips_checkbox">
<property name="text">
<string>Strips</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="stiff_elements_checkbox">
<property name="text">
<string>Stiff Elements</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="punches">
<property name="text">
<string>Punches</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QCheckBox" name="analysis_2d">
<property name="text">
<string>2D Ananlysis</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Soil Properties</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="Line" name="line">
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<property name="lineWidth">
<number>1</number>
</property>
<property name="midLineWidth">
<number>1</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Name</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QLineEdit" name="soil_name">
<property name="text">
<string>SOIL</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Modulus</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QDoubleSpinBox" name="soil_modulus">
<property name="prefix">
<string/>
</property>
<property name="suffix">
<string> kgf/cm/cm2</string>
</property>
<property name="decimals">
<number>2</number>
</property>
<property name="minimum">
<double>0.100000000000000</double>
</property>
<property name="maximum">
<double>10.000000000000000</double>
</property>
<property name="singleStep">
<double>0.100000000000000</double>
</property>
<property name="value">
<double>2.000000000000000</double>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Max. Mesh Size</string>
</property>
</widget>
</item>
<item>
<item row="7" column="1">
<widget class="QDoubleSpinBox" name="max_mesh_size">
<property name="prefix">
<string/>
Expand All @@ -183,18 +200,14 @@
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<item row="8" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Software</string>
</property>
</widget>
</item>
<item>
<item row="8" column="1">
<widget class="QComboBox" name="software">
<item>
<property name="text">
Expand All @@ -205,8 +218,48 @@
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="export_button">
<property name="text">
<string>Export</string>
</property>
<property name="icon">
<iconset resource="../../py_widget/resource.qrc">
<normaloff>:/safe/Resources/icons/safe.png</normaloff>:/safe/Resources/icons/safe.png</iconset>
</property>
<property name="iconSize">
<size>
<width>40</width>
<height>40</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancel_button">
<property name="text">
<string>Cancel</string>
</property>
<property name="icon">
<iconset resource="../../py_widget/resource.qrc">
<normaloff>:/safe/Resources/icons/cancel.png</normaloff>:/safe/Resources/icons/cancel.png</iconset>
</property>
<property name="iconSize">
<size>
<width>40</width>
<height>40</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<resources>
<include location="../../py_widget/resource.qrc"/>
</resources>
<connections/>
</ui>
1 change: 1 addition & 0 deletions safe/punch/py_widget/resource.qrc
@@ -1,5 +1,6 @@
<RCC>
<qresource prefix="safe">
<file>../Resources/icons/safe.png</file>
<file>../Resources/icons/referesh.svg</file>
<file>../Resources/icons/import_dxf.svg</file>
<file>../Resources/icons/base_plate.svg</file>
Expand Down

0 comments on commit 1b2afbf

Please sign in to comment.