Skip to content

Commit

Permalink
[ui] sequence player: checkbox to show or hide sequence player widget
Browse files Browse the repository at this point in the history
  • Loading branch information
mugulmd committed Jun 19, 2023
1 parent 2e519b8 commit e928ef0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions meshroom/ui/qml/Viewer/Viewer2D.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ FocusScope {
property var activeNodeFisheye: _reconstruction ? _reconstruction.activeNodes.get("PanoramaInit").node : null
property bool cropFisheye : activeNodeFisheye ? activeNodeFisheye.attribute("useFisheye").value : false
property bool enable8bitViewer: enable8bitViewerAction.checked
property bool enableSequencePlayer: enableSequencePlayerAction.checked

QtObject {
id: m
Expand Down Expand Up @@ -433,8 +434,8 @@ FocusScope {
'canBeHovered': false,
'idView': Qt.binding(function() { return (_reconstruction ? _reconstruction.selectedViewId : -1); }),
'cropFisheye': false,
'sequence': Qt.binding(function() { return ((_reconstruction && _reconstruction.viewpoints.count > 0) ? _reconstruction.allImagePaths() : []) }),
'useSequence': Qt.binding(function() { return !useExternal && _reconstruction && (!displayedNode || outputAttribute.name == "gallery"); })
'sequence': Qt.binding(function() { return ((root.enableSequencePlayer && _reconstruction && _reconstruction.viewpoints.count > 0) ? _reconstruction.allImagePaths() : []) }),
'useSequence': Qt.binding(function() { return root.enableSequencePlayer && !useExternal && _reconstruction && (!displayedNode || outputAttribute.name == "gallery"); })
})
} else {
// Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14
Expand Down Expand Up @@ -1302,6 +1303,8 @@ FocusScope {
anchors.margins: 0
Layout.fillWidth: true
viewer: floatImageViewerLoader.status === Loader.Ready ? floatImageViewerLoader.item : null
visible: root.enableSequencePlayer
enabled: root.enableSequencePlayer
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions meshroom/ui/qml/WorkspaceView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ Item {
checkable: true
checked: MeshroomApp.default8bitViewerEnabled
}
Action {
id: enableSequencePlayerAction
text: "Enable Sequence Player"
checkable: true
checked: false
}
}
}
}
Expand Down

0 comments on commit e928ef0

Please sign in to comment.