2018-02-03 Fred Gleason <fredg@paravelsystems.com>

* Refactored the RDRenderer class to use RDApplication.
This commit is contained in:
Fred Gleason
2018-02-03 05:12:10 -05:00
parent 7a7e3c9b6b
commit fb4dc43033
5 changed files with 46 additions and 50 deletions

View File

@@ -82,7 +82,7 @@ MainObject::MainObject(QObject *parent)
fprintf(stderr,"rdrender: you must specify a logname\n");
exit(256);
}
for(unsigned i=0;i<rda->cmdSwitch()->keys();i++) {
for(unsigned i=0;i<rda->cmdSwitch()->keys()-1;i++) {
bool ok=false;
if(rda->cmdSwitch()->key(i)=="--verbose") {
render_verbose=true;
@@ -296,8 +296,7 @@ void MainObject::userData()
// Render It
//
QString err_msg;
RDRenderer *r=new RDRenderer(rda->user(),rda->station(),rda->system(),
rda->config(),this);
RDRenderer *r=new RDRenderer(this);
connect(r,SIGNAL(progressMessageSent(const QString &)),
this,SLOT(printProgressMessage(const QString &)));
if(render_to_file.isEmpty()) {