void RedVSICmdLet::Execute(RedVSIContextInterface* pContext) { // expression will have been evaluated prior to the command, // so any actions already performed. Just queue up the next // command. pContext->QueueCommand(NextCmd()); }
void execWindow::run(void) { if(!batch.size()) return; beg_time=time(0); NextCmd(); exec(); }
void execWindow::onFinished(int exitcode) { m_ui->pushButton->setEnabled(false); m_ui->progressBar->setRange(0,100); m_ui->progressBar->setValue(100); m_ui->pushButton_2->setEnabled(false); if(m_proc->exitStatus()==QProcess::CrashExit) { m_ui->plainTextEdit->appendHtml(tr("<font color=red><b>Crash</b></font>")); batch.clear(); } else { if(exitcode) { m_ui->plainTextEdit->appendHtml(tr("<font color=red><b>FAIL (%1)</b></font>").arg(exitcode)); batch.clear(); } else m_ui->plainTextEdit->appendHtml(tr("<font color=green><b>OK</b></font>")); } NextCmd(); }