mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Changed margins on save & load workspace dialog
CURA-1263
This commit is contained in:
parent
f598a49c4b
commit
c4e061be60
2 changed files with 72 additions and 50 deletions
|
@ -16,9 +16,9 @@ UM.Dialog
|
||||||
minimumWidth: 550
|
minimumWidth: 550
|
||||||
maximumWidth: 550
|
maximumWidth: 550
|
||||||
|
|
||||||
height: 350
|
height: 400
|
||||||
minimumHeight: 350
|
minimumHeight: 400
|
||||||
maximumHeight: 350
|
maximumHeight: 400
|
||||||
property int comboboxHeight: 15
|
property int comboboxHeight: 15
|
||||||
property int spacerHeight: 10
|
property int spacerHeight: 10
|
||||||
onClosing: manager.notifyClosed()
|
onClosing: manager.notifyClosed()
|
||||||
|
@ -33,7 +33,15 @@ UM.Dialog
|
||||||
}
|
}
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
anchors.fill: parent
|
anchors.top: parent.top
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
|
||||||
|
anchors.topMargin: 20
|
||||||
|
anchors.bottomMargin: 20
|
||||||
|
anchors.leftMargin:20
|
||||||
|
anchors.rightMargin: 20
|
||||||
|
|
||||||
UM.I18nCatalog
|
UM.I18nCatalog
|
||||||
{
|
{
|
||||||
|
@ -134,29 +142,6 @@ UM.Dialog
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Repeater
|
|
||||||
{
|
|
||||||
model: manager.extruders
|
|
||||||
delegate: Column
|
|
||||||
{
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
text: catalog.i18nc("@action:label", "Extruder %1").arg(index+1)
|
|
||||||
}
|
|
||||||
width: parent.width
|
|
||||||
height: childrenRect.height
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
text: catalog.i18nc("@action:label", "%1 & material").arg(manager.variantType)
|
|
||||||
width: parent.width / 3
|
|
||||||
}
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
text: modelData
|
|
||||||
width: parent.width / 3
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
Item // Spacer
|
Item // Spacer
|
||||||
{
|
{
|
||||||
height: spacerHeight
|
height: spacerHeight
|
||||||
|
@ -345,31 +330,47 @@ UM.Dialog
|
||||||
height: spacerHeight
|
height: spacerHeight
|
||||||
width: height
|
width: height
|
||||||
}
|
}
|
||||||
Label
|
Row
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@action:warning", "Loading a project will clear all models on the buildplate")
|
|
||||||
visible: manager.hasObjectsOnPlate
|
|
||||||
color: "red"
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
wrapMode: Text.Wrap
|
height: childrenRect.height
|
||||||
|
visible: manager.hasObjectsOnPlate
|
||||||
|
UM.RecolorImage
|
||||||
|
{
|
||||||
|
width: warningLabel.height
|
||||||
|
height: width
|
||||||
|
|
||||||
|
source: UM.Theme.getIcon("notice")
|
||||||
|
color: "black"
|
||||||
|
|
||||||
|
}
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
id: warningLabel
|
||||||
|
text: catalog.i18nc("@action:warning", "Loading a project will clear all models on the buildplate")
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
rightButtons: [
|
|
||||||
|
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: cancel_button
|
id: cancel_button
|
||||||
text: catalog.i18nc("@action:button","Cancel");
|
text: catalog.i18nc("@action:button","Cancel");
|
||||||
onClicked: { manager.onCancelButtonClicked() }
|
onClicked: { manager.onCancelButtonClicked() }
|
||||||
enabled: true
|
enabled: true
|
||||||
},
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.right: ok_button.left
|
||||||
|
anchors.bottomMargin: - 0.5 * height
|
||||||
|
anchors.rightMargin:2
|
||||||
|
}
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: ok_button
|
id: ok_button
|
||||||
text: catalog.i18nc("@action:button","Open");
|
text: catalog.i18nc("@action:button","Open");
|
||||||
onClicked: { manager.closeBackend(); manager.onOkButtonClicked() }
|
onClicked: { manager.closeBackend(); manager.onOkButtonClicked() }
|
||||||
enabled: true
|
anchors.bottomMargin: - 0.5 * height
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.right: parent.right
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
}
|
}
|
|
@ -46,7 +46,16 @@ UM.Dialog
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
anchors.fill: parent
|
anchors.top: parent.top
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
|
||||||
|
anchors.topMargin: 20
|
||||||
|
anchors.bottomMargin: 20
|
||||||
|
anchors.leftMargin:20
|
||||||
|
anchors.rightMargin: 20
|
||||||
|
|
||||||
UM.SettingDefinitionsModel
|
UM.SettingDefinitionsModel
|
||||||
{
|
{
|
||||||
id: definitionsModel
|
id: definitionsModel
|
||||||
|
@ -263,22 +272,34 @@ UM.Dialog
|
||||||
checked: dontShowAgain
|
checked: dontShowAgain
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
rightButtons: [
|
|
||||||
Button
|
|
||||||
{
|
|
||||||
id: cancel_button
|
|
||||||
text: catalog.i18nc("@action:button","Cancel");
|
|
||||||
enabled: true
|
|
||||||
onClicked: close()
|
|
||||||
},
|
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: ok_button
|
id: ok_button
|
||||||
text: catalog.i18nc("@action:button","Save");
|
text: catalog.i18nc("@action:button","Save");
|
||||||
enabled: true
|
enabled: true
|
||||||
onClicked: {
|
onClicked: {
|
||||||
close(); yes() }
|
close()
|
||||||
|
yes()
|
||||||
|
}
|
||||||
|
anchors.bottomMargin: - 0.5 * height
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.right: parent.right
|
||||||
}
|
}
|
||||||
]
|
|
||||||
|
Button
|
||||||
|
{
|
||||||
|
id: cancel_button
|
||||||
|
text: catalog.i18nc("@action:button","Cancel");
|
||||||
|
enabled: true
|
||||||
|
onClicked: close()
|
||||||
|
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.right: ok_button.left
|
||||||
|
anchors.bottomMargin: - 0.5 * height
|
||||||
|
anchors.rightMargin:2
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue