{"action":"created","comment":{"url":"https://api.github.com/repos/acquaman/acquaman/pulls/comments/28720826","id":28720826,"diff_hunk":"@@ -0,0 +1,74 @@\n+#include \"BioXASDBHRMirrorView.h\"\n+\n+BioXASDBHRMirrorView::BioXASDBHRMirrorView(BioXASDBHRMirror *mirror, QWidget *parent) :\n+    QWidget(parent)\n+{\n+\t// Initialize member variables.\n+\n+\tmirror_ = 0;\n+\n+\tlayout_ = new QVBoxLayout();\n+\tsetLayout(layout_);\n+\n+\tpitchEditor_ = 0;\n+\tm1Editor_ = 0;\n+\tm2Editor_ = 0;\n+\n+\t// Current settings.\n+\n+\tsetMirror(mirror);\n+}\n+\n+BioXASDBHRMirrorView::~BioXASDBHRMirrorView()\n+{\n+\n+}\n+\n+void BioXASDBHRMirrorView::setMirror(BioXASDBHRMirror *newMirror)\n+{\n+\tif (mirror_ != newMirror) {\n+\n+\t\tif (mirror_) {\n+\n+\t\t\t// remove mirror editors from view layout.\n+\n+\t\t\tlayout_->removeWidget(pitchEditor_);\n+\t\t\tlayout_->removeWidget(m1Editor_);\n+\t\t\tlayout_->removeWidget(m2Editor_);\n+\n+\t\t\t// delete mirror editors.\n+\n+\t\t\tpitchEditor_->deleteLater();\n+\t\t\tpitchEditor_ = 0;\n+\n+\t\t\tm1Editor_->deleteLater();\n+\t\t\tm1Editor_ = 0;\n+\n+\t\t\tm2Editor_->deleteLater();\n+\t\t\tm2Editor_ = 0;\n+\t\t}\n+\n+\t\tmirror_ = newMirror;\n+\n+\t\tif (mirror_) {\n+\n+\t\t\t// create mirror editors, add to view layout.\n+\n+\t\t\tpitchEditor_ = new AMExtendedControlEditor(mirror_->pitchControl());","path":"source/ui/BioXAS/BioXASDBHRMirrorView.cpp","position":57,"original_position":57,"commit_id":"5b95d09d812ce156f4ad4683fd2dafa70acf7d4f","original_commit_id":"5b95d09d812ce156f4ad4683fd2dafa70acf7d4f","user":{"login":"dretrex","id":602741,"avatar_url":"https://avatars.githubusercontent.com/u/602741?v=3","gravatar_id":"","url":"https://api.github.com/users/dretrex","html_url":"https://github.com/dretrex","followers_url":"https://api.github.com/users/dretrex/followers","following_url":"https://api.github.com/users/dretrex/following{/other_user}","gists_url":"https://api.github.com/users/dretrex/gists{/gist_id}","starred_url":"https://api.github.com/users/dretrex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dretrex/subscriptions","organizations_url":"https://api.github.com/users/dretrex/orgs","repos_url":"https://api.github.com/users/dretrex/repos","events_url":"https://api.github.com/users/dretrex/events{/privacy}","received_events_url":"https://api.github.com/users/dretrex/received_events","type":"User","site_admin":false},"body":"Hey @helfrij, since you've had to implement methods like this a couple times over the past few tasks, how would you feel about adding the AMControlEditor by having a ```setControl()``` method?  Since you've been having to remove and delete the widgets and then making them again seems like a bit of a waste.  Maybe make a new issue for adding to the functionality and then doing some code cleanup on these?","created_at":"2015-04-20T19:31:46Z","updated_at":"2015-04-20T19:31:46Z","html_url":"https://github.com/acquaman/acquaman/pull/1324#discussion_r28720826","pull_request_url":"https://api.github.com/repos/acquaman/acquaman/pulls/1324","_links":{"self":{"href":"https://api.github.com/repos/acquaman/acquaman/pulls/comments/28720826"},"html":{"href":"https://github.com/acquaman/acquaman/pull/1324#discussion_r28720826"},"pull_request":{"href":"https://api.github.com/repos/acquaman/acquaman/pulls/1324"}}},"pull_request":{"url":"https://api.github.com/repos/acquaman/acquaman/pulls/1324","id":33697080,"html_url":"https://github.com/acquaman/acquaman/pull/1324","diff_url":"https://github.com/acquaman/acquaman/pull/1324.diff","patch_url":"https://github.com/acquaman/acquaman/pull/1324.patch","issue_url":"https://api.github.com/repos/acquaman/acquaman/issues/1324","number":1324,"state":"open","locked":false,"title":"Pull request Issue1277: Incorporating DBHR mirror controls.","user":{"login":"helfrij","id":5216607,"avatar_url":"https://avatars.githubusercontent.com/u/5216607?v=3","gravatar_id":"","url":"https://api.github.com/users/helfrij","html_url":"https://github.com/helfrij","followers_url":"https://api.github.com/users/helfrij/followers","following_url":"https://api.github.com/users/helfrij/following{/other_user}","gists_url":"https://api.github.com/users/helfrij/gists{/gist_id}","starred_url":"https://api.github.com/users/helfrij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helfrij/subscriptions","organizations_url":"https://api.github.com/users/helfrij/orgs","repos_url":"https://api.github.com/users/helfrij/repos","events_url":"https://api.github.com/users/helfrij/events{/privacy}","received_events_url":"https://api.github.com/users/helfrij/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-20T19:20:34Z","updated_at":"2015-04-20T19:31:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e6d01c714c3b7d36b876e7212538ab11b653f0e","assignee":null,"milestone":{"url":"https://api.github.com/repos/acquaman/acquaman/milestones/10","html_url":"https://github.com/acquaman/acquaman/milestones/BioXAS%20Side%20Endstation%20Task%20List","labels_url":"https://api.github.com/repos/acquaman/acquaman/milestones/10/labels","id":1045739,"number":10,"title":"BioXAS Side Endstation Task List","description":"This milestone will contain all the issues for getting the Side endstation up and running.  I have chosen a pseudo-random due date of June 1st to be at a state where (hopefully real) science can be collected.","creator":{"login":"dretrex","id":602741,"avatar_url":"https://avatars.githubusercontent.com/u/602741?v=3","gravatar_id":"","url":"https://api.github.com/users/dretrex","html_url":"https://github.com/dretrex","followers_url":"https://api.github.com/users/dretrex/followers","following_url":"https://api.github.com/users/dretrex/following{/other_user}","gists_url":"https://api.github.com/users/dretrex/gists{/gist_id}","starred_url":"https://api.github.com/users/dretrex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dretrex/subscriptions","organizations_url":"https://api.github.com/users/dretrex/orgs","repos_url":"https://api.github.com/users/dretrex/repos","events_url":"https://api.github.com/users/dretrex/events{/privacy}","received_events_url":"https://api.github.com/users/dretrex/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":25,"state":"open","created_at":"2015-03-30T22:36:21Z","updated_at":"2015-04-20T19:20:52Z","due_on":"2015-06-01T06:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/acquaman/acquaman/pulls/1324/commits","review_comments_url":"https://api.github.com/repos/acquaman/acquaman/pulls/1324/comments","review_comment_url":"https://api.github.com/repos/acquaman/acquaman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/acquaman/acquaman/issues/1324/comments","statuses_url":"https://api.github.com/repos/acquaman/acquaman/statuses/5b95d09d812ce156f4ad4683fd2dafa70acf7d4f","head":{"label":"acquaman:Issue1277","ref":"Issue1277","sha":"5b95d09d812ce156f4ad4683fd2dafa70acf7d4f","user":{"login":"acquaman","id":602716,"avatar_url":"https://avatars.githubusercontent.com/u/602716?v=3","gravatar_id":"","url":"https://api.github.com/users/acquaman","html_url":"https://github.com/acquaman","followers_url":"https://api.github.com/users/acquaman/followers","following_url":"https://api.github.com/users/acquaman/following{/other_user}","gists_url":"https://api.github.com/users/acquaman/gists{/gist_id}","starred_url":"https://api.github.com/users/acquaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquaman/subscriptions","organizations_url":"https://api.github.com/users/acquaman/orgs","repos_url":"https://api.github.com/users/acquaman/repos","events_url":"https://api.github.com/users/acquaman/events{/privacy}","received_events_url":"https://api.github.com/users/acquaman/received_events","type":"Organization","site_admin":false},"repo":{"id":1333343,"name":"acquaman","full_name":"acquaman/acquaman","owner":{"login":"acquaman","id":602716,"avatar_url":"https://avatars.githubusercontent.com/u/602716?v=3","gravatar_id":"","url":"https://api.github.com/users/acquaman","html_url":"https://github.com/acquaman","followers_url":"https://api.github.com/users/acquaman/followers","following_url":"https://api.github.com/users/acquaman/following{/other_user}","gists_url":"https://api.github.com/users/acquaman/gists{/gist_id}","starred_url":"https://api.github.com/users/acquaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquaman/subscriptions","organizations_url":"https://api.github.com/users/acquaman/orgs","repos_url":"https://api.github.com/users/acquaman/repos","events_url":"https://api.github.com/users/acquaman/events{/privacy}","received_events_url":"https://api.github.com/users/acquaman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acquaman/acquaman","description":"Acquisition and Data Management for Big Science","fork":false,"url":"https://api.github.com/repos/acquaman/acquaman","forks_url":"https://api.github.com/repos/acquaman/acquaman/forks","keys_url":"https://api.github.com/repos/acquaman/acquaman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acquaman/acquaman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acquaman/acquaman/teams","hooks_url":"https://api.github.com/repos/acquaman/acquaman/hooks","issue_events_url":"https://api.github.com/repos/acquaman/acquaman/issues/events{/number}","events_url":"https://api.github.com/repos/acquaman/acquaman/events","assignees_url":"https://api.github.com/repos/acquaman/acquaman/assignees{/user}","branches_url":"https://api.github.com/repos/acquaman/acquaman/branches{/branch}","tags_url":"https://api.github.com/repos/acquaman/acquaman/tags","blobs_url":"https://api.github.com/repos/acquaman/acquaman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acquaman/acquaman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acquaman/acquaman/git/refs{/sha}","trees_url":"https://api.github.com/repos/acquaman/acquaman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acquaman/acquaman/statuses/{sha}","languages_url":"https://api.github.com/repos/acquaman/acquaman/languages","stargazers_url":"https://api.github.com/repos/acquaman/acquaman/stargazers","contributors_url":"https://api.github.com/repos/acquaman/acquaman/contributors","subscribers_url":"https://api.github.com/repos/acquaman/acquaman/subscribers","subscription_url":"https://api.github.com/repos/acquaman/acquaman/subscription","commits_url":"https://api.github.com/repos/acquaman/acquaman/commits{/sha}","git_commits_url":"https://api.github.com/repos/acquaman/acquaman/git/commits{/sha}","comments_url":"https://api.github.com/repos/acquaman/acquaman/comments{/number}","issue_comment_url":"https://api.github.com/repos/acquaman/acquaman/issues/comments{/number}","contents_url":"https://api.github.com/repos/acquaman/acquaman/contents/{+path}","compare_url":"https://api.github.com/repos/acquaman/acquaman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acquaman/acquaman/merges","archive_url":"https://api.github.com/repos/acquaman/acquaman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acquaman/acquaman/downloads","issues_url":"https://api.github.com/repos/acquaman/acquaman/issues{/number}","pulls_url":"https://api.github.com/repos/acquaman/acquaman/pulls{/number}","milestones_url":"https://api.github.com/repos/acquaman/acquaman/milestones{/number}","notifications_url":"https://api.github.com/repos/acquaman/acquaman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acquaman/acquaman/labels{/name}","releases_url":"https://api.github.com/repos/acquaman/acquaman/releases{/id}","created_at":"2011-02-06T02:19:01Z","updated_at":"2015-04-20T18:10:08Z","pushed_at":"2015-04-20T19:20:35Z","git_url":"git://github.com/acquaman/acquaman.git","ssh_url":"git@github.com:acquaman/acquaman.git","clone_url":"https://github.com/acquaman/acquaman.git","svn_url":"https://github.com/acquaman/acquaman","homepage":"","size":143034,"stargazers_count":8,"watchers_count":8,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":162,"forks":2,"open_issues":162,"watchers":8,"default_branch":"master"}},"base":{"label":"acquaman:master","ref":"master","sha":"914026f9838e7ceb7de07620f79fd54664cc1ec0","user":{"login":"acquaman","id":602716,"avatar_url":"https://avatars.githubusercontent.com/u/602716?v=3","gravatar_id":"","url":"https://api.github.com/users/acquaman","html_url":"https://github.com/acquaman","followers_url":"https://api.github.com/users/acquaman/followers","following_url":"https://api.github.com/users/acquaman/following{/other_user}","gists_url":"https://api.github.com/users/acquaman/gists{/gist_id}","starred_url":"https://api.github.com/users/acquaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquaman/subscriptions","organizations_url":"https://api.github.com/users/acquaman/orgs","repos_url":"https://api.github.com/users/acquaman/repos","events_url":"https://api.github.com/users/acquaman/events{/privacy}","received_events_url":"https://api.github.com/users/acquaman/received_events","type":"Organization","site_admin":false},"repo":{"id":1333343,"name":"acquaman","full_name":"acquaman/acquaman","owner":{"login":"acquaman","id":602716,"avatar_url":"https://avatars.githubusercontent.com/u/602716?v=3","gravatar_id":"","url":"https://api.github.com/users/acquaman","html_url":"https://github.com/acquaman","followers_url":"https://api.github.com/users/acquaman/followers","following_url":"https://api.github.com/users/acquaman/following{/other_user}","gists_url":"https://api.github.com/users/acquaman/gists{/gist_id}","starred_url":"https://api.github.com/users/acquaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquaman/subscriptions","organizations_url":"https://api.github.com/users/acquaman/orgs","repos_url":"https://api.github.com/users/acquaman/repos","events_url":"https://api.github.com/users/acquaman/events{/privacy}","received_events_url":"https://api.github.com/users/acquaman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acquaman/acquaman","description":"Acquisition and Data Management for Big Science","fork":false,"url":"https://api.github.com/repos/acquaman/acquaman","forks_url":"https://api.github.com/repos/acquaman/acquaman/forks","keys_url":"https://api.github.com/repos/acquaman/acquaman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acquaman/acquaman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acquaman/acquaman/teams","hooks_url":"https://api.github.com/repos/acquaman/acquaman/hooks","issue_events_url":"https://api.github.com/repos/acquaman/acquaman/issues/events{/number}","events_url":"https://api.github.com/repos/acquaman/acquaman/events","assignees_url":"https://api.github.com/repos/acquaman/acquaman/assignees{/user}","branches_url":"https://api.github.com/repos/acquaman/acquaman/branches{/branch}","tags_url":"https://api.github.com/repos/acquaman/acquaman/tags","blobs_url":"https://api.github.com/repos/acquaman/acquaman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acquaman/acquaman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acquaman/acquaman/git/refs{/sha}","trees_url":"https://api.github.com/repos/acquaman/acquaman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acquaman/acquaman/statuses/{sha}","languages_url":"https://api.github.com/repos/acquaman/acquaman/languages","stargazers_url":"https://api.github.com/repos/acquaman/acquaman/stargazers","contributors_url":"https://api.github.com/repos/acquaman/acquaman/contributors","subscribers_url":"https://api.github.com/repos/acquaman/acquaman/subscribers","subscription_url":"https://api.github.com/repos/acquaman/acquaman/subscription","commits_url":"https://api.github.com/repos/acquaman/acquaman/commits{/sha}","git_commits_url":"https://api.github.com/repos/acquaman/acquaman/git/commits{/sha}","comments_url":"https://api.github.com/repos/acquaman/acquaman/comments{/number}","issue_comment_url":"https://api.github.com/repos/acquaman/acquaman/issues/comments{/number}","contents_url":"https://api.github.com/repos/acquaman/acquaman/contents/{+path}","compare_url":"https://api.github.com/repos/acquaman/acquaman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acquaman/acquaman/merges","archive_url":"https://api.github.com/repos/acquaman/acquaman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acquaman/acquaman/downloads","issues_url":"https://api.github.com/repos/acquaman/acquaman/issues{/number}","pulls_url":"https://api.github.com/repos/acquaman/acquaman/pulls{/number}","milestones_url":"https://api.github.com/repos/acquaman/acquaman/milestones{/number}","notifications_url":"https://api.github.com/repos/acquaman/acquaman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acquaman/acquaman/labels{/name}","releases_url":"https://api.github.com/repos/acquaman/acquaman/releases{/id}","created_at":"2011-02-06T02:19:01Z","updated_at":"2015-04-20T18:10:08Z","pushed_at":"2015-04-20T19:20:35Z","git_url":"git://github.com/acquaman/acquaman.git","ssh_url":"git@github.com:acquaman/acquaman.git","clone_url":"https://github.com/acquaman/acquaman.git","svn_url":"https://github.com/acquaman/acquaman","homepage":"","size":143034,"stargazers_count":8,"watchers_count":8,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":162,"forks":2,"open_issues":162,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/acquaman/acquaman/pulls/1324"},"html":{"href":"https://github.com/acquaman/acquaman/pull/1324"},"issue":{"href":"https://api.github.com/repos/acquaman/acquaman/issues/1324"},"comments":{"href":"https://api.github.com/repos/acquaman/acquaman/issues/1324/comments"},"review_comments":{"href":"https://api.github.com/repos/acquaman/acquaman/pulls/1324/comments"},"review_comment":{"href":"https://api.github.com/repos/acquaman/acquaman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/acquaman/acquaman/pulls/1324/commits"},"statuses":{"href":"https://api.github.com/repos/acquaman/acquaman/statuses/5b95d09d812ce156f4ad4683fd2dafa70acf7d4f"}}}}