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

* Added an 'RDLOGEDIT.WAVEFORM_CAPTION' field to the database.
	* Incremented the database version to 311.
	* Added a 'WaveForm Caption' control to the 'Edit RDLogEdit' dialog
	in rdadmin(1).
	* Implemented the 'WaveForm Caption' setting in the Voicetracker
	dialog in rdlogedit(1).
This commit is contained in:
Fred Gleason
2019-10-21 21:54:54 -04:00
parent 9709016091
commit ec0e79090c
18 changed files with 124 additions and 23 deletions

View File

@@ -185,6 +185,19 @@ void RDLogeditConf::setTailPreroll(unsigned length) const
}
QString RDLogeditConf::waveformCaption() const
{
return RDGetSqlValue("RDLOGEDIT","STATION",lib_station,"WAVEFORM_CAPTION").
toString();
}
void RDLogeditConf::setWaveformCaption(const QString &str)
{
SetRow("WAVEFORM_CAPTION",str);
}
unsigned RDLogeditConf::startCart() const
{
return RDGetSqlValue("RDLOGEDIT","STATION",lib_station,"START_CART").toUInt();
@@ -340,6 +353,19 @@ void RDLogeditConf::SetRow(const QString &param,unsigned value) const
}
void RDLogeditConf::SetRow(const QString &param,const QString &value) const
{
RDSqlQuery *q;
QString sql;
sql=QString("update RDLOGEDIT set ")+
param+"=\""+RDEscapeString(value)+"\" where "+
"STATION=\""+RDEscapeString(lib_station)+"\"",
q=new RDSqlQuery(sql);
delete q;
}
void RDLogeditConf::SetRow(const QString &param,bool value) const
{
RDSqlQuery *q;