Merge branch '3.0' of github.com:Ultimaker/cura into 3.0

This commit is contained in:
alekseisasin 2017-09-22 13:51:15 +02:00
commit 4c3f146995
6 changed files with 61 additions and 26 deletions

View file

@ -153,7 +153,7 @@ class CuraContainerRegistry(ContainerRegistry):
m.show()
return
m = Message(catalog.i18nc("@info:status Don't translate the XML tag <filename>!", "Exported profile to <filename>{0}</filename>", file_name),
title = catalog.i18nc("@info:title", "Export Details"))
title = catalog.i18nc("@info:title", "Export succeeded"))
m.show()
## Gets the plugin object matching the criteria

View file

@ -150,7 +150,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
def printGCode(self, gcode_list):
Logger.log("d", "Started printing g-code")
if self._progress or self._connection_state != ConnectionState.connected:
self._error_message = Message(catalog.i18nc("@info:status", "Unable to start a new job because the printer is busy or not connected."), title = catalog.i18nc("@info:title", "Print Details"))
self._error_message = Message(catalog.i18nc("@info:status", "Unable to start a new job because the printer is busy or not connected."), title = catalog.i18nc("@info:title", "Printer Unavailable"))
self._error_message.show()
Logger.log("d", "Printer is busy or not connected, aborting print")
self.writeError.emit(self)

View file

@ -1389,7 +1389,7 @@
"zig_zaggify_infill":
{
"label": "Connect Infill Lines",
"description": "Connect the ends where the infill pattern meets the inner wall using a lines which follows the shape of the inner wall. Enabling this setting can make the infill adhere to the walls better and reduces the effects on infill on the quality of vertical surfaces. Disabling this setting reduces the amount of material used.",
"description": "Connect the ends where the infill pattern meets the inner wall using a line which follows the shape of the inner wall. Enabling this setting can make the infill adhere to the walls better and reduce the effects of infill on the quality of vertical surfaces. Disabling this setting reduces the amount of material used.",
"type": "bool",
"default_value": true,
"enabled": "infill_pattern == 'cross' or infill_pattern == 'cross_3d'",

View file

@ -23,17 +23,10 @@ UM.MainWindow
Connections
{
target: Printer
onShowPrintMonitor:
{
topbar.monitoringChanged(show)
if (show)
{
onShowPrintMonitor: {
if (show) {
topbar.startMonitoringPrint()
}
else
{
} else {
topbar.stopMonitoringPrint()
}
}
@ -352,17 +345,13 @@ UM.MainWindow
}
}
function isMonitoringPrint () {
return base.showPrintMonitor
}
Topbar
{
id: topbar
anchors.left:parent.left
anchors.right: parent.right
anchors.top: parent.top
monitoringPrint: isMonitoringPrint()
monitoringPrint: base.showPrintMonitor
onStartMonitoringPrint: base.showPrintMonitor = true
onStopMonitoringPrint: base.showPrintMonitor = false
}

View file

@ -491,6 +491,49 @@ Item
}
}
}
MouseArea {
id: enableGradualInfillMouseArea_1
anchors.fill: parent
hoverEnabled: true
enabled: true
onEntered: {
var selectedStep = parseInt(infillSlider.value) / parseInt(infillSlider.stepSize)
var tooltipText = ""
if( enableGradualInfillCheckBox.checked){
tooltipText = catalog.i18nc("@label", "Gradual infill will gradually increase the amount of infill towards the top.");
}
else{
switch(selectedStep){
case 0: tooltipText = catalog.i18nc("@label", "Empty infill will leave your model hollow with low strength."); break;
case 1:
case 2:
case 3:
case 4: tooltipText = catalog.i18nc("@label", "Light infill will give your model an average strength."); break;
case 5:
case 6:
case 7:
case 8: tooltipText = catalog.i18nc("@label", "Dense infill will give your model an above average strength."); break;
case 9:
case 10: tooltipText = catalog.i18nc("@label", "Solid infill will make your model completely solid."); break;
}
}
if(tooltipText != "")
base.showTooltip(base, Qt.point(0,infillCellRight.y + infillIcon.y),tooltipText)
}
onExited: {
base.hideTooltip()
}
}
}
// Gradual Support Infill Checkbox

View file

@ -22,19 +22,22 @@ Rectangle
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
property bool printerAcceptsCommands: printerConnected && Cura.MachineManager.printerOutputDevices[0].acceptsCommands
// monitoring status
property bool monitoringPrint
// incoming signal
function monitoringChanged (isNowMonitoring) {
monitoringPrint = isNowMonitoring
}
property bool monitoringPrint: false
// outgoing signal
signal startMonitoringPrint()
signal stopMonitoringPrint()
// update monitoring status when event was triggered outside topbar
Component.onCompleted: {
startMonitoringPrint.connect(function () {
base.monitoringPrint = true
})
stopMonitoringPrint.connect(function () {
base.monitoringPrint = false
})
}
UM.I18nCatalog
{
id: catalog