Skip to content

Commit 6c6c153

Browse files
committed
Graph stumper
1 parent 72d83e8 commit 6c6c153

File tree

24 files changed

+1148
-0
lines changed

24 files changed

+1148
-0
lines changed

stumpers/rcmaniac25/.cproject

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

stumpers/rcmaniac25/.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>Graphs</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/rcmaniac25/Graphs.pro

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
TEMPLATE = app
2+
TARGET = Graphs
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+

stumpers/rcmaniac25/Makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
QMAKE_TARGET = Graphs
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-qcc -o arm/Makefile $(QMAKE_TARGET).pro CONFIG+=device
15+
$(QMAKE) -spec unsupported/blackberry-x86-qcc -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/rcmaniac25/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/).

stumpers/rcmaniac25/arm/README.txt

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: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
import com.stump.graph 1.0
18+
19+
Container {
20+
id: graphContainer
21+
leftPadding: 50
22+
rightPadding: leftPadding
23+
topPadding: leftPadding
24+
bottomPadding: leftPadding
25+
26+
layout: DockLayout {
27+
}
28+
29+
GraphControl {
30+
id: graph
31+
graphDataSource: "data/graph.dat"
32+
preferredWidth: 1280 - graphContainer.leftPadding * 2
33+
preferredHeight: 768 - graphContainer.leftPadding * 2
34+
}
35+
36+
onTouch: {
37+
if (event.isUp()) {
38+
if (graph.graphDataSource == "data/graph3.dat") {
39+
graph.graphDataSource = "data/graph.dat"
40+
} else if (graph.graphDataSource == "data/graph2.dat") {
41+
graph.graphDataSource = "data/graph3.dat"
42+
} else {
43+
graph.graphDataSource = "data/graph2.dat"
44+
}
45+
}
46+
}
47+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
0, 100
2+
100, 200
3+
300,200
4+
400,300
5+
500,300
6+
600,400
7+
700,300
8+
800,340
9+
900,500
10+
950,650
11+
1000,700
12+
1100,610
13+
1200,500
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
0,0
2+
100,600
3+
300,500
4+
400,550
5+
500,300
6+
600,420
7+
700,700
8+
800,40
9+
900,100
10+
950,150
11+
1000,200
12+
1100,110
13+
1200,0
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
1962, 10
2+
1960, 12
3+
1970,8
4+
1980,20
5+
1990,28
6+
2000,24
7+
2001,36
8+
2003,42
9+
2005,48
10+
2007,52
11+
2009,60
12+
2010,48
13+
2012,60

0 commit comments

Comments
 (0)