Skip to content

Commit

Permalink
Add task panel for Base Bend Shape. Add support for auto Camel-Casing…
Browse files Browse the repository at this point in the history
… properties
  • Loading branch information
shaise committed Dec 5, 2024
1 parent c7ac478 commit c8f2869
Show file tree
Hide file tree
Showing 3 changed files with 275 additions and 130 deletions.
190 changes: 159 additions & 31 deletions Resources/panels/CreateBaseShape.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,62 +6,183 @@
<rect>
<x>0</x>
<y>0</y>
<width>677</width>
<height>565</height>
<width>285</width>
<height>546</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>Generate Sheet Metal base shape</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<widget class="QPushButton" name="pushSketch">
<property name="text">
<string>Sketch: </string>
<string>Sketch</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnSelectSketch">
<property name="text">
<string>Select</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="txtSketchName"/>
<widget class="QLineEdit" name="txtSketch"/>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="chkRevDirection">
<property name="toolTip">
<string>Extend sides and flange to close all gaps</string>
</property>
<property name="layoutDirection">
<enum>Qt::RightToLeft</enum>
<widget class="QGroupBox" name="groupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Reverse Direction</string>
<property name="title">
<string>Bend Options</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Bend Plane</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="Gui::QuantitySpinBox" name="spinRadius" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="Gui::QuantitySpinBox" name="spinThickness" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelSideA">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Radius</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="labelSideA_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Thickness</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QComboBox" name="comboBendPlane">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<item>
<property name="text">
<string>Outside</string>
</property>
</item>
<item>
<property name="text">
<string>Inside</string>
</property>
</item>
<item>
<property name="text">
<string>Centered</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkCenterOnPlane">
<property name="toolTip">
<string>Create the base shape as a new body</string>
</property>
<property name="layoutDirection">
<enum>Qt::RightToLeft</enum>
</property>
<property name="text">
<string>Center on Plane</string>
<widget class="QGroupBox" name="groupBox_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="checked">
<bool>true</bool>
<property name="title">
<string>Extrude options</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="labelSideA_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Length</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="spinLength" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="checkSymetric">
<property name="toolTip">
<string>Create the base shape as a new body</string>
</property>
<property name="text">
<string>Symetric</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="checkRevDirection">
<property name="toolTip">
<string>Extend sides and flange to close all gaps</string>
</property>
<property name="text">
<string>Reverse Direction</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
Expand All @@ -79,6 +200,13 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>Gui::QuantitySpinBox</class>
<extends>QWidget</extends>
<header>Gui/QuantitySpinBox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
Loading

0 comments on commit c8f2869

Please sign in to comment.