2017-09-19 Fred Gleason <fredg@paravelsystems.com>

* Added a 'Render Log' dialog to rdlogedit(1).
This commit is contained in:
Fred Gleason
2017-09-19 07:57:37 -04:00
parent 83cbd0268f
commit 288eddca4c
15 changed files with 559 additions and 18 deletions

View File

@@ -364,6 +364,12 @@ QStringList RDRenderer::warnings() const
}
void RDRenderer::abort()
{
render_abort=true;
}
bool RDRenderer::Render(const QString &outfile,RDLogEvent *log,unsigned chans,
RDSettings *s,const QTime &start_time,bool ignore_stops,
QString *err_msg,int first_line,int last_line,
@@ -374,6 +380,7 @@ bool RDRenderer::Render(const QString &outfile,RDLogEvent *log,unsigned chans,
QString temp_output_filename;
render_warnings.clear();
render_abort=false;
//
// Open Output File
@@ -445,6 +452,13 @@ bool RDRenderer::Render(const QString &outfile,RDLogEvent *log,unsigned chans,
// Iterate through it
//
for(unsigned i=0;i<lls.size();i++) {
if(render_abort) {
emit lineStarted(lls.size());
*err_msg+="Render aborted.\n";
sf_close(sf_out);
return false;
}
emit lineStarted(i);
if(((first_line==-1)||(first_line<=(int)i))&&
((last_line==-1)||(last_line>(int)i))) {
if(lls.at(i)->transType()==RDLogLine::Stop) {