2019-12-10 Fred Gleason <fredg@paravelsystems.com>

* Added an 'RDTextViewer()' function.
	* Added the ability to view a report at time of generation in
	rdlogmanager(1).
This commit is contained in:
Fred Gleason
2019-12-10 18:28:15 -05:00
parent 349efba0b5
commit 169e56f059
15 changed files with 215 additions and 43 deletions

View File

@@ -46,6 +46,11 @@ PickReportDates::PickReportDates(const QString &svcname,QWidget *parent)
setMaximumSize(sizeHint());
setMinimumSize(sizeHint());
//
// Dialogs
//
edit_viewreport_dialog=new ViewReportDialog(this);
//
// Report List
//
@@ -121,6 +126,7 @@ PickReportDates::PickReportDates(const QString &svcname,QWidget *parent)
PickReportDates::~PickReportDates()
{
delete edit_viewreport_dialog;
}
@@ -205,9 +211,7 @@ void PickReportDates::generateData()
edit_enddate_edit->date(),rda->station(),&out_path);
switch(report->errorCode()) {
case RDReport::ErrorOk:
QMessageBox::information(this,"RDLogManager - "+tr("Report Complete"),
tr("Report generated in")+" \""+out_path+
"\".");
edit_viewreport_dialog->exec(out_path);
break;
case RDReport::ErrorCantOpen: