Commit 48706a11 authored by Claes Sjofors's avatar Claes Sjofors Committed by Christoffer Ackelman

Plc objects DataArithmT and TL added

parent 90b014b6
This diff is collapsed.
This diff is collapsed.
......@@ -750,6 +750,8 @@ palette PlcEditorPalette
class DArithm
class DataArithm
class DataArithmL
class DataArithmT
class DataArithmTL
class Demux
class Div
class Equal
......
......@@ -2106,6 +2106,8 @@ void WFoe::gre_popupmenu( WGre *gre, int x_pix, int y_pix, int popupmenu_type,
switch ( node->ln.cid) {
case pwr_cClass_dataarithm:
case pwr_cClass_dataarithml:
case pwr_cClass_dataarithmt:
case pwr_cClass_dataarithmtl:
case pwr_cClass_carithm:
mask |= foe_ePopupmenu_editcode;
break;
......
......@@ -149,17 +149,23 @@ int goen_create_nodetype_m14(
int annot_rows;
static int idx = 0;
flow_tObject cp;
pwr_tObjName size_attr;
sts = ldh_ClassIdToName(ldhses, cid, name, sizeof(name), &size);
if ( EVEN(sts) ) return sts;
sprintf( &name[strlen(name)], "%d", idx++);
/* Get the text in the parameter Code */
if ( graphbody->graphindex == 1)
strcpy( size_attr, "Text");
else
strcpy( size_attr, "Code");
sts = ldh_GetObjectPar(
(node->hn.wind)->hw.ldhses,
node->ln.oid,
"DevBody",
"Code",
size_attr,
&parvalue, &size);
if ( EVEN(sts)) return sts;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment