diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-09-01 20:45:02 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-09-01 20:45:02 -0300 |
commit | a1956a4ff879eb2d34c7a0ca448f48ee6e64ce99 (patch) | |
tree | b958291afa29268517633a8490920ae38dfcf2d8 /main_view.qml | |
parent | f405ac30db93ed9f2adb739c3c09b2ce9369fee6 (diff) |
Improvements related to visual representation of distortions.
- New continuous color scale class;
- Improvements in signal handler for calculating distortions;
- Implementation of the NP(k) measure.
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") + } + } } |