Added compatibility mode - old layer view is now also available

This commit is contained in:
Jack Ha 2017-01-02 12:56:18 +01:00
parent b79f0c6d08
commit 93137fcc91
8 changed files with 418 additions and 346 deletions

View file

@ -212,6 +212,20 @@ UM.PreferencesPage
}
}
UM.TooltipArea {
width: childrenRect.width
height: childrenRect.height
text: catalog.i18nc("@info:tooltip", "Compatibility mode in layerview?")
CheckBox
{
id: topLayerViewCompatibilityCheckbox
text: catalog.i18nc("@option:check", "Layer view compatibility mode (for OpenGL <= 4.0, restart required)")
checked: boolCheck(UM.Preferences.getValue("view/compatibility_mode"))
onCheckedChanged: UM.Preferences.setValue("view/compatibility_mode", checked)
}
}
UM.TooltipArea {
width: childrenRect.width;
height: childrenRect.height;
@ -220,7 +234,7 @@ UM.PreferencesPage
CheckBox
{
id: topLayerCountCheckbox
text: catalog.i18nc("@action:button","Display five top layers in layer view");
text: catalog.i18nc("@action:button","Display five top layers in layer view (only for compatibility mode)");
checked: UM.Preferences.getValue("view/top_layer_count") == 5
onClicked:
{
@ -235,6 +249,7 @@ UM.PreferencesPage
}
}
}
UM.TooltipArea {
width: childrenRect.width
height: childrenRect.height
@ -243,7 +258,7 @@ UM.PreferencesPage
CheckBox
{
id: topLayersOnlyCheckbox
text: catalog.i18nc("@option:check", "Only display top layer(s) in layer view")
text: catalog.i18nc("@option:check", "Only display top layer(s) in layer view (only for compatibility mode)")
checked: boolCheck(UM.Preferences.getValue("view/only_show_top_layers"))
onCheckedChanged: UM.Preferences.setValue("view/only_show_top_layers", checked)
}