chiark / gitweb /
Add a few float validators to advanced config.
authordaid <daid303@gmail.com>
Wed, 21 Mar 2012 16:23:02 +0000 (17:23 +0100)
committerdaid <daid303@gmail.com>
Wed, 21 Mar 2012 16:23:02 +0000 (17:23 +0100)
SkeinPyPy/newui/advancedConfig.py

index 8312e8b4d35fd2ad73a8f31af0256ef362789fdb..2febe8bc7bb92f9103248c97fda07540a94d28ce 100644 (file)
@@ -28,27 +28,36 @@ class advancedConfigWindow(configBase.configWindowBase):
 
                configBase.TitleRow(left, "Cool")
                c = configBase.SettingRow(left, "Minimum feedrate (mm/s)", 'cool_min_feedrate', '5', 'The minimal layer time can cause the print to slow down so much it starts to ooze. The minimal feedrate protects against this. Even if a print gets slown down it will never be slower then this minimal feedrate.')
+               validators.validFloat(c, 0.0)
 
                configBase.TitleRow(left, "Joris")
                c = configBase.SettingRow(left, "Joris the outer edge", 'joris', False, '[Joris] is a code name for smoothing out the Z move of the outer edge. This will create a steady Z increase over the whole print. It is intended to be used with a single walled wall thickness to make cups/vases.')
 
                configBase.TitleRow(left, "Raft (if enabled)")
                c = configBase.SettingRow(left, "Raft extra margin (mm)", 'raft_margin', '3.0', 'If the raft is enabled, this is the extra raft area around the object which is also rafted. Increasing this margin will create a stronger raft.')
+               validators.validFloat(c, 0.0)
                c = configBase.SettingRow(left, "Raft base material amount (%)", 'raft_base_material_amount', '100', 'The base layer is the first layer put down as a raft. This layer has thick strong lines and is put firmly on the bed to prevent warping. This setting adjust the amount of material used for the base layer.')
+               validators.validFloat(c, 0.0)
                c = configBase.SettingRow(left, "Raft interface material amount (%)", 'raft_interface_material_amount', '100', 'The interface layer is a weak thin layer between the base layer and the printed object. It is designed to has little material to make it easy to break the base off the printed object. This setting adjusts the amount of material used for the interface layer.')
+               validators.validFloat(c, 0.0)
 
                configBase.TitleRow(right, "Infill")
                c = configBase.SettingRow(right, "Infill pattern", 'infill_type', ['Line', 'Grid Circular', 'Grid Hexagonal', 'Grid Rectangular'], 'Pattern of the none-solid infill. Line is default, but grids can provide a strong print.')
                c = configBase.SettingRow(right, "Solid infill top", 'solid_top', True, 'Create a solid top surface, if set to false the top is filled with the fill percentage. Useful for cups/vases.')
                c = configBase.SettingRow(right, "Infill overlap (%)", 'fill_overlap', '15', 'Amount of overlap between the infill and the walls. There is a slight overlap with the walls and the infill so the walls connect firmly to the infill.')
+               validators.validFloat(c, 0.0)
 
                configBase.TitleRow(right, "Support")
                c = configBase.SettingRow(right, "Support material amount (%)", 'support_rate', '100', 'Amount of material used for support, less material gives a weaker support structure which is easier to remove.')
+               validators.validFloat(c, 0.0)
                c = configBase.SettingRow(right, "Support distance from object (mm)", 'support_distance', '0.5', 'Distance between the support structure and the object.')
+               validators.validFloat(c, 0.0)
 
                configBase.TitleRow(right, "Bridge")
                c = configBase.SettingRow(right, "Bridge speed (%)", 'bridge_speed', '100', 'Speed at which bridges are printed, compared to normal printing speed.')
+               validators.validFloat(c, 0.0)
                c = configBase.SettingRow(right, "Bridge material (%)", 'bridge_material_amount', '100', 'Amount of material used for bridges, increase go extrude more material when printing a bridge.')
+               validators.validFloat(c, 0.0)
 
                main.Fit()
                self.Fit()