From 0f95188962d253b426d7fef1e1d5a773f459b69a Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Tue, 5 Oct 2021 17:45:15 +0200 Subject: [PATCH] [ui] widgets visibility options --- meshroom/ui/qml/WorkspaceView.qml | 7 +++++++ meshroom/ui/qml/main.qml | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/meshroom/ui/qml/WorkspaceView.qml b/meshroom/ui/qml/WorkspaceView.qml index 5ce08bae..9172fb6b 100644 --- a/meshroom/ui/qml/WorkspaceView.qml +++ b/meshroom/ui/qml/WorkspaceView.qml @@ -57,7 +57,9 @@ Item { Controls1.SplitView { orientation: Qt.Vertical + Layout.fillWidth: true Layout.fillHeight: true + implicitWidth: Math.round(parent.width * 0.2) Layout.minimumWidth: imageGallery.defaultCellSize ImageGallery { @@ -80,6 +82,8 @@ Item { } Panel { title: "Image Viewer" + visible: settings_UILayout.showImageViewer + implicitWidth: Math.round(parent.width * 0.35) Layout.fillHeight: true Layout.fillWidth: true Layout.minimumWidth: 50 @@ -161,9 +165,12 @@ Item { Panel { title: "3D Viewer" + visible: settings_UILayout.showViewer3D implicitWidth: Math.round(parent.width * 0.45) Layout.minimumWidth: 20 Layout.minimumHeight: 80 + Layout.fillHeight: true + Layout.fillWidth: true Controls1.SplitView { anchors.fill: parent diff --git a/meshroom/ui/qml/main.qml b/meshroom/ui/qml/main.qml index 1a7a1053..1667e78d 100755 --- a/meshroom/ui/qml/main.qml +++ b/meshroom/ui/qml/main.qml @@ -58,6 +58,8 @@ ApplicationWindow { category: 'UILayout' property alias showLiveReconstruction: liveSfMVisibilityCB.checked property alias showGraphEditor: graphEditorVisibilityCB.checked + property alias showImageViewer: imageViewerVisibilityCB.checked + property alias showViewer3D: viewer3DVisibilityCB.checked } Component.onDestruction: { @@ -581,6 +583,18 @@ ApplicationWindow { checkable: true checked: false } + MenuItem { + id: imageViewerVisibilityCB + text: "Image Viewer" + checkable: true + checked: true + } + MenuItem { + id: viewer3DVisibilityCB + text: "3D Viewer" + checkable: true + checked: true + } MenuSeparator {} Action { text: "Fullscreen"