{"action":"created","comment":{"url":"https://api.github.com/repos/SFTtech/openage/pulls/comments/55203117","id":55203117,"diff_hunk":"@@ -0,0 +1,100 @@\n+// Copyright 2015-2016 the openage authors. See copying.md for legal info.\n+\n+#include \"category_contents_list_model.h\"\n+\n+#include <QtQml>\n+\n+#include \"game_control_link.h\"\n+\n+namespace openage {\n+namespace gui {\n+\n+namespace {\n+const int registration = qmlRegisterType<CategoryContentsListModel>(\"com.openage\", 1, 0, \"Category\");\n+}\n+\n+CategoryContentsListModel::CategoryContentsListModel(QObject *parent)\n+\t:\n+\tQAbstractListModel{parent},\n+\teditor_mode{} {\n+\tQ_UNUSED(registration);\n+}\n+\n+CategoryContentsListModel::~CategoryContentsListModel() {\n+}\n+\n+QString CategoryContentsListModel::get_name() const {\n+\treturn this->name;\n+}\n+\n+void CategoryContentsListModel::set_name(const QString &name) {\n+\tif (this->name != name) {\n+\t\tthis->name = name;\n+\n+\t\tthis->on_categories_content_changed();\n+\t}\n+}\n+\n+EditorModeLink* CategoryContentsListModel::get_editor_mode() const {\n+\treturn this->editor_mode;\n+}\n+\n+void CategoryContentsListModel::set_editor_mode(EditorModeLink *editor_mode) {\n+\tif (this->editor_mode != editor_mode) {\n+\t\tif (this->editor_mode) {\n+\t\t\tQObject::disconnect(this->editor_mode, &EditorModeLink::categories_content_changed, this, &CategoryContentsListModel::on_categories_content_changed);\n+\t\t\tQObject::disconnect(this->editor_mode, &EditorModeLink::category_content_changed, this, &CategoryContentsListModel::on_category_content_changed);\n+\t\t}\n+\n+\t\tthis->editor_mode = editor_mode;\n+\n+\t\tif (this->editor_mode) {\n+\t\t\tQObject::connect(this->editor_mode, &EditorModeLink::categories_content_changed, this, &CategoryContentsListModel::on_categories_content_changed);\n+\t\t\tQObject::connect(this->editor_mode, &EditorModeLink::category_content_changed, this, &CategoryContentsListModel::on_category_content_changed);\n+\t\t}\n+\n+\t\tthis->on_categories_content_changed();\n+\t}\n+}\n+\n+void CategoryContentsListModel::on_category_content_changed(const std::string &category_name, std::vector<std::tuple<index_t, uint16_t>> type_and_texture) {\n+\tif (this->name == QString::fromStdString(category_name)) {","path":"libopenage/gui/category_contents_list_model.cpp","position":61,"original_position":61,"commit_id":"4a08752fe0db141817a5ab95a8961683349b12f6","original_commit_id":"4a08752fe0db141817a5ab95a8961683349b12f6","user":{"login":"TheJJ","id":673543,"avatar_url":"https://avatars.githubusercontent.com/u/673543?v=3","gravatar_id":"","url":"https://api.github.com/users/TheJJ","html_url":"https://github.com/TheJJ","followers_url":"https://api.github.com/users/TheJJ/followers","following_url":"https://api.github.com/users/TheJJ/following{/other_user}","gists_url":"https://api.github.com/users/TheJJ/gists{/gist_id}","starred_url":"https://api.github.com/users/TheJJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheJJ/subscriptions","organizations_url":"https://api.github.com/users/TheJJ/orgs","repos_url":"https://api.github.com/users/TheJJ/repos","events_url":"https://api.github.com/users/TheJJ/events{/privacy}","received_events_url":"https://api.github.com/users/TheJJ/received_events","type":"User","site_admin":false},"body":"hrrrg qt...","created_at":"2016-03-07T13:34:49Z","updated_at":"2016-03-07T13:34:49Z","html_url":"https://github.com/SFTtech/openage/pull/422#discussion_r55203117","pull_request_url":"https://api.github.com/repos/SFTtech/openage/pulls/422","_links":{"self":{"href":"https://api.github.com/repos/SFTtech/openage/pulls/comments/55203117"},"html":{"href":"https://github.com/SFTtech/openage/pull/422#discussion_r55203117"},"pull_request":{"href":"https://api.github.com/repos/SFTtech/openage/pulls/422"}}},"pull_request":{"url":"https://api.github.com/repos/SFTtech/openage/pulls/422","id":54203364,"html_url":"https://github.com/SFTtech/openage/pull/422","diff_url":"https://github.com/SFTtech/openage/pull/422.diff","patch_url":"https://github.com/SFTtech/openage/pull/422.patch","issue_url":"https://api.github.com/repos/SFTtech/openage/issues/422","number":422,"state":"open","locked":false,"title":"QtQuick GUI","user":{"login":"ChipmunkV","id":5393579,"avatar_url":"https://avatars.githubusercontent.com/u/5393579?v=3","gravatar_id":"","url":"https://api.github.com/users/ChipmunkV","html_url":"https://github.com/ChipmunkV","followers_url":"https://api.github.com/users/ChipmunkV/followers","following_url":"https://api.github.com/users/ChipmunkV/following{/other_user}","gists_url":"https://api.github.com/users/ChipmunkV/gists{/gist_id}","starred_url":"https://api.github.com/users/ChipmunkV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChipmunkV/subscriptions","organizations_url":"https://api.github.com/users/ChipmunkV/orgs","repos_url":"https://api.github.com/users/ChipmunkV/repos","events_url":"https://api.github.com/users/ChipmunkV/events{/privacy}","received_events_url":"https://api.github.com/users/ChipmunkV/received_events","type":"User","site_admin":false},"body":"I've started the integration of the QtQuick as an ingame GUI. Current state is that it can render the game an the QtQuick scene at the same time.\r\n\r\nSimple hardcode version to be able to understand the workings is on **different** branch: https://github.com/ChipmunkV/openage/tree/qt-gui-minimal\r\n\r\nThere is some simple stuff left to do: resize, input and actual QML code of the skin. (I won't start from that)\r\nLocale troubles too: https://github.com/SFTtech/openage/issues/423\r\n\r\nI'll start from the more important question: the connection to the game logic. For now, I can't see how that can be done without at least the separation of the main engine from the SDL initialization code.","created_at":"2015-12-20T17:06:40Z","updated_at":"2016-03-07T13:34:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f6e5f6da3e5be7b9012f5f3e246305898aa8f0a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SFTtech/openage/pulls/422/commits","review_comments_url":"https://api.github.com/repos/SFTtech/openage/pulls/422/comments","review_comment_url":"https://api.github.com/repos/SFTtech/openage/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SFTtech/openage/issues/422/comments","statuses_url":"https://api.github.com/repos/SFTtech/openage/statuses/4a08752fe0db141817a5ab95a8961683349b12f6","head":{"label":"ChipmunkV:qt-gui","ref":"qt-gui","sha":"4a08752fe0db141817a5ab95a8961683349b12f6","user":{"login":"ChipmunkV","id":5393579,"avatar_url":"https://avatars.githubusercontent.com/u/5393579?v=3","gravatar_id":"","url":"https://api.github.com/users/ChipmunkV","html_url":"https://github.com/ChipmunkV","followers_url":"https://api.github.com/users/ChipmunkV/followers","following_url":"https://api.github.com/users/ChipmunkV/following{/other_user}","gists_url":"https://api.github.com/users/ChipmunkV/gists{/gist_id}","starred_url":"https://api.github.com/users/ChipmunkV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChipmunkV/subscriptions","organizations_url":"https://api.github.com/users/ChipmunkV/orgs","repos_url":"https://api.github.com/users/ChipmunkV/repos","events_url":"https://api.github.com/users/ChipmunkV/events{/privacy}","received_events_url":"https://api.github.com/users/ChipmunkV/received_events","type":"User","site_admin":false},"repo":{"id":48070612,"name":"openage","full_name":"ChipmunkV/openage","owner":{"login":"ChipmunkV","id":5393579,"avatar_url":"https://avatars.githubusercontent.com/u/5393579?v=3","gravatar_id":"","url":"https://api.github.com/users/ChipmunkV","html_url":"https://github.com/ChipmunkV","followers_url":"https://api.github.com/users/ChipmunkV/followers","following_url":"https://api.github.com/users/ChipmunkV/following{/other_user}","gists_url":"https://api.github.com/users/ChipmunkV/gists{/gist_id}","starred_url":"https://api.github.com/users/ChipmunkV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChipmunkV/subscriptions","organizations_url":"https://api.github.com/users/ChipmunkV/orgs","repos_url":"https://api.github.com/users/ChipmunkV/repos","events_url":"https://api.github.com/users/ChipmunkV/events{/privacy}","received_events_url":"https://api.github.com/users/ChipmunkV/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ChipmunkV/openage","description":"Free (as in freedom) open source clone of the Age of Empires II engine.","fork":true,"url":"https://api.github.com/repos/ChipmunkV/openage","forks_url":"https://api.github.com/repos/ChipmunkV/openage/forks","keys_url":"https://api.github.com/repos/ChipmunkV/openage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChipmunkV/openage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChipmunkV/openage/teams","hooks_url":"https://api.github.com/repos/ChipmunkV/openage/hooks","issue_events_url":"https://api.github.com/repos/ChipmunkV/openage/issues/events{/number}","events_url":"https://api.github.com/repos/ChipmunkV/openage/events","assignees_url":"https://api.github.com/repos/ChipmunkV/openage/assignees{/user}","branches_url":"https://api.github.com/repos/ChipmunkV/openage/branches{/branch}","tags_url":"https://api.github.com/repos/ChipmunkV/openage/tags","blobs_url":"https://api.github.com/repos/ChipmunkV/openage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChipmunkV/openage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChipmunkV/openage/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChipmunkV/openage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChipmunkV/openage/statuses/{sha}","languages_url":"https://api.github.com/repos/ChipmunkV/openage/languages","stargazers_url":"https://api.github.com/repos/ChipmunkV/openage/stargazers","contributors_url":"https://api.github.com/repos/ChipmunkV/openage/contributors","subscribers_url":"https://api.github.com/repos/ChipmunkV/openage/subscribers","subscription_url":"https://api.github.com/repos/ChipmunkV/openage/subscription","commits_url":"https://api.github.com/repos/ChipmunkV/openage/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChipmunkV/openage/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChipmunkV/openage/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChipmunkV/openage/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChipmunkV/openage/contents/{+path}","compare_url":"https://api.github.com/repos/ChipmunkV/openage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChipmunkV/openage/merges","archive_url":"https://api.github.com/repos/ChipmunkV/openage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChipmunkV/openage/downloads","issues_url":"https://api.github.com/repos/ChipmunkV/openage/issues{/number}","pulls_url":"https://api.github.com/repos/ChipmunkV/openage/pulls{/number}","milestones_url":"https://api.github.com/repos/ChipmunkV/openage/milestones{/number}","notifications_url":"https://api.github.com/repos/ChipmunkV/openage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChipmunkV/openage/labels{/name}","releases_url":"https://api.github.com/repos/ChipmunkV/openage/releases{/id}","deployments_url":"https://api.github.com/repos/ChipmunkV/openage/deployments","created_at":"2015-12-15T21:41:10Z","updated_at":"2015-12-15T21:41:11Z","pushed_at":"2016-03-03T20:28:57Z","git_url":"git://github.com/ChipmunkV/openage.git","ssh_url":"git@github.com:ChipmunkV/openage.git","clone_url":"https://github.com/ChipmunkV/openage.git","svn_url":"https://github.com/ChipmunkV/openage","homepage":"http://openage.sft.mx","size":5704,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SFTtech:master","ref":"master","sha":"181e07d7defecca1d23297d2096a403e1d01f3fc","user":{"login":"SFTtech","id":1783325,"avatar_url":"https://avatars.githubusercontent.com/u/1783325?v=3","gravatar_id":"","url":"https://api.github.com/users/SFTtech","html_url":"https://github.com/SFTtech","followers_url":"https://api.github.com/users/SFTtech/followers","following_url":"https://api.github.com/users/SFTtech/following{/other_user}","gists_url":"https://api.github.com/users/SFTtech/gists{/gist_id}","starred_url":"https://api.github.com/users/SFTtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SFTtech/subscriptions","organizations_url":"https://api.github.com/users/SFTtech/orgs","repos_url":"https://api.github.com/users/SFTtech/repos","events_url":"https://api.github.com/users/SFTtech/events{/privacy}","received_events_url":"https://api.github.com/users/SFTtech/received_events","type":"Organization","site_admin":false},"repo":{"id":14095175,"name":"openage","full_name":"SFTtech/openage","owner":{"login":"SFTtech","id":1783325,"avatar_url":"https://avatars.githubusercontent.com/u/1783325?v=3","gravatar_id":"","url":"https://api.github.com/users/SFTtech","html_url":"https://github.com/SFTtech","followers_url":"https://api.github.com/users/SFTtech/followers","following_url":"https://api.github.com/users/SFTtech/following{/other_user}","gists_url":"https://api.github.com/users/SFTtech/gists{/gist_id}","starred_url":"https://api.github.com/users/SFTtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SFTtech/subscriptions","organizations_url":"https://api.github.com/users/SFTtech/orgs","repos_url":"https://api.github.com/users/SFTtech/repos","events_url":"https://api.github.com/users/SFTtech/events{/privacy}","received_events_url":"https://api.github.com/users/SFTtech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SFTtech/openage","description":"Free (as in freedom) open source clone of the Age of Empires II engine :rocket:","fork":false,"url":"https://api.github.com/repos/SFTtech/openage","forks_url":"https://api.github.com/repos/SFTtech/openage/forks","keys_url":"https://api.github.com/repos/SFTtech/openage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SFTtech/openage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SFTtech/openage/teams","hooks_url":"https://api.github.com/repos/SFTtech/openage/hooks","issue_events_url":"https://api.github.com/repos/SFTtech/openage/issues/events{/number}","events_url":"https://api.github.com/repos/SFTtech/openage/events","assignees_url":"https://api.github.com/repos/SFTtech/openage/assignees{/user}","branches_url":"https://api.github.com/repos/SFTtech/openage/branches{/branch}","tags_url":"https://api.github.com/repos/SFTtech/openage/tags","blobs_url":"https://api.github.com/repos/SFTtech/openage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SFTtech/openage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SFTtech/openage/git/refs{/sha}","trees_url":"https://api.github.com/repos/SFTtech/openage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SFTtech/openage/statuses/{sha}","languages_url":"https://api.github.com/repos/SFTtech/openage/languages","stargazers_url":"https://api.github.com/repos/SFTtech/openage/stargazers","contributors_url":"https://api.github.com/repos/SFTtech/openage/contributors","subscribers_url":"https://api.github.com/repos/SFTtech/openage/subscribers","subscription_url":"https://api.github.com/repos/SFTtech/openage/subscription","commits_url":"https://api.github.com/repos/SFTtech/openage/commits{/sha}","git_commits_url":"https://api.github.com/repos/SFTtech/openage/git/commits{/sha}","comments_url":"https://api.github.com/repos/SFTtech/openage/comments{/number}","issue_comment_url":"https://api.github.com/repos/SFTtech/openage/issues/comments{/number}","contents_url":"https://api.github.com/repos/SFTtech/openage/contents/{+path}","compare_url":"https://api.github.com/repos/SFTtech/openage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SFTtech/openage/merges","archive_url":"https://api.github.com/repos/SFTtech/openage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SFTtech/openage/downloads","issues_url":"https://api.github.com/repos/SFTtech/openage/issues{/number}","pulls_url":"https://api.github.com/repos/SFTtech/openage/pulls{/number}","milestones_url":"https://api.github.com/repos/SFTtech/openage/milestones{/number}","notifications_url":"https://api.github.com/repos/SFTtech/openage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SFTtech/openage/labels{/name}","releases_url":"https://api.github.com/repos/SFTtech/openage/releases{/id}","deployments_url":"https://api.github.com/repos/SFTtech/openage/deployments","created_at":"2013-11-03T22:35:23Z","updated_at":"2016-03-07T05:29:16Z","pushed_at":"2016-03-03T20:28:58Z","git_url":"git://github.com/SFTtech/openage.git","ssh_url":"git@github.com:SFTtech/openage.git","clone_url":"https://github.com/SFTtech/openage.git","svn_url":"https://github.com/SFTtech/openage","homepage":"http://openage.sft.mx","size":7435,"stargazers_count":4853,"watchers_count":4853,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":442,"mirror_url":null,"open_issues_count":123,"forks":442,"open_issues":123,"watchers":4853,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SFTtech/openage/pulls/422"},"html":{"href":"https://github.com/SFTtech/openage/pull/422"},"issue":{"href":"https://api.github.com/repos/SFTtech/openage/issues/422"},"comments":{"href":"https://api.github.com/repos/SFTtech/openage/issues/422/comments"},"review_comments":{"href":"https://api.github.com/repos/SFTtech/openage/pulls/422/comments"},"review_comment":{"href":"https://api.github.com/repos/SFTtech/openage/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SFTtech/openage/pulls/422/commits"},"statuses":{"href":"https://api.github.com/repos/SFTtech/openage/statuses/4a08752fe0db141817a5ab95a8961683349b12f6"}}}}