Skip to content

Commit

Permalink
Updated to show a message box when downloading is done and reformatte…
Browse files Browse the repository at this point in the history
…d some minor text
  • Loading branch information
Christian Weber authored and Christian Weber committed Aug 14, 2014
1 parent dba52a4 commit 46db112
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/widgets/v800fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void V800fs::on_downloadBtn_clicked()
return;
}

download_progress = new QProgressDialog(tr("Downloading %1").arg(ui->v800Tree->selectedItems()[0]->text(0)), tr("Cancel"), 0, 2, this);
download_progress = new QProgressDialog(tr("Downloading %1...").arg(ui->v800Tree->selectedItems()[0]->text(0)), tr("Cancel"), 0, 2, this);
download_progress->setCancelButton(0);
download_progress->setWindowModality(Qt::WindowModal);
download_progress->setValue(1);
Expand Down
10 changes: 5 additions & 5 deletions src/widgets/v800main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ void V800Main::handle_session_done()
void V800Main::handle_sessions_done()
{
download_progress->done(0);
QMessageBox done;
done.setText(tr("Done downloading sessions! Run Bipolar to convert them to exportable formats."));
done.setIcon(QMessageBox::Information);
done.exec();

enable_all();
}
Expand All @@ -114,13 +118,10 @@ void V800Main::handle_advanced_shortcut()
ui->rawChk->setVisible(false);
else
ui->rawChk->setVisible(true);

qDebug("Do advanced stuff");
}

void V800Main::enable_all()
{
ui->exerciseTree->setEnabled(true);
ui->downloadBtn->setEnabled(true);
ui->rawChk->setEnabled(true);
ui->checkBtn->setEnabled(true);
Expand All @@ -130,7 +131,6 @@ void V800Main::enable_all()

void V800Main::disable_all()
{
ui->exerciseTree->setEnabled(false);
ui->downloadBtn->setEnabled(false);
ui->rawChk->setEnabled(false);
ui->checkBtn->setEnabled(false);
Expand Down Expand Up @@ -166,7 +166,7 @@ void V800Main::on_downloadBtn_clicked()
}
}

download_progress = new QProgressDialog(tr("Downloading 1/%1").arg(sessions_cnt), tr("Cancel"), 0, sessions_cnt+1, this);
download_progress = new QProgressDialog(tr("Downloading 1/%1...").arg(sessions_cnt), tr("Cancel"), 0, sessions_cnt+1, this);
download_progress->setCancelButton(0);
download_progress->setWindowModality(Qt::WindowModal);
download_progress->setValue(1);
Expand Down

0 comments on commit 46db112

Please sign in to comment.