[ui] GraphEditor : add "Clear Pending Status" tool at Graph level

* allow to clear status of all submitted nodes in the graph
* unify wording
This commit is contained in:
Yann Lanthony 2019-01-04 18:06:35 +01:00
parent b09068dc68
commit 34ca607261
3 changed files with 22 additions and 3 deletions

View file

@ -518,7 +518,25 @@ ApplicationWindow {
Layout.fillWidth: true
padding: 4
title: "Graph Editor"
visible: settings_UILayout.showGraphEditor
headerBar: RowLayout {
MaterialToolButton {
text: MaterialIcons.more_vert
font.pointSize: 11
padding: 2
onClicked: graphEditorMenu.open()
Menu {
id: graphEditorMenu
y: parent.height
x: -width + parent.width
MenuItem {
text: "Clear Pending Status"
enabled: !_reconstruction.computingLocally
onTriggered: _reconstruction.graph.clearSubmittedNodes()
}
}
}
}
function displayAttribute(attr) {
if( attr.desc.type === "File"