Commit 3297bb5e authored by sumpfralle's avatar sumpfralle

clarified "Speed" as "Spindle Speed"

use "rpm" instead of "/minute"


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@509 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 8058bc97
...@@ -377,13 +377,13 @@ class ProjectGui: ...@@ -377,13 +377,13 @@ class ProjectGui:
self.settings.add_item("simulation_details_level", sim_detail_obj.get_value, sim_detail_obj.set_value) self.settings.add_item("simulation_details_level", sim_detail_obj.get_value, sim_detail_obj.set_value)
# drill settings # drill settings
for objname in ("ToolDiameterControl", "TorusDiameterControl", for objname in ("ToolDiameterControl", "TorusDiameterControl",
"FeedrateControl", "SpeedControl"): "FeedrateControl", "SpindleSpeedControl"):
self.gui.get_object(objname).connect("value-changed", self.handle_tool_settings_change) self.gui.get_object(objname).connect("value-changed", self.handle_tool_settings_change)
for name in ("SphericalCutter", "CylindricalCutter", "ToroidalCutter"): for name in ("SphericalCutter", "CylindricalCutter", "ToroidalCutter"):
self.gui.get_object(name).connect("clicked", self.handle_tool_settings_change) self.gui.get_object(name).connect("clicked", self.handle_tool_settings_change)
self.gui.get_object("ToolName").connect("changed", self.handle_tool_settings_change) self.gui.get_object("ToolName").connect("changed", self.handle_tool_settings_change)
# speed and feedrate controls # speed and feedrate controls
speed_control = self.gui.get_object("SpeedControl") speed_control = self.gui.get_object("SpindleSpeedControl")
feedrate_control = self.gui.get_object("FeedrateControl") feedrate_control = self.gui.get_object("FeedrateControl")
# connect the "consistency check" and the update-handler with all toolpath settings # connect the "consistency check" and the update-handler with all toolpath settings
for objname in ("PathAccumulator", "SimpleCutter", "ZigZagCutter", "PolygonCutter", "ContourCutter", for objname in ("PathAccumulator", "SimpleCutter", "ZigZagCutter", "PolygonCutter", "ContourCutter",
...@@ -751,7 +751,7 @@ class ProjectGui: ...@@ -751,7 +751,7 @@ class ProjectGui:
else: else:
tool_desc += "(%.4f%s / %.4f%s)" % ( 2 * tool["tool_radius"], unit, 2 * tool["torus_radius"], unit) tool_desc += "(%.4f%s / %.4f%s)" % ( 2 * tool["tool_radius"], unit, 2 * tool["torus_radius"], unit)
lines.append(tool_desc) lines.append(tool_desc)
lines.append("Speed: %d/minute / Feedrate: %d%s/minute" % (tool["speed"], tool["feedrate"], unit)) lines.append("Speed: %drpm / Feedrate: %d%s/minute" % (tool["speed"], tool["feedrate"], unit))
lines.append("Path: %s / %s" % (process["path_generator"], process["path_postprocessor"])) lines.append("Path: %s / %s" % (process["path_generator"], process["path_postprocessor"]))
lines.append("Overlap: %d%%" % process["overlap_percent"]) lines.append("Overlap: %d%%" % process["overlap_percent"])
lines.append("Material allowance: %.2f%s" % (process["material_allowance"], unit)) lines.append("Material allowance: %.2f%s" % (process["material_allowance"], unit))
...@@ -941,7 +941,7 @@ class ProjectGui: ...@@ -941,7 +941,7 @@ class ProjectGui:
self.gui.get_object("TorusDiameterLabel").hide() self.gui.get_object("TorusDiameterLabel").hide()
for objname, default_value in (("ToolDiameterControl", 1.0), for objname, default_value in (("ToolDiameterControl", 1.0),
("TorusDiameterControl", 0.25), ("TorusDiameterControl", 0.25),
("SpeedControl", 1000), ("SpindleSpeedControl", 1000),
("FeedrateControl", 200)): ("FeedrateControl", 200)):
obj = self.gui.get_object(objname) obj = self.gui.get_object(objname)
if obj.get_value() == 0: if obj.get_value() == 0:
...@@ -1127,7 +1127,7 @@ class ProjectGui: ...@@ -1127,7 +1127,7 @@ class ProjectGui:
set_cutter_shape_name(settings["shape"]) set_cutter_shape_name(settings["shape"])
for objname, key in ( for objname, key in (
("FeedrateControl", "feedrate"), ("FeedrateControl", "feedrate"),
("SpeedControl", "speed")): ("SpindleSpeedControl", "speed")):
self.gui.get_object(objname).set_value(settings[key]) self.gui.get_object(objname).set_value(settings[key])
# radius -> diameter # radius -> diameter
for objname, key in ( for objname, key in (
...@@ -1146,7 +1146,7 @@ class ProjectGui: ...@@ -1146,7 +1146,7 @@ class ProjectGui:
settings["shape"] = get_cutter_shape_name() settings["shape"] = get_cutter_shape_name()
for objname, key in ( for objname, key in (
("FeedrateControl", "feedrate"), ("FeedrateControl", "feedrate"),
("SpeedControl", "speed")): ("SpindleSpeedControl", "speed")):
settings[key] = self.gui.get_object(objname).get_value() settings[key] = self.gui.get_object(objname).get_value()
# diameter -> radius # diameter -> radius
for objname, key in ( for objname, key in (
......
...@@ -1653,10 +1653,10 @@ ...@@ -1653,10 +1653,10 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label7"> <object class="GtkLabel" id="SpindleSpeedLabel">
<property name="visible">True</property> <property name="visible">True</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="label" translatable="yes">Speed:</property> <property name="label" translatable="yes">Spindle Speed:</property>
</object> </object>
<packing> <packing>
<property name="top_attach">2</property> <property name="top_attach">2</property>
...@@ -1679,7 +1679,7 @@ ...@@ -1679,7 +1679,7 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkSpinButton" id="SpeedControl"> <object class="GtkSpinButton" id="SpindleSpeedControl">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="invisible_char">&#x2022;</property> <property name="invisible_char">&#x2022;</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment