Files
scheincommander/HomePage.qml

77 lines
1.6 KiB
QML
Raw Permalink Normal View History

2023-02-15 01:12:19 +01:00
import QtQuick
import QtQuick.Controls.Material
import QtQuick.Layouts
2023-02-21 20:28:53 +01:00
import scheincommander
2023-02-20 00:36:55 +01:00
2023-02-16 00:47:00 +01:00
Item {
id: homePage
2023-02-15 01:12:19 +01:00
2023-02-18 16:09:51 +01:00
property bool needsRegler: true
2023-03-05 02:26:49 +01:00
ColumnLayout {
2023-02-16 00:47:00 +01:00
anchors.top: parent.top
anchors.right: parent.right
2023-02-15 01:12:19 +01:00
2023-03-05 02:26:49 +01:00
Button {
width: 100
height: 100
Layout.minimumWidth: width
Layout.minimumHeight: height
Layout.maximumWidth: width
Layout.maximumHeight: height
2023-02-15 01:12:19 +01:00
2023-03-05 02:26:49 +01:00
text: qsTr('Settings')
2023-03-05 02:26:49 +01:00
onClicked: stackview.push(settingsPage)
2023-02-16 00:47:00 +01:00
2023-03-05 02:26:49 +01:00
Component {
id: settingsPage
SettingsPage {
}
}
}
Button {
width: 100
height: 100
Layout.minimumWidth: width
Layout.minimumHeight: height
Layout.maximumWidth: width
Layout.maximumHeight: height
text: qsTr('Torch\nControl')
onClicked: stackview.push(torchControlPage)
Component {
id: torchControlPage
TorchControlPage {
}
2023-02-15 01:12:19 +01:00
}
}
}
2023-03-05 02:26:49 +01:00
Flow {
2023-02-16 00:47:00 +01:00
anchors.fill: parent
2023-02-20 00:36:55 +01:00
flow: Flow.TopToBottom
2023-02-15 01:12:19 +01:00
2023-02-20 00:36:55 +01:00
Repeater {
2023-02-22 23:18:09 +01:00
model: PresetsModel {
2023-02-20 00:36:55 +01:00
controller: __controller
2023-02-16 00:47:00 +01:00
}
2023-02-20 00:36:55 +01:00
delegate: RowLayout {
Label {
text: model.name
}
DmxSlider {
2023-02-22 23:18:09 +01:00
onValueChanged: __controller.setPresetSlider(model.id, value);
2023-02-20 00:36:55 +01:00
}
2023-02-16 00:47:00 +01:00
}
2023-02-15 01:12:19 +01:00
}
}
}