From 1d70426224deb0fe8c03837afe928c43568de2d0 Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Mon, 9 Oct 2017 16:36:48 +0200 Subject: [PATCH 1/8] onVisibilityChanged function removed because it's never called - CURA-4405 --- plugins/3MFReader/WorkspaceDialog.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/plugins/3MFReader/WorkspaceDialog.py b/plugins/3MFReader/WorkspaceDialog.py index 5e5eaf985e..349dec177b 100644 --- a/plugins/3MFReader/WorkspaceDialog.py +++ b/plugins/3MFReader/WorkspaceDialog.py @@ -285,14 +285,6 @@ class WorkspaceDialog(QObject): except: pass - @pyqtSlot(bool) - def _onVisibilityChanged(self, visible): - if not visible: - try: - self._lock.release() - except: - pass - @pyqtSlot() def onOkButtonClicked(self): self._view.hide() From 019121521589908fc5328f19003704e71f25d680 Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Mon, 9 Oct 2017 15:27:01 +0200 Subject: [PATCH 2/8] Let the printer state text wrap too CL-521 --- plugins/UM3NetworkPrinting/PrinterInfoBlock.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml b/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml index da5ebc7e37..e2c6473da7 100644 --- a/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml +++ b/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml @@ -404,6 +404,8 @@ Rectangle anchors.left: parent.left anchors.right: parent.right elide: Text.ElideRight + wrapMode: Text.Wrap + font: UM.Theme.getFont("default") } From ebb8437bff60bfc00cbeba771fc14c2be6524234 Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Mon, 9 Oct 2017 15:41:18 +0200 Subject: [PATCH 3/8] Avoid using fractional pixel sizes and positions. It causes poor text rendering on Windows (and may be others) --- plugins/UM3NetworkPrinting/PrinterInfoBlock.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml b/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml index e2c6473da7..25be77bd7d 100644 --- a/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml +++ b/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml @@ -189,7 +189,7 @@ Rectangle PrintCoreConfiguration { id: leftExtruderInfo - width: (parent.width - extruderSeperator.width) / 2 + width: Math.floor((parent.width - extruderSeperator.width) / 2) printCoreConfiguration: printer.configuration[0] } @@ -204,7 +204,7 @@ Rectangle PrintCoreConfiguration { id: rightExtruderInfo - width: (parent.width - extruderSeperator.width) / 2 + width: Math.floor((parent.width - extruderSeperator.width) / 2) printCoreConfiguration: printer.configuration[1] } } From 7b6faf0030d9455f772c364ce4c9f16ae0bf1e21 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Tue, 10 Oct 2017 08:03:08 +0200 Subject: [PATCH 4/8] Adjust column width for Materials "Print Settings" page CURA-4428 --- resources/qml/Preferences/MaterialView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/qml/Preferences/MaterialView.qml b/resources/qml/Preferences/MaterialView.qml index c1750b2342..b13ce1aadf 100644 --- a/resources/qml/Preferences/MaterialView.qml +++ b/resources/qml/Preferences/MaterialView.qml @@ -16,8 +16,8 @@ TabView property bool editingEnabled: false; property string currency: UM.Preferences.getValue("cura/currency") ? UM.Preferences.getValue("cura/currency") : "€" - property real firstColumnWidth: (width * 0.45) | 0 - property real secondColumnWidth: (width * 0.45) | 0 + property real firstColumnWidth: (width * 0.50) | 0 + property real secondColumnWidth: (width * 0.40) | 0 property string containerId: "" property var materialPreferenceValues: UM.Preferences.getValue("cura/material_settings") ? JSON.parse(UM.Preferences.getValue("cura/material_settings")) : {} From 7ca2ae9771d76b40587ba8a414debcb1dd89300d Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Tue, 10 Oct 2017 08:20:39 +0200 Subject: [PATCH 5/8] Adjust alignments for ComboBoxes in MachineSettings dialog CURA-4428 --- plugins/MachineSettingsAction/MachineSettingsAction.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/MachineSettingsAction/MachineSettingsAction.qml b/plugins/MachineSettingsAction/MachineSettingsAction.qml index 613a28f3b7..cd7738da11 100644 --- a/plugins/MachineSettingsAction/MachineSettingsAction.qml +++ b/plugins/MachineSettingsAction/MachineSettingsAction.qml @@ -247,7 +247,7 @@ Cura.MachineAction Row { - spacing: UM.Theme.getSize("default_margin").width + spacing: UM.Theme.getSize("default_margin").width * 4 / 5 Label { @@ -648,7 +648,7 @@ Cura.MachineAction Row { - spacing: UM.Theme.getSize("default_margin").width + spacing: UM.Theme.getSize("default_margin").width * 4 / 5 Label { From 60726ce1793ae9dd3736912e59f627dc12153903 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Tue, 10 Oct 2017 08:24:47 +0200 Subject: [PATCH 6/8] Increase minimumHeight of the Print Address dialog CURA-4428 --- plugins/UM3NetworkPrinting/DiscoverUM3Action.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/DiscoverUM3Action.qml b/plugins/UM3NetworkPrinting/DiscoverUM3Action.qml index b9b85ef2d4..7594d1691d 100644 --- a/plugins/UM3NetworkPrinting/DiscoverUM3Action.qml +++ b/plugins/UM3NetworkPrinting/DiscoverUM3Action.qml @@ -321,7 +321,7 @@ Cura.MachineAction title: catalog.i18nc("@title:window", "Printer Address") minimumWidth: 400 * screenScaleFactor - minimumHeight: 120 * screenScaleFactor + minimumHeight: 130 * screenScaleFactor width: minimumWidth height: minimumHeight From b14ef41056777636911cc907d082862eaf6eee36 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Tue, 10 Oct 2017 08:30:18 +0200 Subject: [PATCH 7/8] Increase the minimumHeight of the workspace summary dialog CURA-4428 --- plugins/3MFReader/WorkspaceDialog.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/3MFReader/WorkspaceDialog.qml b/plugins/3MFReader/WorkspaceDialog.qml index a633491248..b1ece2be96 100644 --- a/plugins/3MFReader/WorkspaceDialog.qml +++ b/plugins/3MFReader/WorkspaceDialog.qml @@ -14,7 +14,7 @@ UM.Dialog title: catalog.i18nc("@title:window", "Open Project") minimumWidth: 500 * screenScaleFactor - minimumHeight: 400 * screenScaleFactor + minimumHeight: 450 * screenScaleFactor width: minimumWidth height: minimumHeight From 9996c829d88684b8a15a5a120a485d795e966d02 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Tue, 10 Oct 2017 08:50:22 +0200 Subject: [PATCH 8/8] Only schedule re-slice when there is none in progress CURA-4427 After the stack error check is done, only schedule a re-slice when there is none in progress and a re-slice is needed. --- plugins/CuraEngineBackend/CuraEngineBackend.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/CuraEngineBackend/CuraEngineBackend.py b/plugins/CuraEngineBackend/CuraEngineBackend.py index c89f476fa9..914aa1dee0 100755 --- a/plugins/CuraEngineBackend/CuraEngineBackend.py +++ b/plugins/CuraEngineBackend/CuraEngineBackend.py @@ -441,7 +441,7 @@ class CuraEngineBackend(QObject, Backend): def _onStackErrorCheckFinished(self): self._is_error_check_scheduled = False - if self._need_slicing: + if not self._slicing and self._need_slicing: self.needsSlicing() self._onChanged() @@ -536,7 +536,6 @@ class CuraEngineBackend(QObject, Backend): # # \param message The protobuf message containing the print time per feature def _parseMessagePrintTimes(self, message): - result = { "inset_0": message.time_inset_0, "inset_x": message.time_inset_x,