mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-26 21:17:29 +02:00
Add ability to select node in the task manager tab
This commit is contained in:
parent
01974c23ec
commit
fe3c55e57c
1 changed files with 59 additions and 6 deletions
|
@ -23,7 +23,6 @@ Item {
|
||||||
property int borderWidth: 3
|
property int borderWidth: 3
|
||||||
|
|
||||||
function selectNode(node) {
|
function selectNode(node) {
|
||||||
console.info("Node selected")
|
|
||||||
uigraph.selectedNode = node
|
uigraph.selectedNode = node
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,8 +164,16 @@ Item {
|
||||||
Layout.preferredHeight: parent.height
|
Layout.preferredHeight: parent.height
|
||||||
horizontalAlignment: Label.AlignHCenter
|
horizontalAlignment: Label.AlignHCenter
|
||||||
verticalAlignment: Label.AlignVCenter
|
verticalAlignment: Label.AlignVCenter
|
||||||
|
color: object == uigraph.selectedNode ? Colors.sysPalette.window : Colors.sysPalette.text
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: bgColor
|
color: object == uigraph.selectedNode ? Colors.sysPalette.text : bgColor
|
||||||
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onPressed: {
|
||||||
|
selectNode(object)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
|
@ -175,8 +182,16 @@ Item {
|
||||||
Layout.preferredHeight: parent.height
|
Layout.preferredHeight: parent.height
|
||||||
horizontalAlignment: Label.AlignHCenter
|
horizontalAlignment: Label.AlignHCenter
|
||||||
verticalAlignment: Label.AlignVCenter
|
verticalAlignment: Label.AlignVCenter
|
||||||
|
color: object == uigraph.selectedNode ? Colors.sysPalette.window : Colors.sysPalette.text
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: bgColor
|
color: object == uigraph.selectedNode ? Colors.sysPalette.text : bgColor
|
||||||
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onPressed: {
|
||||||
|
selectNode(object)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
|
@ -185,8 +200,16 @@ Item {
|
||||||
Layout.preferredHeight: parent.height
|
Layout.preferredHeight: parent.height
|
||||||
horizontalAlignment: Label.AlignHCenter
|
horizontalAlignment: Label.AlignHCenter
|
||||||
verticalAlignment: Label.AlignVCenter
|
verticalAlignment: Label.AlignVCenter
|
||||||
|
color: object == uigraph.selectedNode ? Colors.sysPalette.window : Colors.sysPalette.text
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: bgColor
|
color: object == uigraph.selectedNode ? Colors.sysPalette.text : bgColor
|
||||||
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onPressed: {
|
||||||
|
selectNode(object)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
|
@ -195,8 +218,16 @@ Item {
|
||||||
Layout.preferredHeight: parent.height
|
Layout.preferredHeight: parent.height
|
||||||
horizontalAlignment: Label.AlignHCenter
|
horizontalAlignment: Label.AlignHCenter
|
||||||
verticalAlignment: Label.AlignVCenter
|
verticalAlignment: Label.AlignVCenter
|
||||||
|
color: object == uigraph.selectedNode ? Colors.sysPalette.window : Colors.sysPalette.text
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: bgColor
|
color: object == uigraph.selectedNode ? Colors.sysPalette.text : bgColor
|
||||||
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onPressed: {
|
||||||
|
selectNode(object)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
|
@ -205,8 +236,16 @@ Item {
|
||||||
Layout.preferredHeight: parent.height
|
Layout.preferredHeight: parent.height
|
||||||
horizontalAlignment: Label.AlignHCenter
|
horizontalAlignment: Label.AlignHCenter
|
||||||
verticalAlignment: Label.AlignVCenter
|
verticalAlignment: Label.AlignVCenter
|
||||||
|
color: object == uigraph.selectedNode ? Colors.sysPalette.window : Colors.sysPalette.text
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: bgColor
|
color: object == uigraph.selectedNode ? Colors.sysPalette.text : bgColor
|
||||||
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onPressed: {
|
||||||
|
selectNode(object)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
|
@ -215,18 +254,32 @@ Item {
|
||||||
Layout.preferredHeight: parent.height
|
Layout.preferredHeight: parent.height
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
|
id: chunkList
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
height: parent.height
|
||||||
orientation: ListView.Horizontal
|
orientation: ListView.Horizontal
|
||||||
model: object.chunks
|
model: object.chunks
|
||||||
|
property var node: object
|
||||||
|
|
||||||
spacing: 3
|
spacing: 3
|
||||||
|
|
||||||
delegate: Label {
|
delegate: Label {
|
||||||
width: (ListView.view.width / ListView.view.model.count) -3
|
width: (ListView.view.width / ListView.view.model.count) -3
|
||||||
height: RowLayout.view.height
|
height: RowLayout.view.height
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: Colors.getChunkColor(object, {"NONE": bgColor})
|
color: Colors.getChunkColor(object, {"NONE": bgColor})
|
||||||
radius: 3
|
radius: 3
|
||||||
|
border.width: 2
|
||||||
|
border.color: chunkList.node == uigraph.selectedNode ? Colors.sysPalette.text : Colors.getChunkColor(object, {"NONE": bgColor})
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onPressed: {
|
||||||
|
selectNode(chunkList.node)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue