2018-11-30 Fred Gleason <fredg@paravelsystems.com>

* Added a 'STATIONS.REPORT_EDITOR_PATH' field to the database.
	* Incremented the database version to 302.
	* Added a 'Report Editor' control to the 'Edit Host' dialog in
	rdadmin(1).
	* Modified the report generator to use the editor specified in the
	'Report Editor' control rather than than the value of the $VISUAL
	environmental variable.
This commit is contained in:
Fred Gleason
2018-11-30 07:52:56 -05:00
parent dbc7d4e327
commit 6eab09f51c
20 changed files with 232 additions and 88 deletions

View File

@@ -257,6 +257,19 @@ void RDStation::setEditorPath(const QString &cmd)
}
QString RDStation::reportEditorPath() const
{
return RDGetSqlValue("STATIONS","NAME",station_name,"REPORT_EDITOR_PATH").
toString();
}
void RDStation::setReportEditorPath(const QString &cmd)
{
SetRow("REPORT_EDITOR_PATH",cmd);
}
RDStation::FilterMode RDStation::filterMode() const
{
return (RDStation::FilterMode)RDGetSqlValue("STATIONS","NAME",station_name,