{"action":"created","comment":{"url":"https://api.github.com/repos/AlexanderKiselyov/Homework/pulls/comments/62824811","id":62824811,"diff_hunk":"@@ -0,0 +1,975 @@\n+/* Copyright 2007-2016 QReal Research Group\n+*\n+* Licensed under the Apache License, Version 2.0 (the \"License\");\n+* you may not use this file except in compliance with the License.\n+* You may obtain a copy of the License at\n+*\n+*     http://www.apache.org/licenses/LICENSE-2.0\n+*\n+* Unless required by applicable law or agreed to in writing, software\n+* distributed under the License is distributed on an \"AS IS\" BASIS,\n+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+* See the License for the specific language governing permissions and\n+* limitations under the License. */\n+\n+#include \"sdfRenderer.h\"\n+\n+#include <QtCore/QLineF>\n+#include <QtCore/QTime>\n+#include <QtCore/QDebug>\n+#include <QtCore/QRegExp>\n+#include <QtCore/QFileInfo>\n+#include <QtCore/QDir>\n+#include <QtWidgets/QApplication>\n+#include <QtGui/QFont>\n+#include <QtGui/QIcon>\n+\n+#include <qrkernel/platformInfo.h>\n+\n+using namespace qReal;\n+\n+SdfRenderer::SdfRenderer()\n+\t: mStartX(0), mStartY(0), mNeedScale(true), mElementRepo(0)\n+{\n+\tmWorkingDirName = SettingsManager::value(\"workingDir\").toString();\n+}\n+\n+SdfRenderer::SdfRenderer(const QString path)\n+\t: mStartX(0), mStartY(0), mNeedScale(true)\n+{\n+\tif (!load(path))\n+\t{\n+\t\tqDebug() << \"File \" + path + \" - loading failed!\";\n+\t}\n+\tmWorkingDirName = SettingsManager::value(\"workingDir\").toString();\n+}\n+\n+SdfRenderer::~SdfRenderer()\n+{\n+}\n+\n+bool SdfRenderer::load(const QString &filename)\n+{\n+\tQFile file(filename);\n+\n+\tif (!file.open(QIODevice::ReadOnly | QIODevice::Text))\n+\t\treturn false;\n+\n+\tif (!doc.setContent(&file))\n+\t{\n+\t\tfile.close();\n+\t\treturn false;\n+\t}\n+\tfile.close();\n+\n+\tQDomElement docElem = doc.documentElement();\n+\tfirst_size_x = docElem.attribute(\"sizex\").toInt();\n+\tfirst_size_y = docElem.attribute(\"sizey\").toInt();","path":"homework 9_1/sdfRenderer.cpp","position":67,"original_position":67,"commit_id":"75302aaeb576082dd8567f658190f0cf735e19eb","original_commit_id":"75302aaeb576082dd8567f658190f0cf735e19eb","user":{"login":"AlexanderKiselyov","id":15695857,"avatar_url":"https://avatars.githubusercontent.com/u/15695857?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderKiselyov","html_url":"https://github.com/AlexanderKiselyov","followers_url":"https://api.github.com/users/AlexanderKiselyov/followers","following_url":"https://api.github.com/users/AlexanderKiselyov/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderKiselyov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderKiselyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderKiselyov/subscriptions","organizations_url":"https://api.github.com/users/AlexanderKiselyov/orgs","repos_url":"https://api.github.com/users/AlexanderKiselyov/repos","events_url":"https://api.github.com/users/AlexanderKiselyov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderKiselyov/received_events","type":"User","site_admin":false},"body":"везде в файле не обходимо убрать не соответствующие стайлгайду имена переменных со знаком \"_\"","created_at":"2016-05-11T10:26:51Z","updated_at":"2016-05-11T10:26:51Z","html_url":"https://github.com/AlexanderKiselyov/Homework/pull/52#discussion_r62824811","pull_request_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/AlexanderKiselyov/Homework/pulls/comments/62824811"},"html":{"href":"https://github.com/AlexanderKiselyov/Homework/pull/52#discussion_r62824811"},"pull_request":{"href":"https://api.github.com/repos/AlexanderKiselyov/Homework/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/AlexanderKiselyov/Homework/pulls/52","id":69642611,"html_url":"https://github.com/AlexanderKiselyov/Homework/pull/52","diff_url":"https://github.com/AlexanderKiselyov/Homework/pull/52.diff","patch_url":"https://github.com/AlexanderKiselyov/Homework/pull/52.patch","issue_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/issues/52","number":52,"state":"open","locked":false,"title":"9_1","user":{"login":"AlexanderKiselyov","id":15695857,"avatar_url":"https://avatars.githubusercontent.com/u/15695857?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderKiselyov","html_url":"https://github.com/AlexanderKiselyov","followers_url":"https://api.github.com/users/AlexanderKiselyov/followers","following_url":"https://api.github.com/users/AlexanderKiselyov/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderKiselyov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderKiselyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderKiselyov/subscriptions","organizations_url":"https://api.github.com/users/AlexanderKiselyov/orgs","repos_url":"https://api.github.com/users/AlexanderKiselyov/repos","events_url":"https://api.github.com/users/AlexanderKiselyov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderKiselyov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-11T09:42:30Z","updated_at":"2016-05-11T10:26:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"567065dcdcbf79bb0180ac068f24a530c5580c17","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/pulls/52/commits","review_comments_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/pulls/52/comments","review_comment_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/issues/52/comments","statuses_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/statuses/75302aaeb576082dd8567f658190f0cf735e19eb","head":{"label":"AlexanderKiselyov:2-semester/9_1","ref":"2-semester/9_1","sha":"75302aaeb576082dd8567f658190f0cf735e19eb","user":{"login":"AlexanderKiselyov","id":15695857,"avatar_url":"https://avatars.githubusercontent.com/u/15695857?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderKiselyov","html_url":"https://github.com/AlexanderKiselyov","followers_url":"https://api.github.com/users/AlexanderKiselyov/followers","following_url":"https://api.github.com/users/AlexanderKiselyov/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderKiselyov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderKiselyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderKiselyov/subscriptions","organizations_url":"https://api.github.com/users/AlexanderKiselyov/orgs","repos_url":"https://api.github.com/users/AlexanderKiselyov/repos","events_url":"https://api.github.com/users/AlexanderKiselyov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderKiselyov/received_events","type":"User","site_admin":false},"repo":{"id":47896566,"name":"Homework","full_name":"AlexanderKiselyov/Homework","owner":{"login":"AlexanderKiselyov","id":15695857,"avatar_url":"https://avatars.githubusercontent.com/u/15695857?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderKiselyov","html_url":"https://github.com/AlexanderKiselyov","followers_url":"https://api.github.com/users/AlexanderKiselyov/followers","following_url":"https://api.github.com/users/AlexanderKiselyov/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderKiselyov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderKiselyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderKiselyov/subscriptions","organizations_url":"https://api.github.com/users/AlexanderKiselyov/orgs","repos_url":"https://api.github.com/users/AlexanderKiselyov/repos","events_url":"https://api.github.com/users/AlexanderKiselyov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderKiselyov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlexanderKiselyov/Homework","description":"","fork":false,"url":"https://api.github.com/repos/AlexanderKiselyov/Homework","forks_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/forks","keys_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/teams","hooks_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/hooks","issue_events_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/issues/events{/number}","events_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/events","assignees_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/assignees{/user}","branches_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/branches{/branch}","tags_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/tags","blobs_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/languages","stargazers_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/stargazers","contributors_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/contributors","subscribers_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/subscribers","subscription_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/subscription","commits_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/contents/{+path}","compare_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/merges","archive_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/downloads","issues_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/issues{/number}","pulls_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/labels{/name}","releases_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/releases{/id}","deployments_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/deployments","created_at":"2015-12-12T22:14:17Z","updated_at":"2016-04-17T12:54:23Z","pushed_at":"2016-05-11T09:42:30Z","git_url":"git://github.com/AlexanderKiselyov/Homework.git","ssh_url":"git@github.com:AlexanderKiselyov/Homework.git","clone_url":"https://github.com/AlexanderKiselyov/Homework.git","svn_url":"https://github.com/AlexanderKiselyov/Homework","homepage":null,"size":525,"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":"AlexanderKiselyov:master","ref":"master","sha":"4c480d4948dc8b161b4712a73b880c32a5c953cc","user":{"login":"AlexanderKiselyov","id":15695857,"avatar_url":"https://avatars.githubusercontent.com/u/15695857?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderKiselyov","html_url":"https://github.com/AlexanderKiselyov","followers_url":"https://api.github.com/users/AlexanderKiselyov/followers","following_url":"https://api.github.com/users/AlexanderKiselyov/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderKiselyov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderKiselyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderKiselyov/subscriptions","organizations_url":"https://api.github.com/users/AlexanderKiselyov/orgs","repos_url":"https://api.github.com/users/AlexanderKiselyov/repos","events_url":"https://api.github.com/users/AlexanderKiselyov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderKiselyov/received_events","type":"User","site_admin":false},"repo":{"id":47896566,"name":"Homework","full_name":"AlexanderKiselyov/Homework","owner":{"login":"AlexanderKiselyov","id":15695857,"avatar_url":"https://avatars.githubusercontent.com/u/15695857?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderKiselyov","html_url":"https://github.com/AlexanderKiselyov","followers_url":"https://api.github.com/users/AlexanderKiselyov/followers","following_url":"https://api.github.com/users/AlexanderKiselyov/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderKiselyov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderKiselyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderKiselyov/subscriptions","organizations_url":"https://api.github.com/users/AlexanderKiselyov/orgs","repos_url":"https://api.github.com/users/AlexanderKiselyov/repos","events_url":"https://api.github.com/users/AlexanderKiselyov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderKiselyov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlexanderKiselyov/Homework","description":"","fork":false,"url":"https://api.github.com/repos/AlexanderKiselyov/Homework","forks_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/forks","keys_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/teams","hooks_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/hooks","issue_events_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/issues/events{/number}","events_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/events","assignees_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/assignees{/user}","branches_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/branches{/branch}","tags_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/tags","blobs_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/languages","stargazers_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/stargazers","contributors_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/contributors","subscribers_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/subscribers","subscription_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/subscription","commits_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/contents/{+path}","compare_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/merges","archive_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/downloads","issues_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/issues{/number}","pulls_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/labels{/name}","releases_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/releases{/id}","deployments_url":"https://api.github.com/repos/AlexanderKiselyov/Homework/deployments","created_at":"2015-12-12T22:14:17Z","updated_at":"2016-04-17T12:54:23Z","pushed_at":"2016-05-11T09:42:30Z","git_url":"git://github.com/AlexanderKiselyov/Homework.git","ssh_url":"git@github.com:AlexanderKiselyov/Homework.git","clone_url":"https://github.com/AlexanderKiselyov/Homework.git","svn_url":"https://github.com/AlexanderKiselyov/Homework","homepage":null,"size":525,"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/AlexanderKiselyov/Homework/pulls/52"},"html":{"href":"https://github.com/AlexanderKiselyov/Homework/pull/52"},"issue":{"href":"https://api.github.com/repos/AlexanderKiselyov/Homework/issues/52"},"comments":{"href":"https://api.github.com/repos/AlexanderKiselyov/Homework/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/AlexanderKiselyov/Homework/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/AlexanderKiselyov/Homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AlexanderKiselyov/Homework/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/AlexanderKiselyov/Homework/statuses/75302aaeb576082dd8567f658190f0cf735e19eb"}}}}