diff options
Diffstat (limited to 'main_view.qml')
-rw-r--r-- | main_view.qml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/main_view.qml b/main_view.qml index 5afe270..19b4efc 100644 --- a/main_view.qml +++ b/main_view.qml @@ -17,6 +17,26 @@ ApplicationWindow { MenuItem { action: saveDataAction } MenuItem { action: quitAction } } + + Menu { + title: "View" + MenuItem { + action: noneColorAction + exclusiveGroup: coloringGroup + } + MenuItem { + action: npColorAction + exclusiveGroup: coloringGroup + } + MenuItem { + action: stressColorAction + exclusiveGroup: coloringGroup + } + MenuItem { + action: silhouetteColorAction + exclusiveGroup: coloringGroup + } + } } Item { @@ -92,4 +112,41 @@ ApplicationWindow { shortcut: "Ctrl+D" onTriggered: console.log("Save data") } + + ExclusiveGroup { + id: coloringGroup + + Action { + id: noneColorAction + text: "None" + shortcut: "Shift+O" + checked: true + checkable: true + onTriggered: console.log("None") + } + + Action { + id: npColorAction + text: "Neighborhood Preservation" + shortcut: "Shift+N" + checkable: true + onTriggered: console.log("NP") + } + + Action { + id: stressColorAction + text: "Stress" + shortcut: "Shift+S" + checkable: true + onTriggered: console.log("Stress") + } + + Action { + id: silhouetteColorAction + text: "Silhouette" + shortcut: "Shift+T" + checkable: true + onTriggered: console.log("Silhouette") + } + } } |