mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 15:16:07 +01:00
2018-09-03 Fred Gleason <fredg@paravelsystems.com>
* Renamed the 'Add Next' ['PX'] RML to 'Insert Cart' ['PX']. * Added an 'offset' parameter to the 'Insert Cart' ['PX'] RML.
This commit is contained in:
@@ -43,6 +43,7 @@ void MainWidget::RunLocalMacros(RDMacro *rml)
|
||||
QString label;
|
||||
int mach=0;
|
||||
RDLogLine::TransType trans=RDLogLine::Play;
|
||||
int offset=0;
|
||||
|
||||
if(rml->role()!=RDMacro::Cmd) {
|
||||
return;
|
||||
@@ -784,7 +785,7 @@ void MainWidget::RunLocalMacros(RDMacro *rml)
|
||||
break;
|
||||
|
||||
case RDMacro::PX: // Add Next
|
||||
if((rml->argQuantity()<2)||(rml->argQuantity()>3)) {
|
||||
if((rml->argQuantity()<2)||(rml->argQuantity()>4)) {
|
||||
if(rml->echoRequested()) {
|
||||
rml->acknowledge(false);
|
||||
rda->ripc()->sendRml(rml);
|
||||
@@ -799,18 +800,22 @@ void MainWidget::RunLocalMacros(RDMacro *rml)
|
||||
}
|
||||
return;
|
||||
}
|
||||
offset=0;
|
||||
if(rml->argQuantity()>=3) {
|
||||
offset=rml->arg(2).toInt();
|
||||
}
|
||||
trans=RDLogLine::Play;
|
||||
if(rml->argQuantity()==3) {
|
||||
if(rml->arg(2).toLower()=="segue") {
|
||||
if(rml->argQuantity()==4) {
|
||||
if(rml->arg(3).toLower()=="segue") {
|
||||
trans=RDLogLine::Segue;
|
||||
}
|
||||
if(rml->arg(2).toLower()=="stop") {
|
||||
if(rml->arg(3).toLower()=="stop") {
|
||||
trans=RDLogLine::Stop;
|
||||
}
|
||||
}
|
||||
if(air_log[rml->arg(0).toInt()-1]->nextLine()>=0) {
|
||||
air_log[rml->arg(0).toInt()-1]->
|
||||
insert(air_log[rml->arg(0).toInt()-1]->nextLine(),
|
||||
insert(air_log[rml->arg(0).toInt()-1]->nextLine()+offset,
|
||||
rml->arg(1).toUInt(),RDLogLine::NoTrans,trans);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user