{"action":"created","comment":{"url":"https://api.github.com/repos/TeamWho/KPS/pulls/comments/74690443","id":74690443,"diff_hunk":"@@ -0,0 +1,90 @@\n+#include \"gcodecommands.h\"\n+\n+namespace GCode {\n+\n+namespace GCommands {\n+\n+    QString toString(Enum gcode)\n+    {\n+        switch (gcode) {\n+        case G0:\n+            return QString(\"Rapid Linear Move\");\n+        case G1:\n+            return QString(\"Linear Move\");\n+        case G2: //Marlin dont support delta and scara printers\n+            return QString(\"Arc Move ClockWise\");\n+        case G3: //Marlin dont support delta and scara printers\n+            return QString(\"ArcMove Counter-ClockWise\");\n+        case G4:\n+            return QString(\"Dwell\");\n+        case G10://Repetier > 0.92\n+            return QString(\"Retract\");\n+        case G11://Repetier > 0.92\n+            return QString(\"Unretract\");\n+        case G20: //Marlin dont support\n+            return QString(\"Set units to inches\");\n+        case G21: //Marlin dont support\n+            return QString(\"Set units to milimiters\");\n+        case G28:\n+            return QString(\"Move to Origin\");\n+        case G29:\n+            return QString(\"Detailed Z-Probe\");\n+        case G30:\n+            return QString(\"Single Z-Probe\");\n+        case G31://Marlin dont support\n+            return QString(\"Set or report current probe status\");\n+        case G32:// Marlin dont support\n+            return QString(\"Probe Z and calculate Z plane\");\n+        case G33://Only Repetier supports\n+            return QString(\"Measure/List/Adjust Distortion Matrix\");\n+        case G90:\n+            return QString(\"Set to absolute positioning\");\n+        case G91:\n+            return QString(\"Set to relative positioning\");\n+        case G92:\n+            return QString(\"Set position\");\n+        case G100: //Only Repetier Supports\n+            return QString(\"Calibrate floor  or rod radius\");\n+        case G130: //Onlye Makerbot","path":"src/gcodecommands.cpp","position":null,"original_position":48,"commit_id":"ce9fd1a49803ff142a9c38fa6f9ac84ec502d887","original_commit_id":"0fbf5f5795503da01ff2965236ede08013772099","user":{"login":"patrickelectric","id":1215497,"avatar_url":"https://avatars.githubusercontent.com/u/1215497?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickelectric","html_url":"https://github.com/patrickelectric","followers_url":"https://api.github.com/users/patrickelectric/followers","following_url":"https://api.github.com/users/patrickelectric/following{/other_user}","gists_url":"https://api.github.com/users/patrickelectric/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickelectric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickelectric/subscriptions","organizations_url":"https://api.github.com/users/patrickelectric/orgs","repos_url":"https://api.github.com/users/patrickelectric/repos","events_url":"https://api.github.com/users/patrickelectric/events{/privacy}","received_events_url":"https://api.github.com/users/patrickelectric/received_events","type":"User","site_admin":false},"body":"typo","created_at":"2016-08-13T18:32:29Z","updated_at":"2016-08-13T18:32:29Z","html_url":"https://github.com/TeamWho/KPS/pull/12#discussion_r74690443","pull_request_url":"https://api.github.com/repos/TeamWho/KPS/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/TeamWho/KPS/pulls/comments/74690443"},"html":{"href":"https://github.com/TeamWho/KPS/pull/12#discussion_r74690443"},"pull_request":{"href":"https://api.github.com/repos/TeamWho/KPS/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/TeamWho/KPS/pulls/12","id":81205547,"html_url":"https://github.com/TeamWho/KPS/pull/12","diff_url":"https://github.com/TeamWho/KPS/pull/12.diff","patch_url":"https://github.com/TeamWho/KPS/pull/12.patch","issue_url":"https://api.github.com/repos/TeamWho/KPS/issues/12","number":12,"state":"open","locked":false,"title":"New Class: GCode Commands","user":{"login":"lays147","id":7799231,"avatar_url":"https://avatars.githubusercontent.com/u/7799231?v=3","gravatar_id":"","url":"https://api.github.com/users/lays147","html_url":"https://github.com/lays147","followers_url":"https://api.github.com/users/lays147/followers","following_url":"https://api.github.com/users/lays147/following{/other_user}","gists_url":"https://api.github.com/users/lays147/gists{/gist_id}","starred_url":"https://api.github.com/users/lays147/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lays147/subscriptions","organizations_url":"https://api.github.com/users/lays147/orgs","repos_url":"https://api.github.com/users/lays147/repos","events_url":"https://api.github.com/users/lays147/events{/privacy}","received_events_url":"https://api.github.com/users/lays147/received_events","type":"User","site_admin":false},"body":"This class will manage all single GCode Commands\r\nin ASCII format.\r\nIts a Enum list with all commands in string and command form.\r\nThe string form is to explain what the command do.\r\nThe command form is the command pre-build for send\r\nto the serial port.\r\nImplemented the base G commands based on RepRap GCode\r\nWiki.\r\n\r\nSigned-off-by: Lays Rodrigues <laysrodriguessilva@gmail.com>","created_at":"2016-08-13T03:16:13Z","updated_at":"2016-08-13T18:32:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ba3efaeadfb7dffdf5cb0e4d175128d2ac8e91f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/TeamWho/KPS/pulls/12/commits","review_comments_url":"https://api.github.com/repos/TeamWho/KPS/pulls/12/comments","review_comment_url":"https://api.github.com/repos/TeamWho/KPS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TeamWho/KPS/issues/12/comments","statuses_url":"https://api.github.com/repos/TeamWho/KPS/statuses/ce9fd1a49803ff142a9c38fa6f9ac84ec502d887","head":{"label":"lays147:gcodeEnum","ref":"gcodeEnum","sha":"ce9fd1a49803ff142a9c38fa6f9ac84ec502d887","user":{"login":"lays147","id":7799231,"avatar_url":"https://avatars.githubusercontent.com/u/7799231?v=3","gravatar_id":"","url":"https://api.github.com/users/lays147","html_url":"https://github.com/lays147","followers_url":"https://api.github.com/users/lays147/followers","following_url":"https://api.github.com/users/lays147/following{/other_user}","gists_url":"https://api.github.com/users/lays147/gists{/gist_id}","starred_url":"https://api.github.com/users/lays147/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lays147/subscriptions","organizations_url":"https://api.github.com/users/lays147/orgs","repos_url":"https://api.github.com/users/lays147/repos","events_url":"https://api.github.com/users/lays147/events{/privacy}","received_events_url":"https://api.github.com/users/lays147/received_events","type":"User","site_admin":false},"repo":{"id":64863939,"name":"KPS","full_name":"lays147/KPS","owner":{"login":"lays147","id":7799231,"avatar_url":"https://avatars.githubusercontent.com/u/7799231?v=3","gravatar_id":"","url":"https://api.github.com/users/lays147","html_url":"https://github.com/lays147","followers_url":"https://api.github.com/users/lays147/followers","following_url":"https://api.github.com/users/lays147/following{/other_user}","gists_url":"https://api.github.com/users/lays147/gists{/gist_id}","starred_url":"https://api.github.com/users/lays147/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lays147/subscriptions","organizations_url":"https://api.github.com/users/lays147/orgs","repos_url":"https://api.github.com/users/lays147/repos","events_url":"https://api.github.com/users/lays147/events{/privacy}","received_events_url":"https://api.github.com/users/lays147/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lays147/KPS","description":"KDE Print Service for 3D Printers","fork":true,"url":"https://api.github.com/repos/lays147/KPS","forks_url":"https://api.github.com/repos/lays147/KPS/forks","keys_url":"https://api.github.com/repos/lays147/KPS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lays147/KPS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lays147/KPS/teams","hooks_url":"https://api.github.com/repos/lays147/KPS/hooks","issue_events_url":"https://api.github.com/repos/lays147/KPS/issues/events{/number}","events_url":"https://api.github.com/repos/lays147/KPS/events","assignees_url":"https://api.github.com/repos/lays147/KPS/assignees{/user}","branches_url":"https://api.github.com/repos/lays147/KPS/branches{/branch}","tags_url":"https://api.github.com/repos/lays147/KPS/tags","blobs_url":"https://api.github.com/repos/lays147/KPS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lays147/KPS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lays147/KPS/git/refs{/sha}","trees_url":"https://api.github.com/repos/lays147/KPS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lays147/KPS/statuses/{sha}","languages_url":"https://api.github.com/repos/lays147/KPS/languages","stargazers_url":"https://api.github.com/repos/lays147/KPS/stargazers","contributors_url":"https://api.github.com/repos/lays147/KPS/contributors","subscribers_url":"https://api.github.com/repos/lays147/KPS/subscribers","subscription_url":"https://api.github.com/repos/lays147/KPS/subscription","commits_url":"https://api.github.com/repos/lays147/KPS/commits{/sha}","git_commits_url":"https://api.github.com/repos/lays147/KPS/git/commits{/sha}","comments_url":"https://api.github.com/repos/lays147/KPS/comments{/number}","issue_comment_url":"https://api.github.com/repos/lays147/KPS/issues/comments{/number}","contents_url":"https://api.github.com/repos/lays147/KPS/contents/{+path}","compare_url":"https://api.github.com/repos/lays147/KPS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lays147/KPS/merges","archive_url":"https://api.github.com/repos/lays147/KPS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lays147/KPS/downloads","issues_url":"https://api.github.com/repos/lays147/KPS/issues{/number}","pulls_url":"https://api.github.com/repos/lays147/KPS/pulls{/number}","milestones_url":"https://api.github.com/repos/lays147/KPS/milestones{/number}","notifications_url":"https://api.github.com/repos/lays147/KPS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lays147/KPS/labels{/name}","releases_url":"https://api.github.com/repos/lays147/KPS/releases{/id}","deployments_url":"https://api.github.com/repos/lays147/KPS/deployments","created_at":"2016-08-03T17:07:53Z","updated_at":"2016-08-03T17:07:55Z","pushed_at":"2016-08-13T18:22:57Z","git_url":"git://github.com/lays147/KPS.git","ssh_url":"git@github.com:lays147/KPS.git","clone_url":"https://github.com/lays147/KPS.git","svn_url":"https://github.com/lays147/KPS","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"TeamWho:master","ref":"master","sha":"baf96f25f4a3719455f741448422b9e721708b12","user":{"login":"TeamWho","id":20784139,"avatar_url":"https://avatars.githubusercontent.com/u/20784139?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamWho","html_url":"https://github.com/TeamWho","followers_url":"https://api.github.com/users/TeamWho/followers","following_url":"https://api.github.com/users/TeamWho/following{/other_user}","gists_url":"https://api.github.com/users/TeamWho/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamWho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamWho/subscriptions","organizations_url":"https://api.github.com/users/TeamWho/orgs","repos_url":"https://api.github.com/users/TeamWho/repos","events_url":"https://api.github.com/users/TeamWho/events{/privacy}","received_events_url":"https://api.github.com/users/TeamWho/received_events","type":"Organization","site_admin":false},"repo":{"id":64567522,"name":"KPS","full_name":"TeamWho/KPS","owner":{"login":"TeamWho","id":20784139,"avatar_url":"https://avatars.githubusercontent.com/u/20784139?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamWho","html_url":"https://github.com/TeamWho","followers_url":"https://api.github.com/users/TeamWho/followers","following_url":"https://api.github.com/users/TeamWho/following{/other_user}","gists_url":"https://api.github.com/users/TeamWho/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamWho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamWho/subscriptions","organizations_url":"https://api.github.com/users/TeamWho/orgs","repos_url":"https://api.github.com/users/TeamWho/repos","events_url":"https://api.github.com/users/TeamWho/events{/privacy}","received_events_url":"https://api.github.com/users/TeamWho/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeamWho/KPS","description":"KDE Print Service for 3D Printers","fork":false,"url":"https://api.github.com/repos/TeamWho/KPS","forks_url":"https://api.github.com/repos/TeamWho/KPS/forks","keys_url":"https://api.github.com/repos/TeamWho/KPS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeamWho/KPS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeamWho/KPS/teams","hooks_url":"https://api.github.com/repos/TeamWho/KPS/hooks","issue_events_url":"https://api.github.com/repos/TeamWho/KPS/issues/events{/number}","events_url":"https://api.github.com/repos/TeamWho/KPS/events","assignees_url":"https://api.github.com/repos/TeamWho/KPS/assignees{/user}","branches_url":"https://api.github.com/repos/TeamWho/KPS/branches{/branch}","tags_url":"https://api.github.com/repos/TeamWho/KPS/tags","blobs_url":"https://api.github.com/repos/TeamWho/KPS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeamWho/KPS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeamWho/KPS/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeamWho/KPS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeamWho/KPS/statuses/{sha}","languages_url":"https://api.github.com/repos/TeamWho/KPS/languages","stargazers_url":"https://api.github.com/repos/TeamWho/KPS/stargazers","contributors_url":"https://api.github.com/repos/TeamWho/KPS/contributors","subscribers_url":"https://api.github.com/repos/TeamWho/KPS/subscribers","subscription_url":"https://api.github.com/repos/TeamWho/KPS/subscription","commits_url":"https://api.github.com/repos/TeamWho/KPS/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeamWho/KPS/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeamWho/KPS/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeamWho/KPS/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeamWho/KPS/contents/{+path}","compare_url":"https://api.github.com/repos/TeamWho/KPS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeamWho/KPS/merges","archive_url":"https://api.github.com/repos/TeamWho/KPS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeamWho/KPS/downloads","issues_url":"https://api.github.com/repos/TeamWho/KPS/issues{/number}","pulls_url":"https://api.github.com/repos/TeamWho/KPS/pulls{/number}","milestones_url":"https://api.github.com/repos/TeamWho/KPS/milestones{/number}","notifications_url":"https://api.github.com/repos/TeamWho/KPS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeamWho/KPS/labels{/name}","releases_url":"https://api.github.com/repos/TeamWho/KPS/releases{/id}","deployments_url":"https://api.github.com/repos/TeamWho/KPS/deployments","created_at":"2016-07-30T23:01:37Z","updated_at":"2016-08-03T13:16:13Z","pushed_at":"2016-08-13T18:22:59Z","git_url":"git://github.com/TeamWho/KPS.git","ssh_url":"git@github.com:TeamWho/KPS.git","clone_url":"https://github.com/TeamWho/KPS.git","svn_url":"https://github.com/TeamWho/KPS","homepage":null,"size":41,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TeamWho/KPS/pulls/12"},"html":{"href":"https://github.com/TeamWho/KPS/pull/12"},"issue":{"href":"https://api.github.com/repos/TeamWho/KPS/issues/12"},"comments":{"href":"https://api.github.com/repos/TeamWho/KPS/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/TeamWho/KPS/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/TeamWho/KPS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TeamWho/KPS/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/TeamWho/KPS/statuses/ce9fd1a49803ff142a9c38fa6f9ac84ec502d887"}}}}
{"actor":{"display_login":"patrickelectric"}}