chiark / gitweb /
Add uppercase STL and HEX to file dialog filters for linux/MacOS
[cura.git] / Cura / gui / advancedConfig.py
1 from __future__ import absolute_import
2 import __init__
3
4 import wx, os, platform, types
5 import ConfigParser
6
7 from gui import configBase
8 from gui import preview3d
9 from gui import sliceProgessPanel
10 from gui import alterationPanel
11 from gui import validators
12
13 class advancedConfigWindow(configBase.configWindowBase):
14         "Advanced configuration window"
15         def __init__(self):
16                 super(advancedConfigWindow, self).__init__(title='Expert config')
17
18                 wx.EVT_CLOSE(self, self.OnClose)
19
20                 left, right, main = self.CreateConfigPanel(self)
21                 
22                 configBase.TitleRow(left, "Accuracy")
23                 c = configBase.SettingRow(left, "Extra Wall thickness for bottom/top (mm)", 'extra_base_wall_thickness', '0.0', 'Additional wall thickness of the bottom and top layers.')
24                 validators.validFloat(c, 0.0)
25                 
26                 configBase.TitleRow(left, "Sequence")
27                 c = configBase.SettingRow(left, "Print order sequence", 'sequence', ['Loops > Perimeter > Infill', 'Loops > Infill > Perimeter', 'Infill > Loops > Perimeter', 'Infill > Perimeter > Loops', 'Perimeter > Infill > Loops', 'Perimeter > Loops > Infill'], 'Sequence of printing. The perimeter is the outer print edge, the loops are the insides of the walls, and the infill is the insides.');
28                 c = configBase.SettingRow(left, "Force first layer sequence", 'force_first_layer_sequence', True, 'This setting forces the order of the first layer to be \'Perimeter > Loops > Infill\'')
29
30                 configBase.TitleRow(left, "Cool")
31                 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.')
32                 validators.validFloat(c, 0.0)
33
34                 configBase.TitleRow(left, "Joris")
35                 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.')
36
37                 configBase.TitleRow(left, "Raft (if enabled)")
38                 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.')
39                 validators.validFloat(c, 0.0)
40                 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.')
41                 validators.validFloat(c, 0.0)
42                 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.')
43                 validators.validFloat(c, 0.0)
44
45                 configBase.TitleRow(right, "Infill")
46                 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.')
47                 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.')
48                 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.')
49                 validators.validFloat(c, 0.0)
50
51                 configBase.TitleRow(right, "Support")
52                 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.')
53                 validators.validFloat(c, 0.0)
54                 c = configBase.SettingRow(right, "Support distance from object (mm)", 'support_distance', '0.5', 'Distance between the support structure and the object.')
55                 validators.validFloat(c, 0.0)
56
57                 configBase.TitleRow(right, "Bridge")
58                 c = configBase.SettingRow(right, "Bridge speed (%)", 'bridge_speed', '100', 'Speed at which bridges are printed, compared to normal printing speed.')
59                 validators.validFloat(c, 0.0)
60                 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.')
61                 validators.validFloat(c, 0.0)
62
63                 main.Fit()
64                 self.Fit()
65
66         def OnClose(self, e):
67                 self.Destroy()