Skip to content

Commit 9d7ef41

Browse files
committed
Pulldown menu stumper
1 parent 6c6c153 commit 9d7ef41

File tree

18 files changed

+719
-0
lines changed

18 files changed

+719
-0
lines changed

stumpers/pbillings512_2/.cproject

Lines changed: 206 additions & 0 deletions
Large diffs are not rendered by default.

stumpers/pbillings512_2/.project

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>pbillings512_2</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10+
<arguments>
11+
<dictionary>
12+
<key>?name?</key>
13+
<value></value>
14+
</dictionary>
15+
<dictionary>
16+
<key>org.eclipse.cdt.make.core.append_environment</key>
17+
<value>true</value>
18+
</dictionary>
19+
<dictionary>
20+
<key>org.eclipse.cdt.make.core.autoBuildTarget</key>
21+
<value>Device-Debug</value>
22+
</dictionary>
23+
<dictionary>
24+
<key>org.eclipse.cdt.make.core.buildArguments</key>
25+
<value></value>
26+
</dictionary>
27+
<dictionary>
28+
<key>org.eclipse.cdt.make.core.buildCommand</key>
29+
<value>make</value>
30+
</dictionary>
31+
<dictionary>
32+
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
33+
<value>clean</value>
34+
</dictionary>
35+
<dictionary>
36+
<key>org.eclipse.cdt.make.core.contents</key>
37+
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
38+
</dictionary>
39+
<dictionary>
40+
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
41+
<value>true</value>
42+
</dictionary>
43+
<dictionary>
44+
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
45+
<value>true</value>
46+
</dictionary>
47+
<dictionary>
48+
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
49+
<value>true</value>
50+
</dictionary>
51+
<dictionary>
52+
<key>org.eclipse.cdt.make.core.fullBuildTarget</key>
53+
<value>Device-Debug</value>
54+
</dictionary>
55+
<dictionary>
56+
<key>org.eclipse.cdt.make.core.stopOnError</key>
57+
<value>true</value>
58+
</dictionary>
59+
<dictionary>
60+
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
61+
<value>true</value>
62+
</dictionary>
63+
</arguments>
64+
</buildCommand>
65+
<buildCommand>
66+
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
67+
<triggers>full,incremental,</triggers>
68+
<arguments>
69+
</arguments>
70+
</buildCommand>
71+
<buildCommand>
72+
<name>com.rim.tad.tools.qml.core.qmlFileBuilder</name>
73+
<arguments>
74+
</arguments>
75+
</buildCommand>
76+
<buildCommand>
77+
<name>com.qnx.tools.bbt.xml.core.bbtXMLValidationBuilder</name>
78+
<arguments>
79+
</arguments>
80+
</buildCommand>
81+
</buildSpec>
82+
<natures>
83+
<nature>com.rim.tad.tools.wst.jsdt.core.jsNature</nature>
84+
<nature>org.eclipse.cdt.core.cnature</nature>
85+
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
86+
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
87+
<nature>com.qnx.tools.ide.bbt.core.bbtnature</nature>
88+
<nature>org.eclipse.cdt.core.ccnature</nature>
89+
<nature>com.rim.tad.tools.qml.core.qmlNature</nature>
90+
</natures>
91+
</projectDescription>

stumpers/pbillings512_2/Makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
QMAKE_TARGET = pbillings512_2
2+
QMAKE = $(QNX_HOST)/usr/bin/qmake
3+
TARGET = $(QMAKE_TARGET)
4+
5+
6+
all: Makefile $(QMAKE_TARGET)
7+
8+
clean:
9+
$(MAKE) -C ./arm -f Makefile sureclean
10+
$(MAKE) -C ./x86 -f Makefile sureclean
11+
12+
13+
Makefile: FORCE
14+
$(QMAKE) -spec unsupported/blackberry-armv7le-g++ -o arm/Makefile $(QMAKE_TARGET).pro CONFIG+=device
15+
$(QMAKE) -spec unsupported/blackberry-x86-g++ -o x86/Makefile $(QMAKE_TARGET).pro CONFIG+=simulator
16+
$(MAKE) -C ./translations -f Makefile update release
17+
18+
FORCE:
19+
20+
$(QMAKE_TARGET): device simulator
21+
22+
device:
23+
$(MAKE) -C ./arm -f Makefile all
24+
25+
Device-Debug: Makefile
26+
$(MAKE) -C ./arm -f Makefile debug
27+
28+
Device-Release: Makefile
29+
$(MAKE) -C ./arm -f Makefile release
30+
31+
simulator:
32+
$(MAKE) -C ./x86 -f Makefile all
33+
34+
Simulator-Debug: Makefile
35+
$(MAKE) -C ./x86 -f Makefile debug

