forked from SiriusDely/Cascades-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the sample applications, aligned with the beta2 version of BB…
…10 Cascades
- Loading branch information
Showing
512 changed files
with
10,696 additions
and
3,536 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Empty target directory for building. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Binary file renamed
BIN
+2.94 KB
...p/assets/images/red_cloth_edge_bottom.png → bucketlist/assets/images/add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
repeatable: true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+2.96 KB
...kqml/assets/images/red_cloth_edge_top.png → bucketlist/assets/images/edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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.