From c91afcbcf6ce614df825e4e5d96eedeea53dec93 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Sun, 17 Jan 2016 16:59:00 +0100 Subject: Added/changed a few visualization options. --- main_view.qml | 44 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 6 deletions(-) (limited to 'main_view.qml') diff --git a/main_view.qml b/main_view.qml index 544f7dc..ef4b4cd 100644 --- a/main_view.qml +++ b/main_view.qml @@ -97,8 +97,7 @@ ApplicationWindow { Rectangle { width: 512 height: 512 - border.width: 1 - border.color: "#cccccc" + color: "#ffffff" Item { id: mainView @@ -134,15 +133,31 @@ ApplicationWindow { y: parent.y + 5 width: 128 height: 10 + + Rectangle { // Adds a border around the colormap + x: parent.x - 1 + y: parent.y - 1 + width: parent.width + 2 + height: parent.height + 2 + border.width: 1 + border.color: "#000000" + color: "transparent" + } } } + + Rectangle { + anchors.fill: parent + border.width: 1 + border.color: "#cccccc" + color: "transparent" + } } Rectangle { Layout.minimumHeight: 80 width: mainView.width - border.width: 1 - border.color: "#cccccc" + color: "#ffffff" Item { id: bottomView @@ -159,11 +174,19 @@ ApplicationWindow { // anchors.fill: parent //} } + + Rectangle { + anchors.fill: parent + border.width: 1 + border.color: "#cccccc" + color: "transparent" + } } } // Options panel RowLayout { + Layout.alignment: Qt.AlignTop | Qt.AlignHCenter anchors.margins: parent.anchors.margins // Left column @@ -191,7 +214,7 @@ ApplicationWindow { Label { text: "Control points:" } SpinBox { id: cpGlyphSizeSpinBox - maximumValue: 50 + maximumValue: 100 minimumValue: 8 value: cpPlot.glyphSize() decimals: 1 @@ -202,7 +225,7 @@ ApplicationWindow { Label { text: "Regular points:" } SpinBox { id: rpGlyphSizeSpinBox - maximumValue: 50 + maximumValue: 100 minimumValue: 8 value: plot.glyphSize() decimals: 1 @@ -220,6 +243,15 @@ ApplicationWindow { GridLayout { columns: 2 + Label { text: "Display:" } + CheckBox { + checked: true + onClicked: { + splatOpacitySpinBox.enabled = this.checked + splat.visible = this.checked + } + } + Label { text: "Alpha:" } SpinBox { id: alphaSpinBox -- cgit v1.2.3