diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-15 13:58:41 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-15 13:58:41 +0100 |
commit | f16cde45559827af426452c7545d4a42ea9bded5 (patch) | |
tree | ac3cb7a69e69db23083cde58c9c90355a8e06c0b | |
parent | 60b0244b2e13eb23e7f8b79616c6a0742377d780 (diff) |
QML: added components for handling selection modes in the future.
-rw-r--r-- | main_view.qml | 43 |
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 { |