Permalink
Browse files

dictaphone and systemsound projects added

  • Loading branch information...
johodgson committed Sep 20, 2012
1 parent 844ee3d commit e23bdbac0771db7c750549c0990bd34fc9525481
Showing with 1,967 additions and 0 deletions.
  1. +209 −0 dictaphone/.cproject
  2. +91 −0 dictaphone/.project
  3. +25 −0 dictaphone/.settings/org.eclipse.cdt.core.prefs
  4. +35 −0 dictaphone/Makefile
  5. 0 dictaphone/arm/.gitignore
  6. +26 −0 dictaphone/assets/Led.qml
  7. +125 −0 dictaphone/assets/PlayerSheet.qml
  8. +94 −0 dictaphone/assets/Tape.qml
  9. BIN dictaphone/assets/images/background.png
  10. BIN dictaphone/assets/images/buttons_background.png
  11. BIN dictaphone/assets/images/dictaphone_label.png
  12. BIN dictaphone/assets/images/led_off.png
  13. BIN dictaphone/assets/images/led_pause.png
  14. BIN dictaphone/assets/images/led_rec.png
  15. BIN dictaphone/assets/images/pause_button.png
  16. BIN dictaphone/assets/images/pause_button_pressed.png
  17. BIN dictaphone/assets/images/play_button.png
  18. BIN dictaphone/assets/images/play_button_pressed.png
  19. BIN dictaphone/assets/images/rec_button.png
  20. BIN dictaphone/assets/images/rec_button_pressed.png
  21. BIN dictaphone/assets/images/sheet_background.png
  22. BIN dictaphone/assets/images/tape_cover.png
  23. BIN dictaphone/assets/images/tape_gear.png
  24. BIN dictaphone/assets/images/tape_shadow.png
  25. +187 −0 dictaphone/assets/main.qml
  26. +118 −0 dictaphone/bar-descriptor.xml
  27. +4 −0 dictaphone/device-assets.xml
  28. +50 −0 dictaphone/dictaphone.pro
  29. BIN dictaphone/icon.png
  30. +127 −0 dictaphone/src/TrackManager.cpp
  31. +72 −0 dictaphone/src/TrackManager.hpp
  32. +52 −0 dictaphone/src/main.cpp
  33. +12 −0 dictaphone/translations/Makefile
  34. +1 −0 dictaphone/translations/dictaphone.pro
  35. 0 dictaphone/x86/.gitignore
  36. +210 −0 systemsound/.cproject
  37. +91 −0 systemsound/.project
  38. +25 −0 systemsound/.settings/org.eclipse.cdt.core.prefs
  39. +35 −0 systemsound/Makefile
  40. 0 systemsound/arm/.gitignore
  41. BIN systemsound/assets/images/background.png
  42. +152 −0 systemsound/assets/main.qml
  43. +114 −0 systemsound/bar-descriptor.xml
  44. +4 −0 systemsound/device-assets.xml
  45. BIN systemsound/icon.png
  46. +45 −0 systemsound/src/main.cpp
  47. +50 −0 systemsound/systemsound.pro
  48. +12 −0 systemsound/translations/Makefile
  49. +1 −0 systemsound/translations/systemsound.pro
  50. 0 systemsound/x86/.gitignore
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>dictaphone</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.rim.tad.tools.qml.core.qmlFileBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.qnx.tools.bbt.xml.core.bbtXMLValidationBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.rim.tad.tools.wst.jsdt.core.jsNature</nature>
+ <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>
@@ -0,0 +1,25 @@
+eclipse.preferences.version=1
+environment/project/com.qnx.qcc.toolChain.1121136917/CPULIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.1121136917/CPULIST/operation=append
+environment/project/com.qnx.qcc.toolChain.1121136917/CPULIST/value=x86
+environment/project/com.qnx.qcc.toolChain.1121136917/VARIANTLIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.1121136917/VARIANTLIST/operation=append
+environment/project/com.qnx.qcc.toolChain.1121136917/VARIANTLIST/value=g
+environment/project/com.qnx.qcc.toolChain.1121136917/append=true
+environment/project/com.qnx.qcc.toolChain.1121136917/appendContributed=true
+environment/project/com.qnx.qcc.toolChain.1399098378/CPULIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.1399098378/CPULIST/operation=append
+environment/project/com.qnx.qcc.toolChain.1399098378/CPULIST/value=arm
+environment/project/com.qnx.qcc.toolChain.1399098378/EXCLUDE_VARIANTLIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.1399098378/EXCLUDE_VARIANTLIST/operation=append
+environment/project/com.qnx.qcc.toolChain.1399098378/EXCLUDE_VARIANTLIST/value=r
+environment/project/com.qnx.qcc.toolChain.1399098378/append=true
+environment/project/com.qnx.qcc.toolChain.1399098378/appendContributed=true
+environment/project/com.qnx.qcc.toolChain.39696057/CPULIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.39696057/CPULIST/operation=append
+environment/project/com.qnx.qcc.toolChain.39696057/CPULIST/value=arm
+environment/project/com.qnx.qcc.toolChain.39696057/VARIANTLIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.39696057/VARIANTLIST/operation=append
+environment/project/com.qnx.qcc.toolChain.39696057/VARIANTLIST/value=g
+environment/project/com.qnx.qcc.toolChain.39696057/append=true
+environment/project/com.qnx.qcc.toolChain.39696057/appendContributed=true
View
@@ -0,0 +1,35 @@
+QMAKE_TARGET = dictaphone
+QMAKE = $(QNX_HOST)/usr/bin/qmake
+TARGET = $(QMAKE_TARGET)
+
+
+all: Makefile $(QMAKE_TARGET)
+
+clean:
+ $(MAKE) -C ./arm -f Makefile sureclean
+ $(MAKE) -C ./x86 -f Makefile sureclean
+
+
+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
+ $(MAKE) -C ./translations -f Makefile update release
+
+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
No changes.
View
@@ -0,0 +1,26 @@
+/* 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
+
+//! [0]
+ImageView {
+ property string state: "off"
+
+ imageSource: (state == "rec" ? "asset:///images/led_rec.png" :
+ state == "pause" ? "asset:///images/led_pause.png" :
+ "asset:///images/led_off.png")
+}
+//! [0]
@@ -0,0 +1,125 @@
+/* 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
+import bb.multimedia 1.0
+
+//! [0]
+Sheet {
+ id: playerSheet
+
+ Page {
+ Container {
+ layout: DockLayout {}
+
+ // The background image
+ ImageView {
+ horizontalAlignment: HorizontalAlignment.Fill
+ verticalAlignment: VerticalAlignment.Fill
+
+ imageSource: "asset:///images/sheet_background.png"
+ }
+
+ Container {
+ horizontalAlignment: HorizontalAlignment.Fill
+ verticalAlignment: VerticalAlignment.Fill
+
+ leftPadding: 30
+ topPadding: 30
+ rightPadding: 30
+ bottomPadding: 30
+
+ // The title label
+ Label {
+ horizontalAlignment: HorizontalAlignment.Center
+
+ text: qsTr ("Recorded Tracks")
+ textStyle {
+ base: SystemDefaults.TextStyles.BigText
+ color: Color.White
+ }
+ }
+
+ // The recorded tracks list view
+ ListView {
+ id: listView
+
+ horizontalAlignment: HorizontalAlignment.Center
+ topMargin: 50
+
+ dataModel: _trackManager.model
+
+ listItemComponents: ListItemComponent {
+ type: "item"
+ StandardListItem {
+ title: ListItemData.name
+ }
+ }
+
+ onTriggered: {
+ clearSelection()
+ select(indexPath)
+ }
+ }
+
+ // The 'Play' button
+ Button {
+ horizontalAlignment: HorizontalAlignment.Center
+ topMargin: 50
+
+ text: qsTr ("Play")
+
+ onClicked: {
+ // Reset URL of player
+ player.sourceUrl = ""
+
+ // Set the currently selected track as player source URL
+ player.sourceUrl = listView.dataModel.data(listView.selected()).url
+
+ // Start playback
+ player.play()
+ }
+ }
+ }
+ }
+
+ actions: [
+ ActionItem {
+ title: qsTr ("Back")
+ ActionBar.placement: ActionBarPlacement.OnBar
+
+ onTriggered: {
+ playerSheet.close()
+ }
+ },
+ ActionItem {
+ title: qsTr ("Clear All Tracks")
+ ActionBar.placement: ActionBarPlacement.OnBar
+
+ onTriggered: {
+ _trackManager.clearAllTracks()
+ playerSheet.close()
+ }
+ }
+ ]
+
+ attachedObjects: [
+ MediaPlayer {
+ id: player
+ }
+ ]
+ }
+}
+//! [0]
Oops, something went wrong.

0 comments on commit e23bdba

Please sign in to comment.