[0.20][PartDesign] Sprocket UI - Allow multiple...

... standard reference sprockets rather than just ANSI as well as capturing the thickness as stated in the particular standard. The user is not bound by this but it saves them looking it up manually.
See recent posts in discussion : https://forum.freecadweb.org/viewtopic.php?f=22&t=44525
This commit is contained in:
Syres916
2021-02-17 16:02:52 +00:00
committed by wwmayer
parent aee3e86e61
commit 3295ec035a

View File

@@ -39,81 +39,161 @@
<item row="1" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string>ANSI Size:</string>
<string>Sprocket Reference</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="comboBox_ANSISize">
<widget class="QComboBox" name="comboBox_SprocketReference">
<item>
<property name="text">
<string>25</string>
<string>ANSI 25</string>
</property>
</item>
<item>
<property name="text">
<string>35</string>
<string>ANSI 35</string>
</property>
</item>
<item>
<property name="text">
<string>41</string>
<string>ANSI 41</string>
</property>
</item>
<item>
<property name="text">
<string>40</string>
<string>ANSI 40</string>
</property>
</item>
<item>
<property name="text">
<string>50</string>
<string>ANSI 50</string>
</property>
</item>
<item>
<property name="text">
<string>60</string>
<string>ANSI 60</string>
</property>
</item>
<item>
<property name="text">
<string>80</string>
<string>ANSI 80</string>
</property>
</item>
<item>
<property name="text">
<string>100</string>
<string>ANSI 100</string>
</property>
</item>
<item>
<property name="text">
<string>120</string>
<string>ANSI 120</string>
</property>
</item>
<item>
<property name="text">
<string>140</string>
<string>ANSI 140</string>
</property>
</item>
<item>
<property name="text">
<string>160</string>
<string>ANSI 160</string>
</property>
</item>
<item>
<property name="text">
<string>180</string>
<string>ANSI 180</string>
</property>
</item>
<item>
<property name="text">
<string>200</string>
<string>ANSI 200</string>
</property>
</item>
<item>
<property name="text">
<string>240</string>
<string>ANSI 240</string>
</property>
</item>
<item>
<property name="text">
<string>Motorcycle 420</string>
</property>
</item>
<item>
<property name="text">
<string>Motorcycle 425</string>
</property>
</item>
<item>
<property name="text">
<string>Motorcycle 428</string>
</property>
</item>
<item>
<property name="text">
<string>Motorcycle 520</string>
</property>
</item>
<item>
<property name="text">
<string>Motorcycle 525</string>
</property>
</item>
<item>
<property name="text">
<string>Motorcycle 530</string>
</property>
</item>
<item>
<property name="text">
<string>Motorcycle 630</string>
</property>
</item>
<item>
<property name="text">
<string>Bicycle with Derailleur</string>
</property>
</item>
<item>
<property name="text">
<string>Bicycle without Derailleur</string>
</property>
</item>
<item>
<property name="text">
<string>ISO 606 06B</string>
</property>
</item>
<item>
<property name="text">
<string>ISO 606 08B</string>
</property>
</item>
<item>
<property name="text">
<string>ISO 606 10B</string>
</property>
</item>
<item>
<property name="text">
<string>ISO 606 12B</string>
</property>
</item>
<item>
<property name="text">
<string>ISO 606 16B</string>
</property>
</item>
<item>
<property name="text">
<string>ISO 606 20B</string>
</property>
</item>
<item>
<property name="text">
<string>ISO 606 24B</string>
</property>
</item>
</widget>
@@ -218,6 +298,53 @@
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Thickness:</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="Gui::InputField" name="Quantity_Thickness">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>80</width>
<height>20</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="unit" stdset="0">
<string notr="true">in</string>
</property>
<property name="decimals" stdset="0">
<number>3</number>
</property>
<property name="maximum" stdset="0">
<double>50.000000000000000</double>
</property>
<property name="minimum" stdset="0">
<double>0.01</double>
</property>
<property name="singleStep" stdset="0">
<double>0.01</double>
</property>
<property name="value" stdset="0">
<double>0.20</double>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>