diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-17 16:59:00 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-17 16:59:00 +0100 |
commit | c91afcbcf6ce614df825e4e5d96eedeea53dec93 (patch) | |
tree | 95832c8c7ac941147351bad1f1e8e50883f5e725 | |
parent | e30c6ce366b759dfb39b781becb837282efa0d0f (diff) |
Added/changed a few visualization options.
-rw-r--r-- | main_view.qml | 44 |
1 files changed, 38 insertions, 6 deletions
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 |