aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main_view.qml43
1 files changed, 40 insertions, 3 deletions
diff --git a/main_view.qml b/main_view.qml
index 3ea6fc7..a0290e1 100644
--- a/main_view.qml
+++ b/main_view.qml
@@ -47,6 +47,18 @@ ApplicationWindow {
}
Menu {
+ title: "Mode"
+ MenuItem {
+ action: cpModeAction
+ exclusiveGroup: modeGroup
+ }
+ MenuItem {
+ action: rpModeAction
+ exclusiveGroup: modeGroup
+ }
+ }
+
+ Menu {
title: "View"
MenuItem {
action: labelColorAction
@@ -67,6 +79,16 @@ ApplicationWindow {
}
}
+ statusBar: StatusBar {
+ RowLayout {
+ anchors.fill: parent
+ Label {
+ id: statusLabel
+ text: "Selecting control points"
+ }
+ }
+ }
+
ColumnLayout {
spacing: 10
anchors.fill: parent
@@ -147,7 +169,6 @@ ApplicationWindow {
Main.setTechnique(InteractionHandler.TECHNIQUE_LAMP)
}
}
-
Action {
id: lspTechniqueAction
text: "LSP"
@@ -157,7 +178,6 @@ ApplicationWindow {
Main.setTechnique(InteractionHandler.TECHNIQUE_LSP)
}
}
-
Action {
id: plmpTechniqueAction
text: "PLMP"
@@ -167,7 +187,6 @@ ApplicationWindow {
Main.setTechnique(InteractionHandler.TECHNIQUE_PLMP)
}
}
-
Action {
id: pekalskaTechniqueAction
text: "Pekalska"
@@ -180,6 +199,24 @@ ApplicationWindow {
}
ExclusiveGroup {
+ id: modeGroup
+
+ Action {
+ id: cpModeAction
+ text: "Control points"
+ checked: true
+ checkable: true
+ onTriggered: statusLabel.text = "Selecting control points"
+ }
+ Action {
+ id: rpModeAction
+ text: "Regular points"
+ checkable: true
+ onTriggered: statusLabel.text = "Selecting regular points"
+ }
+ }
+
+ ExclusiveGroup {
id: coloringGroup
Action {