2019-10-18 16:10:41 +02:00
|
|
|
import QtQuick 2.9
|
|
|
|
import QtMultimedia 5.8
|
|
|
|
import QtQuick.Window 2.2
|
|
|
|
import QtQuick.Controls 2.2
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import QtGraphicalEffects 1.0
|
|
|
|
import QtQuick.Controls.Styles 1.4
|
2020-05-18 11:28:48 +02:00
|
|
|
|
2020-05-26 17:57:54 +02:00
|
|
|
import de.itsblue.ScStw 2.0
|
|
|
|
import de.itsblue.ScStw.Styling 2.0
|
|
|
|
import de.itsblue.ScStw.Styling.Components 1.0
|
|
|
|
import de.itsblue.ScStwApp 2.0
|
|
|
|
|
2019-10-18 16:10:41 +02:00
|
|
|
import "../components"
|
|
|
|
|
|
|
|
Column {
|
|
|
|
id: control
|
|
|
|
|
|
|
|
property string title: qsTr("options")
|
|
|
|
|
|
|
|
property var parentObj
|
|
|
|
|
|
|
|
spacing: parent.rowSpacing
|
|
|
|
|
|
|
|
/*----Connect to external devices----*/
|
|
|
|
NextPageDelegate {
|
|
|
|
id: connect_del
|
|
|
|
|
|
|
|
height: parentObj.delegateHeight
|
|
|
|
|
|
|
|
text: qsTr("base station")
|
|
|
|
onClicked: {
|
|
|
|
parentObj.push(connect)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*----Automated Start----*/
|
|
|
|
NextPageDelegate {
|
|
|
|
id: autostart_del
|
|
|
|
|
|
|
|
height: parentObj.delegateHeight
|
|
|
|
|
|
|
|
text: qsTr("start sequence")
|
|
|
|
|
|
|
|
onClicked: {
|
|
|
|
parentObj.push(autostart)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-15 20:19:49 +01:00
|
|
|
/*----About the app----*/
|
|
|
|
NextPageDelegate {
|
|
|
|
id: about_del
|
|
|
|
|
|
|
|
height: parentObj.delegateHeight
|
|
|
|
|
|
|
|
text: qsTr("about this app")
|
|
|
|
|
|
|
|
onClicked: {
|
|
|
|
parentObj.push(about)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-18 16:10:41 +02:00
|
|
|
/*----Style Settings----*/
|
|
|
|
SmoothSwitchDelegate {
|
|
|
|
id: styleDel
|
|
|
|
text: qsTr("dark mode")
|
|
|
|
|
|
|
|
width: parent.width
|
|
|
|
height: parentObj.delegateHeight
|
|
|
|
|
2020-08-09 12:20:04 +02:00
|
|
|
checked: appTheme.setting.value === "Dark"
|
2019-10-18 16:10:41 +02:00
|
|
|
|
|
|
|
onCheckedChanged: {
|
2020-08-09 12:20:04 +02:00
|
|
|
appTheme.setting.setValue(checked ? "Dark":"Light")
|
2019-10-18 16:10:41 +02:00
|
|
|
}
|
|
|
|
}
|
2023-05-14 22:33:44 +02:00
|
|
|
|
|
|
|
/*----Style Settings----*/
|
|
|
|
SmoothSwitchDelegate {
|
|
|
|
id: keyboardDel
|
|
|
|
text: qsTr("keyboard control")
|
|
|
|
|
|
|
|
width: parent.width
|
|
|
|
height: parentObj.delegateHeight
|
|
|
|
|
|
|
|
checked: scStwAppSettings.readSetting(ScStwAppSettings.KeyboardControlSetting)
|
|
|
|
|
|
|
|
onCheckedChanged: {
|
|
|
|
scStwAppSettings.writeSetting(ScStwAppSettings.KeyboardControlSetting, checked)
|
|
|
|
}
|
|
|
|
}
|
2019-10-18 16:10:41 +02:00
|
|
|
}
|