Commit 4c50cda5 authored by sumpfralle's avatar sumpfralle

added buttons for inch/mm (and reverse) scaling


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@882 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent da88d5aa
...@@ -949,6 +949,30 @@ This can be useful if the imported model is technically broken (sometimes this h ...@@ -949,6 +949,30 @@ This can be useful if the imported model is technically broken (sometimes this h
<property name="position">0</property> <property name="position">0</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkButton" id="ScaleInchMM">
<property name="label" translatable="yes">Inch -&gt; mm</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="ScaleMMInch">
<property name="label" translatable="yes">mm -&gt; Inch</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="position">2</property>
</packing>
</child>
</object> </object>
</child> </child>
</object> </object>
......
...@@ -480,6 +480,10 @@ class ProjectGui: ...@@ -480,6 +480,10 @@ class ProjectGui:
lambda widget, data: self.window.set_default(None)) lambda widget, data: self.window.set_default(None))
self.gui.get_object("ToggleModelDirectionButton").connect("clicked", self.gui.get_object("ToggleModelDirectionButton").connect("clicked",
self.reverse_model_direction) self.reverse_model_direction)
self.gui.get_object("ScaleInchMM").connect("clicked", self.scale_model,
100 / 25.4)
self.gui.get_object("ScaleMMInch").connect("clicked", self.scale_model,
100 * 25.4)
# support grid # support grid
support_grid_type_control = self.gui.get_object( support_grid_type_control = self.gui.get_object(
"SupportGridTypesControl") "SupportGridTypesControl")
......
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