Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
changes for 10.3.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Sosnowski committed Sep 29, 2014
1 parent 6206f07 commit 834d08f
Show file tree
Hide file tree
Showing 204 changed files with 10,327 additions and 68 deletions.
3 changes: 1 addition & 2 deletions HyperLocal-App-Template/bar-descriptor.xml
Expand Up @@ -80,7 +80,6 @@
<initialWindow>
<autoOrients>true</autoOrients>
<systemChrome>none</systemChrome>
<transparent>false</transparent>
</initialWindow>

<!-- The icon for the application, which should be 114x114. -->
Expand All @@ -103,7 +102,7 @@
<permission system="true">run_native</permission>
<permission>bbm_connect</permission>
<permission>access_phone</permission>
<permission>read_geolocation</permission>
<permission>access_location_services</permission>
<env var="LD_LIBRARY_PATH" value="app/native/lib:/usr/lib/qt4/lib"/>

</qnx>
102 changes: 102 additions & 0 deletions SensorDemo/assets/mindw120h120du/rotation3D.qml
@@ -0,0 +1,102 @@
/* Copyright (c) 2012, 2013 BlackBerry Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import bb.cascades 1.3
import bb.multimedia 1.0
import QtMobility.sensors 1.2

Container {
//! [0]
attachedObjects: [
RotationSensor {
id: rotation

// Create variables to hold rotation reading values
property real x: 0
property real y: 0
property real z: 0

// Turn on the sensor
active: true

// Keep the sensor active when the app isn't visible or the screen is off (requires app permission in bar-descriptor)
alwaysOn: true

// If the device isn't moving (x&y&z==0), don't send updates, saves power
skipDuplicates: true

onReadingChanged: { // Called when a new rotation reading is available
x = reading.x
y = reading.y
z = reading.z
}
}
]
//! [0]

layout: DockLayout {}

ImageView {
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Center

imageSource: "images/device.png"
}

Container {
layout: AbsoluteLayout {}

//! [1]
Label {
layoutProperties: AbsoluteLayoutProperties {
positionX: ui.du(70)
positionY: ui.du(65)
}

text: qsTr("%1\u00B0").arg(rotation.x.toPrecision(4))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}
//! [1]

Label {
layoutProperties: AbsoluteLayoutProperties {
positionX: ui.du(57)
positionY: ui.du(35)
}

text: qsTr("%1\u00B0").arg(rotation.y.toPrecision(4))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}

Label {
layoutProperties: AbsoluteLayoutProperties {
positionX: ui.du(72)
positionY: ui.du(47)
}

text: qsTr("%1\u00B0").arg(rotation.z.toPrecision(4))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}
}
}
102 changes: 102 additions & 0 deletions SensorDemo/assets/mindw90h90du/rotation3D.qml
@@ -0,0 +1,102 @@
/* Copyright (c) 2012, 2013 BlackBerry Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import bb.cascades 1.3
import bb.multimedia 1.0
import QtMobility.sensors 1.2

Container {
//! [0]
attachedObjects: [
RotationSensor {
id: rotation

// Create variables to hold rotation reading values
property real x: 0
property real y: 0
property real z: 0

// Turn on the sensor
active: true

// Keep the sensor active when the app isn't visible or the screen is off (requires app permission in bar-descriptor)
alwaysOn: true

// If the device isn't moving (x&y&z==0), don't send updates, saves power
skipDuplicates: true

onReadingChanged: { // Called when a new rotation reading is available
x = reading.x
y = reading.y
z = reading.z
}
}
]
//! [0]

layout: DockLayout {}

ImageView {
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Center

imageSource: "images/device.png"
}

Container {
layout: AbsoluteLayout {}

//! [1]
Label {
layoutProperties: AbsoluteLayoutProperties {
positionX: ui.du(60)
positionY: ui.du(53)
}

text: qsTr("%1\u00B0").arg(rotation.x.toPrecision(4))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}
//! [1]

Label {
layoutProperties: AbsoluteLayoutProperties {
positionX: ui.du(62)
positionY: ui.du(30)
}

text: qsTr("%1\u00B0").arg(rotation.y.toPrecision(4))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}

Label {
layoutProperties: AbsoluteLayoutProperties {
positionX: ui.du(45)
positionY: ui.du(17)
}

text: qsTr("%1\u00B0").arg(rotation.z.toPrecision(4))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}
}
}
6 changes: 3 additions & 3 deletions SensorDemo/assets/rotation3D.qml
Expand Up @@ -61,8 +61,8 @@ Container {
//! [1]
Label {
layoutProperties: AbsoluteLayoutProperties {
positionX: ui.du(53.3)
positionY: ui.du(76.1)
positionX: ui.du(51)
positionY: ui.du(70)
}

text: qsTr("%1\u00B0").arg(rotation.x.toPrecision(4))
Expand All @@ -89,7 +89,7 @@ Container {
Label {
layoutProperties: AbsoluteLayoutProperties {
positionX: ui.du(37.2)
positionY: ui.du(43.3)
positionY: ui.du(40)
}

text: qsTr("%1\u00B0").arg(rotation.z.toPrecision(4))
Expand Down
6 changes: 6 additions & 0 deletions SensorDemo/translations/SensorDemo.ts
Expand Up @@ -198,6 +198,12 @@
<context>
<name>rotation3D</name>
<message>
<location filename="../assets/mindw120h120du/rotation3D.qml" line="68"/>
<location filename="../assets/mindw120h120du/rotation3D.qml" line="82"/>
<location filename="../assets/mindw120h120du/rotation3D.qml" line="95"/>
<location filename="../assets/mindw90h90du/rotation3D.qml" line="68"/>
<location filename="../assets/mindw90h90du/rotation3D.qml" line="82"/>
<location filename="../assets/mindw90h90du/rotation3D.qml" line="95"/>
<location filename="../assets/rotation3D.qml" line="68"/>
<location filename="../assets/rotation3D.qml" line="82"/>
<location filename="../assets/rotation3D.qml" line="95"/>
Expand Down
51 changes: 51 additions & 0 deletions accelgame/assets/mindw120h120du/Maze.qml
@@ -0,0 +1,51 @@
/*
* Copyright (c) 2011, 2012, 2013 BlackBerry Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import bb.cascades 1.3

Container {
// The size is defined by the background image
preferredWidth: ui.du(46)
preferredHeight: ui.du(46)

layout: AbsoluteLayout {}

// The background image of the maze
ImageView {
layoutProperties: AbsoluteLayoutProperties {
positionX: 0
positionY: 0
}
imageSource: "asset:///images/maze_background.png"
}

//! [0]
// The board where the player object can be moved
Container {
objectName: "board"

layoutProperties: AbsoluteLayoutProperties {
positionX: 50
positionY: 50
}

layout: AbsoluteLayout {}

preferredWidth: ui.du(50)
preferredHeight: ui.du(50)
}
//! [0]
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 834d08f

Please sign in to comment.