stumpers/pbillings512_2/Notice

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Hello Cascades
2+
Copyright (c) 2011 Research In Motion Limited (http://www.rim.com/)
3+
4+
This product includes software developed at
5+
Research In Motion Limited (http://www.rim.com/).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Empty target directory for building.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/* Copyright (c) 2012 Research In Motion Limited.
2+
*
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
16+
import bb.cascades 1.0
17+
18+
Page {
19+
Container {
20+
id: maincontainer
21+
leftPadding: 20
22+
rightMargin: leftPadding
23+
topMargin: leftPadding
24+
bottomMargin: leftPadding
25+
26+
// This is the hidden container that we want to show or hide
27+
Container {
28+
id: hiddenContainer
29+
visible: false
30+
objectName: "hiddenContainer"
31+
preferredHeight: 400
32+
preferredWidth: 768
33+
Label {
34+
multiline: true
35+
text: "Loads of information that was previously hidden!"
36+
textStyle.base: SystemDefaults.TextStyles.BigText
37+
}
38+
}
39+
40+
// This is what's shown all the time
41+
Container {
42+
layout: StackLayout {
43+
}
44+
verticalAlignment: VerticalAlignment.Fill
45+
horizontalAlignment: HorizontalAlignment.Fill
46+
Label {
47+
multiline: true
48+
text: "This area just shows a lot of UI - stuff. It's gonna be superduper and even more aweseom when it's filled with stuff that actually matters to ppl, like BBM or sports results or stocks.\n\n The button will do the trick but it's even more fun to swipe down!"
49+
textStyle.base: SystemDefaults.TextStyles.BodyText
50+
}
51+
}
52+
53+
// A button for testing purposes, does the same as the signal.
54+
Button {
55+
text: "swap"
56+
onClicked: {
57+
if (hiddenContainer.visible) {
58+
hiddenContainer.visible = false
59+
} else {
60+
hiddenContainer.visible = true
61+
}
62+
}
63+
}
64+
}
65+
}
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="no"?>
2+
<!--
3+
4+
Copyright (c) 2011, 2012 Research In Motion Limited.
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
18+
-->
19+
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
20+
21+
<!-- BlackBerry Tablet OS application descriptor file.
22+
23+
Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
24+
25+
-->
26+
27+
<!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
28+
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
29+
<id>com.example.pbillings512_2</id>
30+
31+
<!-- The name that is displayed in the BlackBerry Tablet OS application installer.
32+
May have multiple values for each language. See samples or xsd schema file. Optional. -->
33+
<name>pbillings512_2</name>
34+
35+
<!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
36+
Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
37+
An updated version of application must have a versionNumber value higher than the previous version. Required. -->
38+
<versionNumber>1.0.0</versionNumber>
39+
40+
<!-- Fourth digit segment of the package version. First three segments are taken from the
41+
<versionNumber> element. Must be an integer from 0 to 2^16-1 -->
42+
<buildId>1</buildId>
43+
44+
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
45+
<!-- <versionLabel></versionLabel> -->
46+
47+
<!-- Description, displayed in the BlackBerry Tablet OS application installer.
48+
May have multiple values for each language. See samples or xsd schema file. Optional. -->
49+
<description>The pbillings512_2 application</description>
50+
51+
<!-- Copyright information. Optional. -->
52+
<!-- <copyright></copyright> -->
53+
54+
<!-- Name of author which is used for signing. Must match the developer name of your development certificate. -->
55+
<author>Example Inc.</author>
56+
57+
<!-- Unique author ID assigned by signing authority. Required if using debug tokens. -->
58+
<!-- <authorId>ABC1234YjsnUk235h</authorId> -->
59+
60+
<initialWindow>
61+
<systemChrome>none</systemChrome>
62+
<transparent>false</transparent>
63+
</initialWindow>
64+
65+
<!-- The category where the application appears. Either core.games or core.media. -->
66+
<category>core.games</category>
67+
<configuration id="com.qnx.qcc.toolChain.475449429" name="Default">
68+
<platformArchitecture>armle-v7</platformArchitecture>
69+
<asset path="arm/o.le-v7-g/pbillings512_2" entry="true" type="Qnx/Elf">pbillings512_2</asset>
70+
</configuration>
71+
<configuration id="com.qnx.qcc.toolChain.1829294512" name="Device-Debug">
72+
<platformArchitecture>armle-v7</platformArchitecture>
73+
<asset path="arm/o.le-v7-g/pbillings512_2" entry="true" type="Qnx/Elf">pbillings512_2</asset>
74+
</configuration>
75+
<configuration id="com.qnx.qcc.toolChain.496139386" name="Device-Release">
76+
<platformArchitecture>armle-v7</platformArchitecture>
77+
<asset path="arm/o.le-v7/pbillings512_2" entry="true" type="Qnx/Elf">pbillings512_2</asset>
78+
</configuration>
79+
<configuration id="com.qnx.qcc.toolChain.2107831101" name="Simulator-Debug">
80+
<platformArchitecture>x86</platformArchitecture>
81+
<asset path="x86/o-g/pbillings512_2" entry="true" type="Qnx/Elf">pbillings512_2</asset>
82+
</configuration>
83+
84+
<!-- The icon for the application, which should be 86x86. -->
85+
<icon>
86+
<image>icon.png</image>
87+
</icon>
88+
89+
<asset path="icon.png">icon.png</asset>
90+
<asset path="assets">assets</asset>
91+
92+
<!-- Locale support -->
93+
<asset path="translations" dest="qm">
94+
<include name="*.qm"/>
95+
</asset>
96+
97+
<!-- Request permission to execute native code. Required for native applications. -->
98+
<permission system="true">run_native</permission>
99+
<env var="LD_LIBRARY_PATH" value="app/native/lib:/usr/lib/qt4/lib"/>
100+
101+
</qnx>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<assets>
3+
<target-device width="768" height="1280" ppi="356" class="phone"/>
4+
</assets>

stumpers/pbillings512_2/icon.png

5.94 KB
Loading
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
TEMPLATE = app
2+
TARGET = pbillings512_2
3+
4+
CONFIG += qt warn_on debug_and_release cascades
5+
6+
INCLUDEPATH += ../src
7+
SOURCES += ../src/*.cpp
8+
HEADERS += ../src/*.hpp ../src/*.h
9+
10+
lupdate_inclusion {
11+
SOURCES += ../assets/*.qml
12+
}
13+
14+
device {
15+
CONFIG(release, debug|release) {
16+
DESTDIR = o.le-v7
17+
}
18+
CONFIG(debug, debug|release) {
19+
DESTDIR = o.le-v7-g
20+
}
21+
}
22+
23+
simulator {
24+
CONFIG(release, debug|release) {
25+
DESTDIR = o
26+
}
27+
CONFIG(debug, debug|release) {
28+
DESTDIR = o-g
29+
}
30+
}
31+
32+
OBJECTS_DIR = $${DESTDIR}/.obj
33+
MOC_DIR = $${DESTDIR}/.moc
34+
RCC_DIR = $${DESTDIR}/.rcc
35+
UI_DIR = $${DESTDIR}/.ui
36+
37+
suredelete.target = sureclean
38+
suredelete.commands = $(DEL_FILE) $${MOC_DIR}/*; $(DEL_FILE) $${RCC_DIR}/*; $(DEL_FILE) $${UI_DIR}/*
39+
suredelete.depends = distclean
40+
41+
QMAKE_EXTRA_TARGETS += suredelete
42+
43+
TRANSLATIONS = \
44+
$${TARGET}_en_GB.ts \
45+
$${TARGET}_fr.ts \
46+
$${TARGET}_it.ts \
47+
$${TARGET}_de.ts \
48+
$${TARGET}_es.ts \
49+
$${TARGET}.ts
50+

0 commit comments

Comments
 (0)