{"action":"created","comment":{"url":"https://api.github.com/repos/dimitar-asenov/Envision/pulls/comments/31113888","id":31113888,"diff_hunk":"@@ -0,0 +1,62 @@\n+/***********************************************************************************************************************\n+ **\n+ ** Copyright (c) 2011, 2014 ETH Zurich\n+ ** All rights reserved.\n+ **\n+ ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the\n+ ** following conditions are met:\n+ **\n+ **    * Redistributions of source code must retain the above copyright notice, this list of conditions and the\n+ **      following disclaimer.\n+ **    * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the\n+ **      following disclaimer in the documentation and/or other materials provided with the distribution.\n+ **    * Neither the name of the ETH Zurich nor the names of its contributors may be used to endorse or promote products\n+ **      derived from this software without specific prior written permission.\n+ **\n+ **\n+ ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,\n+ ** INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n+ ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+ ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n+ ** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n+ ** WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+ ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ **\n+ **********************************************************************************************************************/\n+\n+#include \"SwitchViewCommand.h\"\n+#include \"VisualizationBase/src/items/ViewItem.h\"\n+\n+namespace Interaction {\n+\n+SwitchViewCommand::SwitchViewCommand()\n+\t:MenuCommand(\"switch\", QStringList({\"name\"}))\n+{\n+}\n+\n+bool SwitchViewCommand::canUseTarget(Visualization::Item *, Visualization::Item *,\n+\t\tconst std::unique_ptr<Visualization::Cursor>&)\n+{\n+\treturn true;\n+}\n+\n+CommandResult* SwitchViewCommand::executeWithArguments(Visualization::Item *, Visualization::Item *target,\n+\t\tconst QStringList& arguments, const std::unique_ptr<Visualization::Cursor>&)\n+{\n+\tQString name = arguments.at(0);","path":"InteractionBase/src/commands/SwitchViewCommand.cpp","position":46,"original_position":46,"commit_id":"f208b7b1f02fc90a4d71a42b072a69b44a916e60","original_commit_id":"f208b7b1f02fc90a4d71a42b072a69b44a916e60","user":{"login":"dimitar-asenov","id":1152976,"avatar_url":"https://avatars.githubusercontent.com/u/1152976?v=3","gravatar_id":"","url":"https://api.github.com/users/dimitar-asenov","html_url":"https://github.com/dimitar-asenov","followers_url":"https://api.github.com/users/dimitar-asenov/followers","following_url":"https://api.github.com/users/dimitar-asenov/following{/other_user}","gists_url":"https://api.github.com/users/dimitar-asenov/gists{/gist_id}","starred_url":"https://api.github.com/users/dimitar-asenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimitar-asenov/subscriptions","organizations_url":"https://api.github.com/users/dimitar-asenov/orgs","repos_url":"https://api.github.com/users/dimitar-asenov/repos","events_url":"https://api.github.com/users/dimitar-asenov/events{/privacy}","received_events_url":"https://api.github.com/users/dimitar-asenov/received_events","type":"User","site_admin":false},"body":"are we guaranteed to have an argument?","created_at":"2015-05-27T08:50:34Z","updated_at":"2015-05-27T08:50:34Z","html_url":"https://github.com/dimitar-asenov/Envision/pull/93#discussion_r31113888","pull_request_url":"https://api.github.com/repos/dimitar-asenov/Envision/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/dimitar-asenov/Envision/pulls/comments/31113888"},"html":{"href":"https://github.com/dimitar-asenov/Envision/pull/93#discussion_r31113888"},"pull_request":{"href":"https://api.github.com/repos/dimitar-asenov/Envision/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/dimitar-asenov/Envision/pulls/93","id":35909239,"html_url":"https://github.com/dimitar-asenov/Envision/pull/93","diff_url":"https://github.com/dimitar-asenov/Envision/pull/93.diff","patch_url":"https://github.com/dimitar-asenov/Envision/pull/93.patch","issue_url":"https://api.github.com/repos/dimitar-asenov/Envision/issues/93","number":93,"state":"open","locked":false,"title":"Task views","user":{"login":"cyril-steimer","id":11210821,"avatar_url":"https://avatars.githubusercontent.com/u/11210821?v=3","gravatar_id":"","url":"https://api.github.com/users/cyril-steimer","html_url":"https://github.com/cyril-steimer","followers_url":"https://api.github.com/users/cyril-steimer/followers","following_url":"https://api.github.com/users/cyril-steimer/following{/other_user}","gists_url":"https://api.github.com/users/cyril-steimer/gists{/gist_id}","starred_url":"https://api.github.com/users/cyril-steimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyril-steimer/subscriptions","organizations_url":"https://api.github.com/users/cyril-steimer/orgs","repos_url":"https://api.github.com/users/cyril-steimer/repos","events_url":"https://api.github.com/users/cyril-steimer/events{/privacy}","received_events_url":"https://api.github.com/users/cyril-steimer/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-21T08:10:12Z","updated_at":"2015-05-27T08:50:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47a904d0e150d9d3a8f5ca5ddc6acd8fe3d7a0f1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dimitar-asenov/Envision/pulls/93/commits","review_comments_url":"https://api.github.com/repos/dimitar-asenov/Envision/pulls/93/comments","review_comment_url":"https://api.github.com/repos/dimitar-asenov/Envision/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dimitar-asenov/Envision/issues/93/comments","statuses_url":"https://api.github.com/repos/dimitar-asenov/Envision/statuses/f208b7b1f02fc90a4d71a42b072a69b44a916e60","head":{"label":"cyril-steimer:task-views","ref":"task-views","sha":"f208b7b1f02fc90a4d71a42b072a69b44a916e60","user":{"login":"cyril-steimer","id":11210821,"avatar_url":"https://avatars.githubusercontent.com/u/11210821?v=3","gravatar_id":"","url":"https://api.github.com/users/cyril-steimer","html_url":"https://github.com/cyril-steimer","followers_url":"https://api.github.com/users/cyril-steimer/followers","following_url":"https://api.github.com/users/cyril-steimer/following{/other_user}","gists_url":"https://api.github.com/users/cyril-steimer/gists{/gist_id}","starred_url":"https://api.github.com/users/cyril-steimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyril-steimer/subscriptions","organizations_url":"https://api.github.com/users/cyril-steimer/orgs","repos_url":"https://api.github.com/users/cyril-steimer/repos","events_url":"https://api.github.com/users/cyril-steimer/events{/privacy}","received_events_url":"https://api.github.com/users/cyril-steimer/received_events","type":"User","site_admin":false},"repo":{"id":31468586,"name":"Envision","full_name":"cyril-steimer/Envision","owner":{"login":"cyril-steimer","id":11210821,"avatar_url":"https://avatars.githubusercontent.com/u/11210821?v=3","gravatar_id":"","url":"https://api.github.com/users/cyril-steimer","html_url":"https://github.com/cyril-steimer","followers_url":"https://api.github.com/users/cyril-steimer/followers","following_url":"https://api.github.com/users/cyril-steimer/following{/other_user}","gists_url":"https://api.github.com/users/cyril-steimer/gists{/gist_id}","starred_url":"https://api.github.com/users/cyril-steimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyril-steimer/subscriptions","organizations_url":"https://api.github.com/users/cyril-steimer/orgs","repos_url":"https://api.github.com/users/cyril-steimer/repos","events_url":"https://api.github.com/users/cyril-steimer/events{/privacy}","received_events_url":"https://api.github.com/users/cyril-steimer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cyril-steimer/Envision","description":"A next generation IDE with a visual programming interface","fork":true,"url":"https://api.github.com/repos/cyril-steimer/Envision","forks_url":"https://api.github.com/repos/cyril-steimer/Envision/forks","keys_url":"https://api.github.com/repos/cyril-steimer/Envision/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyril-steimer/Envision/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyril-steimer/Envision/teams","hooks_url":"https://api.github.com/repos/cyril-steimer/Envision/hooks","issue_events_url":"https://api.github.com/repos/cyril-steimer/Envision/issues/events{/number}","events_url":"https://api.github.com/repos/cyril-steimer/Envision/events","assignees_url":"https://api.github.com/repos/cyril-steimer/Envision/assignees{/user}","branches_url":"https://api.github.com/repos/cyril-steimer/Envision/branches{/branch}","tags_url":"https://api.github.com/repos/cyril-steimer/Envision/tags","blobs_url":"https://api.github.com/repos/cyril-steimer/Envision/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyril-steimer/Envision/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyril-steimer/Envision/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyril-steimer/Envision/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyril-steimer/Envision/statuses/{sha}","languages_url":"https://api.github.com/repos/cyril-steimer/Envision/languages","stargazers_url":"https://api.github.com/repos/cyril-steimer/Envision/stargazers","contributors_url":"https://api.github.com/repos/cyril-steimer/Envision/contributors","subscribers_url":"https://api.github.com/repos/cyril-steimer/Envision/subscribers","subscription_url":"https://api.github.com/repos/cyril-steimer/Envision/subscription","commits_url":"https://api.github.com/repos/cyril-steimer/Envision/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyril-steimer/Envision/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyril-steimer/Envision/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyril-steimer/Envision/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyril-steimer/Envision/contents/{+path}","compare_url":"https://api.github.com/repos/cyril-steimer/Envision/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyril-steimer/Envision/merges","archive_url":"https://api.github.com/repos/cyril-steimer/Envision/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyril-steimer/Envision/downloads","issues_url":"https://api.github.com/repos/cyril-steimer/Envision/issues{/number}","pulls_url":"https://api.github.com/repos/cyril-steimer/Envision/pulls{/number}","milestones_url":"https://api.github.com/repos/cyril-steimer/Envision/milestones{/number}","notifications_url":"https://api.github.com/repos/cyril-steimer/Envision/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyril-steimer/Envision/labels{/name}","releases_url":"https://api.github.com/repos/cyril-steimer/Envision/releases{/id}","created_at":"2015-02-28T16:40:30Z","updated_at":"2015-03-05T13:45:04Z","pushed_at":"2015-05-26T20:22:32Z","git_url":"git://github.com/cyril-steimer/Envision.git","ssh_url":"git@github.com:cyril-steimer/Envision.git","clone_url":"https://github.com/cyril-steimer/Envision.git","svn_url":"https://github.com/cyril-steimer/Envision","homepage":"http://dimitar-asenov.github.com/Envision/","size":41769,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"dimitar-asenov:development","ref":"development","sha":"593bd1ab8b009aebaa249849c9b62581cf4157b3","user":{"login":"dimitar-asenov","id":1152976,"avatar_url":"https://avatars.githubusercontent.com/u/1152976?v=3","gravatar_id":"","url":"https://api.github.com/users/dimitar-asenov","html_url":"https://github.com/dimitar-asenov","followers_url":"https://api.github.com/users/dimitar-asenov/followers","following_url":"https://api.github.com/users/dimitar-asenov/following{/other_user}","gists_url":"https://api.github.com/users/dimitar-asenov/gists{/gist_id}","starred_url":"https://api.github.com/users/dimitar-asenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimitar-asenov/subscriptions","organizations_url":"https://api.github.com/users/dimitar-asenov/orgs","repos_url":"https://api.github.com/users/dimitar-asenov/repos","events_url":"https://api.github.com/users/dimitar-asenov/events{/privacy}","received_events_url":"https://api.github.com/users/dimitar-asenov/received_events","type":"User","site_admin":false},"repo":{"id":2650576,"name":"Envision","full_name":"dimitar-asenov/Envision","owner":{"login":"dimitar-asenov","id":1152976,"avatar_url":"https://avatars.githubusercontent.com/u/1152976?v=3","gravatar_id":"","url":"https://api.github.com/users/dimitar-asenov","html_url":"https://github.com/dimitar-asenov","followers_url":"https://api.github.com/users/dimitar-asenov/followers","following_url":"https://api.github.com/users/dimitar-asenov/following{/other_user}","gists_url":"https://api.github.com/users/dimitar-asenov/gists{/gist_id}","starred_url":"https://api.github.com/users/dimitar-asenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimitar-asenov/subscriptions","organizations_url":"https://api.github.com/users/dimitar-asenov/orgs","repos_url":"https://api.github.com/users/dimitar-asenov/repos","events_url":"https://api.github.com/users/dimitar-asenov/events{/privacy}","received_events_url":"https://api.github.com/users/dimitar-asenov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dimitar-asenov/Envision","description":"A next generation IDE with a visual programming interface","fork":false,"url":"https://api.github.com/repos/dimitar-asenov/Envision","forks_url":"https://api.github.com/repos/dimitar-asenov/Envision/forks","keys_url":"https://api.github.com/repos/dimitar-asenov/Envision/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimitar-asenov/Envision/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimitar-asenov/Envision/teams","hooks_url":"https://api.github.com/repos/dimitar-asenov/Envision/hooks","issue_events_url":"https://api.github.com/repos/dimitar-asenov/Envision/issues/events{/number}","events_url":"https://api.github.com/repos/dimitar-asenov/Envision/events","assignees_url":"https://api.github.com/repos/dimitar-asenov/Envision/assignees{/user}","branches_url":"https://api.github.com/repos/dimitar-asenov/Envision/branches{/branch}","tags_url":"https://api.github.com/repos/dimitar-asenov/Envision/tags","blobs_url":"https://api.github.com/repos/dimitar-asenov/Envision/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimitar-asenov/Envision/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimitar-asenov/Envision/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimitar-asenov/Envision/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimitar-asenov/Envision/statuses/{sha}","languages_url":"https://api.github.com/repos/dimitar-asenov/Envision/languages","stargazers_url":"https://api.github.com/repos/dimitar-asenov/Envision/stargazers","contributors_url":"https://api.github.com/repos/dimitar-asenov/Envision/contributors","subscribers_url":"https://api.github.com/repos/dimitar-asenov/Envision/subscribers","subscription_url":"https://api.github.com/repos/dimitar-asenov/Envision/subscription","commits_url":"https://api.github.com/repos/dimitar-asenov/Envision/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimitar-asenov/Envision/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimitar-asenov/Envision/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimitar-asenov/Envision/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimitar-asenov/Envision/contents/{+path}","compare_url":"https://api.github.com/repos/dimitar-asenov/Envision/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimitar-asenov/Envision/merges","archive_url":"https://api.github.com/repos/dimitar-asenov/Envision/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimitar-asenov/Envision/downloads","issues_url":"https://api.github.com/repos/dimitar-asenov/Envision/issues{/number}","pulls_url":"https://api.github.com/repos/dimitar-asenov/Envision/pulls{/number}","milestones_url":"https://api.github.com/repos/dimitar-asenov/Envision/milestones{/number}","notifications_url":"https://api.github.com/repos/dimitar-asenov/Envision/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimitar-asenov/Envision/labels{/name}","releases_url":"https://api.github.com/repos/dimitar-asenov/Envision/releases{/id}","created_at":"2011-10-26T12:03:58Z","updated_at":"2015-05-20T19:33:46Z","pushed_at":"2015-05-26T20:22:33Z","git_url":"git://github.com/dimitar-asenov/Envision.git","ssh_url":"git@github.com:dimitar-asenov/Envision.git","clone_url":"https://github.com/dimitar-asenov/Envision.git","svn_url":"https://github.com/dimitar-asenov/Envision","homepage":"http://dimitar-asenov.github.com/Envision/","size":46979,"stargazers_count":17,"watchers_count":17,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":14,"mirror_url":null,"open_issues_count":31,"forks":14,"open_issues":31,"watchers":17,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/dimitar-asenov/Envision/pulls/93"},"html":{"href":"https://github.com/dimitar-asenov/Envision/pull/93"},"issue":{"href":"https://api.github.com/repos/dimitar-asenov/Envision/issues/93"},"comments":{"href":"https://api.github.com/repos/dimitar-asenov/Envision/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/dimitar-asenov/Envision/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/dimitar-asenov/Envision/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dimitar-asenov/Envision/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/dimitar-asenov/Envision/statuses/f208b7b1f02fc90a4d71a42b072a69b44a916e60"}}}}