From 3d1495cc84ce8a274cbda6023d56e75de671eed9 Mon Sep 17 00:00:00 2001 From: "Anselmo Lacerda S. de Melo" Date: Thu, 3 Mar 2011 17:08:53 -0300 Subject: CoffeeTweed Signed-off-by: Anselmo Lacerda S. de Melo --- CoffeeTweed/Add.qml | 38 ----- CoffeeTweed/CoffeeTweed.qml | 82 ---------- CoffeeTweed/CoffeeTweed.qmlproject | 16 -- CoffeeTweed/Counter_cupsDown.qml | 58 ------- CoffeeTweed/Counter_toGo.qml | 58 ------- CoffeeTweed/Cup.qml | 112 ------------- CoffeeTweed/LICENSE.BSD | 32 ++++ CoffeeTweed/Remove.qml | 39 ----- CoffeeTweed/Taskbar.qml | 6 - CoffeeTweed/Tray.qml | 64 -------- CoffeeTweed/Tray_model.qml | 20 --- CoffeeTweed/build/build.pro | 27 ++++ CoffeeTweed/build/coffeetweed.desktop | 8 + CoffeeTweed/build/debian/changelog | 5 + CoffeeTweed/build/debian/compat | 1 + CoffeeTweed/build/debian/control | 13 ++ CoffeeTweed/build/debian/rules | 19 +++ CoffeeTweed/build/icon-coffeetweed.png | Bin 0 -> 5784 bytes CoffeeTweed/build/main.cpp | 36 +++++ CoffeeTweed/build/resource.qrc | 51 ++++++ CoffeeTweed/coffeetweed.pro | 2 + CoffeeTweed/content/Button.qml | 72 +++++++++ CoffeeTweed/content/CoffeeTweed.qml | 177 +++++++++++++++++++++ CoffeeTweed/content/Cup.qml | 159 ++++++++++++++++++ CoffeeTweed/content/Tray.qml | 109 +++++++++++++ CoffeeTweed/content/TrayModel.qml | 56 +++++++ CoffeeTweed/content/images/n900/bg.png | Bin 0 -> 92671 bytes CoffeeTweed/content/images/n900/bt_add_off.png | Bin 0 -> 48598 bytes CoffeeTweed/content/images/n900/bt_add_on.png | Bin 0 -> 53703 bytes CoffeeTweed/content/images/n900/bt_remove_off.png | Bin 0 -> 49733 bytes CoffeeTweed/content/images/n900/bt_remove_on.png | Bin 0 -> 54801 bytes CoffeeTweed/content/images/n900/close.png | Bin 0 -> 2485 bytes CoffeeTweed/content/images/n900/coffee_plate.png | Bin 0 -> 18309 bytes CoffeeTweed/content/images/n900/cup_back.png | Bin 0 -> 5327 bytes CoffeeTweed/content/images/n900/cup_blur.png | Bin 0 -> 28242 bytes CoffeeTweed/content/images/n900/cup_content.png | Bin 0 -> 1568 bytes CoffeeTweed/content/images/n900/cup_empty.png | Bin 0 -> 21819 bytes CoffeeTweed/content/images/n900/cup_front.png | Bin 0 -> 21612 bytes CoffeeTweed/content/images/n900/cup_full.png | Bin 0 -> 22368 bytes CoffeeTweed/content/images/n900/cup_smoke.png | Bin 0 -> 11413 bytes CoffeeTweed/content/images/n900/empty_row1.png | Bin 0 -> 6030 bytes CoffeeTweed/content/images/n900/empty_row2.png | Bin 0 -> 5906 bytes CoffeeTweed/content/images/n900/empty_row3.png | Bin 0 -> 5379 bytes CoffeeTweed/content/images/n900/taskbar_bg.png | Bin 0 -> 22414 bytes .../content/images/n900/taskbar_close_bt.png | Bin 0 -> 2243 bytes .../content/images/n900/taskbar_division.png | Bin 0 -> 249 bytes .../content/images/n900/taskbar_home_bt.png | Bin 0 -> 992 bytes .../content/images/n900/taskbar_options_bt.png | Bin 0 -> 301 bytes .../content/images/n900/taskbar_placeholder.png | Bin 0 -> 37381 bytes CoffeeTweed/content/images/s60/bg.png | Bin 0 -> 132596 bytes CoffeeTweed/content/images/s60/bt_add_off.png | Bin 0 -> 38179 bytes CoffeeTweed/content/images/s60/bt_add_on.png | Bin 0 -> 42570 bytes CoffeeTweed/content/images/s60/bt_remove_off.png | Bin 0 -> 38978 bytes CoffeeTweed/content/images/s60/bt_remove_on.png | Bin 0 -> 43225 bytes CoffeeTweed/content/images/s60/close.png | Bin 0 -> 2194 bytes CoffeeTweed/content/images/s60/coffee_plate.png | Bin 0 -> 15075 bytes CoffeeTweed/content/images/s60/cup_back.png | Bin 0 -> 6495 bytes CoffeeTweed/content/images/s60/cup_blur.png | Bin 0 -> 22601 bytes CoffeeTweed/content/images/s60/cup_content.png | Bin 0 -> 4215 bytes CoffeeTweed/content/images/s60/cup_empty.png | Bin 0 -> 15949 bytes CoffeeTweed/content/images/s60/cup_front.png | Bin 0 -> 15148 bytes CoffeeTweed/content/images/s60/cup_full.png | Bin 0 -> 16705 bytes CoffeeTweed/content/images/s60/cup_smoke.png | Bin 0 -> 10814 bytes CoffeeTweed/content/images/s60/empty_row1.png | Bin 0 -> 7328 bytes CoffeeTweed/content/images/s60/empty_row2.png | Bin 0 -> 7214 bytes CoffeeTweed/content/images/s60/empty_row3.png | Bin 0 -> 6885 bytes CoffeeTweed/debian/changelog | 5 + CoffeeTweed/debian/compat | 1 + CoffeeTweed/debian/control | 13 ++ CoffeeTweed/debian/copyright | 44 +++++ CoffeeTweed/debian/rules | 43 +++++ CoffeeTweed/icons/coffeetweed.png | Bin 0 -> 4290 bytes CoffeeTweed/icons/coffeetweed.svg | 117 ++++++++++++++ CoffeeTweed/images/.DS_Store | Bin 6148 -> 0 bytes CoffeeTweed/images/bg.png | Bin 92671 -> 0 bytes CoffeeTweed/images/bt_add_off.png | Bin 48598 -> 0 bytes CoffeeTweed/images/bt_add_on.png | Bin 53703 -> 0 bytes CoffeeTweed/images/bt_remove_off.png | Bin 49733 -> 0 bytes CoffeeTweed/images/bt_remove_on.png | Bin 54801 -> 0 bytes CoffeeTweed/images/coffee_plate.png | Bin 18309 -> 0 bytes CoffeeTweed/images/cup_back.png | Bin 5327 -> 0 bytes CoffeeTweed/images/cup_blur.png | Bin 28242 -> 0 bytes CoffeeTweed/images/cup_content.png | Bin 1568 -> 0 bytes CoffeeTweed/images/cup_empty.png | Bin 21819 -> 0 bytes CoffeeTweed/images/cup_front.png | Bin 21612 -> 0 bytes CoffeeTweed/images/cup_full.png | Bin 22368 -> 0 bytes CoffeeTweed/images/cup_smoke.png | Bin 11413 -> 0 bytes CoffeeTweed/images/empty_row1.png | Bin 6030 -> 0 bytes CoffeeTweed/images/empty_row2.png | Bin 5906 -> 0 bytes CoffeeTweed/images/empty_row3.png | Bin 5379 -> 0 bytes CoffeeTweed/images/taskbar_bg.png | Bin 22414 -> 0 bytes CoffeeTweed/images/taskbar_close_bt.png | Bin 2243 -> 0 bytes CoffeeTweed/images/taskbar_division.png | Bin 249 -> 0 bytes CoffeeTweed/images/taskbar_home_bt.png | Bin 992 -> 0 bytes CoffeeTweed/images/taskbar_options_bt.png | Bin 301 -> 0 bytes CoffeeTweed/images/taskbar_placeholder.png | Bin 37381 -> 0 bytes CoffeeTweed/main_n900.qml | 51 ++++++ CoffeeTweed/main_s60.qml | 50 ++++++ 98 files changed, 1091 insertions(+), 493 deletions(-) delete mode 100644 CoffeeTweed/Add.qml delete mode 100644 CoffeeTweed/CoffeeTweed.qml delete mode 100644 CoffeeTweed/CoffeeTweed.qmlproject delete mode 100644 CoffeeTweed/Counter_cupsDown.qml delete mode 100644 CoffeeTweed/Counter_toGo.qml delete mode 100644 CoffeeTweed/Cup.qml create mode 100644 CoffeeTweed/LICENSE.BSD delete mode 100644 CoffeeTweed/Remove.qml delete mode 100644 CoffeeTweed/Taskbar.qml delete mode 100644 CoffeeTweed/Tray.qml delete mode 100644 CoffeeTweed/Tray_model.qml create mode 100644 CoffeeTweed/build/build.pro create mode 100644 CoffeeTweed/build/coffeetweed.desktop create mode 100644 CoffeeTweed/build/debian/changelog create mode 100644 CoffeeTweed/build/debian/compat create mode 100644 CoffeeTweed/build/debian/control create mode 100755 CoffeeTweed/build/debian/rules create mode 100644 CoffeeTweed/build/icon-coffeetweed.png create mode 100644 CoffeeTweed/build/main.cpp create mode 100644 CoffeeTweed/build/resource.qrc create mode 100644 CoffeeTweed/coffeetweed.pro create mode 100755 CoffeeTweed/content/Button.qml create mode 100755 CoffeeTweed/content/CoffeeTweed.qml create mode 100755 CoffeeTweed/content/Cup.qml create mode 100755 CoffeeTweed/content/Tray.qml create mode 100755 CoffeeTweed/content/TrayModel.qml create mode 100755 CoffeeTweed/content/images/n900/bg.png create mode 100755 CoffeeTweed/content/images/n900/bt_add_off.png create mode 100755 CoffeeTweed/content/images/n900/bt_add_on.png create mode 100755 CoffeeTweed/content/images/n900/bt_remove_off.png create mode 100755 CoffeeTweed/content/images/n900/bt_remove_on.png create mode 100755 CoffeeTweed/content/images/n900/close.png create mode 100755 CoffeeTweed/content/images/n900/coffee_plate.png create mode 100755 CoffeeTweed/content/images/n900/cup_back.png create mode 100755 CoffeeTweed/content/images/n900/cup_blur.png create mode 100755 CoffeeTweed/content/images/n900/cup_content.png create mode 100755 CoffeeTweed/content/images/n900/cup_empty.png create mode 100755 CoffeeTweed/content/images/n900/cup_front.png create mode 100755 CoffeeTweed/content/images/n900/cup_full.png create mode 100755 CoffeeTweed/content/images/n900/cup_smoke.png create mode 100755 CoffeeTweed/content/images/n900/empty_row1.png create mode 100755 CoffeeTweed/content/images/n900/empty_row2.png create mode 100755 CoffeeTweed/content/images/n900/empty_row3.png create mode 100755 CoffeeTweed/content/images/n900/taskbar_bg.png create mode 100755 CoffeeTweed/content/images/n900/taskbar_close_bt.png create mode 100755 CoffeeTweed/content/images/n900/taskbar_division.png create mode 100755 CoffeeTweed/content/images/n900/taskbar_home_bt.png create mode 100755 CoffeeTweed/content/images/n900/taskbar_options_bt.png create mode 100755 CoffeeTweed/content/images/n900/taskbar_placeholder.png create mode 100755 CoffeeTweed/content/images/s60/bg.png create mode 100755 CoffeeTweed/content/images/s60/bt_add_off.png create mode 100755 CoffeeTweed/content/images/s60/bt_add_on.png create mode 100755 CoffeeTweed/content/images/s60/bt_remove_off.png create mode 100755 CoffeeTweed/content/images/s60/bt_remove_on.png create mode 100755 CoffeeTweed/content/images/s60/close.png create mode 100755 CoffeeTweed/content/images/s60/coffee_plate.png create mode 100755 CoffeeTweed/content/images/s60/cup_back.png create mode 100755 CoffeeTweed/content/images/s60/cup_blur.png create mode 100755 CoffeeTweed/content/images/s60/cup_content.png create mode 100755 CoffeeTweed/content/images/s60/cup_empty.png create mode 100755 CoffeeTweed/content/images/s60/cup_front.png create mode 100755 CoffeeTweed/content/images/s60/cup_full.png create mode 100755 CoffeeTweed/content/images/s60/cup_smoke.png create mode 100755 CoffeeTweed/content/images/s60/empty_row1.png create mode 100755 CoffeeTweed/content/images/s60/empty_row2.png create mode 100755 CoffeeTweed/content/images/s60/empty_row3.png create mode 100644 CoffeeTweed/debian/changelog create mode 100644 CoffeeTweed/debian/compat create mode 100644 CoffeeTweed/debian/control create mode 100644 CoffeeTweed/debian/copyright create mode 100755 CoffeeTweed/debian/rules create mode 100755 CoffeeTweed/icons/coffeetweed.png create mode 100755 CoffeeTweed/icons/coffeetweed.svg delete mode 100755 CoffeeTweed/images/.DS_Store delete mode 100755 CoffeeTweed/images/bg.png delete mode 100755 CoffeeTweed/images/bt_add_off.png delete mode 100755 CoffeeTweed/images/bt_add_on.png delete mode 100755 CoffeeTweed/images/bt_remove_off.png delete mode 100755 CoffeeTweed/images/bt_remove_on.png delete mode 100755 CoffeeTweed/images/coffee_plate.png delete mode 100755 CoffeeTweed/images/cup_back.png delete mode 100755 CoffeeTweed/images/cup_blur.png delete mode 100755 CoffeeTweed/images/cup_content.png delete mode 100755 CoffeeTweed/images/cup_empty.png delete mode 100755 CoffeeTweed/images/cup_front.png delete mode 100755 CoffeeTweed/images/cup_full.png delete mode 100755 CoffeeTweed/images/cup_smoke.png delete mode 100755 CoffeeTweed/images/empty_row1.png delete mode 100755 CoffeeTweed/images/empty_row2.png delete mode 100755 CoffeeTweed/images/empty_row3.png delete mode 100755 CoffeeTweed/images/taskbar_bg.png delete mode 100755 CoffeeTweed/images/taskbar_close_bt.png delete mode 100755 CoffeeTweed/images/taskbar_division.png delete mode 100755 CoffeeTweed/images/taskbar_home_bt.png delete mode 100755 CoffeeTweed/images/taskbar_options_bt.png delete mode 100755 CoffeeTweed/images/taskbar_placeholder.png create mode 100755 CoffeeTweed/main_n900.qml create mode 100755 CoffeeTweed/main_s60.qml diff --git a/CoffeeTweed/Add.qml b/CoffeeTweed/Add.qml deleted file mode 100644 index 5a16af9..0000000 --- a/CoffeeTweed/Add.qml +++ /dev/null @@ -1,38 +0,0 @@ -import Qt 4.7 - -Item { - id: bt_add - width: 188; height: 188 - - signal addClicked - - Image { - id: bt_add_off; - source: "images/bt_add_off.png"; - } - - Image { - id: bt_add_on; - source: "images/bt_add_on.png"; - opacity: 0; - Behavior on opacity { NumberAnimation { duration: 150; } } - } - - MouseArea { - anchors.fill: parent - onPressed: { bt_add.state = "pressed" } - onReleased: { bt_add.state = "released"; bt_add.addClicked() } - - } - - states: [ - State { - name: "pressed" - PropertyChanges{ target: bt_add_on; opacity: 1; } - }, - State { - name: "released" - PropertyChanges{ target: bt_add_on; opacity: 0; } - } - ] -} diff --git a/CoffeeTweed/CoffeeTweed.qml b/CoffeeTweed/CoffeeTweed.qml deleted file mode 100644 index ed2fdae..0000000 --- a/CoffeeTweed/CoffeeTweed.qml +++ /dev/null @@ -1,82 +0,0 @@ -import Qt 4.6 - -Rectangle { - id: root - width: 800; height: 480 - - property int coffee_count: 0 - property int coffee_total: 12 - - function add_one() { - if (coffee_count < coffee_total) { - root.coffee_count += 1, - counter_toGo.state = "add_count", - counter_cupsDown.state = "add_count", - cup.state = "less_one", - tray.add_cup(coffee_count) - } - } - function remove_one() { - if (coffee_count > 0) { - root.coffee_count -= 1, - counter_toGo.state = "remove_count", - counter_cupsDown.state = "remove_count", - tray.remove_cup(coffee_count) - } - } - - Image { - source: "images/bg.png" - } - - Taskbar { - anchors.top: root.top - } - - Counter_toGo { - id: counter_toGo - x: 130; y: 120; - } - - Counter_cupsDown { - id: counter_cupsDown - x: 260; y: 86; - } - - Text { - id: toGo; - y: 120; x: 345; - text: "to go"; font.pixelSize: 100; font.letterSpacing: 90; color: "#FFF" - } - Text { - id: cupsDown - y: 86; x: 390; - text: "cups down"; font.pixelSize: 50; font.letterSpacing: 90; color: "#999" - } - - Tray { - id: tray - x: 335; y: 280; - } - - Tray_model{ - id: traymodel - } - - Cup { - id: cup - x: 175; y: 0; - } - - Add { - id: add_btn - x: -7; y: 200 - onAddClicked: add_one() - } - - Remove { - id: remove_btn - x: 619; y: 200 - onRemoveClicked: remove_one() - } -} diff --git a/CoffeeTweed/CoffeeTweed.qmlproject b/CoffeeTweed/CoffeeTweed.qmlproject deleted file mode 100644 index 86a5669..0000000 --- a/CoffeeTweed/CoffeeTweed.qmlproject +++ /dev/null @@ -1,16 +0,0 @@ -// File generated by QtCreator - -import QmlProject 1.0 - -Project { - // Scan current directory for .qml, .js, and image files - QmlFiles { - directory: "." - } - JavaScriptFiles { - directory: "." - } - ImageFiles { - directory: "." - } -} diff --git a/CoffeeTweed/Counter_cupsDown.qml b/CoffeeTweed/Counter_cupsDown.qml deleted file mode 100644 index 9507390..0000000 --- a/CoffeeTweed/Counter_cupsDown.qml +++ /dev/null @@ -1,58 +0,0 @@ -import Qt 4.7 - -Item { - width: 100; height: 90; - state: "default" - - Text { - id: cupsDown_counter - x: 20; y: 0 - width: parent.width - - text: "0" - color: "#999"; font.bold: true; font.pixelSize: 50; smooth: true; horizontalAlignment: "AlignRight" - - Behavior on opacity { - NumberAnimation { duration: 300;} - } - } - - function reset_counter_state() { - counter_cupsDown.state = "default" - } - - states: [ - State { - name: "default" - }, - State { - name: "add_count" - }, - State { - name: "remove_count" - } - ] - - transitions: [ - Transition { - from: "default"; to: "add_count" - SequentialAnimation { - PropertyAnimation { target: cupsDown_counter; property: "opacity"; to: 0; } - PropertyAction{ target: cupsDown_counter; property: "text"; value: coffee_count } - PauseAnimation { duration: 1500; } - PropertyAnimation { target: cupsDown_counter; property: "opacity"; to: 1; } - ScriptAction { script: reset_counter_state() } - } - }, - Transition { - from: "default"; to: "remove_count" - SequentialAnimation { - PropertyAnimation { target: cupsDown_counter; property: "opacity"; to: 0; } - PropertyAction{ target: cupsDown_counter; property: "text"; value: coffee_count } - PauseAnimation { duration: 300; } - PropertyAnimation { target: cupsDown_counter; property: "opacity"; to: 1; } - ScriptAction { script: reset_counter_state() } - } - } - ] -} diff --git a/CoffeeTweed/Counter_toGo.qml b/CoffeeTweed/Counter_toGo.qml deleted file mode 100644 index 2bf8d88..0000000 --- a/CoffeeTweed/Counter_toGo.qml +++ /dev/null @@ -1,58 +0,0 @@ -import Qt 4.7 - -Item { - width: 170; height: 90; - state: "default" - - Text { - id: toGo_counter - x: 20; y: 0 - width: parent.width - - text: coffee_total - color: "#FFF"; font.bold: true; font.pixelSize: 100; smooth: true; horizontalAlignment: "AlignRight" - - Behavior on opacity { - NumberAnimation { duration: 300;} - } - } - - function reset_counter_state() { - counter_toGo.state = "default" - } - - states: [ - State { - name: "default" - }, - State { - name: "add_count" - }, - State { - name: "remove_count" - } - ] - - transitions: [ - Transition { - from: "default"; to: "add_count" - SequentialAnimation { - PropertyAnimation { target: toGo_counter; property: "opacity"; to: 0; } - PropertyAction{ target: toGo_counter; property: "text"; value: coffee_total - coffee_count } - PauseAnimation { duration: 1500; } - PropertyAnimation { target: toGo_counter; property: "opacity"; to: 1; } - ScriptAction { script: reset_counter_state() } - } - }, - Transition { - from: "default"; to: "remove_count" - SequentialAnimation { - PropertyAnimation { target: toGo_counter; property: "opacity"; to: 0; } - PropertyAction{ target: toGo_counter; property: "text"; value: coffee_total - coffee_count } - PauseAnimation { duration: 300; } - PropertyAnimation { target: toGo_counter; property: "opacity"; to: 1; } - ScriptAction { script: reset_counter_state() } - } - } - ] -} diff --git a/CoffeeTweed/Cup.qml b/CoffeeTweed/Cup.qml deleted file mode 100644 index 93fc385..0000000 --- a/CoffeeTweed/Cup.qml +++ /dev/null @@ -1,112 +0,0 @@ -import Qt 4.7 - -Item { - id: coffee_cup - width: 190; height: 480 - - function return_to_ashes() { - coffee_cup.state = ""; - } - - Image { - id: cup_plate - source: "images/coffee_plate.png"; y: 365 - } - - Item { - id: cup_full - width: 135; height: 138; x: 7; y: 280 - Image { source: "images/cup_back.png"; } - - Item { id: cup_content; Image { source: "images/cup_content.png"; } } - Item { id: cup_front; Image { source: "images/cup_front.png"; } } - } - - Item { - id: cup_empty - width: 135; height: 138; x: 7; y: 280; opacity: 0 - Image { source: "images/cup_empty.png"; } - } - - Item { - id: cup_smoke - width: 233; height: 258; y: 45; x: -13; opacity: 1 - Image { source: "images/cup_smoke.png" } - } - - Item { - id: cup_running - width: 135; height: 188; x: 7; y: -228; opacity: 0 - Image { source: "images/cup_blur.png"; } - } - - states: [ - State{ - name: "less_one" - } - ] - - transitions: [ - Transition { - from: "" - to: "less_one" - - SequentialAnimation{ - - // Empty the cup and fade the smoke - ParallelAnimation { - PropertyAnimation { target: cup_smoke; property: "opacity"; to: 0; duration: 500; } - PropertyAnimation { target: cup_content; property: "y"; to: 25; duration: 500; } - } - - // Change the full cup composition by the empty cup - PropertyAction { target: cup_empty; property: "opacity"; value: 1 } - PropertyAction { target: cup_full; property: "opacity"; value: 0; } - - // Pause for coffee - PauseAnimation { duration: 100; } - - // Fade out the empty cup - PropertyAnimation { target: cup_empty; property: "opacity"; to: 0; duration: 200; } - - // Send the empty cup to the top and update the number - PropertyAction { target: cup_empty; property: "y"; value: -188; } - - // Turn on the blur and empty cups - PropertyAction { target: cup_running; property: "opacity"; value: 1; } - PropertyAction { target: cup_empty; property: "opacity"; value: 1; } - - // Clean cup coming! - ParallelAnimation { - PropertyAnimation { target: cup_running; property: "y"; to: 235; duration: 300; } - PropertyAnimation { target: cup_empty; property: "y"; to: 285; duration: 300; } - } - - // Landing in the plate - ParallelAnimation { - PropertyAnimation { target: cup_empty; property: "y"; to: 280; duration: 150; } - PropertyAnimation { target: cup_running; property: "opacity"; to: 0; duration: 200; } - } - - // Get the blured cup to the original place - PropertyAction { target: cup_running; property: "y"; value: -228; } - - // Wait for the waiter - PauseAnimation { duration: 500; } - - // Change the empty cup by the full cup composition - PropertyAction { target: cup_full; property: "opacity"; value: 1; } - PropertyAction { target: cup_empty; property: "opacity"; value: 0; } - - // Here is your coffee, sir - PropertyAnimation { target: cup_content; property: "y"; to: 0; duration: 400; } - PropertyAnimation { target: cup_smoke; property: "opacity"; to: 1; duration: 700; } - - // Ready for the next turn - ScriptAction { script: return_to_ashes() } - } - - } - ] - -} diff --git a/CoffeeTweed/LICENSE.BSD b/CoffeeTweed/LICENSE.BSD new file mode 100644 index 0000000..13f338b --- /dev/null +++ b/CoffeeTweed/LICENSE.BSD @@ -0,0 +1,32 @@ +Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).* +All rights reserved. +Contact: Nokia Corporation (qt-info@nokia.com) + +"Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor + the names of its contributors may be used to endorse or promote + products derived from this software without specific prior written + permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE." diff --git a/CoffeeTweed/Remove.qml b/CoffeeTweed/Remove.qml deleted file mode 100644 index 66c35f1..0000000 --- a/CoffeeTweed/Remove.qml +++ /dev/null @@ -1,39 +0,0 @@ -import Qt 4.7 - -Item { - id: bt_remove - width: 188; height: 188 - - signal removeClicked - - Image { - id: bt_remove_off; - source: "images/bt_remove_off.png"; - } - - Image { - id: bt_remove_on; - source: "images/bt_remove_on.png"; - opacity: 0; - Behavior on opacity { NumberAnimation { duration: 150; } } - } - - MouseArea { - anchors.fill: parent - onPressed: { bt_remove.state = "pressed" } - onReleased: { bt_remove.state = "released"; bt_remove.removeClicked() } - - } - - states: [ - State { - name: "pressed" - PropertyChanges{ target: bt_remove_on; opacity: 1; } - }, - State { - name: "released" - PropertyChanges{ target: bt_remove_on; opacity: 0; } - } - ] - -} diff --git a/CoffeeTweed/Taskbar.qml b/CoffeeTweed/Taskbar.qml deleted file mode 100644 index f64ae17..0000000 --- a/CoffeeTweed/Taskbar.qml +++ /dev/null @@ -1,6 +0,0 @@ -import Qt 4.7 - -Rectangle { - width: 800; height: 55 - Image { source: "images/taskbar_placeholder.png" } -} diff --git a/CoffeeTweed/Tray.qml b/CoffeeTweed/Tray.qml deleted file mode 100644 index 608317a..0000000 --- a/CoffeeTweed/Tray.qml +++ /dev/null @@ -1,64 +0,0 @@ -import Qt 4.7 - -Item { - id:cuptray - width: 330; height: 110; - - Tray_model{ - id: traymodel - } - - function add_cup(indx) { - var cupindx = indx -1; - traymodel.set(cupindx, { cupstate: "display" }); - } - - function remove_cup(indx) { - var cupindx = indx; - traymodel.set(cupindx, { cupstate: "hide" }); - } - - Component { - id: emptycup - Item { - id: empty_cup - width: 69; height: 67 - x: pos_x; y: pos_y; z: pos_z - opacity: 0 - state: cupstate - - Image { source: img_src } - - Behavior on opacity { NumberAnimation { duration: 400 } } - - states: [ - State { - name: "display" - }, - State { - name: "hide" - } - ] - transitions: [ - Transition { - from: "*"; to: "hide" - SequentialAnimation { - PropertyAnimation { target: empty_cup; property: "opacity"; to: 0; } - } - }, - Transition { - from: "hide"; to: "display" - SequentialAnimation { - PropertyAnimation { target: empty_cup; property: "opacity"; to: 1; } - } - } - ] - } - } - - Repeater { - model: traymodel - delegate: emptycup - } - -} diff --git a/CoffeeTweed/Tray_model.qml b/CoffeeTweed/Tray_model.qml deleted file mode 100644 index bbbcb38..0000000 --- a/CoffeeTweed/Tray_model.qml +++ /dev/null @@ -1,20 +0,0 @@ -import Qt 4.7 - -ListModel { - id: tray_model - - ListElement { cupstate: "hide"; img_src: "images/empty_row1.png"; pos_x: 64; pos_y: 40; pos_z: 3 } - ListElement { cupstate: "hide"; img_src: "images/empty_row1.png"; pos_x: 124; pos_y: 40; pos_z: 3 } - ListElement { cupstate: "hide"; img_src: "images/empty_row1.png"; pos_x: 184; pos_y: 40; pos_z: 3 } - ListElement { cupstate: "hide"; img_src: "images/empty_row1.png"; pos_x: 244; pos_y: 40; pos_z: 3 } - - ListElement { cupstate: "hide"; img_src: "images/empty_row2.png"; pos_x: 32; pos_y: 20; pos_z: 2 } - ListElement { cupstate: "hide"; img_src: "images/empty_row2.png"; pos_x: 92; pos_y: 20; pos_z: 2 } - ListElement { cupstate: "hide"; img_src: "images/empty_row2.png"; pos_x: 152; pos_y: 20; pos_z: 2 } - ListElement { cupstate: "hide"; img_src: "images/empty_row2.png"; pos_x: 212; pos_y: 20; pos_z: 2 } - - ListElement { cupstate: "hide"; img_src: "images/empty_row3.png"; pos_x: 0; pos_y: 0; pos_z: 1 } - ListElement { cupstate: "hide"; img_src: "images/empty_row3.png"; pos_x: 60; pos_y: 0; pos_z: 1 } - ListElement { cupstate: "hide"; img_src: "images/empty_row3.png"; pos_x: 120; pos_y: 0; pos_z: 1 } - ListElement { cupstate: "hide"; img_src: "images/empty_row3.png"; pos_x: 180; pos_y: 0; pos_z: 1 } -} diff --git a/CoffeeTweed/build/build.pro b/CoffeeTweed/build/build.pro new file mode 100644 index 0000000..36b2a4f --- /dev/null +++ b/CoffeeTweed/build/build.pro @@ -0,0 +1,27 @@ +TEMPLATE = app +TARGET = coffeetweed + +QT += declarative + +symbian { + LIBS += -lesock -lconnmon -lcone -lavkon + + TARGET.UID3 = 0xe4431593 + TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 + + DEPLOYMENT.installer_header = 0xA000D7CE +} + +linux-g++-maemo5 { + INSTALLS += desktop + desktop.path = /usr/share/applications/hildon + desktop.files = coffeetweed.desktop + + INSTALLS += icon64 + icon64.path = /usr/share/icons/hicolor/64x64/apps + icon64.files = icon-coffeetweed.png +} + +SOURCES += main.cpp + +RESOURCES += resource.qrc diff --git a/CoffeeTweed/build/coffeetweed.desktop b/CoffeeTweed/build/coffeetweed.desktop new file mode 100644 index 0000000..dffb1d9 --- /dev/null +++ b/CoffeeTweed/build/coffeetweed.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Coffee Tweed +Categories=Applications +Exec=/usr/bin/coffeetweed +Icon=coffeetweed +X-Icon-path=/usr/share/pixmaps/ +X-Osso-Type=application/x-executable diff --git a/CoffeeTweed/build/debian/changelog b/CoffeeTweed/build/debian/changelog new file mode 100644 index 0000000..b477a1c --- /dev/null +++ b/CoffeeTweed/build/debian/changelog @@ -0,0 +1,5 @@ +coffeetweed (0.1-1) unstable; urgency=low + + * Initial release + + -- Adriano Rezende Thu, 25 Nov 2010 10:37:30 -0300 diff --git a/CoffeeTweed/build/debian/compat b/CoffeeTweed/build/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/CoffeeTweed/build/debian/compat @@ -0,0 +1 @@ +5 diff --git a/CoffeeTweed/build/debian/control b/CoffeeTweed/build/debian/control new file mode 100644 index 0000000..c10dce0 --- /dev/null +++ b/CoffeeTweed/build/debian/control @@ -0,0 +1,13 @@ +Source: coffeetweed +Section: user/Other +Priority: extra +Maintainer: Adriano Rezende +Build-Depends: debhelper (>= 5), libqt4-experimental-dev +Standards-Version: 3.8.4 + +Package: coffeetweed +Section: user/Other +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Coffee Tweed + Qt Quick demo. diff --git a/CoffeeTweed/build/debian/rules b/CoffeeTweed/build/debian/rules new file mode 100755 index 0000000..f62b045 --- /dev/null +++ b/CoffeeTweed/build/debian/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +DEB_BUILDDIR = debian/builddeb +DEB_QMAKE_ARGS = $(CURDIR)/build.pro + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/qmake.mk + +clear:: + rm -fr $(DEB_BUILDDIR) diff --git a/CoffeeTweed/build/icon-coffeetweed.png b/CoffeeTweed/build/icon-coffeetweed.png new file mode 100644 index 0000000..288227f Binary files /dev/null and b/CoffeeTweed/build/icon-coffeetweed.png differ diff --git a/CoffeeTweed/build/main.cpp b/CoffeeTweed/build/main.cpp new file mode 100644 index 0000000..c766754 --- /dev/null +++ b/CoffeeTweed/build/main.cpp @@ -0,0 +1,36 @@ +#include +#include +#include + +#ifdef Q_OS_SYMBIAN +#include +#include +#endif + + +int main(int argc, char **argv) +{ + QApplication app(argc, argv); + +#ifdef Q_OS_SYMBIAN + // lock portrait mode for symbian + CAknAppUi *akn = dynamic_cast(CEikonEnv::Static()->AppUi()); + TRAPD(error, if (akn) akn->SetOrientationL(CAknAppUi::EAppUiOrientationLandscape); ); +#endif + + QDeclarativeView view; +#ifdef Q_OS_SYMBIAN + view.setSource(QUrl("qrc:main_s60.qml")); +#else + view.setSource(QUrl("qrc:main_n900.qml")); +#endif + QObject::connect(view.engine(), SIGNAL(quit()), qApp, SLOT(quit())); + +#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) + view.showFullScreen(); +#else + view.show(); +#endif + + return app.exec(); +} diff --git a/CoffeeTweed/build/resource.qrc b/CoffeeTweed/build/resource.qrc new file mode 100644 index 0000000..b21a3cf --- /dev/null +++ b/CoffeeTweed/build/resource.qrc @@ -0,0 +1,51 @@ + + + ../content/Cup.qml + ../content/TrayModel.qml + ../content/images/n900/close.png + ../content/images/n900/bt_add_off.png + ../content/images/n900/taskbar_division.png + ../content/images/n900/bt_add_on.png + ../content/images/n900/empty_row2.png + ../content/images/n900/taskbar_bg.png + ../content/images/n900/cup_smoke.png + ../content/images/n900/coffee_plate.png + ../content/images/n900/empty_row1.png + ../content/images/n900/cup_back.png + ../content/images/n900/cup_empty.png + ../content/images/n900/empty_row3.png + ../content/images/n900/taskbar_placeholder.png + ../content/images/n900/bt_remove_off.png + ../content/images/n900/taskbar_home_bt.png + ../content/images/n900/taskbar_close_bt.png + ../content/images/n900/taskbar_options_bt.png + ../content/images/n900/cup_full.png + ../content/images/n900/cup_front.png + ../content/images/n900/cup_blur.png + ../content/images/n900/bt_remove_on.png + ../content/images/n900/bg.png + ../content/images/n900/cup_content.png + ../content/images/s60/bt_add_off.png + ../content/images/s60/bt_add_on.png + ../content/images/s60/empty_row2.png + ../content/images/s60/cup_smoke.png + ../content/images/s60/coffee_plate.png + ../content/images/s60/empty_row1.png + ../content/images/s60/cup_back.png + ../content/images/s60/cup_empty.png + ../content/images/s60/empty_row3.png + ../content/images/s60/bt_remove_off.png + ../content/images/s60/cup_full.png + ../content/images/s60/cup_front.png + ../content/images/s60/cup_blur.png + ../content/images/s60/bt_remove_on.png + ../content/images/s60/bg.png + ../content/images/s60/close.png + ../content/images/s60/cup_content.png + ../content/Tray.qml + ../content/Button.qml + ../content/CoffeeTweed.qml + ../main_s60.qml + ../main_n900.qml + + diff --git a/CoffeeTweed/coffeetweed.pro b/CoffeeTweed/coffeetweed.pro new file mode 100644 index 0000000..5d88636 --- /dev/null +++ b/CoffeeTweed/coffeetweed.pro @@ -0,0 +1,2 @@ +TEMPLATE = subdirs +SUBDIRS = build diff --git a/CoffeeTweed/content/Button.qml b/CoffeeTweed/content/Button.qml new file mode 100755 index 0000000..675227c --- /dev/null +++ b/CoffeeTweed/content/Button.qml @@ -0,0 +1,72 @@ +/**************************************************************************** +** +** This file is part of CoffeeTweed +** +** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).* +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** You may use this file under the terms of the BSD license as follows: +** +** "Redistribution and use in source and binary forms, with or without +** modification, are permitted provided that the following conditions +** are met: +** +** * Redistributions of source code must retain the above copyright +** notice, this list of conditions and the following disclaimer. +** +** * Redistributions in binary form must reproduce the above copyright +** notice, this list of conditions and the following disclaimer in the +** documentation and/or other materials provided with the distribution. +** +** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor +** the names of its contributors may be used to endorse or promote +** products derived from this software without specific prior written +** permission. +** +** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +** FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +** COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +** BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +** ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +** POSSIBILITY OF SUCH DAMAGE." +** +****************************************************************************/ + +import Qt 4.7 + +Item { + id: button + width: imageOff.width + height: imageOff.height + + property string sourceOn + property string sourceOff + + signal clicked() + + Image { + id: imageOff + source: sourceOff + } + + Image { + id: imageOn + source: sourceOn + opacity: 0 + Behavior on opacity { NumberAnimation { duration: 150; } } + } + + MouseArea { + anchors.fill: parent + onClicked: button.clicked(); + onPressed: imageOn.opacity = 1.0; + onReleased: imageOn.opacity = 0.0; + } +} diff --git a/CoffeeTweed/content/CoffeeTweed.qml b/CoffeeTweed/content/CoffeeTweed.qml new file mode 100755 index 0000000..905d286 --- /dev/null +++ b/CoffeeTweed/content/CoffeeTweed.qml @@ -0,0 +1,177 @@ +/**************************************************************************** +** +** This file is part of CoffeeTweed +** +** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).* +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** You may use this file under the terms of the BSD license as follows: +** +** "Redistribution and use in source and binary forms, with or without +** modification, are permitted provided that the following conditions +** are met: +** +** * Redistributions of source code must retain the above copyright +** notice, this list of conditions and the following disclaimer. +** +** * Redistributions in binary form must reproduce the above copyright +** notice, this list of conditions and the following disclaimer in the +** documentation and/or other materials provided with the distribution. +** +** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor +** the names of its contributors may be used to endorse or promote +** products derived from this software without specific prior written +** permission. +** +** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +** FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +** COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +** BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +** ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +** POSSIBILITY OF SUCH DAMAGE." +** +****************************************************************************/ + +import Qt 4.7 + +Rectangle { + id: root + + property real scaleFactor: root.width/800.0 + + property int coffeeCount: 0 + property int coffeeTotal: 12 + property bool isAdding: false + property bool isAnimating: false + property bool animationHappening: root.isAnimating || cup.isAnimating + + signal doTransition() + + function addOne() { + if (!animationHappening && coffeeCount < coffeeTotal) { + isAdding = true; + isAnimating = true; + cup.state = "less_one"; + doTransition(); + tray.addCup(coffeeCount + 1); + } + } + + function removeOne() { + if (!animationHappening && coffeeCount > 0) { + isAdding = false; + isAnimating = true; + doTransition(); + tray.removeCup(coffeeCount - 1); + } + } + + Image { + id: bg + source: folder + "bg.png" + anchors.bottom: root.bottom + } + + Text { + id: counterUp + y: 65 * scaleFactor + text: coffeeTotal - coffeeCount + color: "white" + font.bold: true + font.pixelSize: 100 + anchors.right: toGo.left + anchors.rightMargin: 12 + } + + Text { + id: counterDown + text: coffeeCount + y: 31 * scaleFactor + color: "#999999" + font.bold: true + font.pixelSize: 50 * scaleFactor + anchors.right: cupsDown.left + anchors.rightMargin: 12 + } + + Text { + id: toGo; + x: 345 * scaleFactor + y: 65 * scaleFactor + text: "to go" + font.pixelSize: 100 * scaleFactor + font.letterSpacing: -2 + color: "white" + } + + Text { + id: cupsDown + x: 390 * scaleFactor + y: 31 * scaleFactor + text: "cups down" + font.pixelSize: 50 * scaleFactor + font.letterSpacing: -2 + color: "#999" + } + + onDoTransition: transition.running = true; + SequentialAnimation { id: transition + running: false + loops: 1 + ParallelAnimation { + PropertyAnimation { target: counterUp; property: "opacity"; to: 0.0; } + PropertyAnimation { target: counterDown; property: "opacity"; to: 0.0; } + } + PauseAnimation { duration: isAdding ? 1500 : 300; } + PropertyAction { target: root; property: "coffeeCount"; value: coffeeCount + (isAdding ? 1 : -1); } + ParallelAnimation { + PropertyAnimation { target: counterUp; property: "opacity"; to: 1.0; } + PropertyAnimation { target: counterDown; property: "opacity"; to: 1.0; } + } + PropertyAction { target: root; property: "isAnimating"; value: false; } + } + + Tray { + id: tray + x: 335 * scaleFactor + y: 225 * scaleFactor + } + + Cup { + id: cup + x: 120 * scaleFactor + y: 0 + } + + Button { + x: -7 * scaleFactor + y: 100 * scaleFactor + sourceOn: folder+"bt_add_on.png" + sourceOff: folder+"bt_add_off.png" + onClicked: addOne() + } + + Button { + x: 619 * scaleFactor + y: 100 * scaleFactor + sourceOn: folder+"bt_remove_on.png" + sourceOff: folder+"bt_remove_off.png" + onClicked: removeOne() + } + + Button { + id: bt_close + anchors.top: parent.top + anchors.right: parent.right + sourceOff: folder + "close.png" + + onClicked: Qt.quit() + } +} diff --git a/CoffeeTweed/content/Cup.qml b/CoffeeTweed/content/Cup.qml new file mode 100755 index 0000000..69d553b --- /dev/null +++ b/CoffeeTweed/content/Cup.qml @@ -0,0 +1,159 @@ +/**************************************************************************** +** +** This file is part of CoffeeTweed +** +** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).* +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** You may use this file under the terms of the BSD license as follows: +** +** "Redistribution and use in source and binary forms, with or without +** modification, are permitted provided that the following conditions +** are met: +** +** * Redistributions of source code must retain the above copyright +** notice, this list of conditions and the following disclaimer. +** +** * Redistributions in binary form must reproduce the above copyright +** notice, this list of conditions and the following disclaimer in the +** documentation and/or other materials provided with the distribution. +** +** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor +** the names of its contributors may be used to endorse or promote +** products derived from this software without specific prior written +** permission. +** +** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +** FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +** COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +** BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +** ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +** POSSIBILITY OF SUCH DAMAGE." +** +****************************************************************************/ + +import Qt 4.7 + +Item { + id: coffee_cup + property bool isAnimating: coffee_cup.state == "less_one" + width: 190 * root.scaleFactor + height: 480 * root.scaleFactor + + function return_to_ashes() { + coffee_cup.state = ""; + } + + Image { + id: cup_plate + y: 315 * root.scaleFactor + x: 40 * root.scaleFactor + source: folder + "coffee_plate.png" + } + + Image { + id: cup_full + x: 47 * root.scaleFactor + y: 225 * root.scaleFactor + source: folder + "cup_back.png" + + Image { id: cup_content; source: folder + "cup_content.png"; } + Image { id: cup_front; source: folder + "cup_front.png"; } + } + + Image { + id: cup_empty + x: 47 * root.scaleFactor + y: 225 * root.scaleFactor + opacity: 0 + source: folder + "cup_empty.png" + } + + Image { + id: cup_smoke + x: 33 * root.scaleFactor + y: -10 * root.scaleFactor + source: folder + "cup_smoke.png" + } + + Image { + id: cup_running + x: 47 * root.scaleFactor + y: -283 * root.scaleFactor + opacity: 0 + source: folder + "cup_blur.png" + } + + states: [ + State{ + name: "less_one" + } + ] + + transitions: [ + Transition { + from: ""; to: "less_one" + + SequentialAnimation { + // Empty the cup and fade the smoke + ParallelAnimation { + PropertyAnimation { target: cup_smoke; property: "opacity"; to: 0; duration: 500; } + PropertyAnimation { target: cup_content; property: "y"; to: 20 * root.scaleFactor; duration: 500; } + } + + // Change the full cup composition by the empty cup + PropertyAction { target: cup_empty; property: "opacity"; value: 1 } + PropertyAction { target: cup_full; property: "opacity"; value: 0; } + + // Pause for coffee + PauseAnimation { duration: 100; } + + // Fade out the empty cup + PropertyAnimation { target: cup_empty; property: "opacity"; to: 0; duration: 200; } + + // Send the empty cup to the top and update the number + PropertyAction { target: cup_empty; property: "y"; value: -243 * root.scaleFactor; } + + // Turn on the blur and empty cups + PropertyAction { target: cup_running; property: "opacity"; value: 1; } + PropertyAction { target: cup_empty; property: "opacity"; value: 1; } + + // Clean cup coming! + ParallelAnimation { + PropertyAnimation { target: cup_running; property: "y"; to: 180 * root.scaleFactor; duration: 300; } + PropertyAnimation { target: cup_empty; property: "y"; to: 230 * root.scaleFactor; duration: 300; } + } + + // Landing in the plate + ParallelAnimation { + PropertyAnimation { target: cup_empty; property: "y"; to: 225 * root.scaleFactor; duration: 150; } + PropertyAnimation { target: cup_running; property: "opacity"; to: 0; duration: 200; } + } + + // Get the blured cup to the original place + PropertyAction { target: cup_running; property: "y"; value: -283 * root.scaleFactor; } + + // Wait for the waiter + PauseAnimation { duration: 500; } + + // Change the empty cup by the full cup composition + PropertyAction { target: cup_full; property: "opacity"; value: 1; } + PropertyAction { target: cup_empty; property: "opacity"; value: 0; } + + // Here is your coffee, sir + PropertyAnimation { target: cup_content; property: "y"; to: 0; duration: 400; } + PropertyAnimation { target: cup_smoke; property: "opacity"; to: 1; duration: 700; } + + // Ready for the next turn + ScriptAction { script: return_to_ashes() } + } + } + ] +} diff --git a/CoffeeTweed/content/Tray.qml b/CoffeeTweed/content/Tray.qml new file mode 100755 index 0000000..0e202a9 --- /dev/null +++ b/CoffeeTweed/content/Tray.qml @@ -0,0 +1,109 @@ +/**************************************************************************** +** +** This file is part of CoffeeTweed +** +** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).* +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** You may use this file under the terms of the BSD license as follows: +** +** "Redistribution and use in source and binary forms, with or without +** modification, are permitted provided that the following conditions +** are met: +** +** * Redistributions of source code must retain the above copyright +** notice, this list of conditions and the following disclaimer. +** +** * Redistributions in binary form must reproduce the above copyright +** notice, this list of conditions and the following disclaimer in the +** documentation and/or other materials provided with the distribution. +** +** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor +** the names of its contributors may be used to endorse or promote +** products derived from this software without specific prior written +** permission. +** +** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +** FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +** COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +** BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +** ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +** POSSIBILITY OF SUCH DAMAGE." +** +****************************************************************************/ + +import Qt 4.7 + +Item { + id: cuptray + width: 330 + height: 110 + + TrayModel{ + id: trayModel + } + + function addCup(index) { + var cupIndex = index - 1; + trayModel.set(cupIndex, { cupState: "display" }); + } + + function removeCup(index) { + var cupIndex = index; + trayModel.set(cupIndex, { cupState: "hidden" }); + } + + Component { + id: emptyCup + + Item { + id: cupItem + x: xPos + y: yPos + z: zPos + width: 69 + height: 67 + state: cupState + + Image { + id: cupImage + source: imageSource + opacity: 0 + } + + states: [ + State { + name: "display" + PropertyChanges { target: cupImage; opacity: 1.0; } + }, + State { + name: "hidden" + PropertyChanges { target: cupImage; opacity: 0.0; } + } + ] + + transitions: [ + Transition { + from: "*"; to: "hidden" + PropertyAnimation { target: cupImage; property: "opacity"; duration: 400; } + }, + Transition { + from: "hidden"; to: "display" + PropertyAnimation { target: cupImage; property: "opacity"; duration: 400; } + } + ] + } + } + + Repeater { + model: trayModel + delegate: emptyCup + } +} diff --git a/CoffeeTweed/content/TrayModel.qml b/CoffeeTweed/content/TrayModel.qml new file mode 100755 index 0000000..211d47a --- /dev/null +++ b/CoffeeTweed/content/TrayModel.qml @@ -0,0 +1,56 @@ +/**************************************************************************** +** +** This file is part of CoffeeTweed +** +** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).* +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** You may use this file under the terms of the BSD license as follows: +** +** "Redistribution and use in source and binary forms, with or without +** modification, are permitted provided that the following conditions +** are met: +** +** * Redistributions of source code must retain the above copyright +** notice, this list of conditions and the following disclaimer. +** +** * Redistributions in binary form must reproduce the above copyright +** notice, this list of conditions and the following disclaimer in the +** documentation and/or other materials provided with the distribution. +** +** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor +** the names of its contributors may be used to endorse or promote +** products derived from this software without specific prior written +** permission. +** +** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +** FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +** COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +** BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +** ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +** POSSIBILITY OF SUCH DAMAGE." +** +****************************************************************************/ + +import Qt 4.7 + +ListModel { + id: trayModel + + Component.onCompleted:{ + for(var z = 3; z > 0; z--){ + for(var i = 1; i < 5; i++){ + var y = ((z - 1)*20)*root.scaleFactor; + var x = ((z - 1)*32 + (i - 1)*60)*root.scaleFactor; + append({ xPos: x, yPos: y, zPos: z, cupState:"hidden", imageSource: root.folder + "empty_row"+ (4-z) + ".png"}); + } + } + } +} diff --git a/CoffeeTweed/content/images/n900/bg.png b/CoffeeTweed/content/images/n900/bg.png new file mode 100755 index 0000000..ef08d0e Binary files /dev/null and b/CoffeeTweed/content/images/n900/bg.png differ diff --git a/CoffeeTweed/content/images/n900/bt_add_off.png b/CoffeeTweed/content/images/n900/bt_add_off.png new file mode 100755 index 0000000..b317af6 Binary files /dev/null and b/CoffeeTweed/content/images/n900/bt_add_off.png differ diff --git a/CoffeeTweed/content/images/n900/bt_add_on.png b/CoffeeTweed/content/images/n900/bt_add_on.png new file mode 100755 index 0000000..593cf2e Binary files /dev/null and b/CoffeeTweed/content/images/n900/bt_add_on.png differ diff --git a/CoffeeTweed/content/images/n900/bt_remove_off.png b/CoffeeTweed/content/images/n900/bt_remove_off.png new file mode 100755 index 0000000..c5bd438 Binary files /dev/null and b/CoffeeTweed/content/images/n900/bt_remove_off.png differ diff --git a/CoffeeTweed/content/images/n900/bt_remove_on.png b/CoffeeTweed/content/images/n900/bt_remove_on.png new file mode 100755 index 0000000..2b6c9e2 Binary files /dev/null and b/CoffeeTweed/content/images/n900/bt_remove_on.png differ diff --git a/CoffeeTweed/content/images/n900/close.png b/CoffeeTweed/content/images/n900/close.png new file mode 100755 index 0000000..e86141a Binary files /dev/null and b/CoffeeTweed/content/images/n900/close.png differ diff --git a/CoffeeTweed/content/images/n900/coffee_plate.png b/CoffeeTweed/content/images/n900/coffee_plate.png new file mode 100755 index 0000000..4abbfb9 Binary files /dev/null and b/CoffeeTweed/content/images/n900/coffee_plate.png differ diff --git a/CoffeeTweed/content/images/n900/cup_back.png b/CoffeeTweed/content/images/n900/cup_back.png new file mode 100755 index 0000000..c553027 Binary files /dev/null and b/CoffeeTweed/content/images/n900/cup_back.png differ diff --git a/CoffeeTweed/content/images/n900/cup_blur.png b/CoffeeTweed/content/images/n900/cup_blur.png new file mode 100755 index 0000000..2add637 Binary files /dev/null and b/CoffeeTweed/content/images/n900/cup_blur.png differ diff --git a/CoffeeTweed/content/images/n900/cup_content.png b/CoffeeTweed/content/images/n900/cup_content.png new file mode 100755 index 0000000..848a691 Binary files /dev/null and b/CoffeeTweed/content/images/n900/cup_content.png differ diff --git a/CoffeeTweed/content/images/n900/cup_empty.png b/CoffeeTweed/content/images/n900/cup_empty.png new file mode 100755 index 0000000..6201666 Binary files /dev/null and b/CoffeeTweed/content/images/n900/cup_empty.png differ diff --git a/CoffeeTweed/content/images/n900/cup_front.png b/CoffeeTweed/content/images/n900/cup_front.png new file mode 100755 index 0000000..81c5da6 Binary files /dev/null and b/CoffeeTweed/content/images/n900/cup_front.png differ diff --git a/CoffeeTweed/content/images/n900/cup_full.png b/CoffeeTweed/content/images/n900/cup_full.png new file mode 100755 index 0000000..7470d53 Binary files /dev/null and b/CoffeeTweed/content/images/n900/cup_full.png differ diff --git a/CoffeeTweed/content/images/n900/cup_smoke.png b/CoffeeTweed/content/images/n900/cup_smoke.png new file mode 100755 index 0000000..aa98b3b Binary files /dev/null and b/CoffeeTweed/content/images/n900/cup_smoke.png differ diff --git a/CoffeeTweed/content/images/n900/empty_row1.png b/CoffeeTweed/content/images/n900/empty_row1.png new file mode 100755 index 0000000..9023f93 Binary files /dev/null and b/CoffeeTweed/content/images/n900/empty_row1.png differ diff --git a/CoffeeTweed/content/images/n900/empty_row2.png b/CoffeeTweed/content/images/n900/empty_row2.png new file mode 100755 index 0000000..2a8fa2f Binary files /dev/null and b/CoffeeTweed/content/images/n900/empty_row2.png differ diff --git a/CoffeeTweed/content/images/n900/empty_row3.png b/CoffeeTweed/content/images/n900/empty_row3.png new file mode 100755 index 0000000..211a6d7 Binary files /dev/null and b/CoffeeTweed/content/images/n900/empty_row3.png differ diff --git a/CoffeeTweed/content/images/n900/taskbar_bg.png b/CoffeeTweed/content/images/n900/taskbar_bg.png new file mode 100755 index 0000000..0658fbf Binary files /dev/null and b/CoffeeTweed/content/images/n900/taskbar_bg.png differ diff --git a/CoffeeTweed/content/images/n900/taskbar_close_bt.png b/CoffeeTweed/content/images/n900/taskbar_close_bt.png new file mode 100755 index 0000000..70a1e66 Binary files /dev/null and b/CoffeeTweed/content/images/n900/taskbar_close_bt.png differ diff --git a/CoffeeTweed/content/images/n900/taskbar_division.png b/CoffeeTweed/content/images/n900/taskbar_division.png new file mode 100755 index 0000000..0e481a4 Binary files /dev/null and b/CoffeeTweed/content/images/n900/taskbar_division.png differ diff --git a/CoffeeTweed/content/images/n900/taskbar_home_bt.png b/CoffeeTweed/content/images/n900/taskbar_home_bt.png new file mode 100755 index 0000000..f4c61d8 Binary files /dev/null and b/CoffeeTweed/content/images/n900/taskbar_home_bt.png differ diff --git a/CoffeeTweed/content/images/n900/taskbar_options_bt.png b/CoffeeTweed/content/images/n900/taskbar_options_bt.png new file mode 100755 index 0000000..f68a4f4 Binary files /dev/null and b/CoffeeTweed/content/images/n900/taskbar_options_bt.png differ diff --git a/CoffeeTweed/content/images/n900/taskbar_placeholder.png b/CoffeeTweed/content/images/n900/taskbar_placeholder.png new file mode 100755 index 0000000..824f1b3 Binary files /dev/null and b/CoffeeTweed/content/images/n900/taskbar_placeholder.png differ diff --git a/CoffeeTweed/content/images/s60/bg.png b/CoffeeTweed/content/images/s60/bg.png new file mode 100755 index 0000000..4f0d9a5 Binary files /dev/null and b/CoffeeTweed/content/images/s60/bg.png differ diff --git a/CoffeeTweed/content/images/s60/bt_add_off.png b/CoffeeTweed/content/images/s60/bt_add_off.png new file mode 100755 index 0000000..a60ce4d Binary files /dev/null and b/CoffeeTweed/content/images/s60/bt_add_off.png differ diff --git a/CoffeeTweed/content/images/s60/bt_add_on.png b/CoffeeTweed/content/images/s60/bt_add_on.png new file mode 100755 index 0000000..6586076 Binary files /dev/null and b/CoffeeTweed/content/images/s60/bt_add_on.png differ diff --git a/CoffeeTweed/content/images/s60/bt_remove_off.png b/CoffeeTweed/content/images/s60/bt_remove_off.png new file mode 100755 index 0000000..d418ec8 Binary files /dev/null and b/CoffeeTweed/content/images/s60/bt_remove_off.png differ diff --git a/CoffeeTweed/content/images/s60/bt_remove_on.png b/CoffeeTweed/content/images/s60/bt_remove_on.png new file mode 100755 index 0000000..e1ddc06 Binary files /dev/null and b/CoffeeTweed/content/images/s60/bt_remove_on.png differ diff --git a/CoffeeTweed/content/images/s60/close.png b/CoffeeTweed/content/images/s60/close.png new file mode 100755 index 0000000..5054c33 Binary files /dev/null and b/CoffeeTweed/content/images/s60/close.png differ diff --git a/CoffeeTweed/content/images/s60/coffee_plate.png b/CoffeeTweed/content/images/s60/coffee_plate.png new file mode 100755 index 0000000..8139041 Binary files /dev/null and b/CoffeeTweed/content/images/s60/coffee_plate.png differ diff --git a/CoffeeTweed/content/images/s60/cup_back.png b/CoffeeTweed/content/images/s60/cup_back.png new file mode 100755 index 0000000..a214a34 Binary files /dev/null and b/CoffeeTweed/content/images/s60/cup_back.png differ diff --git a/CoffeeTweed/content/images/s60/cup_blur.png b/CoffeeTweed/content/images/s60/cup_blur.png new file mode 100755 index 0000000..9f9e60a Binary files /dev/null and b/CoffeeTweed/content/images/s60/cup_blur.png differ diff --git a/CoffeeTweed/content/images/s60/cup_content.png b/CoffeeTweed/content/images/s60/cup_content.png new file mode 100755 index 0000000..d376418 Binary files /dev/null and b/CoffeeTweed/content/images/s60/cup_content.png differ diff --git a/CoffeeTweed/content/images/s60/cup_empty.png b/CoffeeTweed/content/images/s60/cup_empty.png new file mode 100755 index 0000000..a9e11a0 Binary files /dev/null and b/CoffeeTweed/content/images/s60/cup_empty.png differ diff --git a/CoffeeTweed/content/images/s60/cup_front.png b/CoffeeTweed/content/images/s60/cup_front.png new file mode 100755 index 0000000..593a21b Binary files /dev/null and b/CoffeeTweed/content/images/s60/cup_front.png differ diff --git a/CoffeeTweed/content/images/s60/cup_full.png b/CoffeeTweed/content/images/s60/cup_full.png new file mode 100755 index 0000000..706bb18 Binary files /dev/null and b/CoffeeTweed/content/images/s60/cup_full.png differ diff --git a/CoffeeTweed/content/images/s60/cup_smoke.png b/CoffeeTweed/content/images/s60/cup_smoke.png new file mode 100755 index 0000000..1f7c153 Binary files /dev/null and b/CoffeeTweed/content/images/s60/cup_smoke.png differ diff --git a/CoffeeTweed/content/images/s60/empty_row1.png b/CoffeeTweed/content/images/s60/empty_row1.png new file mode 100755 index 0000000..9f0edfb Binary files /dev/null and b/CoffeeTweed/content/images/s60/empty_row1.png differ diff --git a/CoffeeTweed/content/images/s60/empty_row2.png b/CoffeeTweed/content/images/s60/empty_row2.png new file mode 100755 index 0000000..48e8c3a Binary files /dev/null and b/CoffeeTweed/content/images/s60/empty_row2.png differ diff --git a/CoffeeTweed/content/images/s60/empty_row3.png b/CoffeeTweed/content/images/s60/empty_row3.png new file mode 100755 index 0000000..13361f2 Binary files /dev/null and b/CoffeeTweed/content/images/s60/empty_row3.png differ diff --git a/CoffeeTweed/debian/changelog b/CoffeeTweed/debian/changelog new file mode 100644 index 0000000..dd2b273 --- /dev/null +++ b/CoffeeTweed/debian/changelog @@ -0,0 +1,5 @@ +coffeetweed (1.0-maemo1) unstable; urgency=low + + * Initial release. + + -- Anselmo Lacerda S. de Melo Fri, 23 Jul 2010 14:00:18 -0300 diff --git a/CoffeeTweed/debian/compat b/CoffeeTweed/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/CoffeeTweed/debian/compat @@ -0,0 +1 @@ +5 diff --git a/CoffeeTweed/debian/control b/CoffeeTweed/debian/control new file mode 100644 index 0000000..2a8f9ab --- /dev/null +++ b/CoffeeTweed/debian/control @@ -0,0 +1,13 @@ +Source: coffeetweed +Section: user/apps +Priority: optional +Maintainer: Anselmo Lacerda S. de Melo +Build-Depends: debhelper (>= 4) +Standards-Version: 3.8.1 + +Package: coffeetweed +Architecture: any +Depends: libqt4-declarative +Maemo-Display-Name: CoffeeTweed +Description: coffeetweed + Allows you to count how many coffee cups you drank on a day diff --git a/CoffeeTweed/debian/copyright b/CoffeeTweed/debian/copyright new file mode 100644 index 0000000..ec95987 --- /dev/null +++ b/CoffeeTweed/debian/copyright @@ -0,0 +1,44 @@ +This package was debianized by Anselmo Melo on +Tue, 24 Aug 2010 11:07:23 -0300. + +Upstream Author: Ian Andrade + +Copyright: 2010 Nokia Corporation and/or its subsidiary(-ies). + All rights reserved. + Contact: Nokia Corporation (qt-info@nokia.com) + +License: + You may use this file under the terms of the BSD license as follows: + + "Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor + the names of its contributors may be used to endorse or promote + products derived from this software without specific prior written + permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE." + + +The Debian packaging is (C) 2010, Anselmo Melo and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. diff --git a/CoffeeTweed/debian/rules b/CoffeeTweed/debian/rules new file mode 100755 index 0000000..dc64e65 --- /dev/null +++ b/CoffeeTweed/debian/rules @@ -0,0 +1,43 @@ +#!/usr/bin/make -f + +configure: + dh_testdir + +build: build-stamp + /usr/bin/qmake + make + +build-stamp: configure + dh_testdir + +clean: + dh_testdir + dh_testroot + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + install -D -m 755 $(CURDIR)/build/coffeetweed $(CURDIR)/debian/coffeetweed/usr/bin/coffeetweed + install -D -m 644 $(CURDIR)/build/coffeetweed.desktop $(CURDIR)/debian/coffeetweed/usr/share/applications/hildon/coffeetweed.desktop + install -D -m 644 $(CURDIR)/icons/coffeetweed.png $(CURDIR)/debian/coffeetweed/usr/share/pixmaps/coffeetweed.png + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/CoffeeTweed/icons/coffeetweed.png b/CoffeeTweed/icons/coffeetweed.png new file mode 100755 index 0000000..7d4af23 Binary files /dev/null and b/CoffeeTweed/icons/coffeetweed.png differ diff --git a/CoffeeTweed/icons/coffeetweed.svg b/CoffeeTweed/icons/coffeetweed.svg new file mode 100755 index 0000000..d5d2bd6 --- /dev/null +++ b/CoffeeTweed/icons/coffeetweed.svg @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CoffeeTweed/images/.DS_Store b/CoffeeTweed/images/.DS_Store deleted file mode 100755 index 5008ddf..0000000 Binary files a/CoffeeTweed/images/.DS_Store and /dev/null differ diff --git a/CoffeeTweed/images/bg.png b/CoffeeTweed/images/bg.png deleted file mode 100755 index ef08d0e..0000000 Binary files a/CoffeeTweed/images/bg.png and /dev/null differ diff --git a/CoffeeTweed/images/bt_add_off.png b/CoffeeTweed/images/bt_add_off.png deleted file mode 100755 index b317af6..0000000 Binary files a/CoffeeTweed/images/bt_add_off.png and /dev/null differ diff --git a/CoffeeTweed/images/bt_add_on.png b/CoffeeTweed/images/bt_add_on.png deleted file mode 100755 index 593cf2e..0000000 Binary files a/CoffeeTweed/images/bt_add_on.png and /dev/null differ diff --git a/CoffeeTweed/images/bt_remove_off.png b/CoffeeTweed/images/bt_remove_off.png deleted file mode 100755 index c5bd438..0000000 Binary files a/CoffeeTweed/images/bt_remove_off.png and /dev/null differ diff --git a/CoffeeTweed/images/bt_remove_on.png b/CoffeeTweed/images/bt_remove_on.png deleted file mode 100755 index 2b6c9e2..0000000 Binary files a/CoffeeTweed/images/bt_remove_on.png and /dev/null differ diff --git a/CoffeeTweed/images/coffee_plate.png b/CoffeeTweed/images/coffee_plate.png deleted file mode 100755 index 4abbfb9..0000000 Binary files a/CoffeeTweed/images/coffee_plate.png and /dev/null differ diff --git a/CoffeeTweed/images/cup_back.png b/CoffeeTweed/images/cup_back.png deleted file mode 100755 index c553027..0000000 Binary files a/CoffeeTweed/images/cup_back.png and /dev/null differ diff --git a/CoffeeTweed/images/cup_blur.png b/CoffeeTweed/images/cup_blur.png deleted file mode 100755 index 2add637..0000000 Binary files a/CoffeeTweed/images/cup_blur.png and /dev/null differ diff --git a/CoffeeTweed/images/cup_content.png b/CoffeeTweed/images/cup_content.png deleted file mode 100755 index 848a691..0000000 Binary files a/CoffeeTweed/images/cup_content.png and /dev/null differ diff --git a/CoffeeTweed/images/cup_empty.png b/CoffeeTweed/images/cup_empty.png deleted file mode 100755 index 6201666..0000000 Binary files a/CoffeeTweed/images/cup_empty.png and /dev/null differ diff --git a/CoffeeTweed/images/cup_front.png b/CoffeeTweed/images/cup_front.png deleted file mode 100755 index 81c5da6..0000000 Binary files a/CoffeeTweed/images/cup_front.png and /dev/null differ diff --git a/CoffeeTweed/images/cup_full.png b/CoffeeTweed/images/cup_full.png deleted file mode 100755 index 7470d53..0000000 Binary files a/CoffeeTweed/images/cup_full.png and /dev/null differ diff --git a/CoffeeTweed/images/cup_smoke.png b/CoffeeTweed/images/cup_smoke.png deleted file mode 100755 index aa98b3b..0000000 Binary files a/CoffeeTweed/images/cup_smoke.png and /dev/null differ diff --git a/CoffeeTweed/images/empty_row1.png b/CoffeeTweed/images/empty_row1.png deleted file mode 100755 index 9023f93..0000000 Binary files a/CoffeeTweed/images/empty_row1.png and /dev/null differ diff --git a/CoffeeTweed/images/empty_row2.png b/CoffeeTweed/images/empty_row2.png deleted file mode 100755 index 2a8fa2f..0000000 Binary files a/CoffeeTweed/images/empty_row2.png and /dev/null differ diff --git a/CoffeeTweed/images/empty_row3.png b/CoffeeTweed/images/empty_row3.png deleted file mode 100755 index 211a6d7..0000000 Binary files a/CoffeeTweed/images/empty_row3.png and /dev/null differ diff --git a/CoffeeTweed/images/taskbar_bg.png b/CoffeeTweed/images/taskbar_bg.png deleted file mode 100755 index 0658fbf..0000000 Binary files a/CoffeeTweed/images/taskbar_bg.png and /dev/null differ diff --git a/CoffeeTweed/images/taskbar_close_bt.png b/CoffeeTweed/images/taskbar_close_bt.png deleted file mode 100755 index 70a1e66..0000000 Binary files a/CoffeeTweed/images/taskbar_close_bt.png and /dev/null differ diff --git a/CoffeeTweed/images/taskbar_division.png b/CoffeeTweed/images/taskbar_division.png deleted file mode 100755 index 0e481a4..0000000 Binary files a/CoffeeTweed/images/taskbar_division.png and /dev/null differ diff --git a/CoffeeTweed/images/taskbar_home_bt.png b/CoffeeTweed/images/taskbar_home_bt.png deleted file mode 100755 index f4c61d8..0000000 Binary files a/CoffeeTweed/images/taskbar_home_bt.png and /dev/null differ diff --git a/CoffeeTweed/images/taskbar_options_bt.png b/CoffeeTweed/images/taskbar_options_bt.png deleted file mode 100755 index f68a4f4..0000000 Binary files a/CoffeeTweed/images/taskbar_options_bt.png and /dev/null differ diff --git a/CoffeeTweed/images/taskbar_placeholder.png b/CoffeeTweed/images/taskbar_placeholder.png deleted file mode 100755 index 824f1b3..0000000 Binary files a/CoffeeTweed/images/taskbar_placeholder.png and /dev/null differ diff --git a/CoffeeTweed/main_n900.qml b/CoffeeTweed/main_n900.qml new file mode 100755 index 0000000..0b8693d --- /dev/null +++ b/CoffeeTweed/main_n900.qml @@ -0,0 +1,51 @@ +/**************************************************************************** +** +** This file is part of CoffeeTweed +** +** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).* +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** You may use this file under the terms of the BSD license as follows: +** +** "Redistribution and use in source and binary forms, with or without +** modification, are permitted provided that the following conditions +** are met: +** +** * Redistributions of source code must retain the above copyright +** notice, this list of conditions and the following disclaimer. +** +** * Redistributions in binary form must reproduce the above copyright +** notice, this list of conditions and the following disclaimer in the +** documentation and/or other materials provided with the distribution. +** +** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor +** the names of its contributors may be used to endorse or promote +** products derived from this software without specific prior written +** permission. +** +** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +** FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +** COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +** BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +** ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +** POSSIBILITY OF SUCH DAMAGE." +** +****************************************************************************/ + +import Qt 4.7 +import "content" + +CoffeeTweed { + property string folder: "images/n900/" + + width: 800 + height: 480 +} + diff --git a/CoffeeTweed/main_s60.qml b/CoffeeTweed/main_s60.qml new file mode 100755 index 0000000..1a9bf18 --- /dev/null +++ b/CoffeeTweed/main_s60.qml @@ -0,0 +1,50 @@ +/**************************************************************************** +** +** This file is part of CoffeeTweed +** +** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).* +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** You may use this file under the terms of the BSD license as follows: +** +** "Redistribution and use in source and binary forms, with or without +** modification, are permitted provided that the following conditions +** are met: +** +** * Redistributions of source code must retain the above copyright +** notice, this list of conditions and the following disclaimer. +** +** * Redistributions in binary form must reproduce the above copyright +** notice, this list of conditions and the following disclaimer in the +** documentation and/or other materials provided with the distribution. +** +** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor +** the names of its contributors may be used to endorse or promote +** products derived from this software without specific prior written +** permission. +** +** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +** FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +** COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +** BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +** ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +** POSSIBILITY OF SUCH DAMAGE." +** +****************************************************************************/ + +import Qt 4.7 +import "content" + +CoffeeTweed { + property string folder: "images/s60/" + + width: 640 + height: 360 +} -- cgit v1.2.3