{"action":"created","comment":{"url":"https://api.github.com/repos/ispras/qemu-gui/pulls/comments/176647645","pull_request_review_id":106388380,"id":176647645,"diff_hunk":"@@ -0,0 +1,144 @@\n+#include \"qemugui.h\"\n+\n+\n+QemuGUI::QemuGUI(QWidget *parent)\n+\t: QMainWindow(parent)\n+{\n+\tui.setupUi(this);\n+\tthis->setWindowTitle(QApplication::translate(\"QemuGUIClass\", \"QemuGUI\", Q_NULLPTR));\n+\n+\t//main menu\n+\tui.menuBar->addMenu(\"What\");\n+\tui.menuBar->addMenu(\"do\");\n+\tui.menuBar->addMenu(\"you\");\n+\tui.menuBar->addMenu(\"want?\");\n+\n+\t// tool menu\n+\tui.mainToolBar->addAction(QIcon(\"play.gif\"), \"Play VM\", this, SLOT(play_machine()));\n+\tui.mainToolBar->addAction(QIcon(\"pause.gif\"), \"Pause VM\", this, SLOT(pause_machine()));\n+\tui.mainToolBar->addAction(QIcon(\"stop.gif\"), \"Stop VM\", this, SLOT(stop_machine()));\n+\tui.mainToolBar->addSeparator();\n+\tui.mainToolBar->addAction(\"Create machine\", this, SLOT(create_machine()));\n+\tui.mainToolBar->addAction(\"Import machine\", this, SLOT(import_machine()));\n+\n+\t// tab\t\n+\ttab = new QTabWidget(ui.centralWidget);\n+\ttab->setMinimumWidth(400);\n+\ttab_info = new QWidget(ui.centralWidget);\n+\ttab->addTab(tab_info, \"Information about VM\");\n+\n+\tpropBox = new QGroupBox(tab_info);\n+\tedit_btn = new QPushButton(\"Edit VM\", tab_info);\n+\tinfo_lbl = new QLabel(\"\", propBox);\n+\n+\tpropBox->setMinimumWidth(300);\n+\tpropBox->setVisible(false);\n+\tedit_btn->setVisible(false);\n+\t\n+\tlistVM = new QListWidget();\n+\tlistVM->setMaximumWidth(300);\n+\t\n+\trecReplay = new RecordReplay();\n+\ttab->addTab(recReplay, \"Record/Replay\");\n+\n+\n+\tthis->widget_placement();\n+\tthis->connect_signals();\n+}\n+\n+\n+QemuGUI::~QemuGUI()\n+{\n+\tdelete settingsWindow;\n+\tdelete createVMDlg;\n+\tdelete recReplay;\n+}\n+\n+void QemuGUI::widget_placement()\n+{\n+\tQVBoxLayout *infoGroupLay = new QVBoxLayout(propBox);\n+\tinfoGroupLay->addWidget(info_lbl);\n+\tinfoGroupLay->addStretch(100);\n+\n+\tQVBoxLayout *infoLay = new QVBoxLayout(tab_info);\n+\tinfoLay->addWidget(propBox);\n+\tinfoLay->addWidget(edit_btn);\n+\n+\tQHBoxLayout *one = new QHBoxLayout(ui.centralWidget);\n+\n+\tQVBoxLayout *lay = new QVBoxLayout(ui.centralWidget);\n+\tlay->addWidget(listVM);\n+\n+\tQVBoxLayout *lay2 = new QVBoxLayout(ui.centralWidget);\n+\tlay2->addWidget(tab);\n+\n+\tone->addLayout(lay);\n+\tone->addLayout(lay2);\n+}\n+\n+void QemuGUI::connect_signals()\n+{\n+\t/* edit machine */\n+\tconnect(edit_btn, SIGNAL(clicked()), this, SLOT(edit_settings()));\n+\t/* list of machines */\n+\tconnect(listVM, SIGNAL(itemClicked(QListWidgetItem *)), this, SLOT(onListVMItemClicked(QListWidgetItem *)));\n+}\n+\n+void QemuGUI::play_machine()\n+{\n+\tfor (int i = 0; i < listVM->count(); i++)\n+\t{\n+\t\tqDebug() << listVM->item(i)->text();","path":"QemuGUI/qemugui.cpp","position":91,"original_position":91,"commit_id":"70b4057532ab0f19c396a8a88472a972605938bf","original_commit_id":"70b4057532ab0f19c396a8a88472a972605938bf","user":{"login":"Dovgalyuk","id":6038023,"avatar_url":"https://avatars3.githubusercontent.com/u/6038023?v=4","gravatar_id":"","url":"https://api.github.com/users/Dovgalyuk","html_url":"https://github.com/Dovgalyuk","followers_url":"https://api.github.com/users/Dovgalyuk/followers","following_url":"https://api.github.com/users/Dovgalyuk/following{/other_user}","gists_url":"https://api.github.com/users/Dovgalyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Dovgalyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dovgalyuk/subscriptions","organizations_url":"https://api.github.com/users/Dovgalyuk/orgs","repos_url":"https://api.github.com/users/Dovgalyuk/repos","events_url":"https://api.github.com/users/Dovgalyuk/events{/privacy}","received_events_url":"https://api.github.com/users/Dovgalyuk/received_events","type":"User","site_admin":false},"body":"debug","created_at":"2018-03-23T06:28:14Z","updated_at":"2018-03-23T06:28:14Z","html_url":"https://github.com/ispras/qemu-gui/pull/1#discussion_r176647645","pull_request_url":"https://api.github.com/repos/ispras/qemu-gui/pulls/1","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ispras/qemu-gui/pulls/comments/176647645"},"html":{"href":"https://github.com/ispras/qemu-gui/pull/1#discussion_r176647645"},"pull_request":{"href":"https://api.github.com/repos/ispras/qemu-gui/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ispras/qemu-gui/pulls/1","id":176822185,"html_url":"https://github.com/ispras/qemu-gui/pull/1","diff_url":"https://github.com/ispras/qemu-gui/pull/1.diff","patch_url":"https://github.com/ispras/qemu-gui/pull/1.patch","issue_url":"https://api.github.com/repos/ispras/qemu-gui/issues/1","number":1,"state":"open","locked":false,"title":"first prototype","user":{"login":"notawa","id":13371178,"avatar_url":"https://avatars3.githubusercontent.com/u/13371178?v=4","gravatar_id":"","url":"https://api.github.com/users/notawa","html_url":"https://github.com/notawa","followers_url":"https://api.github.com/users/notawa/followers","following_url":"https://api.github.com/users/notawa/following{/other_user}","gists_url":"https://api.github.com/users/notawa/gists{/gist_id}","starred_url":"https://api.github.com/users/notawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notawa/subscriptions","organizations_url":"https://api.github.com/users/notawa/orgs","repos_url":"https://api.github.com/users/notawa/repos","events_url":"https://api.github.com/users/notawa/events{/privacy}","received_events_url":"https://api.github.com/users/notawa/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-22T15:45:36Z","updated_at":"2018-03-23T06:28:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f76e46eab2637ad4ded756b12db671b34d2eb80","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ispras/qemu-gui/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ispras/qemu-gui/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ispras/qemu-gui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ispras/qemu-gui/issues/1/comments","statuses_url":"https://api.github.com/repos/ispras/qemu-gui/statuses/70b4057532ab0f19c396a8a88472a972605938bf","head":{"label":"ispras:nat_qemu_gui","ref":"nat_qemu_gui","sha":"70b4057532ab0f19c396a8a88472a972605938bf","user":{"login":"ispras","id":1029546,"avatar_url":"https://avatars3.githubusercontent.com/u/1029546?v=4","gravatar_id":"","url":"https://api.github.com/users/ispras","html_url":"https://github.com/ispras","followers_url":"https://api.github.com/users/ispras/followers","following_url":"https://api.github.com/users/ispras/following{/other_user}","gists_url":"https://api.github.com/users/ispras/gists{/gist_id}","starred_url":"https://api.github.com/users/ispras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ispras/subscriptions","organizations_url":"https://api.github.com/users/ispras/orgs","repos_url":"https://api.github.com/users/ispras/repos","events_url":"https://api.github.com/users/ispras/events{/privacy}","received_events_url":"https://api.github.com/users/ispras/received_events","type":"Organization","site_admin":false},"repo":{"id":118907584,"name":"qemu-gui","full_name":"ispras/qemu-gui","owner":{"login":"ispras","id":1029546,"avatar_url":"https://avatars3.githubusercontent.com/u/1029546?v=4","gravatar_id":"","url":"https://api.github.com/users/ispras","html_url":"https://github.com/ispras","followers_url":"https://api.github.com/users/ispras/followers","following_url":"https://api.github.com/users/ispras/following{/other_user}","gists_url":"https://api.github.com/users/ispras/gists{/gist_id}","starred_url":"https://api.github.com/users/ispras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ispras/subscriptions","organizations_url":"https://api.github.com/users/ispras/orgs","repos_url":"https://api.github.com/users/ispras/repos","events_url":"https://api.github.com/users/ispras/events{/privacy}","received_events_url":"https://api.github.com/users/ispras/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ispras/qemu-gui","description":"GUI for QEMU","fork":false,"url":"https://api.github.com/repos/ispras/qemu-gui","forks_url":"https://api.github.com/repos/ispras/qemu-gui/forks","keys_url":"https://api.github.com/repos/ispras/qemu-gui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ispras/qemu-gui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ispras/qemu-gui/teams","hooks_url":"https://api.github.com/repos/ispras/qemu-gui/hooks","issue_events_url":"https://api.github.com/repos/ispras/qemu-gui/issues/events{/number}","events_url":"https://api.github.com/repos/ispras/qemu-gui/events","assignees_url":"https://api.github.com/repos/ispras/qemu-gui/assignees{/user}","branches_url":"https://api.github.com/repos/ispras/qemu-gui/branches{/branch}","tags_url":"https://api.github.com/repos/ispras/qemu-gui/tags","blobs_url":"https://api.github.com/repos/ispras/qemu-gui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ispras/qemu-gui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ispras/qemu-gui/git/refs{/sha}","trees_url":"https://api.github.com/repos/ispras/qemu-gui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ispras/qemu-gui/statuses/{sha}","languages_url":"https://api.github.com/repos/ispras/qemu-gui/languages","stargazers_url":"https://api.github.com/repos/ispras/qemu-gui/stargazers","contributors_url":"https://api.github.com/repos/ispras/qemu-gui/contributors","subscribers_url":"https://api.github.com/repos/ispras/qemu-gui/subscribers","subscription_url":"https://api.github.com/repos/ispras/qemu-gui/subscription","commits_url":"https://api.github.com/repos/ispras/qemu-gui/commits{/sha}","git_commits_url":"https://api.github.com/repos/ispras/qemu-gui/git/commits{/sha}","comments_url":"https://api.github.com/repos/ispras/qemu-gui/comments{/number}","issue_comment_url":"https://api.github.com/repos/ispras/qemu-gui/issues/comments{/number}","contents_url":"https://api.github.com/repos/ispras/qemu-gui/contents/{+path}","compare_url":"https://api.github.com/repos/ispras/qemu-gui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ispras/qemu-gui/merges","archive_url":"https://api.github.com/repos/ispras/qemu-gui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ispras/qemu-gui/downloads","issues_url":"https://api.github.com/repos/ispras/qemu-gui/issues{/number}","pulls_url":"https://api.github.com/repos/ispras/qemu-gui/pulls{/number}","milestones_url":"https://api.github.com/repos/ispras/qemu-gui/milestones{/number}","notifications_url":"https://api.github.com/repos/ispras/qemu-gui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ispras/qemu-gui/labels{/name}","releases_url":"https://api.github.com/repos/ispras/qemu-gui/releases{/id}","deployments_url":"https://api.github.com/repos/ispras/qemu-gui/deployments","created_at":"2018-01-25T12:01:42Z","updated_at":"2018-01-25T12:01:42Z","pushed_at":"2018-03-22T15:45:37Z","git_url":"git://github.com/ispras/qemu-gui.git","ssh_url":"git@github.com:ispras/qemu-gui.git","clone_url":"https://github.com/ispras/qemu-gui.git","svn_url":"https://github.com/ispras/qemu-gui","homepage":null,"size":69,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ispras:master","ref":"master","sha":"01e502f31a8c6a6a745fa697de9fee5a42a89005","user":{"login":"ispras","id":1029546,"avatar_url":"https://avatars3.githubusercontent.com/u/1029546?v=4","gravatar_id":"","url":"https://api.github.com/users/ispras","html_url":"https://github.com/ispras","followers_url":"https://api.github.com/users/ispras/followers","following_url":"https://api.github.com/users/ispras/following{/other_user}","gists_url":"https://api.github.com/users/ispras/gists{/gist_id}","starred_url":"https://api.github.com/users/ispras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ispras/subscriptions","organizations_url":"https://api.github.com/users/ispras/orgs","repos_url":"https://api.github.com/users/ispras/repos","events_url":"https://api.github.com/users/ispras/events{/privacy}","received_events_url":"https://api.github.com/users/ispras/received_events","type":"Organization","site_admin":false},"repo":{"id":118907584,"name":"qemu-gui","full_name":"ispras/qemu-gui","owner":{"login":"ispras","id":1029546,"avatar_url":"https://avatars3.githubusercontent.com/u/1029546?v=4","gravatar_id":"","url":"https://api.github.com/users/ispras","html_url":"https://github.com/ispras","followers_url":"https://api.github.com/users/ispras/followers","following_url":"https://api.github.com/users/ispras/following{/other_user}","gists_url":"https://api.github.com/users/ispras/gists{/gist_id}","starred_url":"https://api.github.com/users/ispras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ispras/subscriptions","organizations_url":"https://api.github.com/users/ispras/orgs","repos_url":"https://api.github.com/users/ispras/repos","events_url":"https://api.github.com/users/ispras/events{/privacy}","received_events_url":"https://api.github.com/users/ispras/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ispras/qemu-gui","description":"GUI for QEMU","fork":false,"url":"https://api.github.com/repos/ispras/qemu-gui","forks_url":"https://api.github.com/repos/ispras/qemu-gui/forks","keys_url":"https://api.github.com/repos/ispras/qemu-gui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ispras/qemu-gui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ispras/qemu-gui/teams","hooks_url":"https://api.github.com/repos/ispras/qemu-gui/hooks","issue_events_url":"https://api.github.com/repos/ispras/qemu-gui/issues/events{/number}","events_url":"https://api.github.com/repos/ispras/qemu-gui/events","assignees_url":"https://api.github.com/repos/ispras/qemu-gui/assignees{/user}","branches_url":"https://api.github.com/repos/ispras/qemu-gui/branches{/branch}","tags_url":"https://api.github.com/repos/ispras/qemu-gui/tags","blobs_url":"https://api.github.com/repos/ispras/qemu-gui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ispras/qemu-gui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ispras/qemu-gui/git/refs{/sha}","trees_url":"https://api.github.com/repos/ispras/qemu-gui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ispras/qemu-gui/statuses/{sha}","languages_url":"https://api.github.com/repos/ispras/qemu-gui/languages","stargazers_url":"https://api.github.com/repos/ispras/qemu-gui/stargazers","contributors_url":"https://api.github.com/repos/ispras/qemu-gui/contributors","subscribers_url":"https://api.github.com/repos/ispras/qemu-gui/subscribers","subscription_url":"https://api.github.com/repos/ispras/qemu-gui/subscription","commits_url":"https://api.github.com/repos/ispras/qemu-gui/commits{/sha}","git_commits_url":"https://api.github.com/repos/ispras/qemu-gui/git/commits{/sha}","comments_url":"https://api.github.com/repos/ispras/qemu-gui/comments{/number}","issue_comment_url":"https://api.github.com/repos/ispras/qemu-gui/issues/comments{/number}","contents_url":"https://api.github.com/repos/ispras/qemu-gui/contents/{+path}","compare_url":"https://api.github.com/repos/ispras/qemu-gui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ispras/qemu-gui/merges","archive_url":"https://api.github.com/repos/ispras/qemu-gui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ispras/qemu-gui/downloads","issues_url":"https://api.github.com/repos/ispras/qemu-gui/issues{/number}","pulls_url":"https://api.github.com/repos/ispras/qemu-gui/pulls{/number}","milestones_url":"https://api.github.com/repos/ispras/qemu-gui/milestones{/number}","notifications_url":"https://api.github.com/repos/ispras/qemu-gui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ispras/qemu-gui/labels{/name}","releases_url":"https://api.github.com/repos/ispras/qemu-gui/releases{/id}","deployments_url":"https://api.github.com/repos/ispras/qemu-gui/deployments","created_at":"2018-01-25T12:01:42Z","updated_at":"2018-01-25T12:01:42Z","pushed_at":"2018-03-22T15:45:37Z","git_url":"git://github.com/ispras/qemu-gui.git","ssh_url":"git@github.com:ispras/qemu-gui.git","clone_url":"https://github.com/ispras/qemu-gui.git","svn_url":"https://github.com/ispras/qemu-gui","homepage":null,"size":69,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ispras/qemu-gui/pulls/1"},"html":{"href":"https://github.com/ispras/qemu-gui/pull/1"},"issue":{"href":"https://api.github.com/repos/ispras/qemu-gui/issues/1"},"comments":{"href":"https://api.github.com/repos/ispras/qemu-gui/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ispras/qemu-gui/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ispras/qemu-gui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ispras/qemu-gui/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ispras/qemu-gui/statuses/70b4057532ab0f19c396a8a88472a972605938bf"}},"author_association":"NONE"}}
{"actor":{"display_login":"Dovgalyuk"}}