mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 18:27:23 +02:00
Merge pull request #1099 from alicevision/dev/saveAsFolder
[ui] init saveAs folder
This commit is contained in:
commit
e83bbb9b12
2 changed files with 13 additions and 1 deletions
|
@ -345,6 +345,7 @@ Panel {
|
||||||
footerContent: RowLayout {
|
footerContent: RowLayout {
|
||||||
// Images count
|
// Images count
|
||||||
MaterialToolLabel {
|
MaterialToolLabel {
|
||||||
|
Layout.minimumWidth: childrenRect.width
|
||||||
ToolTip.text: grid.model.count + " Input Images"
|
ToolTip.text: grid.model.count + " Input Images"
|
||||||
iconText: MaterialIcons.image
|
iconText: MaterialIcons.image
|
||||||
label: grid.model.count.toString()
|
label: grid.model.count.toString()
|
||||||
|
@ -353,6 +354,7 @@ Panel {
|
||||||
}
|
}
|
||||||
// cameras count
|
// cameras count
|
||||||
MaterialToolLabel {
|
MaterialToolLabel {
|
||||||
|
Layout.minimumWidth: childrenRect.width
|
||||||
ToolTip.text: label + " Estimated Cameras"
|
ToolTip.text: label + " Estimated Cameras"
|
||||||
iconText: MaterialIcons.videocam
|
iconText: MaterialIcons.videocam
|
||||||
label: _reconstruction ? _reconstruction.nbCameras.toString() : "0"
|
label: _reconstruction ? _reconstruction.nbCameras.toString() : "0"
|
||||||
|
@ -364,6 +366,7 @@ Panel {
|
||||||
|
|
||||||
MaterialToolLabelButton {
|
MaterialToolLabelButton {
|
||||||
id: displayHDR
|
id: displayHDR
|
||||||
|
Layout.minimumWidth: childrenRect.width
|
||||||
property var activeNode: _reconstruction.activeNodes.get("LdrToHdrMerge").node
|
property var activeNode: _reconstruction.activeNodes.get("LdrToHdrMerge").node
|
||||||
ToolTip.text: "Visualize HDR images: " + (activeNode ? activeNode.label : "No Node")
|
ToolTip.text: "Visualize HDR images: " + (activeNode ? activeNode.label : "No Node")
|
||||||
iconText: MaterialIcons.filter
|
iconText: MaterialIcons.filter
|
||||||
|
@ -405,6 +408,8 @@ Panel {
|
||||||
|
|
||||||
MaterialToolButton {
|
MaterialToolButton {
|
||||||
id: imageProcessing
|
id: imageProcessing
|
||||||
|
Layout.minimumWidth: childrenRect.width
|
||||||
|
|
||||||
property var activeNode: _reconstruction.activeNodes.get("ImageProcessing").node
|
property var activeNode: _reconstruction.activeNodes.get("ImageProcessing").node
|
||||||
font.pointSize: 15
|
font.pointSize: 15
|
||||||
padding: 0
|
padding: 0
|
||||||
|
@ -449,6 +454,8 @@ Panel {
|
||||||
|
|
||||||
// Thumbnail size icon and slider
|
// Thumbnail size icon and slider
|
||||||
MaterialToolButton {
|
MaterialToolButton {
|
||||||
|
Layout.minimumWidth: childrenRect.width
|
||||||
|
|
||||||
text: MaterialIcons.photo_size_select_large
|
text: MaterialIcons.photo_size_select_large
|
||||||
ToolTip.text: "Thumbnails Scale"
|
ToolTip.text: "Thumbnails Scale"
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
|
@ -411,7 +411,12 @@ ApplicationWindow {
|
||||||
id: saveAsAction
|
id: saveAsAction
|
||||||
text: "Save As..."
|
text: "Save As..."
|
||||||
shortcut: "Ctrl+Shift+S"
|
shortcut: "Ctrl+Shift+S"
|
||||||
onTriggered: saveFileDialog.open()
|
onTriggered: {
|
||||||
|
if(_reconstruction.graph && _reconstruction.graph.filepath) {
|
||||||
|
saveFileDialog.folder = Filepath.stringToUrl(Filepath.dirname(_reconstruction.graph.filepath))
|
||||||
|
}
|
||||||
|
saveFileDialog.open()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
MenuSeparator { }
|
MenuSeparator { }
|
||||||
Action {
|
Action {
|
||||||
|
|
Loading…
Add table
Reference in a new issue