mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 14:12:50 +02:00
This is working !!!!
This commit is contained in:
parent
206bc0addb
commit
c540016af6
4 changed files with 56 additions and 3 deletions
40
scripts/developer/utilities/lib/jet/qml/TaskPropView.qml
Normal file
40
scripts/developer/utilities/lib/jet/qml/TaskPropView.qml
Normal file
|
@ -0,0 +1,40 @@
|
|||
//
|
||||
// jet/TaskListView.qml
|
||||
//
|
||||
// Created by Sam Gateau, 2018/05/09
|
||||
// Copyright 2018 High Fidelity, Inc.
|
||||
//
|
||||
// Distributed under the Apache License, Version 2.0.
|
||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
import QtQuick 2.7
|
||||
import QtQuick.Controls 1.4 as Original
|
||||
import QtQuick.Controls.Styles 1.4
|
||||
|
||||
import stylesUit 1.0
|
||||
import controlsUit 1.0 as HifiControls
|
||||
|
||||
import "../../prop" as Prop
|
||||
|
||||
import "../jet.js" as Jet
|
||||
|
||||
Prop.PropGroup {
|
||||
|
||||
id: root;
|
||||
|
||||
property var rootConfig : Render
|
||||
property var jobPath: ""
|
||||
property alias jobName: root.label
|
||||
|
||||
Component.onCompleted: {
|
||||
var props = Jet.job_propKeys(rootConfig.getConfig(jobPath));
|
||||
//console.log(JSON.stringify(props));
|
||||
for (var p in props) {
|
||||
root.propItems.push({"type": "PropBool", "object": rootConfig.getConfig(jobPath), "property":props[p] })
|
||||
}
|
||||
root.updatePropItems();
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,3 +1,4 @@
|
|||
TaskList 1.0 TaskList.qml
|
||||
TaskViewList 1.0 TaskViewList.qml
|
||||
TaskTimeFrameView 1.0 TaskTimeFrameView.qml
|
||||
TaskPropView 1.0 TaskPropView.qml
|
|
@ -42,8 +42,8 @@ Item {
|
|||
}
|
||||
height: column.height
|
||||
|
||||
Component.onCompleted: {
|
||||
for (var i = 0; i < root.propItems.length; i++) {
|
||||
function updatePropItems() {
|
||||
for (var i = 0; i < root.propItems.length; i++) {
|
||||
var proItem = root.propItems[i];
|
||||
switch(proItem.type) {
|
||||
case 'PropBool': {
|
||||
|
@ -77,4 +77,7 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
Component.onCompleted: {
|
||||
updatePropItems();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ import QtQuick.Layouts 1.3
|
|||
import controlsUit 1.0 as HifiControls
|
||||
|
||||
import "../lib/prop" as Prop
|
||||
import "../lib/jet/qml" as Jet
|
||||
|
||||
Rectangle {
|
||||
Prop.Global { id: prop;}
|
||||
|
@ -62,7 +63,7 @@ Rectangle {
|
|||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
}*/
|
||||
Prop.PropGroup {
|
||||
/* Prop.PropGroup {
|
||||
label: "My group"
|
||||
propItems: [
|
||||
{"type": "PropBool", "object": render.mainViewTask.getConfig("LightingModel"), "property": "enableBackground"},
|
||||
|
@ -75,6 +76,14 @@ Rectangle {
|
|||
"Filmic",
|
||||
]},
|
||||
]
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
}*/
|
||||
|
||||
Jet.TaskPropView {
|
||||
jobPath: "RenderMainView.LightingModel"
|
||||
label: "Le tone mapping Job"
|
||||
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue