Permalink
Browse files

Moving files deleted from my last commit.

  • Loading branch information...
1 parent 8e907e8 commit 8772087ef4c7ecaf3d7e75897b6f4d5b6e914f71 Daker committed Sep 3, 2004
Showing with 2,489 additions and 0 deletions.
  1. +3 −0 comics-reader
  2. +8 −0 comics-reader.desktop
  3. +5 −0 debian/changelog
  4. +70 −0 debian/comics-reader/DEBIAN/control
  5. +30 −0 debian/comics-reader/DEBIAN/md5sums
  6. +18 −0 debian/comics-reader/opt/comics-reader/BusyIndicator.qml
  7. +76 −0 debian/comics-reader/opt/comics-reader/Button.qml
  8. +33 −0 debian/comics-reader/opt/comics-reader/ComicCanvas.qml
  9. +76 −0 debian/comics-reader/opt/comics-reader/ComicDelegate.qml
  10. +12 −0 debian/comics-reader/opt/comics-reader/ComicFeedModel.qml
  11. +16 −0 debian/comics-reader/opt/comics-reader/ExpandButton.qml
  12. +55 −0 debian/comics-reader/opt/comics-reader/FeedDelegate.qml
  13. +106 −0 debian/comics-reader/opt/comics-reader/Feeds.qml
  14. +97 −0 debian/comics-reader/opt/comics-reader/FullscreenView.qml
  15. +76 −0 debian/comics-reader/opt/comics-reader/FullscreenView2.qml
  16. +34 −0 debian/comics-reader/opt/comics-reader/Icon.qml
  17. +16 −0 debian/comics-reader/opt/comics-reader/Label.qml
  18. +111 −0 debian/comics-reader/opt/comics-reader/Settings.qml
  19. +170 −0 debian/comics-reader/opt/comics-reader/baseDesktop.qml
  20. +170 −0 debian/comics-reader/opt/comics-reader/baseN900.qml
  21. BIN debian/comics-reader/opt/comics-reader/images/background.png
  22. BIN debian/comics-reader/opt/comics-reader/images/bt-normal.png
  23. BIN debian/comics-reader/opt/comics-reader/images/bt-pressed.png
  24. BIN debian/comics-reader/opt/comics-reader/images/bt-radio-orange.png
  25. BIN debian/comics-reader/opt/comics-reader/images/bt-radio-white.png
  26. BIN debian/comics-reader/opt/comics-reader/images/bt-trash.png
  27. BIN debian/comics-reader/opt/comics-reader/images/busy.png
  28. BIN debian/comics-reader/opt/comics-reader/images/expand.png
  29. BIN debian/comics-reader/opt/comics-reader/images/left.png
  30. BIN debian/comics-reader/opt/comics-reader/images/logo.png
  31. BIN debian/comics-reader/opt/comics-reader/images/random.png
  32. BIN debian/comics-reader/opt/comics-reader/images/right.png
  33. +3 −0 debian/comics-reader/usr/bin/comics-reader
  34. +8 −0 debian/comics-reader/usr/share/applications/hildon/comics-reader.desktop
  35. BIN debian/comics-reader/usr/share/icons/hicolor/64x64/hildon/comics-reader.png
  36. +1 −0 debian/compat
  37. +76 −0 debian/control
  38. +1 −0 debian/files
  39. +46 −0 debian/rules
  40. BIN icons/hicolor/26x26/hildon/comics-reader.png
  41. BIN icons/hicolor/48x48/hildon/comics-reader.png
  42. BIN icons/hicolor/64x64/hildon/comics-reader.png
  43. +18 −0 ui/BusyIndicator.qml
  44. +76 −0 ui/Button.qml
  45. +33 −0 ui/ComicCanvas.qml
  46. +76 −0 ui/ComicDelegate.qml
  47. +12 −0 ui/ComicFeedModel.qml
  48. +16 −0 ui/ExpandButton.qml
  49. +55 −0 ui/FeedDelegate.qml
  50. +106 −0 ui/Feeds.qml
  51. +97 −0 ui/FullscreenView.qml
  52. +76 −0 ui/FullscreenView2.qml
  53. +34 −0 ui/Icon.qml
  54. +16 −0 ui/Label.qml
  55. +111 −0 ui/Settings.qml
  56. +170 −0 ui/baseDesktop.qml
  57. +170 −0 ui/baseN900.qml
  58. +13 −0 ui/example_feeds.txt
  59. +75 −0 ui/feed.js
  60. BIN ui/images/background.png
  61. BIN ui/images/bt-normal.png
  62. BIN ui/images/bt-pressed.png
  63. BIN ui/images/bt-radio-orange.png
  64. BIN ui/images/bt-radio-white.png
  65. BIN ui/images/bt-trash.png
  66. BIN ui/images/busy.png
  67. BIN ui/images/expand.png
  68. BIN ui/images/left.png
  69. BIN ui/images/logo.png
  70. BIN ui/images/random.png
  71. BIN ui/images/right.png
  72. +18 −0 ui/ui.qmlproject
