2016-01-21 10:11:16 -08:00
|
|
|
import QtQuick 2.4
|
2016-01-13 15:50:29 -08:00
|
|
|
import QtQuick.Controls 1.3
|
2016-01-21 10:11:16 -08:00
|
|
|
import QtQuick.Window 2.0
|
2016-01-20 18:18:43 -08:00
|
|
|
import "qml"
|
2016-01-13 15:50:29 -08:00
|
|
|
|
|
|
|
ApplicationWindow {
|
2016-01-14 15:30:14 -08:00
|
|
|
id: applicationWindow1
|
2016-01-13 15:50:29 -08:00
|
|
|
title: "Presentation App"
|
|
|
|
visible: true
|
2016-01-14 15:30:14 -08:00
|
|
|
objectName: "applicationWindow1"
|
2016-01-13 15:50:29 -08:00
|
|
|
minimumWidth: 500
|
|
|
|
minimumHeight: 500
|
2016-01-14 18:42:52 -08:00
|
|
|
width: 1000
|
|
|
|
height: 600
|
2016-01-21 10:11:16 -08:00
|
|
|
Screen.objectName: "Screen1"
|
2016-01-20 18:18:43 -08:00
|
|
|
AboutDialog { id: aboutDialog }
|
|
|
|
|
|
|
|
Action {
|
|
|
|
id: aboutAction
|
|
|
|
text: "About"
|
|
|
|
onTriggered: aboutDialog.open()
|
|
|
|
}
|
2016-01-19 21:12:11 -08:00
|
|
|
|
|
|
|
menuBar: MenuBar {
|
|
|
|
Menu {
|
|
|
|
title: "&File"
|
|
|
|
MenuItem {
|
|
|
|
}
|
|
|
|
MenuItem {
|
|
|
|
text: "Close"
|
|
|
|
shortcut: StandardKey.Quit
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Menu {
|
|
|
|
title: "&Help"
|
|
|
|
MenuItem {
|
2016-01-20 18:18:43 -08:00
|
|
|
action: aboutAction
|
2016-01-19 21:12:11 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-14 15:30:14 -08:00
|
|
|
SplitView {
|
|
|
|
id: mainSlider
|
|
|
|
objectName: "mainSlider"
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.rightMargin: 0
|
|
|
|
anchors.bottomMargin: 0
|
|
|
|
anchors.leftMargin: 0
|
|
|
|
anchors.topMargin: 0
|
|
|
|
orientation: Qt.Horizontal
|
|
|
|
onResizingChanged: col1.width = gridData.width / 2
|
2016-01-13 15:50:29 -08:00
|
|
|
|
2016-01-14 15:30:14 -08:00
|
|
|
Rectangle {
|
|
|
|
id: gridRect
|
|
|
|
objectName: "gridRect"
|
|
|
|
width: 300
|
|
|
|
color: "#00000000"
|
|
|
|
radius: 1
|
|
|
|
border.color: "#000000"
|
|
|
|
border.width: 4
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 0
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.bottomMargin: 0
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 0
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
id: gridData
|
|
|
|
objectName: "gridData"
|
|
|
|
anchors.rightMargin: 4
|
|
|
|
anchors.leftMargin: 4
|
|
|
|
anchors.bottomMargin: 4
|
|
|
|
anchors.topMargin: 4
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: col1
|
|
|
|
objectName: "col1"
|
|
|
|
width: gridData.width / 2
|
|
|
|
color: "#e41616"
|
|
|
|
transformOrigin: Item.TopLeft
|
|
|
|
border.width: 0
|
|
|
|
|
|
|
|
Column {
|
|
|
|
id: data1
|
|
|
|
objectName: "data1"
|
|
|
|
spacing: 1
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.left: parent.left
|
2016-01-14 22:25:53 -08:00
|
|
|
//onAdded: children.width = data1.width
|
2016-01-14 15:30:14 -08:00
|
|
|
}
|
|
|
|
}
|
2016-01-13 15:50:29 -08:00
|
|
|
|
2016-01-14 21:25:31 -08:00
|
|
|
Rectangle {
|
|
|
|
id: col2
|
|
|
|
objectName: "col2"
|
|
|
|
color: "#4f90e2"
|
|
|
|
border.width: 0
|
2016-01-14 15:30:14 -08:00
|
|
|
|
2016-01-14 21:25:31 -08:00
|
|
|
Column {
|
|
|
|
id: data2
|
|
|
|
objectName: "data2"
|
|
|
|
anchors.fill: parent
|
|
|
|
}
|
2016-01-14 15:30:14 -08:00
|
|
|
}
|
|
|
|
}
|
2016-01-13 15:50:29 -08:00
|
|
|
}
|
|
|
|
|
2016-01-14 21:25:31 -08:00
|
|
|
Rectangle {
|
|
|
|
id: mainView
|
|
|
|
objectName: "mainView"
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 0
|
|
|
|
anchors.leftMargin: 0
|
|
|
|
anchors.left: gridRect.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.top: parent.top
|
|
|
|
z: 1
|
|
|
|
clip: false
|
|
|
|
visible: true
|
|
|
|
}
|
2016-01-13 15:50:29 -08:00
|
|
|
}
|
2016-01-19 21:12:11 -08:00
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: textEdit
|
2016-01-20 18:18:43 -08:00
|
|
|
property int cell
|
2016-01-19 21:12:11 -08:00
|
|
|
x: 448
|
|
|
|
y: 151
|
|
|
|
objectName: "textEdit"
|
|
|
|
width: 200
|
|
|
|
height: 200
|
|
|
|
color: "#ffffff"
|
|
|
|
visible: false
|
|
|
|
Keys.onEscapePressed: {
|
|
|
|
x = -100
|
|
|
|
y = -100
|
|
|
|
visible = false
|
2016-01-20 18:18:43 -08:00
|
|
|
focus = true
|
2016-01-19 21:12:11 -08:00
|
|
|
enabled = false
|
|
|
|
opacity = 0
|
2016-01-20 18:18:43 -08:00
|
|
|
textEdit1.focus = false
|
2016-01-19 21:12:11 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
TextArea {
|
|
|
|
id: textEdit1
|
|
|
|
objectName: "textEdit1"
|
2016-01-20 18:18:43 -08:00
|
|
|
text: "Text Edit"
|
2016-01-19 21:12:11 -08:00
|
|
|
anchors.fill: parent
|
|
|
|
clip: true
|
|
|
|
textFormat: Text.AutoText
|
|
|
|
visible: true
|
|
|
|
font.pixelSize: 12
|
|
|
|
z: 99
|
|
|
|
}
|
|
|
|
}
|
2016-01-13 15:50:29 -08:00
|
|
|
}
|