aboutsummaryrefslogtreecommitdiff
path: root/main_view.qml
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-02-08 14:26:48 -0200
committerSamuel Fadel <samuelfadel@gmail.com>2016-02-08 14:26:48 -0200
commit6ce50a77d7659e5e7fbcaceead0e17d37ce8856d (patch)
tree2d252f6895a8e562eb5ae4e4db65a8ca0bd820e3 /main_view.qml
parent0ca3153549230cfd60675aad3b4a900580ec01b4 (diff)
User can now select RPs & CPs, using the R & C keys.
Diffstat (limited to 'main_view.qml')
-rw-r--r--main_view.qml30
1 files changed, 30 insertions, 0 deletions
diff --git a/main_view.qml b/main_view.qml
index 241f440..bcf64a5 100644
--- a/main_view.qml
+++ b/main_view.qml
@@ -26,6 +26,12 @@ ApplicationWindow {
MenuItem { action: screenshotAction }
MenuItem { action: quitAction }
}
+
+ Menu {
+ title: "Select"
+ MenuItem { action: selectRPsAction }
+ MenuItem { action: selectCPsAction }
+ }
}
statusBar: StatusBar {
@@ -62,6 +68,7 @@ ApplicationWindow {
objectName: "splat"
x: parent.x
y: parent.y
+ z: 0
anchors.fill: parent
}
@@ -70,6 +77,7 @@ ApplicationWindow {
objectName: "rpPlot"
x: parent.x
y: parent.y
+ z: 1
anchors.fill: parent
}
@@ -78,6 +86,7 @@ ApplicationWindow {
objectName: "cpPlot"
x: parent.x
y: parent.y
+ z: 2
anchors.fill: parent
}
@@ -441,6 +450,26 @@ ApplicationWindow {
onTriggered: Qt.quit()
}
+ Action {
+ id: selectRPsAction
+ text: "&Regular points"
+ shortcut: "R"
+ onTriggered: {
+ Main.setSelectRPs();
+ statusLabel.text = "Selecting regular points";
+ }
+ }
+
+ Action {
+ id: selectCPsAction
+ text: "&Control points"
+ shortcut: "C"
+ onTriggered: {
+ Main.setSelectCPs();
+ statusLabel.text = "Selecting control points";
+ }
+ }
+
ListModel {
id: metricsModel
@@ -453,6 +482,7 @@ ApplicationWindow {
id: colormapModel
Component.onCompleted: {
+ // Data has to be fed this way; otherwise "value" is not correct
this.append({
"value": Main.ColorScaleRainbow,
"text": "Rainbow"