{"action":"created","comment":{"url":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/comments/59137175","id":59137175,"diff_hunk":"@@ -0,0 +1,315 @@\n+/* GCompris - multiplication-chart.qml\n+ *\n+ * Copyright (C) 2016 Varun Kumar <varun13169@iiitd.ac.in>\n+ *\n+ * Authors:\n+ *\n+ *   Varun Kumar <varun13169@iiitd.ac.in>\n+ *\n+ *   This program is free software; you can redistribute it and/or modify\n+ *   it under the terms of the GNU General Public License as published by\n+ *   the Free Software Foundation; either version 3 of the License, or\n+ *   (at your option) any later version.\n+ *\n+ *   This program is distributed in the hope that it will be useful,\n+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ *   GNU General Public License for more details.\n+ *\n+ *   You should have received a copy of the GNU General Public License\n+ *   along with this program; if not, see <http://www.gnu.org/licenses/>.\n+ */\n+import QtQuick 2.1\n+import GCompris 1.0\n+\n+import \"../../core\"\n+import \"multiplication-chart.js\" as Activity\n+\n+ActivityBase {\n+    id: activity\n+\n+    onStart: focus = true\n+    onStop: {}\n+\n+    pageComponent: Image {\n+        id: background\n+        fillMode: Image.PreserveAspectCrop\n+        source: \"qrc:/gcompris/src/activities/multiplication-chart/resource/numbers.svg\"\n+        sourceSize.width: parent.width\n+        sourceSize.height: parent.height\n+\n+        signal start\n+        signal stop\n+\n+        Component.onCompleted: {\n+            activity.start.connect(start)\n+            activity.stop.connect(stop)\n+        }\n+\n+        // Add here the QML items you need to access in javascript\n+        QtObject {\n+            id: items\n+            property Item main: activity.main\n+            property alias background: background\n+            property alias bar: bar\n+            property alias bonus: bonus\n+            property alias repeaterGridRow: repeaterGridRow\n+            property alias repeaterGridCol: repeaterGridCol\n+            property alias repeater: repeater\n+            /*variables*/\n+            property int spacing: 5\n+            property int rectHeight: wrap.height/25","path":"src/activities/multiplication-chart/MultiplicationChart.qml","position":61,"original_position":61,"commit_id":"566ea499d7e6c0b903d3a71410420d4054b50df6","original_commit_id":"566ea499d7e6c0b903d3a71410420d4054b50df6","user":{"login":"petitlapin","id":1957734,"avatar_url":"https://avatars.githubusercontent.com/u/1957734?v=3","gravatar_id":"","url":"https://api.github.com/users/petitlapin","html_url":"https://github.com/petitlapin","followers_url":"https://api.github.com/users/petitlapin/followers","following_url":"https://api.github.com/users/petitlapin/following{/other_user}","gists_url":"https://api.github.com/users/petitlapin/gists{/gist_id}","starred_url":"https://api.github.com/users/petitlapin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petitlapin/subscriptions","organizations_url":"https://api.github.com/users/petitlapin/orgs","repos_url":"https://api.github.com/users/petitlapin/repos","events_url":"https://api.github.com/users/petitlapin/events{/privacy}","received_events_url":"https://api.github.com/users/petitlapin/received_events","type":"User","site_admin":false},"body":"if you don't use it in the js, you can remove it from the items object","created_at":"2016-04-10T16:58:36Z","updated_at":"2016-04-10T16:58:36Z","html_url":"https://github.com/bdoin/GCompris-qt/pull/135#discussion_r59137175","pull_request_url":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/135","_links":{"self":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/comments/59137175"},"html":{"href":"https://github.com/bdoin/GCompris-qt/pull/135#discussion_r59137175"},"pull_request":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/135"}}},"pull_request":{"url":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/135","id":65914105,"html_url":"https://github.com/bdoin/GCompris-qt/pull/135","diff_url":"https://github.com/bdoin/GCompris-qt/pull/135.diff","patch_url":"https://github.com/bdoin/GCompris-qt/pull/135.patch","issue_url":"https://api.github.com/repos/bdoin/GCompris-qt/issues/135","number":135,"state":"open","locked":false,"title":"Multiplication Chart","user":{"login":"varun13169","id":10177043,"avatar_url":"https://avatars.githubusercontent.com/u/10177043?v=3","gravatar_id":"","url":"https://api.github.com/users/varun13169","html_url":"https://github.com/varun13169","followers_url":"https://api.github.com/users/varun13169/followers","following_url":"https://api.github.com/users/varun13169/following{/other_user}","gists_url":"https://api.github.com/users/varun13169/gists{/gist_id}","starred_url":"https://api.github.com/users/varun13169/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varun13169/subscriptions","organizations_url":"https://api.github.com/users/varun13169/orgs","repos_url":"https://api.github.com/users/varun13169/repos","events_url":"https://api.github.com/users/varun13169/events{/privacy}","received_events_url":"https://api.github.com/users/varun13169/received_events","type":"User","site_admin":false},"body":"Made changes to make activity responsive","created_at":"2016-04-10T15:46:33Z","updated_at":"2016-04-10T16:58:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c7aea37ad03c54d5f5adac9c86d380565691b86","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/135/commits","review_comments_url":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/135/comments","review_comment_url":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bdoin/GCompris-qt/issues/135/comments","statuses_url":"https://api.github.com/repos/bdoin/GCompris-qt/statuses/566ea499d7e6c0b903d3a71410420d4054b50df6","head":{"label":"varun13169:multiplication-chart","ref":"multiplication-chart","sha":"566ea499d7e6c0b903d3a71410420d4054b50df6","user":{"login":"varun13169","id":10177043,"avatar_url":"https://avatars.githubusercontent.com/u/10177043?v=3","gravatar_id":"","url":"https://api.github.com/users/varun13169","html_url":"https://github.com/varun13169","followers_url":"https://api.github.com/users/varun13169/followers","following_url":"https://api.github.com/users/varun13169/following{/other_user}","gists_url":"https://api.github.com/users/varun13169/gists{/gist_id}","starred_url":"https://api.github.com/users/varun13169/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varun13169/subscriptions","organizations_url":"https://api.github.com/users/varun13169/orgs","repos_url":"https://api.github.com/users/varun13169/repos","events_url":"https://api.github.com/users/varun13169/events{/privacy}","received_events_url":"https://api.github.com/users/varun13169/received_events","type":"User","site_admin":false},"repo":{"id":53322788,"name":"GCompris-qt","full_name":"varun13169/GCompris-qt","owner":{"login":"varun13169","id":10177043,"avatar_url":"https://avatars.githubusercontent.com/u/10177043?v=3","gravatar_id":"","url":"https://api.github.com/users/varun13169","html_url":"https://github.com/varun13169","followers_url":"https://api.github.com/users/varun13169/followers","following_url":"https://api.github.com/users/varun13169/following{/other_user}","gists_url":"https://api.github.com/users/varun13169/gists{/gist_id}","starred_url":"https://api.github.com/users/varun13169/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varun13169/subscriptions","organizations_url":"https://api.github.com/users/varun13169/orgs","repos_url":"https://api.github.com/users/varun13169/repos","events_url":"https://api.github.com/users/varun13169/events{/privacy}","received_events_url":"https://api.github.com/users/varun13169/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/varun13169/GCompris-qt","description":"GCompris in Qt Quick","fork":true,"url":"https://api.github.com/repos/varun13169/GCompris-qt","forks_url":"https://api.github.com/repos/varun13169/GCompris-qt/forks","keys_url":"https://api.github.com/repos/varun13169/GCompris-qt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/varun13169/GCompris-qt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/varun13169/GCompris-qt/teams","hooks_url":"https://api.github.com/repos/varun13169/GCompris-qt/hooks","issue_events_url":"https://api.github.com/repos/varun13169/GCompris-qt/issues/events{/number}","events_url":"https://api.github.com/repos/varun13169/GCompris-qt/events","assignees_url":"https://api.github.com/repos/varun13169/GCompris-qt/assignees{/user}","branches_url":"https://api.github.com/repos/varun13169/GCompris-qt/branches{/branch}","tags_url":"https://api.github.com/repos/varun13169/GCompris-qt/tags","blobs_url":"https://api.github.com/repos/varun13169/GCompris-qt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/varun13169/GCompris-qt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/varun13169/GCompris-qt/git/refs{/sha}","trees_url":"https://api.github.com/repos/varun13169/GCompris-qt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/varun13169/GCompris-qt/statuses/{sha}","languages_url":"https://api.github.com/repos/varun13169/GCompris-qt/languages","stargazers_url":"https://api.github.com/repos/varun13169/GCompris-qt/stargazers","contributors_url":"https://api.github.com/repos/varun13169/GCompris-qt/contributors","subscribers_url":"https://api.github.com/repos/varun13169/GCompris-qt/subscribers","subscription_url":"https://api.github.com/repos/varun13169/GCompris-qt/subscription","commits_url":"https://api.github.com/repos/varun13169/GCompris-qt/commits{/sha}","git_commits_url":"https://api.github.com/repos/varun13169/GCompris-qt/git/commits{/sha}","comments_url":"https://api.github.com/repos/varun13169/GCompris-qt/comments{/number}","issue_comment_url":"https://api.github.com/repos/varun13169/GCompris-qt/issues/comments{/number}","contents_url":"https://api.github.com/repos/varun13169/GCompris-qt/contents/{+path}","compare_url":"https://api.github.com/repos/varun13169/GCompris-qt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/varun13169/GCompris-qt/merges","archive_url":"https://api.github.com/repos/varun13169/GCompris-qt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/varun13169/GCompris-qt/downloads","issues_url":"https://api.github.com/repos/varun13169/GCompris-qt/issues{/number}","pulls_url":"https://api.github.com/repos/varun13169/GCompris-qt/pulls{/number}","milestones_url":"https://api.github.com/repos/varun13169/GCompris-qt/milestones{/number}","notifications_url":"https://api.github.com/repos/varun13169/GCompris-qt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/varun13169/GCompris-qt/labels{/name}","releases_url":"https://api.github.com/repos/varun13169/GCompris-qt/releases{/id}","deployments_url":"https://api.github.com/repos/varun13169/GCompris-qt/deployments","created_at":"2016-03-07T12:10:07Z","updated_at":"2016-03-07T12:10:15Z","pushed_at":"2016-04-10T15:45:03Z","git_url":"git://github.com/varun13169/GCompris-qt.git","ssh_url":"git@github.com:varun13169/GCompris-qt.git","clone_url":"https://github.com/varun13169/GCompris-qt.git","svn_url":"https://github.com/varun13169/GCompris-qt","homepage":null,"size":137297,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bdoin:master","ref":"master","sha":"36789d5922077160ca5fa16b95b246e429484f73","user":{"login":"bdoin","id":1623942,"avatar_url":"https://avatars.githubusercontent.com/u/1623942?v=3","gravatar_id":"","url":"https://api.github.com/users/bdoin","html_url":"https://github.com/bdoin","followers_url":"https://api.github.com/users/bdoin/followers","following_url":"https://api.github.com/users/bdoin/following{/other_user}","gists_url":"https://api.github.com/users/bdoin/gists{/gist_id}","starred_url":"https://api.github.com/users/bdoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdoin/subscriptions","organizations_url":"https://api.github.com/users/bdoin/orgs","repos_url":"https://api.github.com/users/bdoin/repos","events_url":"https://api.github.com/users/bdoin/events{/privacy}","received_events_url":"https://api.github.com/users/bdoin/received_events","type":"User","site_admin":false},"repo":{"id":16627197,"name":"GCompris-qt","full_name":"bdoin/GCompris-qt","owner":{"login":"bdoin","id":1623942,"avatar_url":"https://avatars.githubusercontent.com/u/1623942?v=3","gravatar_id":"","url":"https://api.github.com/users/bdoin","html_url":"https://github.com/bdoin","followers_url":"https://api.github.com/users/bdoin/followers","following_url":"https://api.github.com/users/bdoin/following{/other_user}","gists_url":"https://api.github.com/users/bdoin/gists{/gist_id}","starred_url":"https://api.github.com/users/bdoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdoin/subscriptions","organizations_url":"https://api.github.com/users/bdoin/orgs","repos_url":"https://api.github.com/users/bdoin/repos","events_url":"https://api.github.com/users/bdoin/events{/privacy}","received_events_url":"https://api.github.com/users/bdoin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bdoin/GCompris-qt","description":"GCompris in Qt Quick","fork":false,"url":"https://api.github.com/repos/bdoin/GCompris-qt","forks_url":"https://api.github.com/repos/bdoin/GCompris-qt/forks","keys_url":"https://api.github.com/repos/bdoin/GCompris-qt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bdoin/GCompris-qt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bdoin/GCompris-qt/teams","hooks_url":"https://api.github.com/repos/bdoin/GCompris-qt/hooks","issue_events_url":"https://api.github.com/repos/bdoin/GCompris-qt/issues/events{/number}","events_url":"https://api.github.com/repos/bdoin/GCompris-qt/events","assignees_url":"https://api.github.com/repos/bdoin/GCompris-qt/assignees{/user}","branches_url":"https://api.github.com/repos/bdoin/GCompris-qt/branches{/branch}","tags_url":"https://api.github.com/repos/bdoin/GCompris-qt/tags","blobs_url":"https://api.github.com/repos/bdoin/GCompris-qt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bdoin/GCompris-qt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bdoin/GCompris-qt/git/refs{/sha}","trees_url":"https://api.github.com/repos/bdoin/GCompris-qt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bdoin/GCompris-qt/statuses/{sha}","languages_url":"https://api.github.com/repos/bdoin/GCompris-qt/languages","stargazers_url":"https://api.github.com/repos/bdoin/GCompris-qt/stargazers","contributors_url":"https://api.github.com/repos/bdoin/GCompris-qt/contributors","subscribers_url":"https://api.github.com/repos/bdoin/GCompris-qt/subscribers","subscription_url":"https://api.github.com/repos/bdoin/GCompris-qt/subscription","commits_url":"https://api.github.com/repos/bdoin/GCompris-qt/commits{/sha}","git_commits_url":"https://api.github.com/repos/bdoin/GCompris-qt/git/commits{/sha}","comments_url":"https://api.github.com/repos/bdoin/GCompris-qt/comments{/number}","issue_comment_url":"https://api.github.com/repos/bdoin/GCompris-qt/issues/comments{/number}","contents_url":"https://api.github.com/repos/bdoin/GCompris-qt/contents/{+path}","compare_url":"https://api.github.com/repos/bdoin/GCompris-qt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bdoin/GCompris-qt/merges","archive_url":"https://api.github.com/repos/bdoin/GCompris-qt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bdoin/GCompris-qt/downloads","issues_url":"https://api.github.com/repos/bdoin/GCompris-qt/issues{/number}","pulls_url":"https://api.github.com/repos/bdoin/GCompris-qt/pulls{/number}","milestones_url":"https://api.github.com/repos/bdoin/GCompris-qt/milestones{/number}","notifications_url":"https://api.github.com/repos/bdoin/GCompris-qt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bdoin/GCompris-qt/labels{/name}","releases_url":"https://api.github.com/repos/bdoin/GCompris-qt/releases{/id}","deployments_url":"https://api.github.com/repos/bdoin/GCompris-qt/deployments","created_at":"2014-02-07T20:54:57Z","updated_at":"2016-03-12T15:23:55Z","pushed_at":"2016-04-10T15:46:33Z","git_url":"git://github.com/bdoin/GCompris-qt.git","ssh_url":"git@github.com:bdoin/GCompris-qt.git","clone_url":"https://github.com/bdoin/GCompris-qt.git","svn_url":"https://github.com/bdoin/GCompris-qt","homepage":null,"size":175870,"stargazers_count":52,"watchers_count":52,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":2,"forks":81,"open_issues":2,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/135"},"html":{"href":"https://github.com/bdoin/GCompris-qt/pull/135"},"issue":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/issues/135"},"comments":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/issues/135/comments"},"review_comments":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/135/comments"},"review_comment":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/135/commits"},"statuses":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/statuses/566ea499d7e6c0b903d3a71410420d4054b50df6"}}}}