Skip to content

Commit

Permalink
Merge pull request #35 from CodeHoarder/master
Browse files Browse the repository at this point in the history
Beta4 BB samples
  • Loading branch information
pelegri committed Nov 29, 2012
2 parents ab26775 + e1b6fd8 commit b4e15e4
Show file tree
Hide file tree
Showing 1,043 changed files with 40,571 additions and 1,348 deletions.
Binary file removed BatterySample/assets/images/battery_overlay.png
Binary file not shown.
Binary file removed BatterySample/assets/images/blue_background.png
Binary file not shown.
Binary file removed BatterySample/assets/images/error.png
Binary file not shown.
Binary file removed BatterySample/assets/images/not_charging.png
Binary file not shown.
Binary file removed BatterySample/assets/images/yellow_background.png
Binary file not shown.
Binary file not shown.
221 changes: 0 additions & 221 deletions BatterySample/assets/main.qml

This file was deleted.

Empty file removed BatterySample/x86/.gitignore
Empty file.
Empty file removed PaymentSample/arm/.gitignore
Empty file.
Empty file removed PaymentSample/x86/.gitignore
Empty file.
Empty file removed PimAccounts/arm/.gitignore
Empty file.
Empty file removed PimAccounts/x86/.gitignore
Empty file.
Empty file removed PimAddressBook/arm/.gitignore
Empty file.
Empty file removed PimAddressBook/x86/.gitignore
Empty file.
Empty file removed PimCalendar/arm/.gitignore
Empty file.
Empty file removed PimCalendar/x86/.gitignore
Empty file.
Empty file removed PimMessages/arm/.gitignore
Empty file.
Empty file removed PimMessages/x86/.gitignore
Empty file.
4 changes: 2 additions & 2 deletions SensorDemo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ clean:


Makefile: FORCE
$(QMAKE) -spec unsupported/blackberry-armv7le-g++ -o arm/Makefile $(QMAKE_TARGET).pro CONFIG+=device
$(QMAKE) -spec unsupported/blackberry-x86-g++ -o x86/Makefile $(QMAKE_TARGET).pro CONFIG+=simulator
$(QMAKE) -spec blackberry-armv7le-qcc -o arm/Makefile $(QMAKE_TARGET).pro CONFIG+=device
$(QMAKE) -spec blackberry-x86-qcc -o x86/Makefile $(QMAKE_TARGET).pro CONFIG+=simulator
$(MAKE) -C ./translations -f Makefile update release

