Permalink
Browse files

Added HelloSceneCover

  • Loading branch information...
Alex Mednis
Alex Mednis committed Dec 4, 2012
1 parent 24f11c1 commit fcadb1e9f4a3b447b86159e16cbb4bdffdd43223
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>HelloSceneCover</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+ <arguments>
+ <dictionary>
+ <key>?name?</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.append_environment</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
+ <value>Device-Debug</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildArguments</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildCommand</key>
+ <value>make</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
+ <value>clean</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.contents</key>
+ <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableFullBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
+ <value>Device-Debug</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.stopOnError</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+ <value>true</value>
+ </dictionary>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+ <triggers>full,incremental,</triggers>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.rim.tad.tools.qml.core.qmlFileBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.qnx.tools.bbt.xml.core.bbtXMLValidationBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.rim.tad.tools.wst.jsdt.core.jsNature</nature>
+ <nature>org.eclipse.cdt.core.cnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+ <nature>com.qnx.tools.ide.bbt.core.bbtnature</nature>
+ <nature>org.eclipse.cdt.core.ccnature</nature>
+ <nature>com.rim.tad.tools.qml.core.qmlNature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,25 @@
+eclipse.preferences.version=1
+environment/project/com.qnx.qcc.toolChain.1611288214/CPULIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.1611288214/CPULIST/operation=append
+environment/project/com.qnx.qcc.toolChain.1611288214/CPULIST/value=arm
+environment/project/com.qnx.qcc.toolChain.1611288214/VARIANTLIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.1611288214/VARIANTLIST/operation=append
+environment/project/com.qnx.qcc.toolChain.1611288214/VARIANTLIST/value=g
+environment/project/com.qnx.qcc.toolChain.1611288214/append=true
+environment/project/com.qnx.qcc.toolChain.1611288214/appendContributed=true
+environment/project/com.qnx.qcc.toolChain.516637644/CPULIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.516637644/CPULIST/operation=append
+environment/project/com.qnx.qcc.toolChain.516637644/CPULIST/value=arm
+environment/project/com.qnx.qcc.toolChain.516637644/EXCLUDE_VARIANTLIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.516637644/EXCLUDE_VARIANTLIST/operation=append
+environment/project/com.qnx.qcc.toolChain.516637644/EXCLUDE_VARIANTLIST/value=r
+environment/project/com.qnx.qcc.toolChain.516637644/append=true
+environment/project/com.qnx.qcc.toolChain.516637644/appendContributed=true
+environment/project/com.qnx.qcc.toolChain.95467339/CPULIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.95467339/CPULIST/operation=append
+environment/project/com.qnx.qcc.toolChain.95467339/CPULIST/value=x86
+environment/project/com.qnx.qcc.toolChain.95467339/VARIANTLIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.95467339/VARIANTLIST/operation=append
+environment/project/com.qnx.qcc.toolChain.95467339/VARIANTLIST/value=g
+environment/project/com.qnx.qcc.toolChain.95467339/append=true
+environment/project/com.qnx.qcc.toolChain.95467339/appendContributed=true
@@ -0,0 +1,50 @@
+TEMPLATE = app
+TARGET = HelloSceneCover
+
+CONFIG += qt warn_on debug_and_release cascades
+
+INCLUDEPATH += ../src
+SOURCES += ../src/*.cpp
+HEADERS += ../src/*.hpp ../src/*.h
+
+lupdate_inclusion {
+ SOURCES += ../assets/*.qml
+}
+
+device {
+ CONFIG(release, debug|release) {
+ DESTDIR = o.le-v7
+ }
+ CONFIG(debug, debug|release) {
+ DESTDIR = o.le-v7-g
+ }
+}
+
+simulator {
+ CONFIG(release, debug|release) {
+ DESTDIR = o
+ }
+ CONFIG(debug, debug|release) {
+ DESTDIR = o-g
+ }
+}
+
+OBJECTS_DIR = $${DESTDIR}/.obj
+MOC_DIR = $${DESTDIR}/.moc
+RCC_DIR = $${DESTDIR}/.rcc
+UI_DIR = $${DESTDIR}/.ui
+
+suredelete.target = sureclean
+suredelete.commands = $(DEL_FILE) $${MOC_DIR}/*; $(DEL_FILE) $${RCC_DIR}/*; $(DEL_FILE) $${UI_DIR}/*
+suredelete.depends = distclean
+
+QMAKE_EXTRA_TARGETS += suredelete
+
+TRANSLATIONS = \
+ $${TARGET}_en_GB.ts \
+ $${TARGET}_fr.ts \
+ $${TARGET}_it.ts \
+ $${TARGET}_de.ts \
+ $${TARGET}_es.ts \
+ $${TARGET}.ts
+
View
@@ -0,0 +1,35 @@
+QMAKE_TARGET = HelloSceneCover
+QMAKE = $(QNX_HOST)/usr/bin/qmake
+TARGET = $(QMAKE_TARGET)
+
+
+all: Makefile $(QMAKE_TARGET)
+
+clean:
+ $(MAKE) -C ./arm -f Makefile sureclean
+ $(MAKE) -C ./x86 -f Makefile sureclean
+
+
+Makefile: FORCE
+ $(QMAKE) -spec unsupported/blackberry-armv7le-qcc -o arm/Makefile $(QMAKE_TARGET).pro CONFIG+=device
+ $(QMAKE) -spec unsupported/blackberry-x86-qcc -o x86/Makefile $(QMAKE_TARGET).pro CONFIG+=simulator
+ $(MAKE) -C ./translations -f Makefile update release
+
+FORCE:
+
+$(QMAKE_TARGET): device simulator
+
+device:
+ $(MAKE) -C ./arm -f Makefile all
+
+Device-Debug: Makefile
+ $(MAKE) -C ./arm -f Makefile debug
+
+Device-Release: Makefile
+ $(MAKE) -C ./arm -f Makefile release
+
+simulator:
+ $(MAKE) -C ./x86 -f Makefile all
+
+Simulator-Debug: Makefile
+ $(MAKE) -C ./x86 -f Makefile debug
View
@@ -0,0 +1,29 @@
+HelloSceneCover - Demonstrating Active Frames
+
+========================================================================
+Sample Description.
+
+This sample is designed to show you how to use Active Frames using QML
+(and a tiny tiny bit of C++).
+
+========================================================================
+Requirements:
+
+BlackBerry 10 Native SDK Beta (Compiled with BETA4, though works on
+BETA3 as well).
+
+========================================================================
+Running the example:
+
+1. Download the source code
+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 the source code project, and then click OK.
+5. The sample project should display in the the Projects section.
+ Click Finish to import the project into your workspace.
+6. In the Project Explorer pane, Right-click the the project and select Build Project.
+7. In the Project Explorer pane, Right-click the the project 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
@@ -0,0 +1,43 @@
+// Default empty project template
+import bb.cascades 1.0
+
+// creates one page with a label
+Page {
+ Container {
+ layout: DockLayout {}
+ Label {
+ text: qsTr("Hello World")
+ textStyle.base: SystemDefaults.TextStyles.BigText
+ verticalAlignment: VerticalAlignment.Center
+ horizontalAlignment: HorizontalAlignment.Center
+ }
+ }
+ attachedObjects: [
+ AppCover {
+ id: appCover
+ }
+ ]
+
+ onCreationCompleted: {
+
+ Application.setCover(appCover);
+ Application.manualExit.connect(exitApp);
+ Application.setAutoExit(false);
+
+ }
+
+
+ function exitApp()
+ {
+ /* This is needed to stop the application generating a
+ "application has been slayed" error on close. Should
+ not be needed on final release of BB10!!
+ */
+ Application.setCover(0);
+
+ Application.quit();
+ }
+}
+
+
+
@@ -0,0 +1,13 @@
+import bb.cascades 1.0
+
+SceneCover {
+
+ content: Container {
+
+ ImageView {
+ imageSource: "asset:///images/cover.png"
+ }
+
+ }
+
+}
Binary file not shown.
@@ -0,0 +1,43 @@
+// Default empty project template
+import bb.cascades 1.0
+
+// creates one page with a label
+Page {
+ Container {
+ layout: DockLayout {}
+ Label {
+ text: qsTr("Hello World")
+ textStyle.base: SystemDefaults.TextStyles.BigText
+ verticalAlignment: VerticalAlignment.Center
+ horizontalAlignment: HorizontalAlignment.Center
+ }
+ }
+ attachedObjects: [
+ AppCover {
+ id: appCover
+ }
+ ]
+
+ onCreationCompleted: {
+
+ Application.setCover(appCover);
+ Application.manualExit.connect(exitApp);
+ Application.setAutoExit(false);
+
+ }
+
+
+ function exitApp()
+ {
+ /* This is needed to stop the application generating a
+ "application has been slayed" error on close. Should
+ not be needed on final release of BB10!!
+ */
+ Application.setCover(0);
+
+ Application.quit();
+ }
+}
+
+
+
Oops, something went wrong.

0 comments on commit fcadb1e

Please sign in to comment.