1#include "testwindowview.h" 
    3#include "cache_manager.h" 
    4#include "ui_testwindowview.h" 
    6TestWindowView::TestWindowView(QWidget *parent)
 
   11TestWindowView::~TestWindowView() {
 
   15void TestWindowView::on_runButton_clicked() {
 
   16    QString curAppPath = ui->appPathInput->text();
 
   17    if (!curAppPath.isNull()) {
 
   18        emit startGame(curAppPath);
 
   22void TestWindowView::on_selectAppPathButton_clicked() {
 
   23    QString appPath = QFileDialog::getOpenFileName(
 
   24        this, tr(
"Open App"), QDir::currentPath(), tr(
"QML App (*.qml)"));
 
   25    if (!appPath.isNull()) {
 
   26        ui->appPathInput->setText(appPath);
 
   30void TestWindowView::on_loadZipButton_clicked() {
 
   31    QString zipPath = QFileDialog::getOpenFileName(
this, tr(
"Select Archive"),
 
   33                                                   tr(
"ZIP Archive (*.zip)"));
 
   34    if (!zipPath.isNull()) {
 
   35        QFile archiveFile(zipPath);
 
   36        ui->appPathInput->setText(
 
   37            cache_manager::save_zip_to_cache(&archiveFile).fileName());
 
   41void TestWindowView::on_backButton_clicked() {
 
   43    emit shownStartView();
 
   45void TestWindowView::on_testHealthConnectionButton_clicked() {
 
   46    emit testHealthConnectionButton();