Permalink
Browse files

Updated the sample applications, aligned with the beta2 version of BB…

…10 Cascades
  • Loading branch information...
1 parent bbe694b commit d99a08d8c567ec776116145d3522daefd3b267e8 @jlarsby jlarsby committed Jun 28, 2012
Showing 512 changed files with 10,696 additions and 3,536 deletions.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>bucketlist</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.qnx.tools.bbt.xml.core.bbtXMLValidationBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.rim.tad.tools.qml.core.qmlFileBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <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>
View
@@ -0,0 +1,34 @@
+TEMPLATE = app
+TARGET = BucketList
+
+CONFIG += qt warn_on debug_and_release cascades
+
+LIBS += -lbbdata
+
+INCLUDEPATH += ../src
+SOURCES += ../src/*.cpp
+HEADERS += ../src/*.h
+
+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
+
View
@@ -0,0 +1,34 @@
+QMAKE_TARGET = BucketList
+QMAKE = $(QNX_HOST)/usr/bin/qmake
+TARGET = $(QMAKE_TARGET)
+
+
+all: Makefile $(QMAKE_TARGET)
+
+clean:
+ $(MAKE) -C ./arm -f Makefile distclean
+ $(MAKE) -C ./x86 -f Makefile distclean
+
+
+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
+
+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,5 @@
+Hello Cascades
+Copyright (c) 2011 Research In Motion Limited (http://www.rim.com/)
+
+This product includes software developed at
+Research In Motion Limited (http://www.rim.com/).
@@ -0,0 +1 @@
+Empty target directory for building.
@@ -0,0 +1,90 @@
+/* Copyright (c) 2012 Research In Motion 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.0
+
+// Details Page for a bucket item, shows the entire task contained in a bucket
+// item and adds functionality for editing the item.
+Page {
+ id: bucketPage
+ property variant item
+ property variant bucketModel
+ property alias title: titleBar.title
+
+ titleBar: TitleBar {
+ id: titleBar
+ visibility: ChromeVisibility.Visible
+ title: "Todo"
+ }
+
+ Container {
+ layout: DockLayout {
+ }
+
+ Container {
+ layout: StackLayout {
+ leftPadding: 50
+ rightPadding: leftPadding
+
+ }
+
+ layoutProperties: DockLayoutProperties {
+ horizontalAlignment: HorizontalAlignment.Center
+ verticalAlignment: VerticalAlignment.Center
+ }
+
+ TextArea {
+ id: bucketText
+ editable: false
+ text: bucketPage.item.title;
+ textStyle.base: SystemDefaults.TextStyles.TitleText
+ textStyle.alignment: TextAlignment.Center
+ }
+ }
+ }
+
+ actions: [
+ ActionItem {
+ title: "Edit"
+ imageSource: "asset:///images/edit.png"
+ ActionBar.placement: ActionBarPlacement.OnBar
+
+ onTriggered: {
+ editSheet.visible = true;
+ editSheet.text = bucketText.text;
+ }
+ }
+ ]
+
+ attachedObjects: [
+ EditSheet {
+ id: editSheet
+ title: "Edit"
+ hintText: "Update bucket item description"
+
+ onSaveBucketItem: {
+ // Call the function to update the item data.
+ bucketModel.editBucketItem(bucketPage.item, text);
+
+ // Update the current item property data used in this Page to do this
+ // one has to copy all values to 'tempItem'.
+ var tempItem = bucketPage.item
+ // Update the item property.
+ tempItem.title = text
+ // Then copy all values back to 'bucketPage.item'
+ bucketPage.item = tempItem
+ }
+ }
+ ]
+}
@@ -0,0 +1,94 @@
+/* Copyright (c) 2012 Research In Motion 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.0
+
+// A sheet that is used for editing and adding new items to the Bucket List application.
+Sheet {
+ id: editSheet
+
+ // Custom properties.
+ property alias title: addBar.title
+ property alias hintText: itemText.hintText
+ property alias text: itemText.text
+
+ // A custom signal that is triggered when the acceptAction is triggered.
+ signal saveBucketItem(string text)
+
+ Page {
+ id: addPage
+
+ titleBar: TitleBar {
+ id: addBar
+ title: "Add"
+ visibility: ChromeVisibility.Visible
+
+ dismissAction: ActionItem {
+ title: "Cancel"
+ onTriggered: {
+ // Hide the Sheet.
+ editSheet.visible = false
+ }
+ }
+
+ acceptAction: ActionItem {
+ title: "Save"
+ onTriggered: {
+ // Hide the Sheet and emit signal the the item should be saved.
+ editSheet.visible = false
+ editSheet.saveBucketItem(itemText.text);
+ }
+ }
+ }
+
+ Container {
+ id: editPane
+ property real margins: 40
+ background: Color.create("#f8f8f8")
+
+ layout: DockLayout {
+ topPadding: editPane.margins
+ leftPadding: editPane.margins
+ rightPadding: editPane.margins
+ }
+
+ attachedObjects: [
+ TextStyleDefinition {
+ id: editTextStyle
+ base: SystemDefaults.TextStyles.TitleText
+ }
+ ]
+
+ Container {
+
+ TextArea {
+ id: itemText
+ hintText: "New item on the bucket list"
+ topMargin: editPane.margins
+ bottomMargin: topMargin
+ preferredHeight: 450
+ maxHeight: 450
+
+ textStyle {
+ base: editTextStyle.style
+ }
+
+ layoutProperties: StackLayoutProperties {
+ horizontalAlignment: HorizontalAlignment.Fill
+ }
+ }
+ }
+ }
+ }
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1 @@
+repeatable: true
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit d99a08d

Please sign in to comment.