mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-07 13:21:56 +02:00
[ui] Fetching button added for Sequence Player
This commit is contained in:
parent
154babbf5c
commit
1c48d68bef
3 changed files with 13 additions and 2 deletions
|
@ -23,6 +23,7 @@ FloatingPane {
|
||||||
property var sortedViewIds: []
|
property var sortedViewIds: []
|
||||||
property var viewer: null
|
property var viewer: null
|
||||||
readonly property alias sync3DSelected: m.sync3DSelected
|
readonly property alias sync3DSelected: m.sync3DSelected
|
||||||
|
property alias loading: fetchButton.checked
|
||||||
|
|
||||||
function updateReconstructionView() {
|
function updateReconstructionView() {
|
||||||
if (_reconstruction && m.frame >= 0 && m.frame < sortedViewIds.length) {
|
if (_reconstruction && m.frame >= 0 && m.frame < sortedViewIds.length) {
|
||||||
|
@ -323,6 +324,15 @@ FloatingPane {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MaterialToolButton {
|
||||||
|
id: fetchButton
|
||||||
|
|
||||||
|
text: MaterialIcons.download_for_offline
|
||||||
|
ToolTip.text: "Fetch"
|
||||||
|
checkable: true
|
||||||
|
checked: false
|
||||||
|
}
|
||||||
|
|
||||||
MaterialToolButton {
|
MaterialToolButton {
|
||||||
id: repeatButton
|
id: repeatButton
|
||||||
|
|
||||||
|
|
|
@ -461,7 +461,8 @@ FocusScope {
|
||||||
'cropFisheye': false,
|
'cropFisheye': false,
|
||||||
'sequence': Qt.binding(function() { return ((root.enableSequencePlayer && _reconstruction && _reconstruction.viewpoints.count > 0) ? getSequence() : []) }),
|
'sequence': Qt.binding(function() { return ((root.enableSequencePlayer && _reconstruction && _reconstruction.viewpoints.count > 0) ? getSequence() : []) }),
|
||||||
'targetSize': Qt.binding(function() { return floatImageViewerLoader.targetSize }),
|
'targetSize': Qt.binding(function() { return floatImageViewerLoader.targetSize }),
|
||||||
'useSequence': Qt.binding(function() { return root.enableSequencePlayer && !useExternal && _reconstruction })
|
'useSequence': Qt.binding(function() { return root.enableSequencePlayer && !useExternal && _reconstruction }),
|
||||||
|
'fetchingSequence': Qt.binding(function() { return sequencePlayer.loading }),
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// Forcing the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14
|
// Forcing the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14
|
||||||
|
|
|
@ -157,7 +157,7 @@ Item {
|
||||||
id: enableSequencePlayerAction
|
id: enableSequencePlayerAction
|
||||||
text: "Enable Sequence Player"
|
text: "Enable Sequence Player"
|
||||||
checkable: true
|
checkable: true
|
||||||
checked: false
|
checked: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue