[ui] ImageGallery: add SensorDBDialog + 'rebuild intrinsics' feature

* add SensorDBDialog explaining how to add a new entry in the sensor DB and ease the access to the sensor database
* enable intrinsics rebuild at user level from this dialog
* MessageDialog: react to clicks on hyperlinks
This commit is contained in:
Yann Lanthony 2019-01-23 18:52:59 +01:00
parent 6c9ed42736
commit 49e809df2b
3 changed files with 94 additions and 0 deletions

View file

@ -40,6 +40,13 @@ Panel {
id: graphEditorMenu
y: parent.height
x: -width + parent.width
MenuItem {
text: "Edit Sensor Database..."
onTriggered: {
sensorDBDialog.open()
}
}
Menu {
title: "Advanced"
Action {
@ -51,6 +58,14 @@ Panel {
}
}
}
SensorDBDialog {
id: sensorDBDialog
sensorDatabase: Filepath.stringToUrl(cameraInit.attribute("sensorDatabase").value)
readOnly: _reconstruction.computing
onUpdateIntrinsicsRequest: _reconstruction.rebuildIntrinsics(cameraInit)
}
ColumnLayout {
anchors.fill: parent
spacing: 4