Commit efd91b85 authored by claes's avatar claes

Video dynamic added

parent 815c6b26
...@@ -106,6 +106,7 @@ static attrnav_sEnumElement elem_trace_type[] = { ...@@ -106,6 +106,7 @@ static attrnav_sEnumElement elem_trace_type[] = {
{ (int) graph_eTrace_RadioButton , "RadioButton"}, { (int) graph_eTrace_RadioButton , "RadioButton"},
{ (int) graph_eTrace_Slider , "Slider"}, { (int) graph_eTrace_Slider , "Slider"},
{ (int) graph_eTrace_SliderBackground , "SliderBackground"}, { (int) graph_eTrace_SliderBackground , "SliderBackground"},
{ (int) graph_eTrace_Video , "Video"},
{ (int) graph_eTrace_No , "No"}, { (int) graph_eTrace_No , "No"},
{ 0, ""}}; { 0, ""}};
......
...@@ -1718,6 +1718,30 @@ int Graph::get_attr_items( grow_tObject object, attr_sItem **itemlist, ...@@ -1718,6 +1718,30 @@ int Graph::get_attr_items( grow_tObject object, attr_sItem **itemlist,
&grow_info_cnt); &grow_info_cnt);
break; break;
} }
case graph_eTrace_Video:
{
char transtab[][32] = { "SubGraph", "SubGraph",
"TraceData1", "",
"TraceData2", "",
"TraceData3", "",
"TraceData4", "",
"TraceData5", "",
"TraceData6", "",
"TraceData7", "",
"TraceData8", "",
"TraceData9", "",
"TraceAttrType", "Type",
"TraceColor", "",
"TraceColor2", "",
"TraceAccess", "",
"TraceCycle", "Cycle",
"TraceRefObject", "RefObject",
"Dynamic", "",
""};
grow_GetObjectAttrInfo( object, (char *)transtab, &grow_info,
&grow_info_cnt);
break;
}
case graph_eTrace_SetDig: case graph_eTrace_SetDig:
case graph_eTrace_ResetDig: case graph_eTrace_ResetDig:
case graph_eTrace_ToggleDig: case graph_eTrace_ToggleDig:
...@@ -4262,6 +4286,18 @@ static int graph_trace_connect_bc( grow_tObject object, ...@@ -4262,6 +4286,18 @@ static int graph_trace_connect_bc( grow_tObject object,
trace_data->p = (void *)&dummy; trace_data->p = (void *)&dummy;
break; break;
} }
case graph_eTrace_Video:
{
data = (graph_sTraceData *) calloc( 1, sizeof( *data));
data->access = trace_data->access;
data->type = trace_type;
data->cycle = cycle;
data->first_scan = 1;
grow_SetUserData( object, (void *)data);
trace_data->p = (void *)&dummy;
break;
}
default: default:
; ;
} }
...@@ -5862,6 +5898,21 @@ static int graph_trace_scan_bc( grow_tObject object, void *p) ...@@ -5862,6 +5898,21 @@ static int graph_trace_scan_bc( grow_tObject object, void *p)
} }
break; break;
} }
case graph_eTrace_Video:
{
grow_tObject *objectlist;
int object_cnt;
grow_GetGroupObjectList( object, &objectlist, &object_cnt);
for ( int i = 0; i < object_cnt; i++) {
if ( grow_GetObjectType( objectlist[i]) == glow_eObjectType_GrowImage) {
grow_ImageUpdate( objectlist[i]);
break;
}
}
break;
}
case graph_eTrace_Bar: case graph_eTrace_Bar:
{ {
if ( !data->first_scan) if ( !data->first_scan)
......
...@@ -82,6 +82,7 @@ typedef enum { ...@@ -82,6 +82,7 @@ typedef enum {
graph_eTrace_DigShift = 19, graph_eTrace_DigShift = 19,
graph_eTrace_Move = 20, graph_eTrace_Move = 20,
graph_eTrace_SliderBackground = 21, graph_eTrace_SliderBackground = 21,
graph_eTrace_Video = 22,
graph_eTrace_No = 999, graph_eTrace_No = 999,
graph_eTrace_SetDig = 1000, graph_eTrace_SetDig = 1000,
graph_eTrace_ResetDig = 1001, graph_eTrace_ResetDig = 1001,
......
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