summaryrefslogtreecommitdiff
path: root/testapp
diff options
context:
space:
mode:
authorMarcel Schuette <marcel.schuette@pelagicore.com>2013-08-26 17:34:28 +0200
committerMarcel Schuette <marcel.schuette@pelagicore.com>2013-08-26 17:34:28 +0200
commit2c8da3fc8208eb75b76418668c650bde9c33c2a0 (patch)
tree8fdeb3f3032ea27879e3db8fca75282338e711e9 /testapp
parent9a424d077df90b50c0e29b3143f3d4fccd737f34 (diff)
downloadbrowser-poc-2c8da3fc8208eb75b76418668c650bde9c33c2a0.tar.gz
tested and fixed create and destroy page window
Diffstat (limited to 'testapp')
-rw-r--r--testapp/qml/testapp/Browser.qml45
1 files changed, 40 insertions, 5 deletions
diff --git a/testapp/qml/testapp/Browser.qml b/testapp/qml/testapp/Browser.qml
index 41c353f..d29976b 100644
--- a/testapp/qml/testapp/Browser.qml
+++ b/testapp/qml/testapp/Browser.qml
@@ -7,7 +7,7 @@ Item {
GroupBox {
id: groupcreate
- title: "createPageWindow(int a_eDeviceId, const conn::brw::Rect & a_oGeometry, qlonglong &a_hPageWindowHandle)"
+ title: "createPageWindow(int a_eDeviceId, conn::brw::Rect & a_oGeometry, qlonglong &a_hPageWindowHandle)"
width: children.width + 250
anchors.top: parent.top
anchors.topMargin: 15
@@ -21,6 +21,13 @@ Item {
anchors.left: parent.left
anchors.leftMargin: 10
font.pixelSize: 20
+ inputMask: "999"
+ text: "1"
+ }
+ Text {
+ text: "Device id"
+ anchors.top: deviceidcreate.bottom
+ anchors.left: deviceidcreate.left
}
SpinBox {
id: spinbox_x
@@ -29,6 +36,12 @@ Item {
anchors.top: deviceidcreate.top
anchors.left: deviceidcreate.right
anchors.leftMargin: 30
+ maximumValue: 9999
+ }
+ Text {
+ text: "x"
+ anchors.top: spinbox_x.bottom
+ anchors.left: spinbox_x.left
}
SpinBox {
id: spinbox_y
@@ -37,6 +50,12 @@ Item {
anchors.top: spinbox_x.top
anchors.left: spinbox_x.right
anchors.leftMargin: 10
+ maximumValue: 9999
+ }
+ Text {
+ text: "y"
+ anchors.top: spinbox_y.bottom
+ anchors.left: spinbox_y.left
}
SpinBox {
id: spinbox_width
@@ -45,6 +64,13 @@ Item {
anchors.top: spinbox_y.top
anchors.left: spinbox_y.right
anchors.leftMargin: 10
+ value: 800
+ maximumValue: 9999
+ }
+ Text {
+ text: "width"
+ anchors.top: spinbox_width.bottom
+ anchors.left: spinbox_width.left
}
SpinBox {
id: spinbox_height
@@ -53,6 +79,13 @@ Item {
anchors.top: spinbox_width.top
anchors.left: spinbox_width.right
anchors.leftMargin: 10
+ value: 520
+ maximumValue: 9999
+ }
+ Text {
+ text: "height"
+ anchors.top: spinbox_height.bottom
+ anchors.left: spinbox_height.left
}
Button {
id: buttoncreate
@@ -62,24 +95,26 @@ Item {
anchors.left: spinbox_height.right
anchors.leftMargin: 20
text: "Create Page Window"
+ onClicked: browserinterface.createPageWindow(deviceidcreate.text, spinbox_x.value, spinbox_y.value, spinbox_width.value, spinbox_height.value)
}
}
GroupBox {
id: groupdestroy
title: "destroyPageWindow(qlonglong a_hPageWindowHandle)"
- width: children.width + 250
+ width: 150 + 130 + 60
anchors.top: groupcreate.bottom
anchors.topMargin: 20
anchors.left: groupcreate.left
TextField {
id: windowhandledestroy
- width: 50
+ width: 150
height: 50
anchors.left: parent.left
anchors.leftMargin: 10
font.pixelSize: 20
+ inputMask: "999999999999"
}
Button {
width: 130
@@ -88,14 +123,14 @@ Item {
anchors.left: windowhandledestroy.right
anchors.leftMargin: 30
text: "Destroy Page Window"
+ onClicked: browserinterface.destroyPageWindow(windowhandledestroy.text)
}
}
GroupBox {
id: groupget
title: "getPageWindows(conn::brw::ObjectHandleList &a_oPageWindowIds)"
- width: children.width + 250
- height: 50
+ height: 80
anchors.top: groupdestroy.bottom
anchors.topMargin: 20
anchors.left: groupdestroy.left