From 8402189b420e0e965eacd83a91f1acf4664b1b30 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 10 Feb 2016 10:28:03 +0100 Subject: [PATCH] Removed unused code --- resources/qml/SidebarSimple.qml | 203 -------------------------------- 1 file changed, 203 deletions(-) diff --git a/resources/qml/SidebarSimple.qml b/resources/qml/SidebarSimple.qml index e909dd92ce..08baa7a2dc 100644 --- a/resources/qml/SidebarSimple.qml +++ b/resources/qml/SidebarSimple.qml @@ -22,105 +22,7 @@ Item Component.onCompleted: PrintInformation.enabled = true Component.onDestruction: PrintInformation.enabled = false UM.I18nCatalog { id: catalog; name:"cura"} -/* - Rectangle{ - id: speedCellLeft - anchors.top: parent.top - anchors.left: parent.left - width: base.width/100*35 - UM.Theme.sizes.default_margin.width - height: childrenRect.height - Label{ - id: speedLabel - //: Speed selection label - text: catalog.i18nc("@label","Speed:"); - font: UM.Theme.fonts.default; - color: UM.Theme.colors.text; - anchors.top: parent.top - anchors.topMargin: UM.Theme.sizes.default_margin.height - anchors.left: parent.left - anchors.leftMargin: UM.Theme.sizes.default_margin.width - } - } - - Rectangle { - id: speedCellRight - anchors.left: speedCellLeft.right - anchors.top: speedCellLeft.top - anchors.topMargin: UM.Theme.sizes.default_margin.height - width: parent.width/100*65 - UM.Theme.sizes.default_margin.width - height: childrenRect.height - - CheckBox{ - id: normalSpeedCheckBox - property bool hovered_ex: false - - anchors.top: parent.top - anchors.left: parent.left - - //: Normal speed checkbox - text: catalog.i18nc("@option:check","Normal"); - style: UM.Theme.styles.checkbox; - - exclusiveGroup: speedCheckBoxGroup - checked: UM.ActiveProfile.valid ? UM.ActiveProfile.settingValues.speed_print <= 60 : true; - MouseArea { - anchors.fill: parent - hoverEnabled: true - onClicked: - { - UM.MachineManager.setSettingValue("speed_print", 60) - } - onEntered: - { - parent.hovered_ex = true - base.showTooltip(normalSpeedCheckBox, Qt.point(-speedCellRight.x, parent.height), - catalog.i18nc("@label", "Use normal printing speed. This will result in high quality prints.")); - } - onExited: - { - parent.hovered_ex = false - base.hideTooltip(); - } - } - } - CheckBox{ - id: highSpeedCheckBox - property bool hovered_ex: false - - anchors.top: parent.top - anchors.left: normalSpeedCheckBox.right - anchors.leftMargin: UM.Theme.sizes.default_margin.width - - //: High speed checkbox - text: catalog.i18nc("@option:check","Fast"); - style: UM.Theme.styles.checkbox; - - exclusiveGroup: speedCheckBoxGroup - checked: UM.ActiveProfile.valid ? UM.ActiveProfile.settingValues.speed_print > 60 : true; - MouseArea { - anchors.fill: parent - hoverEnabled: true - onClicked: - { - UM.MachineManager.setSettingValue("speed_print", 100) - } - onEntered: - { - parent.hovered_ex = true - base.showTooltip(normalSpeedCheckBox, Qt.point(-speedCellRight.x, parent.height), - catalog.i18nc("@label", "Use high printing speed. This will reduce printing time, but may affect the quality of the print.")); - } - onExited: - { - parent.hovered_ex = false - base.hideTooltip(); - } - } - } - ExclusiveGroup { id: speedCheckBoxGroup; } - } -*/ Rectangle{ id: infillCellLeft anchors.top: parent.top @@ -360,109 +262,4 @@ Item } } } - -/* - Item - { - Layout.fillWidth: true; - Layout.preferredHeight: UM.Theme.sizes.section.height; - - Label - { - anchors.left: parent.left; - anchors.verticalCenter: parent.verticalCenter; - text: base.minimumPrintTime.valid ? base.minimumPrintTime.getDisplayString(UM.DurationFormat.Short) : "??:??"; - font: UM.Theme.fonts.timeslider_time; - color: UM.Theme.colors.primary; - } - Label - { - anchors.centerIn: parent; - text: //: Sidebar configuration label - { - if (UM.Backend.progress < 0) - { - return catalog.i18nc("@label","No Model Loaded"); - } - else if (!base.minimumPrintTime.valid || !base.maximumPrintTime.valid) - { - return catalog.i18nc("@label","Calculating...") - } - else - { - return catalog.i18nc("@label","Estimated Print Time"); - } - } - color: UM.Theme.colors.text; - font: UM.Theme.fonts.default; - } - Label - { - anchors.right: parent.right; - anchors.verticalCenter: parent.verticalCenter; - text: base.maximumPrintTime.valid ? base.maximumPrintTime.getDisplayString(UM.DurationFormat.Short) : "??:??"; - font: UM.Theme.fonts.timeslider_time; - color: UM.Theme.colors.primary; - } - } - - Slider - { - Layout.fillWidth: true; - Layout.preferredHeight: UM.Theme.sizes.section.height; - - minimumValue: 0; - maximumValue: 100; - - value: PrintInformation.timeQualityValue; - onValueChanged: PrintInformation.setTimeQualityValue(value); - - style: UM.Theme.styles.slider; - } - - Item - { - Layout.fillWidth: true; - Layout.preferredHeight: UM.Theme.sizes.section.height; - - Label - { - anchors.left: parent.left; - anchors.verticalCenter: parent.verticalCenter; - - //: Quality slider label - text: catalog.i18nc("@label","Minimum\nDraft"); - color: UM.Theme.colors.text; - font: UM.Theme.fonts.default; - } - - Label - { - anchors.right: parent.right; - anchors.verticalCenter: parent.verticalCenter; - - //: Quality slider label - text: catalog.i18nc("@label","Maximum\nQuality"); - horizontalAlignment: Text.AlignRight; - color: UM.Theme.colors.text; - font: UM.Theme.fonts.default; - } - } - - CheckBox - { - Layout.fillWidth: true; - Layout.preferredHeight: UM.Theme.sizes.section.height; - - //: Setting checkbox - text: catalog.i18nc("@action:checkbox","Enable Support"); - - style: UM.Theme.styles.checkbox; - - checked: Printer.getSettingValue("support_enable"); - onCheckedChanged: Printer.setSettingValue("support_enable", checked); - } - - Item { Layout.fillWidth: true; Layout.fillHeight: true; } - }*/ }