chiark / gitweb /
Flip renamed to Mirror, need to propagate to variables
authorFerdi van der Werf <efcm@vdwerf.eu>
Thu, 12 Apr 2012 22:05:09 +0000 (00:05 +0200)
committerFerdi van der Werf <efcm@vdwerf.eu>
Thu, 12 Apr 2012 22:05:09 +0000 (00:05 +0200)
Cura/gui/preview3d.py
Cura/images/object-mirror-x.png [moved from Cura/images/object-flip-x.png with 100% similarity]
Cura/images/object-mirror-y.png [moved from Cura/images/object-flip-y.png with 100% similarity]
Cura/images/object-mirror-z.png [moved from Cura/images/object-flip-z.png with 100% similarity]

index eb8b819e6e51a909247f7219b1c8fb9978ce7870..951dd9ac69b53a2bd1413a6399f92698026f2569 100644 (file)
@@ -75,33 +75,33 @@ class previewPanel(wx.Panel):
                self.toolbar2 = wx.ToolBar( self, -1, style = wx.TB_HORIZONTAL | wx.NO_BORDER | wx.TB_FLAT )\r
                self.toolbar2.SetToolBitmapSize( ( 21, 21 ) )\r
 \r
-               self.flipX = buttons.GenBitmapToggleButton(self.toolbar2, -1, wx.Bitmap('Cura/images/object-flip-x.png'), size=(20,20))\r
-               self.flipX.SetBezelWidth(1)\r
-               self.flipX.SetUseFocusIndicator(False)\r
-               self.flipX.SetToolTip(wx.ToolTip('Flip X'))\r
-               self.flipX.Bind(wx.EVT_ENTER_WINDOW, self.OnPopupDisplay)\r
-               self.flipX.Bind(wx.EVT_LEAVE_WINDOW, self.OnPopupHide)\r
-               self.flipX.SetValue(profile.getProfileSetting('flip_x') == 'True')\r
-               self.toolbar2.AddControl(self.flipX)\r
-               self.Bind(wx.EVT_BUTTON, self.OnFlipXClick, self.flipX)\r
-               self.flipY = buttons.GenBitmapToggleButton(self.toolbar2, -1, wx.Bitmap('Cura/images/object-flip-y.png'), size=(20,20))\r
-               self.flipY.SetBezelWidth(1)\r
-               self.flipY.SetUseFocusIndicator(False)\r
-               self.flipY.SetToolTip(wx.ToolTip('Flip Y'))\r
-               self.flipY.Bind(wx.EVT_ENTER_WINDOW, self.OnPopupDisplay)\r
-               self.flipY.Bind(wx.EVT_LEAVE_WINDOW, self.OnPopupHide)\r
-               self.flipY.SetValue(profile.getProfileSetting('flip_y') == 'True')\r
-               self.toolbar2.AddControl(self.flipY)\r
-               self.Bind(wx.EVT_BUTTON, self.OnFlipYClick, self.flipY)\r
-               self.flipZ = buttons.GenBitmapToggleButton(self.toolbar2, -1, wx.Bitmap('Cura/images/object-flip-z.png'), size=(20,20))\r
-               self.flipZ.SetBezelWidth(1)\r
-               self.flipZ.SetUseFocusIndicator(False)\r
-               self.flipZ.SetToolTip(wx.ToolTip('Flip Z'))\r
-               self.flipZ.Bind(wx.EVT_ENTER_WINDOW, self.OnPopupDisplay)\r
-               self.flipZ.Bind(wx.EVT_LEAVE_WINDOW, self.OnPopupHide)\r
-               self.flipZ.SetValue(profile.getProfileSetting('flip_z') == 'True')\r
-               self.toolbar2.AddControl(self.flipZ)\r
-               self.Bind(wx.EVT_BUTTON, self.OnFlipZClick, self.flipZ)\r
+               self.mirrorX = buttons.GenBitmapToggleButton(self.toolbar2, -1, wx.Bitmap('Cura/images/object-mirror-x.png'), size=(20,20))\r
+               self.mirrorX.SetBezelWidth(1)\r
+               self.mirrorX.SetUseFocusIndicator(False)\r
+               self.mirrorX.SetToolTip(wx.ToolTip('Mirror X'))\r
+               self.mirrorX.Bind(wx.EVT_ENTER_WINDOW, self.OnPopupDisplay)\r
+               self.mirrorX.Bind(wx.EVT_LEAVE_WINDOW, self.OnPopupHide)\r
+               self.mirrorX.SetValue(profile.getProfileSetting('flip_x') == 'True')\r
+               self.toolbar2.AddControl(self.mirrorX)\r
+               self.Bind(wx.EVT_BUTTON, self.OnFlipXClick, self.mirrorX)\r
+               self.mirrorY = buttons.GenBitmapToggleButton(self.toolbar2, -1, wx.Bitmap('Cura/images/object-mirror-y.png'), size=(20,20))\r
+               self.mirrorY.SetBezelWidth(1)\r
+               self.mirrorY.SetUseFocusIndicator(False)\r
+               self.mirrorY.SetToolTip(wx.ToolTip('Mirror Y'))\r
+               self.mirrorY.Bind(wx.EVT_ENTER_WINDOW, self.OnPopupDisplay)\r
+               self.mirrorY.Bind(wx.EVT_LEAVE_WINDOW, self.OnPopupHide)\r
+               self.mirrorY.SetValue(profile.getProfileSetting('flip_y') == 'True')\r
+               self.toolbar2.AddControl(self.mirrorY)\r
+               self.Bind(wx.EVT_BUTTON, self.OnFlipYClick, self.mirrorY)\r
+               self.mirrorZ = buttons.GenBitmapToggleButton(self.toolbar2, -1, wx.Bitmap('Cura/images/object-mirror-z.png'), size=(20,20))\r
+               self.mirrorZ.SetBezelWidth(1)\r
+               self.mirrorZ.SetUseFocusIndicator(False)\r
+               self.mirrorZ.SetToolTip(wx.ToolTip('Mirror Z'))\r
+               self.mirrorZ.Bind(wx.EVT_ENTER_WINDOW, self.OnPopupDisplay)\r
+               self.mirrorZ.Bind(wx.EVT_LEAVE_WINDOW, self.OnPopupHide)\r
+               self.mirrorZ.SetValue(profile.getProfileSetting('flip_z') == 'True')\r
+               self.toolbar2.AddControl(self.mirrorZ)\r
+               self.Bind(wx.EVT_BUTTON, self.OnFlipZClick, self.mirrorZ)\r
 \r
                self.toolbar2.AddSeparator()\r
 \r
@@ -183,15 +183,15 @@ class previewPanel(wx.Panel):
                self.popup.SetPosition((x, y+sy))\r
        \r
        def OnFlipXClick(self, e):\r
-               profile.putProfileSetting('flip_x', str(self.flipX.GetValue()))\r
+               profile.putProfileSetting('flip_x', str(self.mirrorX.GetValue()))\r
                self.updateModelTransform()\r
                \r
        def OnFlipYClick(self, e):\r
-               profile.putProfileSetting('flip_y', str(self.flipY.GetValue()))\r
+               profile.putProfileSetting('flip_y', str(self.mirrorY.GetValue()))\r
                self.updateModelTransform()\r
 \r
        def OnFlipZClick(self, e):\r
-               profile.putProfileSetting('flip_z', str(self.flipZ.GetValue()))\r
+               profile.putProfileSetting('flip_z', str(self.mirrorZ.GetValue()))\r
                self.updateModelTransform()\r
 \r
        def OnSwapXZClick(self, e):\r