{"action":"created","comment":{"url":"https://api.github.com/repos/enki-community/enki/pulls/comments/80873016","pull_request_review_id":1894672,"id":80873016,"diff_hunk":"@@ -111,23 +124,58 @@ namespace Enki\n \t\ttypedef QMapIterator<const std::type_info*, const std::type_info*> ManagedObjectsAliasesMapIterator;\n \t\tManagedObjectsAliasesMap managedObjectsAliases;\n \t\t\n+\t\ttypedef std::pair<QString, unsigned int> viewerMessage;\n+\t\tstd::list<viewerMessage> messageList;\n+\t\tQString controlError1;\t// dislpayed if user try to move an object in trackball mode : action forbiden to prevent glitchies\n+\t\tQString controlError2;\t// dislpayed if user try to move camera in trackball mode\n+\t\tQString controlHelp;\t// dislpayed if user press F1\n+\n+\t\tstruct ExtendedAttributes\n+\t\t{\n+\t\t\tbool movableByPicking;\n+\n+\t\t\tExtendedAttributes():movableByPicking(false){};\n+\t\t};\n+\t\tstd::map<PhysicalObject*, ExtendedAttributes> objectExtendedAttributesList;\n+\n \t\tbool mouseGrabbed;\n \t\tQPoint mouseGrabPos;\n \t\tdouble wallsHeight;\n-\t\t\n-\t\tbool doDumpFrames;\n+\t\t//! to know if camera is in trackball mode\n+\t\tbool trackballView;\n \t\tint dumpFramesCounter;\n \t\n+\t\tPhysicalObject *pointedObject, *selectedObject;\n+\t\tQVector3D pointedPoint;\n+\n \tpublic:\n \t\tViewerWidget(World *world, QWidget *parent = 0);\n \t\t~ViewerWidget();\n \t\n+\t\tvoid addManagedObjectsAlias(const std::type_info* key, const std::type_info* value);\n+\n+\t\tWorld* getWorld();\n+\t\tQVector3D getPointedPoint();\n+\t\tPhysicalObject* getPointedObject();\n+\t\tPhysicalObject* getSelectedObject();\n+\t\tbool isTrackballActivated();\n+\t\tQString getHelpString();\n+\t\tbool isMovableByPicking(PhysicalObject* object);\n+\n+\t\tvoid setMovableByPicking(PhysicalObject* object, bool movable);\n+\n+\t\tvoid timerEvent(QTimerEvent * event);\n+\t\tvoid keyPressEvent(QKeyEvent* event);","path":"viewer/Viewer.h","position":99,"original_position":99,"commit_id":"94cfae434172e768c062248c296e666836c2952e","original_commit_id":"94cfae434172e768c062248c296e666836c2952e","user":{"login":"Titwin","id":14015885,"avatar_url":"https://avatars.githubusercontent.com/u/14015885?v=3","gravatar_id":"","url":"https://api.github.com/users/Titwin","html_url":"https://github.com/Titwin","followers_url":"https://api.github.com/users/Titwin/followers","following_url":"https://api.github.com/users/Titwin/following{/other_user}","gists_url":"https://api.github.com/users/Titwin/gists{/gist_id}","starred_url":"https://api.github.com/users/Titwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Titwin/subscriptions","organizations_url":"https://api.github.com/users/Titwin/orgs","repos_url":"https://api.github.com/users/Titwin/repos","events_url":"https://api.github.com/users/Titwin/events{/privacy}","received_events_url":"https://api.github.com/users/Titwin/received_events","type":"User","site_admin":false},"body":"I try without this \"hook\" but it's not working, I don't know why","created_at":"2016-09-28T09:11:08Z","updated_at":"2016-09-28T09:11:08Z","html_url":"https://github.com/enki-community/enki/pull/19#discussion_r80873016","pull_request_url":"https://api.github.com/repos/enki-community/enki/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/enki-community/enki/pulls/comments/80873016"},"html":{"href":"https://github.com/enki-community/enki/pull/19#discussion_r80873016"},"pull_request":{"href":"https://api.github.com/repos/enki-community/enki/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/enki-community/enki/pulls/19","id":86708286,"html_url":"https://github.com/enki-community/enki/pull/19","diff_url":"https://github.com/enki-community/enki/pull/19.diff","patch_url":"https://github.com/enki-community/enki/pull/19.patch","issue_url":"https://api.github.com/repos/enki-community/enki/issues/19","number":19,"state":"open","locked":false,"title":"Pr17 picking","user":{"login":"Titwin","id":14015885,"avatar_url":"https://avatars.githubusercontent.com/u/14015885?v=3","gravatar_id":"","url":"https://api.github.com/users/Titwin","html_url":"https://github.com/Titwin","followers_url":"https://api.github.com/users/Titwin/followers","following_url":"https://api.github.com/users/Titwin/following{/other_user}","gists_url":"https://api.github.com/users/Titwin/gists{/gist_id}","starred_url":"https://api.github.com/users/Titwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Titwin/subscriptions","organizations_url":"https://api.github.com/users/Titwin/orgs","repos_url":"https://api.github.com/users/Titwin/repos","events_url":"https://api.github.com/users/Titwin/events{/privacy}","received_events_url":"https://api.github.com/users/Titwin/received_events","type":"User","site_admin":false},"body":"Implement picking for enki viewer","created_at":"2016-09-26T09:28:52Z","updated_at":"2016-09-28T09:11:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1889c302996ce5acac634795ec5f66c70c15afe8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/enki-community/enki/pulls/19/commits","review_comments_url":"https://api.github.com/repos/enki-community/enki/pulls/19/comments","review_comment_url":"https://api.github.com/repos/enki-community/enki/pulls/comments{/number}","comments_url":"https://api.github.com/repos/enki-community/enki/issues/19/comments","statuses_url":"https://api.github.com/repos/enki-community/enki/statuses/94cfae434172e768c062248c296e666836c2952e","head":{"label":"Titwin:pr17-picking","ref":"pr17-picking","sha":"94cfae434172e768c062248c296e666836c2952e","user":{"login":"Titwin","id":14015885,"avatar_url":"https://avatars.githubusercontent.com/u/14015885?v=3","gravatar_id":"","url":"https://api.github.com/users/Titwin","html_url":"https://github.com/Titwin","followers_url":"https://api.github.com/users/Titwin/followers","following_url":"https://api.github.com/users/Titwin/following{/other_user}","gists_url":"https://api.github.com/users/Titwin/gists{/gist_id}","starred_url":"https://api.github.com/users/Titwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Titwin/subscriptions","organizations_url":"https://api.github.com/users/Titwin/orgs","repos_url":"https://api.github.com/users/Titwin/repos","events_url":"https://api.github.com/users/Titwin/events{/privacy}","received_events_url":"https://api.github.com/users/Titwin/received_events","type":"User","site_admin":false},"repo":{"id":66346812,"name":"enki-INRIA","full_name":"Titwin/enki-INRIA","owner":{"login":"Titwin","id":14015885,"avatar_url":"https://avatars.githubusercontent.com/u/14015885?v=3","gravatar_id":"","url":"https://api.github.com/users/Titwin","html_url":"https://github.com/Titwin","followers_url":"https://api.github.com/users/Titwin/followers","following_url":"https://api.github.com/users/Titwin/following{/other_user}","gists_url":"https://api.github.com/users/Titwin/gists{/gist_id}","starred_url":"https://api.github.com/users/Titwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Titwin/subscriptions","organizations_url":"https://api.github.com/users/Titwin/orgs","repos_url":"https://api.github.com/users/Titwin/repos","events_url":"https://api.github.com/users/Titwin/events{/privacy}","received_events_url":"https://api.github.com/users/Titwin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Titwin/enki-INRIA","description":"A fast 2-D robot simulator","fork":true,"url":"https://api.github.com/repos/Titwin/enki-INRIA","forks_url":"https://api.github.com/repos/Titwin/enki-INRIA/forks","keys_url":"https://api.github.com/repos/Titwin/enki-INRIA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Titwin/enki-INRIA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Titwin/enki-INRIA/teams","hooks_url":"https://api.github.com/repos/Titwin/enki-INRIA/hooks","issue_events_url":"https://api.github.com/repos/Titwin/enki-INRIA/issues/events{/number}","events_url":"https://api.github.com/repos/Titwin/enki-INRIA/events","assignees_url":"https://api.github.com/repos/Titwin/enki-INRIA/assignees{/user}","branches_url":"https://api.github.com/repos/Titwin/enki-INRIA/branches{/branch}","tags_url":"https://api.github.com/repos/Titwin/enki-INRIA/tags","blobs_url":"https://api.github.com/repos/Titwin/enki-INRIA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Titwin/enki-INRIA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Titwin/enki-INRIA/git/refs{/sha}","trees_url":"https://api.github.com/repos/Titwin/enki-INRIA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Titwin/enki-INRIA/statuses/{sha}","languages_url":"https://api.github.com/repos/Titwin/enki-INRIA/languages","stargazers_url":"https://api.github.com/repos/Titwin/enki-INRIA/stargazers","contributors_url":"https://api.github.com/repos/Titwin/enki-INRIA/contributors","subscribers_url":"https://api.github.com/repos/Titwin/enki-INRIA/subscribers","subscription_url":"https://api.github.com/repos/Titwin/enki-INRIA/subscription","commits_url":"https://api.github.com/repos/Titwin/enki-INRIA/commits{/sha}","git_commits_url":"https://api.github.com/repos/Titwin/enki-INRIA/git/commits{/sha}","comments_url":"https://api.github.com/repos/Titwin/enki-INRIA/comments{/number}","issue_comment_url":"https://api.github.com/repos/Titwin/enki-INRIA/issues/comments{/number}","contents_url":"https://api.github.com/repos/Titwin/enki-INRIA/contents/{+path}","compare_url":"https://api.github.com/repos/Titwin/enki-INRIA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Titwin/enki-INRIA/merges","archive_url":"https://api.github.com/repos/Titwin/enki-INRIA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Titwin/enki-INRIA/downloads","issues_url":"https://api.github.com/repos/Titwin/enki-INRIA/issues{/number}","pulls_url":"https://api.github.com/repos/Titwin/enki-INRIA/pulls{/number}","milestones_url":"https://api.github.com/repos/Titwin/enki-INRIA/milestones{/number}","notifications_url":"https://api.github.com/repos/Titwin/enki-INRIA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Titwin/enki-INRIA/labels{/name}","releases_url":"https://api.github.com/repos/Titwin/enki-INRIA/releases{/id}","deployments_url":"https://api.github.com/repos/Titwin/enki-INRIA/deployments","created_at":"2016-08-23T08:05:19Z","updated_at":"2016-09-19T19:09:16Z","pushed_at":"2016-09-27T09:24:27Z","git_url":"git://github.com/Titwin/enki-INRIA.git","ssh_url":"git@github.com:Titwin/enki-INRIA.git","clone_url":"https://github.com/Titwin/enki-INRIA.git","svn_url":"https://github.com/Titwin/enki-INRIA","homepage":"http://home.gna.org/enki/","size":8922,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"enki-community:master","ref":"master","sha":"aea85abed9517501615624baaa631d91da59952f","user":{"login":"enki-community","id":3657645,"avatar_url":"https://avatars.githubusercontent.com/u/3657645?v=3","gravatar_id":"","url":"https://api.github.com/users/enki-community","html_url":"https://github.com/enki-community","followers_url":"https://api.github.com/users/enki-community/followers","following_url":"https://api.github.com/users/enki-community/following{/other_user}","gists_url":"https://api.github.com/users/enki-community/gists{/gist_id}","starred_url":"https://api.github.com/users/enki-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enki-community/subscriptions","organizations_url":"https://api.github.com/users/enki-community/orgs","repos_url":"https://api.github.com/users/enki-community/repos","events_url":"https://api.github.com/users/enki-community/events{/privacy}","received_events_url":"https://api.github.com/users/enki-community/received_events","type":"Organization","site_admin":false},"repo":{"id":8331780,"name":"enki","full_name":"enki-community/enki","owner":{"login":"enki-community","id":3657645,"avatar_url":"https://avatars.githubusercontent.com/u/3657645?v=3","gravatar_id":"","url":"https://api.github.com/users/enki-community","html_url":"https://github.com/enki-community","followers_url":"https://api.github.com/users/enki-community/followers","following_url":"https://api.github.com/users/enki-community/following{/other_user}","gists_url":"https://api.github.com/users/enki-community/gists{/gist_id}","starred_url":"https://api.github.com/users/enki-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enki-community/subscriptions","organizations_url":"https://api.github.com/users/enki-community/orgs","repos_url":"https://api.github.com/users/enki-community/repos","events_url":"https://api.github.com/users/enki-community/events{/privacy}","received_events_url":"https://api.github.com/users/enki-community/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enki-community/enki","description":"A fast 2-D robot simulator","fork":false,"url":"https://api.github.com/repos/enki-community/enki","forks_url":"https://api.github.com/repos/enki-community/enki/forks","keys_url":"https://api.github.com/repos/enki-community/enki/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enki-community/enki/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enki-community/enki/teams","hooks_url":"https://api.github.com/repos/enki-community/enki/hooks","issue_events_url":"https://api.github.com/repos/enki-community/enki/issues/events{/number}","events_url":"https://api.github.com/repos/enki-community/enki/events","assignees_url":"https://api.github.com/repos/enki-community/enki/assignees{/user}","branches_url":"https://api.github.com/repos/enki-community/enki/branches{/branch}","tags_url":"https://api.github.com/repos/enki-community/enki/tags","blobs_url":"https://api.github.com/repos/enki-community/enki/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enki-community/enki/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enki-community/enki/git/refs{/sha}","trees_url":"https://api.github.com/repos/enki-community/enki/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enki-community/enki/statuses/{sha}","languages_url":"https://api.github.com/repos/enki-community/enki/languages","stargazers_url":"https://api.github.com/repos/enki-community/enki/stargazers","contributors_url":"https://api.github.com/repos/enki-community/enki/contributors","subscribers_url":"https://api.github.com/repos/enki-community/enki/subscribers","subscription_url":"https://api.github.com/repos/enki-community/enki/subscription","commits_url":"https://api.github.com/repos/enki-community/enki/commits{/sha}","git_commits_url":"https://api.github.com/repos/enki-community/enki/git/commits{/sha}","comments_url":"https://api.github.com/repos/enki-community/enki/comments{/number}","issue_comment_url":"https://api.github.com/repos/enki-community/enki/issues/comments{/number}","contents_url":"https://api.github.com/repos/enki-community/enki/contents/{+path}","compare_url":"https://api.github.com/repos/enki-community/enki/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enki-community/enki/merges","archive_url":"https://api.github.com/repos/enki-community/enki/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enki-community/enki/downloads","issues_url":"https://api.github.com/repos/enki-community/enki/issues{/number}","pulls_url":"https://api.github.com/repos/enki-community/enki/pulls{/number}","milestones_url":"https://api.github.com/repos/enki-community/enki/milestones{/number}","notifications_url":"https://api.github.com/repos/enki-community/enki/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enki-community/enki/labels{/name}","releases_url":"https://api.github.com/repos/enki-community/enki/releases{/id}","deployments_url":"https://api.github.com/repos/enki-community/enki/deployments","created_at":"2013-02-21T09:11:12Z","updated_at":"2016-02-03T15:07:36Z","pushed_at":"2016-09-27T09:24:28Z","git_url":"git://github.com/enki-community/enki.git","ssh_url":"git@github.com:enki-community/enki.git","clone_url":"https://github.com/enki-community/enki.git","svn_url":"https://github.com/enki-community/enki","homepage":"http://home.gna.org/enki/","size":6384,"stargazers_count":7,"watchers_count":7,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":14,"forks":10,"open_issues":14,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/enki-community/enki/pulls/19"},"html":{"href":"https://github.com/enki-community/enki/pull/19"},"issue":{"href":"https://api.github.com/repos/enki-community/enki/issues/19"},"comments":{"href":"https://api.github.com/repos/enki-community/enki/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/enki-community/enki/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/enki-community/enki/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/enki-community/enki/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/enki-community/enki/statuses/94cfae434172e768c062248c296e666836c2952e"}}}}
{"actor":{"display_login":"Titwin"}}