harbour-seaprint/qml/pages/SettingsPage.qml
2020-09-23 20:23:49 +02:00

67 lines
2.5 KiB
QML

import QtQuick 2.0
import Sailfish.Silica 1.0
Page {
allowedOrientations: Orientation.All
SilicaFlickable {
anchors.fill: parent
contentHeight: column.height
Column {
id: column
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width - 2*Theme.paddingLarge
spacing: Theme.paddingLarge
PageHeader{
title: qsTr("Settings")
}
TextSwitch {
text: qsTr("Show nag-screen")
description: qsTr("Display the warning page about optional dependencies not being installed, if they are not installed.")
checked: nagScreenSetting.value != nagScreenSetting.expectedValue
onCheckedChanged: {
if(checked)
{
nagScreenSetting.value=0
}
else
{
nagScreenSetting.value = nagScreenSetting.expectedValue
}
}
}
TextSwitch {
text: qsTr("Consider additional formats")
description: qsTr("Some printers support more formats than they advertise correctly. However, additional formats can be inferred from other attributes. Mainly relevant for Postscript-compatible printers that also support PDF.")
checked: considerAdditionalFormatsSetting.value
onCheckedChanged: {
considerAdditionalFormatsSetting.value = checked
}
}
TextSwitch {
text: qsTr("Always convert to raster format")
description: qsTr("Force conversion to PWG/URF raster format. This is mainly intended for testing.")
checked: alwaysConvertSetting.value
onCheckedChanged: {
alwaysConvertSetting.value = checked
}
}
TextSwitch {
text: qsTr("Always use media-col")
description: qsTr("Use the attribute media-col instead of media for paper sizes. I.e. do parametric selection of print media rather than by name. If you use zero print margins, parametric selection will be used regardless of this setting.")
checked: alwaysUseMediaColSetting.value
onCheckedChanged: {
alwaysUseMediaColSetting.value = checked
}
}
}
}
}