Skip to content

Commit

Permalink
Gold Samples
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarsby committed Dec 10, 2012
1 parent 764b79f commit 21d7326
Show file tree
Hide file tree
Showing 52 changed files with 1,890 additions and 89 deletions.
2 changes: 1 addition & 1 deletion bucketlist/assets/models/bucket.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{ "status":"todo","title":"Relax."},
{ "status":"todo","title":"Grow a beard."},
{ "status":"todo","title":"Drive a monstertruck."},
{ "status":"todo","title":"See Malmö."},
{ "status":"todo","title":"Sink a boat."},
{ "status":"todo","title":"Tape toast to a cat."},
{ "status":"todo","title":"Write to Santa Claus."},
{ "status":"todo","title":"Shoot a movie."},
Expand Down
17 changes: 0 additions & 17 deletions bucketlist/assets/models/tasks.xml

This file was deleted.

4 changes: 2 additions & 2 deletions bucketlist/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ You will learn:
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
4 changes: 2 additions & 2 deletions cascadescookbookcpp/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ Controls summary:
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
14 changes: 14 additions & 0 deletions cascadescookbookqml/assets/CustomDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,18 @@ RecipePage {
color: Color.White
}
]

paneProperties: NavigationPaneProperties {
backButton: ActionItem {
onTriggered: {
// Override the back button in order to stop the dialog if navigation away from the Page occur
risingFlame.stop()

// The NavigationPane id is set in main.qml and this Page share the same context, so it is possible
// to pop the Page from here.
nav.pop();
}
}
}

}// RecipePage
4 changes: 2 additions & 2 deletions cascadescookbookqml/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ Controls summary:
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
4 changes: 2 additions & 2 deletions hellocascades/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ Sample Description.
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
4 changes: 2 additions & 2 deletions helloforeignwindow/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ own content there.
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
4 changes: 2 additions & 2 deletions kakel/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ You will learn how to:
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
4 changes: 2 additions & 2 deletions lightningcrossfadecpp/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Sample Description.
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
4 changes: 2 additions & 2 deletions lightningcrossfadeqml/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Sample Description.
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
4 changes: 2 additions & 2 deletions photobomber/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ Sample Description.
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
29 changes: 14 additions & 15 deletions photobomber/src/photobomberapp.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/* 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.
*/
*
* 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.
*/

#include "photobomberapp.h"

Expand Down Expand Up @@ -121,7 +121,7 @@ void PhotoBomberApp::manipulatePhoto(const QString &fileName)
QString bombfolder = appFolder + "app/native/assets/images/bombers/";

// Positions for the bombers; we need these so we can overlay the bomber image at it's correct position.
// The reason for not making an image as large as the picture is so we can change resolution and or switch
// The reason for not making an image as large as the picture is so we can change resolution and or switch
// between portrait/landscape if we would want to.
enum positions
{
Expand Down Expand Up @@ -219,4 +219,3 @@ void PhotoBomberApp::manipulatePhoto(const QString &fileName)
// Show the photo by using this function that take use of the InvokeManager.
showPhotoInCard(fileName);
}

4 changes: 2 additions & 2 deletions poemmaker/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ You will learn how to:
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
4 changes: 2 additions & 2 deletions pullmybeard/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ You will learn how to:
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
4 changes: 2 additions & 2 deletions quotes/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ You will learn how to:
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
29 changes: 5 additions & 24 deletions speedwriter/assets/speedwriter.qml
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,6 @@ Page {
input.flags: TextInputFlag.AutoCapitalizationOff | TextInputFlag.AutoCorrectionOff | TextInputFlag.PredictionOff | TextInputFlag.SpellCheckOff | TextInputFlag.WordSubstitutionOff
horizontalAlignment: HorizontalAlignment.Center

// Animation to enhance the feedback when one line was successfully typed.
// The textArea is also cleared to be ready for the next line.
animations: [
FadeTransition {
id: blinkField
fromOpacity: 0.8
toOpacity: 1.0
duration: 100

onStarted: {
textInput.resetText();
textInput.hintText="";
}
}
]


onTextChanging: {
// Check if the entered text is correct or not by using the wordChecker object.
wordChecker.checkWord(text);
Expand Down Expand Up @@ -172,24 +155,22 @@ Page {
WordChecker {
id: wordChecker
speedText: "Mary had a little lamb, its fleece \nwas white as snow. Sea shells, \nsea shells, by the sea shore. The \nflirtatious flamingo relentlessly \nargued with the aerodynamic \nalbatross. Admire the \nmiscellaneous velociraptors \nbasking in the sun. Egotistic \naardvarks enthusiastically \neating lollipops. Precisely, \npronounced the presidential \nparrot presiding over the \npurple pachyderms. "

onLineChanged: {
// When one line has been entered correctly the textinput is cleared
// to make room for entering the next line.
blinkField.play()

textInput.text = "";
textInput.hintText = "";
}

onEnded: {
// The game is over, set up a text for displaying the final result in the text label and text area.
speedTextLabel.text = "Your speed was " + speedGauge.averageSpeed + " words/min.\nWell done!";

// Position the resulting text in the middle of the window and clear the other texts.
speedTextLabel.translationY = 0;
speedTextLabel.translationY = 0;
textInput.text = "";
textInput.enabled = false;

// Clear the input field.
blinkField.play()
}

onNbrOfCharactersChanged: {
Expand Down
4 changes: 2 additions & 2 deletions speedwriter/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ You will learn how to:
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
4 changes: 2 additions & 2 deletions stampcollector/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ You will learn how to:
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
4 changes: 2 additions & 2 deletions starshipsettings/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ different settings.
========================================================================
Requirements:

BlackBerry 10 Native SDK Beta 4
BlackBerry 10 Native SDK Gold

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

1. From the Sample apps page, download and extract one of the sample applications.
2. Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location where you extracted the sample file, and then click OK.
5. The sample project should display in the Projects section.
Expand Down
Loading

0 comments on commit 21d7326

Please sign in to comment.