2 * satk - SIM application toolkit
3 * Copyright © 2011, Intel Corporation.
5 * This program is licensed under the terms and conditions of the
6 * Apache License, version 2.0. The full text of the Apache License is at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Written by - Luc Yriarte <luc.yriarte@linux.intel.com>
16 \brief Web browser box, dismissable.
22 - \b browserView : Web browser view.
24 - url: "http://127.0.0.1/"
25 - \b okRect : "Ok" button.
34 import MeeGo.Components 0.1
40 width: stkTheme.viewWidth
41 height: stkTheme.viewHeight
44 StkTheming { id: stkTheme }
45 color: stkTheme.viewBackgroundColor
48 onAccepted: console.log("Accepted")
52 objectName: "browserView"
53 anchors.top: title.bottom
55 anchors.left: parent.left
56 anchors.leftMargin: 10
57 anchors.bottom: okRect.top
58 anchors.bottomMargin: 10
59 anchors.right: parent.right
60 anchors.rightMargin: 10
61 contentWidth: childrenRect.width
62 contentHeight: childrenRect.height
63 property alias url: browserContent.url
66 objectName: "browserContent"
67 preferredWidth: parent.width
68 preferredHeight: parent.height
69 url: "http://127.0.0.1/"
70 onWidthChanged: browserView.contentWidth = width
71 onHeightChanged: browserView.contentHeight = height
72 onLoadFinished: browserView.contentY = -1 // redraw browserView
79 text: "SIM Application Toolkit"
80 anchors.top: parent.top
82 anchors.left: icon.right
83 anchors.leftMargin: 10
84 anchors.right: parent.right
85 anchors.rightMargin: 10
86 wrapMode: Text.WordWrap
87 color: stkTheme.titleFontColor
88 font.pixelSize: stkTheme.titleFontPixelSize
96 anchors.top: parent.top
98 anchors.left: parent.left
99 anchors.leftMargin: 10
105 anchors.horizontalCenter: parent.horizontalCenter
106 anchors.bottom: parent.bottom
107 anchors.bottomMargin: 10