コード例 #1
0
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());
}
コード例 #2
0
ファイル: execwindow.cpp プロジェクト: clark15b/ps3muxer
void execWindow::run(void)
{
    if(!batch.size())
        return;

    beg_time=time(0);

    NextCmd();

    exec();
}
コード例 #3
0
ファイル: execwindow.cpp プロジェクト: clark15b/ps3muxer
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();
}