FORCE:
Expand Down
2 changes: 2 additions & 0 deletions SensorDemo/SensorDemo.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ lupdate_inclusion {
device {
CONFIG(release, debug|release) {
DESTDIR = o.le-v7
TEMPLATE = lib
QMAKE_CXXFLAGS_RELEASE += -fvisibility=hidden -mthumb
}
CONFIG(debug, debug|release) {
DESTDIR = o.le-v7-g
Expand Down
Binary file modified SensorDemo/assets/images/alarm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SensorDemo/assets/images/compass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SensorDemo/assets/images/crash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SensorDemo/assets/images/magnet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SensorDemo/assets/images/nightlamp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SensorDemo/assets/images/rotation3d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions SensorDemo/assets/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ TabbedPane {
//! [1]
Tab {
id: alarmTab
title: qsTr("Motion Alarm")
title: qsTr("Motion Sensor")
imageSource: "images/alarm.png"

Page {
Expand Down Expand Up @@ -71,8 +71,8 @@ TabbedPane {

Tab {
id: flashlightTab
title: qsTr("Flashlight")
imageSource: "images/flashlight.png"
title: qsTr("Night Lamp")
imageSource: "images/nightlamp.png"

Page {
ControlDelegate {
Expand All @@ -84,7 +84,7 @@ TabbedPane {

Tab {
id: collisionDetectorTab
title: qsTr("Collision Detector")
title: qsTr("Collision Detection")
imageSource: "images/crash.png"

Page {
Expand Down
10 changes: 4 additions & 6 deletions SensorDemo/bar-descriptor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,8 @@

<!-- The category where the application appears. Either core.games or core.media. -->
<category>core.games</category>
<splashScreens>
<image>rotation3d.png</image>
</splashScreens>
<icon>
<image>rotation3d.png</image>
<image>assets/images/rotation3d.png</image>
</icon>
<configuration id="com.qnx.qcc.toolChain.1914788226" name="Default">
<platformArchitecture>armle-v7</platformArchitecture>
Expand All @@ -80,10 +77,12 @@
<configuration id="com.qnx.qcc.toolChain.476274684" name="Device-Debug">
<platformArchitecture>armle-v7</platformArchitecture>
<asset path="arm/o.le-v7-g/SensorDemo" entry="true" type="Qnx/Elf">SensorDemo</asset>
<entryPointType>Qnx/Elf</entryPointType>
</configuration>
<configuration id="com.qnx.qcc.toolChain.1999582179" name="Device-Release">
<platformArchitecture>armle-v7</platformArchitecture>
<asset path="arm/o.le-v7/SensorDemo" entry="true" type="Qnx/Elf">SensorDemo</asset>
<asset path="arm/o.le-v7/libSensorDemo.so.1.0.0" entry="true" type="Qnx/Elf">SensorDemo.so</asset>
<entryPointType>Qnx/Cascades</entryPointType>
</configuration>
<configuration id="com.qnx.qcc.toolChain.1067285528" name="Simulator-Debug">
<platformArchitecture>x86</platformArchitecture>
Expand All @@ -98,7 +97,6 @@
<asset path="translations" dest="qm">
<include name="*.qm"/>
</asset>
<asset path="assets/images/rotation3d.png">rotation3d.png</asset>

<!-- Request permission to execute native code. Required for native applications. -->
<permission system="true">run_native</permission>
Expand Down
44 changes: 44 additions & 0 deletions SensorDemo/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
SensorDemo

========================================================================
Sample Description.

The Sensor Demo example is a collection of pages where each page demonstrate
how to retrieve and process data from a certain hardware sensor.

You will learn how to:
- Use the Compass element to read values from the hardware compass sensor
- Use the Accelerometer element to read values fr0m the hardware accelerometer sensor
- Use the Magnetometer element to read values from the hardware magnetometer sensor
- How to use the AmbientLight sensor and Light sensor
- How to read values from the Gyroscope sensor
- How to use the Camera api to control the camera flash
- How to read values from the IRProximity sensor
- How to read values from the Proximity sensor
- How to read values from the Rotation sensor
- Use animations on Controls
- Trigger C++ functions from QML
- Property binding

========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4

========================================================================
Running the example:

1. Clone the Sample repository.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location of your sample directory, and then click OK.
5. The sample project should display in the Projects section.
Click Finish to import the project into your workspace.
6. In the Project Explorer pane, Right-click the project (for example hellocascades)
and select Build Project.
7. In the Project Explorer pane, Right-click the project (for example hellocascades)
and select Run As > BlackBerry C/C++ Application.
8. The application will now install and launch on your device if not you might
have to set up your environment:
http://developer.blackberry.com/cascades/documentation/getting_started/setting_up.html

4 changes: 3 additions & 1 deletion SensorDemo/src/Flashlight.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ class Flashlight: public QObject
void enabledChanged(bool);

private:
// The
// The property value
bool m_enabled;

// The handle for the camera device
camera_handle_t m_camera;
};

Expand Down
2 changes: 1 addition & 1 deletion SensorDemo/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
using namespace bb::cascades;
using namespace bb::device;

int main(int argc, char **argv)
Q_DECL_EXPORT int main(int argc, char **argv)
{
Application app(argc, argv);

Expand Down
Empty file removed SensorsAccelGame/arm/.gitignore
Empty file.
Empty file removed SensorsAccelGame/x86/.gitignore
Empty file.
Empty file removed SensorsCompass/arm/.gitignore
Empty file.
Empty file removed SensorsCompass/x86/.gitignore
Empty file.
Empty file.
Empty file.
Empty file removed SensorsOrientation/arm/.gitignore
Empty file.
Empty file removed SensorsOrientation/x86/.gitignore
Empty file.
Empty file removed SensorsTossGame/arm/.gitignore
Empty file.
Empty file removed SensorsTossGame/x86/.gitignore
Empty file.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions SensorsAccelGame/Makefile → accelgame/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ clean:


Makefile: FORCE
$(QMAKE) -spec unsupported/blackberry-armv7le-g++ -o arm/Makefile $(QMAKE_TARGET).pro CONFIG+=device
$(QMAKE) -spec unsupported/blackberry-x86-g++ -o x86/Makefile $(QMAKE_TARGET).pro CONFIG+=simulator
$(QMAKE) -spec blackberry-armv7le-qcc -o arm/Makefile $(QMAKE_TARGET).pro CONFIG+=device
$(QMAKE) -spec blackberry-x86-qcc -o x86/Makefile $(QMAKE_TARGET).pro CONFIG+=simulator

FORCE:

Expand Down
2 changes: 2 additions & 0 deletions SensorsAccelGame/accelgame.pro → accelgame/accelgame.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ lupdate_inclusion {
device {
CONFIG(release, debug|release) {
DESTDIR = o.le-v7
TEMPLATE = lib
QMAKE_CXXFLAGS_RELEASE += -fvisibility=hidden -mthumb
}
CONFIG(debug, debug|release) {
DESTDIR = o.le-v7-g
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit b4e15e4

Please sign in to comment.