mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 16:58:24 +02:00
[PanoramaViewer] add panorama toolbar
This commit is contained in:
parent
81a172b69d
commit
49a4161c22
4 changed files with 174 additions and 10 deletions
|
@ -16,6 +16,7 @@ FocusScope {
|
|||
property Component floatViewerComp: Qt.createComponent("FloatImage.qml")
|
||||
property alias useFloatImageViewer: displayHDR.checked
|
||||
property alias usePanoramaImageViewer: displayPanoramaViewer.checked
|
||||
property bool displayGridPanorama: panoramaImageToolbar.displayGrid
|
||||
|
||||
Loader {
|
||||
id: aliceVisionPluginLoader
|
||||
|
@ -178,6 +179,13 @@ FocusScope {
|
|||
}
|
||||
}
|
||||
|
||||
PanoramaImageToolbar {
|
||||
id: panoramaImageToolbar
|
||||
anchors.margins: 0
|
||||
visible: displayPanoramaToolBarAction.checked && displayPanoramaToolBarAction.enabled
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
// Image
|
||||
Item {
|
||||
id: imgLayout
|
||||
|
@ -223,6 +231,10 @@ FocusScope {
|
|||
setSource("", {})
|
||||
}
|
||||
}
|
||||
|
||||
// displayGridPanorama. :{
|
||||
// console.warn("Grid out ")
|
||||
// }
|
||||
}
|
||||
|
||||
// qtAliceVision Panorama Viewer
|
||||
|
@ -239,9 +251,9 @@ FocusScope {
|
|||
// floatViewerComp.createObject(floatImageViewerLoader, {
|
||||
setSource("PanoramaViewer.qml", {
|
||||
'source': Qt.binding(function() { return getImageFile(imageType.type); }),
|
||||
'gamma': Qt.binding(function() { return hdrImageToolbar.gammaValue; }),
|
||||
'gain': Qt.binding(function() { return hdrImageToolbar.gainValue; }),
|
||||
'channelModeString': Qt.binding(function() { return hdrImageToolbar.channelModeValue; }),
|
||||
'gamma': Qt.binding(function() { return panoramaImageToolbar.gammaValue; }),
|
||||
'gain': Qt.binding(function() { return panoramaImageToolbar.gainValue; }),
|
||||
'channelModeString': Qt.binding(function() { return panoramaImageToolbar.channelModeValue; }),
|
||||
})
|
||||
} else {
|
||||
// Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14
|
||||
|
@ -645,7 +657,8 @@ FocusScope {
|
|||
Layout.minimumWidth: 0
|
||||
checkable: true
|
||||
}
|
||||
MaterialToolButton {
|
||||
MaterialToolButton
|
||||
{
|
||||
id: displayHDR
|
||||
ToolTip.text: "High-Dynamic-Range Image Viewer"
|
||||
text: MaterialIcons.hdr_on
|
||||
|
@ -662,8 +675,6 @@ FocusScope {
|
|||
id: displayPanoramaViewer
|
||||
ToolTip.text: "Panorama Viewer"
|
||||
text: MaterialIcons.panorama_horizontal
|
||||
// larger font but smaller padding,
|
||||
// so it is visually similar.
|
||||
font.pointSize: 16
|
||||
padding: 0
|
||||
Layout.minimumWidth: 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue