chiark / gitweb /
Merge branch 'upstream'
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 20 Jan 2015 18:48:11 +0000 (13:48 -0500)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 20 Jan 2015 18:48:11 +0000 (13:48 -0500)
Conflicts:
Cura/gui/aboutWindow.py
Cura/gui/preferencesDialog.py
Cura/util/profile.py

1  2 
Cura/gui/aboutWindow.py
Cura/gui/app.py
Cura/gui/configBase.py
Cura/gui/mainWindow.py
Cura/gui/preferencesDialog.py
Cura/gui/printWindow.py
Cura/gui/sceneView.py
Cura/util/profile.py

index ccd105dfed0632391d9daa653418ed876840810d,7888f5f6f81eb1dd3f389cc1dde7f91fb5b44f74..51c348482516aa72ca76233eced1e3e50c2ed611
@@@ -4,8 -4,8 +4,8 @@@ import w
  import platform
  
  class aboutWindow(wx.Frame):
 -      def __init__(self):
 -              super(aboutWindow, self).__init__(None, title=_("About"), style = wx.DEFAULT_DIALOG_STYLE)
 +      def __init__(self, parent):
-               super(aboutWindow, self).__init__(parent, title="About", style = wx.DEFAULT_DIALOG_STYLE)
++              super(aboutWindow, self).__init__(parent, title=_("About"), style = wx.DEFAULT_DIALOG_STYLE)
  
                wx.EVT_CLOSE(self, self.OnClose)
  
diff --cc Cura/gui/app.py
Simple merge
index a9bbbea92c933fa97253506df1f0b5e7ed5a4009,25f2776475e8577118e59f6dd6632cbf531fd25c..f45fe157dcb52bd92d8c7bab7da23a42c3fe40a9
@@@ -160,9 -161,13 +161,14 @@@ class SettingRow(object)
                        self.ctrl.Bind(wx.EVT_TEXT, self.OnSettingChange)
                        flag = wx.EXPAND
  
 +              self.ctrl.Bind(wx.EVT_ENTER_WINDOW, self.OnMouseEnter)
                sizer.Add(self.label, (x,y), flag=wx.ALIGN_CENTER_VERTICAL|wx.LEFT,border=10)
-               sizer.Add(self.ctrl, (x,y+1), flag=wx.ALIGN_BOTTOM|flag)
+               sizer.Add(self.ctrl, (x,y+1), flag=wx.ALIGN_CENTER_VERTICAL|flag)
+               if self.setting.getExpertSubCategory() is not None:
+                       self._expert_button = wx.Button(panel, -1, '...', style=wx.BU_EXACTFIT)
+                       self._expert_button.SetFont(wx.Font(wx.SystemSettings.GetFont(wx.SYS_ANSI_VAR_FONT).GetPointSize() * 0.8, wx.FONTFAMILY_DEFAULT, wx.NORMAL, wx.FONTWEIGHT_NORMAL))
+                       self._expert_button.Bind(wx.EVT_BUTTON, self.OnExpertOpen)
+                       sizer.Add(self._expert_button, (x,y+2), flag=wx.ALIGN_CENTER_VERTICAL)
                sizer.SetRows(x+1)
  
                self.ctrl.Bind(wx.EVT_ENTER_WINDOW, self.OnMouseEnter)
Simple merge
index 6148b3b65ed29feb4ae5c4813fbaa82e05ef89b7,113dbf5509d788d5a69a79ee0692ca8415894c57..9a0d65c9cb524502e4a785fb0f6ba5eb071b5f0d
@@@ -11,7 -11,7 +11,7 @@@ from Cura.util import resource
  
  class preferencesDialog(wx.Dialog):
        def __init__(self, parent):
-               super(preferencesDialog, self).__init__(parent, title="Preferences")
 -              super(preferencesDialog, self).__init__(None, title=_("Preferences"))
++              super(preferencesDialog, self).__init__(parent, title=_("Preferences"))
  
                wx.EVT_CLOSE(self, self.OnClose)
  
@@@ -65,7 -65,7 +65,7 @@@
  
  class machineSettingsDialog(wx.Dialog):
        def __init__(self, parent):
-               super(machineSettingsDialog, self).__init__(parent, title="Machine settings")
 -              super(machineSettingsDialog, self).__init__(None, title=_("Machine settings"))
++              super(machineSettingsDialog, self).__init__(parent, title=_("Machine settings"))
  
                wx.EVT_CLOSE(self, self.OnClose)
  
index 74be922d84fd95339f53b0c981b25e705109bb49,6356df6491486bdc8cb380da8fbf6dd4f347dd80..c5a73f42f79f13e796b75713b4f7a44cbb0c8b28
@@@ -505,9 -499,15 +505,15 @@@ class printWindowBasic(wx.Frame)
                self.statsText.SetLabel(info)
                if connection.isPrinting() != self._isPrinting:
                        self._isPrinting = connection.isPrinting()
 -                      preventComputerFromSleeping(self._isPrinting)
 +                      preventComputerFromSleeping(self, self._isPrinting)
  
  
+       def _addTermLog(self, msg):
+               pass
+       def _addTermLog(self, msg):
+               pass
        def _updateButtonStates(self):
                self.connectButton.Show(self._printerConnection.hasActiveConnection())
                self.connectButton.Enable(not self._printerConnection.isActiveConnectionOpen() and not self._printerConnection.isActiveConnectionOpening())
Simple merge
index 0c25bb00e7119d58359e311a7e9fb13f21161af9,ec84bb4b62f432c358bb34c67d8fa0970a17c7aa..93572c274502a80004e6b4c892abb27e21f1f1e4
@@@ -509,7 -520,6 +520,8 @@@ setting('extruder_offset_x2', '0.0', fl
  setting('extruder_offset_y2', '0.0', float, 'machine', 'hidden').setLabel(_("Offset Y"), _("The offset of your tertiary extruder compared to the primary."))
  setting('extruder_offset_x3', '0.0', float, 'machine', 'hidden').setLabel(_("Offset X"), _("The offset of your forth extruder compared to the primary."))
  setting('extruder_offset_y3', '0.0', float, 'machine', 'hidden').setLabel(_("Offset Y"), _("The offset of your forth extruder compared to the primary."))
 +setting('extruder_z_offset', '0.0', float, 'machine', 'hidden').setLabel(_("Z-Offset (mm)"), _("This value will be added to the Z coordinate of every line in the output G-Code to compensate for a badly calibrate Z height endstop."))
++
  setting('steps_per_e', '0', float, 'machine', 'hidden').setLabel(_("E-Steps per 1mm filament"), _("Amount of steps per mm filament extrusion. If set to 0 then this value is ignored and the value in your firmware is used."))
  setting('serial_port', 'AUTO', str, 'machine', 'hidden').setLabel(_("Serial port"), _("Serial port to use for communication with the printer"))
  setting('serial_port_auto', '', str, 'machine', 'hidden')