mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-02 12:42:13 +02:00
79 lines
2.5 KiB
QML
79 lines
2.5 KiB
QML
//
|
|
// workload.qml
|
|
//
|
|
// Created by Sam Gateau on 3/1/2018
|
|
// Copyright 2018 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
import QtQuick 2.7
|
|
import QtQuick.Controls 1.4
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import "qrc:///qml/styles-uit"
|
|
import "qrc:///qml/controls-uit" as HifiControls
|
|
import "../render/configSlider"
|
|
|
|
Rectangle {
|
|
HifiConstants { id: hifi;}
|
|
id: workload;
|
|
anchors.margins: hifi.dimensions.contentMargin.x
|
|
|
|
color: hifi.colors.baseGray;
|
|
property var setupViews: Workload.getConfig("setupViews")
|
|
property var spaceToRender: Workload.getConfig("SpaceToRender")
|
|
|
|
Column {
|
|
spacing: 5
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
anchors.margins: hifi.dimensions.contentMargin.x
|
|
//padding: hifi.dimensions.contentMargin.x
|
|
|
|
HifiControls.Label {
|
|
text: "Workload"
|
|
}
|
|
HifiControls.CheckBox {
|
|
boxSize: 20
|
|
text: "Freeze Views"
|
|
checked: workload.spaceToRender["freezeViews"]
|
|
onCheckedChanged: { workload.spaceToRender["freezeViews"] = checked, workload.setupViews.enabled = !checked; }
|
|
}
|
|
Repeater {
|
|
model: [
|
|
"R1 Front:r1Front:300:1.0", "R1 Back:r1Back:50.0:0.0",
|
|
"R2 Front:r2Front:300:1.0", "R2 Back:r2Back:50.0:0.0",
|
|
"R3 Front:r3Front:300:1.0", "R3 Back:r3Back:50.0:0.0"
|
|
]
|
|
ConfigSlider {
|
|
label: qsTr(modelData.split(":")[0])
|
|
integral: false
|
|
config: workload.setupViews
|
|
property: modelData.split(":")[1]
|
|
max: modelData.split(":")[2]
|
|
min: modelData.split(":")[3]
|
|
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
}
|
|
}
|
|
Separator {}
|
|
HifiControls.Label {
|
|
text: "Display"
|
|
}
|
|
HifiControls.CheckBox {
|
|
boxSize: 20
|
|
text: "Show Proxies"
|
|
checked: workload.spaceToRender["showProxies"]
|
|
onCheckedChanged: { workload.spaceToRender["showProxies"] = checked }
|
|
}
|
|
HifiControls.CheckBox {
|
|
boxSize: 20
|
|
text: "Show Views"
|
|
checked: workload.spaceToRender["showViews"]
|
|
onCheckedChanged: { workload.spaceToRender["showViews"] = checked }
|
|
}
|
|
Separator {}
|
|
}
|
|
}
|