{"action":"created","comment":{"url":"https://api.github.com/repos/NicholasBushUM/FreeBody/pulls/comments/85869533","pull_request_review_id":6558583,"id":85869533,"diff_hunk":"@@ -80,10 +84,50 @@ void ImagesMenu::uploadNewImage() {\n         QMessageBox::information(nullptr, \"Error Message\", \"Error: Unable to upload image!\");\n         return;\n     }\n+    else {\n+        // insert new image into imagesLookup map - use filename as tooltip\n+        imagesLookup.insert(imageCounter, QPair<QString, QString>(uploadFileName, uploadDest));\n+        imageCounter++;\n+    }\n+\n+    showImages();\n+}\n+\n+void ImagesMenu::deleteImage1(){\n+    deleteImage(\"1\");\n+}\n+\n+void ImagesMenu::deleteImage2(){\n+    deleteImage(\"2\");\n+}\n+\n+void ImagesMenu::deleteImage3(){\n+    deleteImage(\"3\");\n+}\n \n-    // insert new image into imagesLookup map - use filename as tooltip\n-    imagesLookup.insert(imageCounter, QPair<QString, QString>(uploadFileName, uploadDest));\n-    imageCounter++;\n+void ImagesMenu::deleteImage(QString imgNum){\n+    QGraphicsView* imageView = findChild<QGraphicsView*>(QString(\"%1%2\").arg(kImageViewPrefix).arg(imgNum));\n+    QString filename = imageView->toolTip();\n+\n+    // get uploaded images directory\n+    QDir uploadDir(QDir::currentPath());\n+    uploadDir.cdUp();\n+    uploadDir.cd(\"FreeBodyDesktop\");\n+    uploadDir.cd(\"UploadedImages\");\n+\n+    // get path to delete (directoy + new filename)","path":"FreeBodyDesktop/ImagesMenu.cpp","position":56,"original_position":56,"commit_id":"2289bb8d666a0a5133cbdfeea4169e0b46ab6d50","original_commit_id":"2289bb8d666a0a5133cbdfeea4169e0b46ab6d50","user":{"login":"joshagby","id":22061127,"avatar_url":"https://avatars.githubusercontent.com/u/22061127?v=3","gravatar_id":"","url":"https://api.github.com/users/joshagby","html_url":"https://github.com/joshagby","followers_url":"https://api.github.com/users/joshagby/followers","following_url":"https://api.github.com/users/joshagby/following{/other_user}","gists_url":"https://api.github.com/users/joshagby/gists{/gist_id}","starred_url":"https://api.github.com/users/joshagby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshagby/subscriptions","organizations_url":"https://api.github.com/users/joshagby/orgs","repos_url":"https://api.github.com/users/joshagby/repos","events_url":"https://api.github.com/users/joshagby/events{/privacy}","received_events_url":"https://api.github.com/users/joshagby/received_events","type":"User","site_admin":false},"body":"Fixed...also...I usually don't put a space between a function declaration / if statement and the open bracket. ","created_at":"2016-11-01T02:54:57Z","updated_at":"2016-11-01T02:54:58Z","html_url":"https://github.com/NicholasBushUM/FreeBody/pull/19#discussion_r85869533","pull_request_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/NicholasBushUM/FreeBody/pulls/comments/85869533"},"html":{"href":"https://github.com/NicholasBushUM/FreeBody/pull/19#discussion_r85869533"},"pull_request":{"href":"https://api.github.com/repos/NicholasBushUM/FreeBody/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/NicholasBushUM/FreeBody/pulls/19","id":91562844,"html_url":"https://github.com/NicholasBushUM/FreeBody/pull/19","diff_url":"https://github.com/NicholasBushUM/FreeBody/pull/19.diff","patch_url":"https://github.com/NicholasBushUM/FreeBody/pull/19.patch","issue_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/issues/19","number":19,"state":"open","locked":false,"title":"Implement remove image and text box","user":{"login":"joshagby","id":22061127,"avatar_url":"https://avatars.githubusercontent.com/u/22061127?v=3","gravatar_id":"","url":"https://api.github.com/users/joshagby","html_url":"https://github.com/joshagby","followers_url":"https://api.github.com/users/joshagby/followers","following_url":"https://api.github.com/users/joshagby/following{/other_user}","gists_url":"https://api.github.com/users/joshagby/gists{/gist_id}","starred_url":"https://api.github.com/users/joshagby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshagby/subscriptions","organizations_url":"https://api.github.com/users/joshagby/orgs","repos_url":"https://api.github.com/users/joshagby/repos","events_url":"https://api.github.com/users/joshagby/events{/privacy}","received_events_url":"https://api.github.com/users/joshagby/received_events","type":"User","site_admin":false},"body":"This PR is for the new Text Box / Editor features and the Remove Image Feature. \r\n\r\nThe text box feature included the creation of a new QGraphicsItem (TextBoxItem) that inherits from the QGraphicsTextItem class in addition to the creation of a new menu item (TextMenu). The TextBoxItem itself can be moved around the canvas and deleted from the canvas. The text inside the item can be changed by clicking the item and typing. To change aspects of the text (other than the text itself) the new TextMenu can be used, which gets opened anytime a TextBoxItem on the canvas is selected. Currently the TextMenu only has a slider to change the size of the text, but additional features can easily be added.\r\n\r\nThe remove image feature allows the user to delete images they have uploaded. Currently the user does this by clicking a Delete button below an image; however it doesn't look super pretty and can/should be changed in the next sprint. \r\n\r\nThere are a few minor bugs that I am already aware of, will bring them up at Sprint Demo meeting. ","created_at":"2016-10-31T06:40:52Z","updated_at":"2016-11-01T02:54:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eee3fdf15d256764729469c773ced0d519b1ce65","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/pulls/19/commits","review_comments_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/pulls/19/comments","review_comment_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/issues/19/comments","statuses_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/statuses/2289bb8d666a0a5133cbdfeea4169e0b46ab6d50","head":{"label":"NicholasBushUM:ImplementRemoveImageAndTextBox","ref":"ImplementRemoveImageAndTextBox","sha":"2289bb8d666a0a5133cbdfeea4169e0b46ab6d50","user":{"login":"NicholasBushUM","id":10801135,"avatar_url":"https://avatars.githubusercontent.com/u/10801135?v=3","gravatar_id":"","url":"https://api.github.com/users/NicholasBushUM","html_url":"https://github.com/NicholasBushUM","followers_url":"https://api.github.com/users/NicholasBushUM/followers","following_url":"https://api.github.com/users/NicholasBushUM/following{/other_user}","gists_url":"https://api.github.com/users/NicholasBushUM/gists{/gist_id}","starred_url":"https://api.github.com/users/NicholasBushUM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicholasBushUM/subscriptions","organizations_url":"https://api.github.com/users/NicholasBushUM/orgs","repos_url":"https://api.github.com/users/NicholasBushUM/repos","events_url":"https://api.github.com/users/NicholasBushUM/events{/privacy}","received_events_url":"https://api.github.com/users/NicholasBushUM/received_events","type":"User","site_admin":false},"repo":{"id":69675575,"name":"FreeBody","full_name":"NicholasBushUM/FreeBody","owner":{"login":"NicholasBushUM","id":10801135,"avatar_url":"https://avatars.githubusercontent.com/u/10801135?v=3","gravatar_id":"","url":"https://api.github.com/users/NicholasBushUM","html_url":"https://github.com/NicholasBushUM","followers_url":"https://api.github.com/users/NicholasBushUM/followers","following_url":"https://api.github.com/users/NicholasBushUM/following{/other_user}","gists_url":"https://api.github.com/users/NicholasBushUM/gists{/gist_id}","starred_url":"https://api.github.com/users/NicholasBushUM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicholasBushUM/subscriptions","organizations_url":"https://api.github.com/users/NicholasBushUM/orgs","repos_url":"https://api.github.com/users/NicholasBushUM/repos","events_url":"https://api.github.com/users/NicholasBushUM/events{/privacy}","received_events_url":"https://api.github.com/users/NicholasBushUM/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NicholasBushUM/FreeBody","description":"The repository used by Team FBDev during the Fall 2016 semester of EECS 481.","fork":false,"url":"https://api.github.com/repos/NicholasBushUM/FreeBody","forks_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/forks","keys_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/teams","hooks_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/hooks","issue_events_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/issues/events{/number}","events_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/events","assignees_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/assignees{/user}","branches_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/branches{/branch}","tags_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/tags","blobs_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/git/refs{/sha}","trees_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/statuses/{sha}","languages_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/languages","stargazers_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/stargazers","contributors_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/contributors","subscribers_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/subscribers","subscription_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/subscription","commits_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/commits{/sha}","git_commits_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/git/commits{/sha}","comments_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/comments{/number}","issue_comment_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/issues/comments{/number}","contents_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/contents/{+path}","compare_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/merges","archive_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/downloads","issues_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/issues{/number}","pulls_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/pulls{/number}","milestones_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/milestones{/number}","notifications_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/labels{/name}","releases_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/releases{/id}","deployments_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/deployments","created_at":"2016-09-30T14:51:43Z","updated_at":"2016-10-26T17:56:40Z","pushed_at":"2016-10-31T06:40:52Z","git_url":"git://github.com/NicholasBushUM/FreeBody.git","ssh_url":"git@github.com:NicholasBushUM/FreeBody.git","clone_url":"https://github.com/NicholasBushUM/FreeBody.git","svn_url":"https://github.com/NicholasBushUM/FreeBody","homepage":null,"size":11661,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"NicholasBushUM:sprint4","ref":"sprint4","sha":"ff5cd2070b3d60d8af3a597d520d8d41777884b9","user":{"login":"NicholasBushUM","id":10801135,"avatar_url":"https://avatars.githubusercontent.com/u/10801135?v=3","gravatar_id":"","url":"https://api.github.com/users/NicholasBushUM","html_url":"https://github.com/NicholasBushUM","followers_url":"https://api.github.com/users/NicholasBushUM/followers","following_url":"https://api.github.com/users/NicholasBushUM/following{/other_user}","gists_url":"https://api.github.com/users/NicholasBushUM/gists{/gist_id}","starred_url":"https://api.github.com/users/NicholasBushUM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicholasBushUM/subscriptions","organizations_url":"https://api.github.com/users/NicholasBushUM/orgs","repos_url":"https://api.github.com/users/NicholasBushUM/repos","events_url":"https://api.github.com/users/NicholasBushUM/events{/privacy}","received_events_url":"https://api.github.com/users/NicholasBushUM/received_events","type":"User","site_admin":false},"repo":{"id":69675575,"name":"FreeBody","full_name":"NicholasBushUM/FreeBody","owner":{"login":"NicholasBushUM","id":10801135,"avatar_url":"https://avatars.githubusercontent.com/u/10801135?v=3","gravatar_id":"","url":"https://api.github.com/users/NicholasBushUM","html_url":"https://github.com/NicholasBushUM","followers_url":"https://api.github.com/users/NicholasBushUM/followers","following_url":"https://api.github.com/users/NicholasBushUM/following{/other_user}","gists_url":"https://api.github.com/users/NicholasBushUM/gists{/gist_id}","starred_url":"https://api.github.com/users/NicholasBushUM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicholasBushUM/subscriptions","organizations_url":"https://api.github.com/users/NicholasBushUM/orgs","repos_url":"https://api.github.com/users/NicholasBushUM/repos","events_url":"https://api.github.com/users/NicholasBushUM/events{/privacy}","received_events_url":"https://api.github.com/users/NicholasBushUM/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NicholasBushUM/FreeBody","description":"The repository used by Team FBDev during the Fall 2016 semester of EECS 481.","fork":false,"url":"https://api.github.com/repos/NicholasBushUM/FreeBody","forks_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/forks","keys_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/teams","hooks_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/hooks","issue_events_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/issues/events{/number}","events_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/events","assignees_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/assignees{/user}","branches_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/branches{/branch}","tags_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/tags","blobs_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/git/refs{/sha}","trees_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/statuses/{sha}","languages_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/languages","stargazers_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/stargazers","contributors_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/contributors","subscribers_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/subscribers","subscription_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/subscription","commits_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/commits{/sha}","git_commits_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/git/commits{/sha}","comments_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/comments{/number}","issue_comment_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/issues/comments{/number}","contents_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/contents/{+path}","compare_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/merges","archive_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/downloads","issues_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/issues{/number}","pulls_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/pulls{/number}","milestones_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/milestones{/number}","notifications_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/labels{/name}","releases_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/releases{/id}","deployments_url":"https://api.github.com/repos/NicholasBushUM/FreeBody/deployments","created_at":"2016-09-30T14:51:43Z","updated_at":"2016-10-26T17:56:40Z","pushed_at":"2016-10-31T06:40:52Z","git_url":"git://github.com/NicholasBushUM/FreeBody.git","ssh_url":"git@github.com:NicholasBushUM/FreeBody.git","clone_url":"https://github.com/NicholasBushUM/FreeBody.git","svn_url":"https://github.com/NicholasBushUM/FreeBody","homepage":null,"size":11661,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NicholasBushUM/FreeBody/pulls/19"},"html":{"href":"https://github.com/NicholasBushUM/FreeBody/pull/19"},"issue":{"href":"https://api.github.com/repos/NicholasBushUM/FreeBody/issues/19"},"comments":{"href":"https://api.github.com/repos/NicholasBushUM/FreeBody/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/NicholasBushUM/FreeBody/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/NicholasBushUM/FreeBody/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NicholasBushUM/FreeBody/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/NicholasBushUM/FreeBody/statuses/2289bb8d666a0a5133cbdfeea4169e0b46ab6d50"}}}}
{"actor":{"display_login":"joshagby"}}