1 diff -urN Cura-15.02.1.org/Cura/gui/firmwareInstall.py Cura-15.02.1/Cura/gui/firmwareInstall.py
2 --- Cura-15.02.1.org/Cura/gui/firmwareInstall.py 2015-02-18 21:22:48.000000000 +0100
3 +++ Cura-15.02.1/Cura/gui/firmwareInstall.py 2015-05-14 22:37:20.963865640 +0200
5 from Cura.util import resources
7 def getDefaultFirmware(machineIndex = None):
8 - machine_type = profile.getMachineSetting('machine_type', machineIndex)
9 - extruders = profile.getMachineSettingFloat('extruder_amount', machineIndex)
10 - heated_bed = profile.getMachineSetting('has_heated_bed', machineIndex) == 'True'
12 - if sys.platform.startswith('linux'):
14 - if machine_type == 'ultimaker':
15 - name = 'MarlinUltimaker'
20 - name += '-%d' % (baudrate)
23 - return resources.getPathForFirmware(name + '.hex')
25 - if machine_type == 'ultimaker_plus':
26 - name = 'MarlinUltimaker-UMOP-%d' % (baudrate)
31 - return resources.getPathForFirmware(name + '.hex')
33 - if machine_type == 'ultimaker2':
37 - return resources.getPathForFirmware("MarlinUltimaker2-dual.hex")
38 - return resources.getPathForFirmware("MarlinUltimaker2.hex")
39 - if machine_type == 'ultimaker2go':
40 - return resources.getPathForFirmware("MarlinUltimaker2go.hex")
41 - if machine_type == 'ultimaker2extended':
45 - return resources.getPathForFirmware("MarlinUltimaker2extended-dual.hex")
46 - return resources.getPathForFirmware("MarlinUltimaker2extended.hex")
47 - if machine_type == 'Witbox':
48 - return resources.getPathForFirmware("MarlinWitbox.hex")
51 class InstallFirmware(wx.Dialog):
54 filename = getDefaultFirmware(machineIndex)
56 - wx.MessageBox(_("I am sorry, but Cura does not ship with a default firmware for your machine configuration."), _("Firmware update"), wx.OK | wx.ICON_ERROR)
57 + wx.MessageBox(_("I am sorry, but Cura on Fedora does not ship firmware for technical reasons. Please go download it and install it as custom firmware instead."), _("Firmware update"), wx.OK | wx.ICON_ERROR)
60 self._machine_type = profile.getMachineSetting('machine_type', machineIndex)
61 diff -urN Cura-15.02.1.org/Cura/gui/mainWindow.py Cura-15.02.1/Cura/gui/mainWindow.py
62 --- Cura-15.02.1.org/Cura/gui/mainWindow.py 2015-02-18 21:22:48.000000000 +0100
63 +++ Cura-15.02.1/Cura/gui/mainWindow.py 2015-05-14 22:37:36.827577248 +0200
65 self.splitter.SetSashPosition(self.normalSashPos, True)
67 self.splitter.SetSashSize(4)
68 - self.defaultFirmwareInstallMenuItem.Enable(firmwareInstall.getDefaultFirmware() is not None)
69 if profile.getMachineSetting('machine_type').startswith('ultimaker2'):
70 self.bedLevelWizardMenuItem.Enable(False)
71 self.headOffsetWizardMenuItem.Enable(False)
73 #Add tools for machines.
74 self.machineMenu.AppendSeparator()
76 - self.defaultFirmwareInstallMenuItem = self.machineMenu.Append(-1, _("Install default firmware..."))
77 - self.Bind(wx.EVT_MENU, self.OnDefaultMarlinFirmware, self.defaultFirmwareInstallMenuItem)
79 i = self.machineMenu.Append(-1, _("Install custom firmware..."))
80 self.Bind(wx.EVT_MENU, self.OnCustomFirmware, i)