2016-05-18 Fred Gleason <fredg@paravelsystems.com>

* Added an entry for the Broadcast Tools SRC-16 in
	'docs/SWITCHERS.txt'.
	* Added a 'CUT_EVENTS' table to the database.
	* Added a 'DECK_EVENTS' table to the database.
	* Incremented the database version to 256.
	* Implemented a 'Cut Event' ['CE'] RML.
	* Added a 'Event Carts' section to the Edit Deck dialog in
	'rdadmin/edit_deck.cpp' and 'rdadmin/edit_deck.h'.
This commit is contained in:
Fred Gleason
2016-05-18 13:43:21 -04:00
parent df9ac7cff1
commit 3b766a5e7d
34 changed files with 689 additions and 44 deletions

View File

@@ -167,6 +167,10 @@ void MainObject::Revert(int schema) const
case 255:
Revert255();
break;
case 256:
Revert256();
break;
}
}
@@ -406,6 +410,23 @@ void MainObject::Revert255() const
}
void MainObject::Revert256() const
{
QString sql;
QSqlQuery *q;
sql=QString("drop table CUT_EVENTS");
q=new QSqlQuery(sql);
delete q;
sql=QString("drop table DECK_EVENTS");
q=new QSqlQuery(sql);
delete q;
SetVersion(255);
}
int MainObject::GetVersion() const
{
QString sql;
@@ -445,6 +466,7 @@ int MainObject::MapSchema(const QString &ver)
version_map["2.10"]=242;
version_map["2.11"]=245;
version_map["2.12"]=254;
version_map["2.13"]=255;
//
// Normalize String

View File

@@ -51,6 +51,7 @@ class MainObject : public QObject
void Revert253() const;
void Revert254() const;
void Revert255() const;
void Revert256() const;
int GetVersion() const;
void SetVersion(int schema) const;
int MapSchema(const QString &ver);