aboutsummaryrefslogtreecommitdiff
path: root/main_view.qml
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-05-19 18:54:20 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-05-21 18:09:16 -0300
commit02e2ebf10c30ca278dc8a85649c6a7db87858cde (patch)
treeb46d14818c3e4fba0de968f7fde55eddc7d743a1 /main_view.qml
parenta96f9f1a2688c215c478cfbee5748b4bb2043a43 (diff)
Initial selection implementation.
Diffstat (limited to 'main_view.qml')
-rw-r--r--main_view.qml86
1 files changed, 81 insertions, 5 deletions
diff --git a/main_view.qml b/main_view.qml
index a9ff37e..8389461 100644
--- a/main_view.qml
+++ b/main_view.qml
@@ -1,13 +1,89 @@
import QtQuick 2.0
+import QtQuick.Controls 1.3
import PM 1.0
-Item {
- width: 480
+ApplicationWindow {
+ visible: true
+ width: 960
height: 480
- Scatterplot {
- id: plot
- objectName: "plot"
+ menuBar: MenuBar {
+ Menu {
+ title: "Application"
+ MenuItem { action: quitAction }
+ }
+
+ Menu {
+ title: "File"
+ MenuItem { action: openAction }
+ MenuItem { action: savePlotAction }
+ MenuItem { action: saveDataAction }
+ }
+ }
+
+ Item {
anchors.fill: parent
+
+ Rectangle {
+ anchors.fill: subsamplePlot
+ border.width: 1
+ border.color: "#cccccc"
+ z: 0
+ }
+
+ Rectangle {
+ anchors.fill: plot
+ border.width: 1
+ border.color: "#cccccc"
+ z: 0
+ }
+
+ Scatterplot {
+ id: subsamplePlot
+ objectName: "subsamplePlot"
+ anchors.top: parent.top
+ anchors.bottom: parent.bottom
+ anchors.left: parent.left
+ width: 0.5 * parent.width
+ z: 1
+ }
+
+ Scatterplot {
+ id: plot
+ objectName: "plot"
+ anchors.top: parent.top
+ anchors.bottom: parent.bottom
+ anchors.right: parent.right
+ width: 0.5 * parent.width
+ z: 1
+ }
+ }
+
+ Action {
+ id: quitAction
+ text: "&Quit"
+ shortcut: "Ctrl+Q"
+ onTriggered: Qt.quit()
+ }
+
+ Action {
+ id: openAction
+ text: "&Open..."
+ shortcut: "Ctrl+O"
+ onTriggered: console.log("Open file")
+ }
+
+ Action {
+ id: savePlotAction
+ text: "Save &plot"
+ shortcut: "Ctrl+S"
+ onTriggered: console.log("Save plot")
+ }
+
+ Action {
+ id: saveDataAction
+ text: "Save &data"
+ shortcut: "Ctrl+D"
+ onTriggered: console.log("Save data")
}
}