mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-27 07:01:14 +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:
@@ -16684,3 +16684,6 @@
|
||||
a segfault.
|
||||
2018-08-29 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Incremented the package version to 2.19.2int02.
|
||||
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.
|
||||
|
||||
@@ -198,36 +198,6 @@
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 xml:id="sect.rml.add_next__px_">
|
||||
<title>Add Next [PX]</title>
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>Module</term>
|
||||
<listitem><command>rdairplay</command><manvolnum>1</manvolnum></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>Mnemonic</term>
|
||||
<listitem><userinput>PX</userinput></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<para>
|
||||
Insert a cart in a log in the next to play position.
|
||||
</para>
|
||||
<para>
|
||||
<userinput>PX
|
||||
<replaceable>mach</replaceable>
|
||||
<replaceable>cart</replaceable>
|
||||
[PLAY|SEGUE|STOP]!</userinput>
|
||||
</para>
|
||||
<para>
|
||||
Insert cart <replaceable>cart</replaceable> in the next to play
|
||||
position on log machine <replaceable>mach</replaceable>. The
|
||||
transition may also be optionally specified.
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 xml:id="sect.rml.binary_serial_out__bo_">
|
||||
<title>Binary Serial Out [BO]</title>
|
||||
<para>
|
||||
@@ -890,6 +860,38 @@
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 xml:id="sect.rml.insert_cart__px_">
|
||||
<title>Insert Cart [PX]</title>
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>Module</term>
|
||||
<listitem><command>rdairplay</command><manvolnum>1</manvolnum></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>Mnemonic</term>
|
||||
<listitem><userinput>PX</userinput></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<para>
|
||||
Insert a cart in a log.
|
||||
</para>
|
||||
<para>
|
||||
<userinput>PX
|
||||
<replaceable>mach</replaceable>
|
||||
<replaceable>cart</replaceable>
|
||||
[<replaceable>offset</replaceable>]
|
||||
[PLAY|SEGUE|STOP]!</userinput>
|
||||
</para>
|
||||
<para>
|
||||
Insert cart <replaceable>cart</replaceable> after the currently playing
|
||||
or next event plus <replaceable>offset</replaceable> (default '0')
|
||||
lines on log machine <replaceable>mach</replaceable>. The
|
||||
transition may also be optionally specified.
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 xml:id="sect.rml.insert_serial_trap__si_">
|
||||
<title>Insert Serial Trap [SI]</title>
|
||||
<para>
|
||||
|
||||
@@ -42,6 +42,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;
|
||||
@@ -783,7 +784,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);
|
||||
rdripc->sendRml(rml);
|
||||
@@ -798,18 +799,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).toString().lower()=="segue") {
|
||||
if(rml->argQuantity()==4) {
|
||||
if(rml->arg(3).toString().lower()=="segue") {
|
||||
trans=RDLogLine::Segue;
|
||||
}
|
||||
if(rml->arg(2).toString().lower()=="stop") {
|
||||
if(rml->arg(3).toString().lower()=="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