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:
Fred Gleason
2018-09-03 15:04:54 +00:00
parent 3c893dbf93
commit 108a3721bd
3 changed files with 45 additions and 35 deletions

View File

@@ -16684,3 +16684,6 @@
a segfault. a segfault.
2018-08-29 Fred Gleason <fredg@paravelsystems.com> 2018-08-29 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 2.19.2int02. * 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.

View File

@@ -198,36 +198,6 @@
</para> </para>
</sect2> </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_"> <sect2 xml:id="sect.rml.binary_serial_out__bo_">
<title>Binary Serial Out [BO]</title> <title>Binary Serial Out [BO]</title>
<para> <para>
@@ -890,6 +860,38 @@
</para> </para>
</sect2> </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_"> <sect2 xml:id="sect.rml.insert_serial_trap__si_">
<title>Insert Serial Trap [SI]</title> <title>Insert Serial Trap [SI]</title>
<para> <para>

View File

@@ -42,6 +42,7 @@ void MainWidget::RunLocalMacros(RDMacro *rml)
QString label; QString label;
int mach=0; int mach=0;
RDLogLine::TransType trans=RDLogLine::Play; RDLogLine::TransType trans=RDLogLine::Play;
int offset=0;
if(rml->role()!=RDMacro::Cmd) { if(rml->role()!=RDMacro::Cmd) {
return; return;
@@ -783,7 +784,7 @@ void MainWidget::RunLocalMacros(RDMacro *rml)
break; break;
case RDMacro::PX: // Add Next case RDMacro::PX: // Add Next
if((rml->argQuantity()<2)||(rml->argQuantity()>3)) { if((rml->argQuantity()<2)||(rml->argQuantity()>4)) {
if(rml->echoRequested()) { if(rml->echoRequested()) {
rml->acknowledge(false); rml->acknowledge(false);
rdripc->sendRml(rml); rdripc->sendRml(rml);
@@ -798,18 +799,22 @@ void MainWidget::RunLocalMacros(RDMacro *rml)
} }
return; return;
} }
offset=0;
if(rml->argQuantity()>=3) {
offset=rml->arg(2).toInt();
}
trans=RDLogLine::Play; trans=RDLogLine::Play;
if(rml->argQuantity()==3) { if(rml->argQuantity()==4) {
if(rml->arg(2).toString().lower()=="segue") { if(rml->arg(3).toString().lower()=="segue") {
trans=RDLogLine::Segue; trans=RDLogLine::Segue;
} }
if(rml->arg(2).toString().lower()=="stop") { if(rml->arg(3).toString().lower()=="stop") {
trans=RDLogLine::Stop; trans=RDLogLine::Stop;
} }
} }
if(air_log[rml->arg(0).toInt()-1]->nextLine()>=0) { if(air_log[rml->arg(0).toInt()-1]->nextLine()>=0) {
air_log[rml->arg(0).toInt()-1]-> 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); rml->arg(1).toUInt(),RDLogLine::NoTrans,trans);
} }
else { else {