View
@@ -0,0 +1,3 @@
+#!/bin/sh
+# run qml app with qml viewer
+/opt/qt4-maemo5/bin/qmlviewer /opt/comics-reader/baseN900.qml
View
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=0.6.1
+Type=Application
+Name=ComicsReader
+Exec=/usr/bin/comics-reader
+Icon=comics-reader
+X-Window-Icon=comics-reader
View
@@ -0,0 +1,5 @@
+comics-reader (1.0.0-0) experimental; urgency=low
+
+ * First release of comics-reader package.
+
+ -- Daker Fernandes Pinheiro <daker.pinheiro@openbossa.org> Wed, 18 Aug 2010 12:00:00 -3000
@@ -0,0 +1,70 @@
+Package: comics-reader
+Version: 1.0.0-0
+Section: user/multimedia
+Priority: optional
+Architecture: i386
+Depends: qt4-experimental-declarative-qmlviewer, libqt4-experimental-declarative
+Installed-Size: 212
+Maintainer: Daker Fernandes <daker.pinheiro@openbossa.org>
+Description: A feed viewer of web comics strips.
+ With the fullscreen mode you can zoom the comic.
+ You can also add any web comic feed you like.
+Bugtracker: https://garage.maemo.org/tracker/?atid=6294&group_id=1803&func=browse
+Maemo-Icon-26:
+ iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0
+ d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACYtJREFUeNrUWkurZUcVXvXY
+ 59zbtyXpICEiaFrJQFDo6CDOHAi2UQdOFBw4CAqCDhU0DuIPEBtCRupIBxk4
+ MBMHgpIMnChE1OAD2uADEkFpUM9z710vv7Wq6ty6u09f0+nb3Tcb6u7Hqb33
+ 96361qq1al/1vscfp+Ac3fjH6+S9v3owP/iYMfqyMaabz2ax62wwtnPDOPgY
+ ok8pxpQoKKW9UhRC8IFI+UQ4ds7HFKLW1mujffDexRi9MXiGMQG34uborbEO
+ 515pckopZ7RxuN8RyflgtBrxfKeNGlNMY0ppxItGUnowSm3Rr7ezubfdnCwe
+ SuMw2EsPPvi9x957+SlrNAXvCCTIWkMKvQP6JEYdorQoG6gkUIpo+SgkStyV
+ SQb0RwOolACOQdBIlAaQ7X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PKZpgTMs+wey68ay7fpwLLR/qa1fMlr7gr4EwSK5WNOV2VE
+ hgJ6O3HQ3ew6Ab8rRKrm26SMl18APp0l+ErAFZ2rov3YyGczyWv2WX65J5c/
+ kVEiIYu3SofvmECxds/1sKQGx/l967DLKfg9hQjLpm9yeV/Ah7sFvh2BPvuv
+ LJz4Rj7VYZdTy59SRY37qii6S5tNOaPcFgkxCY5KbMl1ydX3hsry+02yKRnl
+ /y1Ezm4EkqzZMAj2Xl0WWLcFaAt+57CTdJjJD/cDfK0HhryEsdvGMiInnHYP
+ +Dq79jU1aMBHukebLbPkuoTRVB24AbwsSx7rPYVIXzPKJh1OdA83Wxx4nYNQ
+ DqGs7zJhtaFyva+KmoCPdI83duKq91iW0nn9vs0qV00hcqsSMNxry7cFzaaA
+ 5HqA1/T71KyiVctPqig3qV/vC/hcD2QJLWsWWvKfOgKbAn5qeV+qqPhmqqiz
+ deJs8WVd6yyzabU6E7jJ8qUQSfcbfIlCPOuqKiH+gtKu72wby0sJWAqRcwH+
+ mECCD+yqMLVbpGoKEUmHzxv4UlIalEZhjVosmKT5i2OtA1rLn2kVdbYE+IOS
+ 0uyknEp7HfUYVeQlQ65fRTZ3oxA5w2xUeaNpw18tEf99UFHWf/iLSLH8uQVf
+ RyBARltrDaaEEPhbbI408jURmh/TeQWf10ZtF9iRu86mAAImSi4WeLklr5ad
+ X/BCoOsMf/cdZ11HKJ/4HwdiMHyg0/2cYW8nG+X1IDefzxUI8P9ySP2KITj3
+ 4PMnpqT4ozZrP3bWxq7rUlmle0tsVv6xgWkg/Bg7IxPr/2K8Nbb/CTAAF12f
+ 5l7y6xMAAAAASUVORK5CYII=
@@ -0,0 +1,30 @@
+5e8a3674a60472703265a9c3fcdfeab9 opt/comics-reader/baseDesktop.qml
+a91f799ca31e4c83b28927f46e23dc86 opt/comics-reader/FeedDelegate.qml
+197b7b6b41f1f97684d03f8c34d04f68 opt/comics-reader/ComicDelegate.qml
+aef62f99954e1a541d39352a1b4ba4e3 opt/comics-reader/Settings.qml
+e9bedd583a91e57b80c957c6738d8386 opt/comics-reader/images/random.png
+5685dd68287555d4d8f10ba0d41c0977 opt/comics-reader/images/background.png
+bca07867557d941ade6189742e861b40 opt/comics-reader/images/right.png
+92b82ec03fa5b6a6fc81dc4406c73d23 opt/comics-reader/images/left.png
+6a9afb638b3d7c67e8cd3b0feff0370c opt/comics-reader/images/bt-radio-white.png
+7c084661bffec1b8ff06fd5f555d2201 opt/comics-reader/images/busy.png
+5df646d7243dda446e545afd7755c698 opt/comics-reader/images/logo.png
+9d8e9cc9cf101dc153a3413305b9a3c5 opt/comics-reader/images/expand.png
+87de8296d62cf7dd1500b604af264cb4 opt/comics-reader/images/bt-normal.png
+c009549390e3e67136b3756a1b7b6920 opt/comics-reader/images/bt-pressed.png
+92d33e0d25d7b9d452b7184a998ef235 opt/comics-reader/images/bt-radio-orange.png
+b35bfc50b43969e8500c6d999650c170 opt/comics-reader/images/bt-trash.png
+340a2d5369779164dd15005151a61a9c opt/comics-reader/Button.qml
+c3cdfb5e147245bdb529f408b6c397fd opt/comics-reader/ExpandButton.qml
+831bd059ea122d1e0ad497f7dd470477 opt/comics-reader/ComicCanvas.qml
+b866f5be3846db09f7bae06ab3ab1130 opt/comics-reader/ComicFeedModel.qml
+865ad52e77929407089891327b98874b opt/comics-reader/FullscreenView2.qml
+58b61ad55456fdba3826c51b248ba059 opt/comics-reader/baseN900.qml
+14886ea99f2be47acce8510445f941ec opt/comics-reader/Feeds.qml
+10c04590b8ffb467b9a35230414dfe9a opt/comics-reader/FullscreenView.qml
+b1dc3b4febcd2c49e0ad001fbb2646cb opt/comics-reader/BusyIndicator.qml
+cbfc98a7f782134c867b622283edac28 opt/comics-reader/Icon.qml
+e3063760f2193205081865882370db5e opt/comics-reader/Label.qml
+fae59c51a802efb0a9db7520bcf8131d usr/share/applications/hildon/comics-reader.desktop
+fb6f5a8f810e08efd799cad202cc5736 usr/share/icons/hicolor/64x64/hildon/comics-reader.png
+602fa55b31767130d0bfbf75038b35de usr/bin/comics-reader
@@ -0,0 +1,18 @@
+import Qt 4.7
+
+Image {
+ id: indicator
+
+ property bool on: false
+
+ source: "images/busy.png"
+ visible: indicator.on
+ width: 40; height: 40
+
+ NumberAnimation on rotation {
+ running: indicator.on
+ from: 0; to: 360
+ loops: Animation.Infinite
+ duration: 1200
+ }
+}
@@ -0,0 +1,76 @@
+import Qt 4.7
+
+Item {
+ id: button
+
+ width: 104; height: 52;
+
+ property alias iconPressed: icon.sourcePressed
+ property alias iconUnpressed: icon.sourceUnpressed
+ property alias label: label.text
+ property alias enabled: mouseArea.enabled
+ property bool pressed: false
+ signal clicked
+
+ Image {
+ id: background
+
+ source: "images/bt-normal.png"
+
+ states: [
+ State {
+ name: "disabled"
+ when: button.enabled == false
+ PropertyChanges {
+ target: icon
+ opacity: 0.3
+ }
+ PropertyChanges {
+ target: label
+ opacity: 0.3
+ }
+ },
+ State {
+ name: "unpressed"
+ when: button.pressed == false
+ PropertyChanges {
+ target: background
+ source: "images/bt-normal.png"
+ }
+ },
+ State {
+ name: "pressed"
+ when: button.pressed == true
+ PropertyChanges {
+ target: background
+ source: "images/bt-pressed.png"
+ }
+ }
+ ]
+ }
+
+ Label { id: label }
+ Icon { id: icon }
+
+ Connections {
+ target: mouseArea
+ onPressed: {
+ button.pressed = true
+ }
+ onReleased: {
+ button.pressed = false
+ }
+ }
+
+ onPressedChanged: {
+ label.pressed = pressed
+ icon.pressed = pressed
+ }
+
+ MouseArea {
+ id: mouseArea
+ anchors.fill: parent
+ onClicked:
+ button.clicked()
+ }
+}
@@ -0,0 +1,33 @@
+import Qt 4.7
+import "feed.js" as Feed
+
+ListView {
+ id: comic
+ spacing: 10
+ highlightMoveSpeed: 1200
+ highlightRangeMode: ListView.StrictlyEnforceRange
+ clip: true
+ flickableDirection: Flickable.HorizontalFlick
+ snapMode: ListView.SnapToItem
+ orientation: ListView.Horizontal
+
+ property alias feed: rssModel.source
+ property real scale: 1
+ property bool firstComic: comic.currentIndex == 0
+ property bool lastComic: comic.currentIndex >= comic.count - 1
+ signal fullscreen
+
+ model: ComicFeedModel {id: rssModel}
+ delegate: ComicDelegate {
+ scale: comic.scale
+ onExpand: {
+ comic.currentIndex = index
+ fullscreen(index)
+ }
+ }
+
+ BusyIndicator {
+ anchors.centerIn: parent
+ on: comic.model.status == XmlListModel.Loading
+ }
+}
@@ -0,0 +1,76 @@
+import Qt 4.7
+import "feed.js" as Feed
+
+Item {
+ id: delegate
+ width: parent.parent.width
+ height: parent.parent.height
+
+ property string image: Feed.getImage(model)
+ property string alt: Feed.getAlt(model)
+ property string title: model.comicTitle
+ property bool isValidComic: image != ""
+ property real scale: 1
+ signal expand
+
+ Text {
+ id: title
+ text: (isValidComic) ? comicTitle : ""
+ anchors {
+ left: parent.left
+ }
+ width: parent.width
+ elide: Text.ElideRight
+ color: "white"
+ font {
+ family: "Arial"
+ bold: true
+ pointSize: 20
+ }
+ }
+
+ Item {
+ anchors {
+ top: title.bottom
+ left: delegate.left
+ right: delegate.right
+ bottom: delegate.bottom
+ topMargin: 20
+ }
+ Image {
+ id: strip
+ fillMode: Image.PreserveAspectFit
+ source: image
+ width: Math.min(strip.sourceSize.width, delegate.width)
+ height: Math.min(strip.sourceSize.height,
+ delegate.height - title.height - 20)
+ anchors {
+ verticalCenter: parent.verticalCenter
+ left: parent.left
+ }
+ MouseArea {
+ anchors.fill: parent
+ onDoubleClicked:
+ expand()
+ }
+ }
+ }
+
+ BusyIndicator {
+ anchors.centerIn: parent
+ on: strip.status != Image.Ready
+ }
+
+ ExpandButton {
+ id: btExpand
+ scale: delegate.scale
+ onClicked:
+ expand()
+ anchors {
+ right: parent.right
+ rightMargin: 20
+ bottom: parent.bottom
+ bottomMargin: 20
+ }
+ }
+}
@@ -0,0 +1,12 @@
+import Qt 4.7
+
+XmlListModel { // TODO put the javascript in a .js module
+ id: rssModel
+
+ source: ""
+ query: "/rss/channel/item"
+
+ XmlRole { name: "comicTitle"; query: "title/string()" }
+ XmlRole { name: "comicContent"; query: "description/string()" }
+ XmlRole { name: "comicLink"; query: "link/string()" }
+}
@@ -0,0 +1,16 @@
+import Qt 4.7
+
+Image {
+ id: btExpand
+ signal clicked
+ property real scale: 1
+
+ source: "images/expand.png"
+ width: (visible) ? 32 * scale : 0; height: 31 * scale;
+
+ MouseArea {
+ id: expandMouseArea
+ anchors.fill: parent
+ onClicked: { btExpand.clicked() }
+ }
+}
Oops, something went wrong.

0 comments on commit 8772087

Please sign in to comment.