Commit 1d727d1f authored by Claes Sjofors's avatar Claes Sjofors

Ge axis dynamic fix

parent 257ad396
...@@ -770,7 +770,8 @@ void GeDyn::get_attributes( grow_tObject object, attr_sItem *itemlist, int *item ...@@ -770,7 +770,8 @@ void GeDyn::get_attributes( grow_tObject object, attr_sItem *itemlist, int *item
total_dyn_type1 & ge_mDynType1_Trend || total_dyn_type1 & ge_mDynType1_Trend ||
total_dyn_type1 & ge_mDynType1_Table || total_dyn_type1 & ge_mDynType1_Table ||
total_dyn_type1 & ge_mDynType1_FastCurve || total_dyn_type1 & ge_mDynType1_FastCurve ||
total_dyn_type1 & ge_mDynType1_XY_Curve) total_dyn_type1 & ge_mDynType1_XY_Curve ||
total_dyn_type2 & ge_mDynType2_Axis)
attrinfo[i].noedit = 1; attrinfo[i].noedit = 1;
attrinfo[i].mask = ~(ge_mDynType1_Bar | ge_mDynType1_Trend | ge_mDynType1_Table | attrinfo[i].mask = ~(ge_mDynType1_Bar | ge_mDynType1_Trend | ge_mDynType1_Table |
ge_mDynType1_FastCurve | ge_mDynType1_XY_Curve | ge_mDynType1_SliderBackground); ge_mDynType1_FastCurve | ge_mDynType1_XY_Curve | ge_mDynType1_SliderBackground);
......
...@@ -1965,7 +1965,9 @@ static int graph_attr_recall_cb( void *g, grow_tObject object, int idx, ...@@ -1965,7 +1965,9 @@ static int graph_attr_recall_cb( void *g, grow_tObject object, int idx,
grow_GetObjectType( object) == glow_eObjectType_GrowTable || grow_GetObjectType( object) == glow_eObjectType_GrowTable ||
grow_GetObjectType( object) == glow_eObjectType_GrowBar || grow_GetObjectType( object) == glow_eObjectType_GrowBar ||
grow_GetObjectType( object) == glow_eObjectType_GrowPie || grow_GetObjectType( object) == glow_eObjectType_GrowPie ||
grow_GetObjectType( object) == glow_eObjectType_GrowBarChart) { grow_GetObjectType( object) == glow_eObjectType_GrowBarChart ||
grow_GetObjectType( object) == glow_eObjectType_GrowAxis ||
grow_GetObjectType( object) == glow_eObjectType_GrowAxisArc) {
sts = graph->recall.get( &dyn, idx); sts = graph->recall.get( &dyn, idx);
if ( ODD(sts)) { if ( ODD(sts)) {
grow_GetUserData( object, (void **)old_dyn); grow_GetUserData( object, (void **)old_dyn);
...@@ -3632,14 +3634,17 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event) ...@@ -3632,14 +3634,17 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event)
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowTable || grow_GetObjectType( event->object.object) == glow_eObjectType_GrowTable ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowBar || grow_GetObjectType( event->object.object) == glow_eObjectType_GrowBar ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowPie || grow_GetObjectType( event->object.object) == glow_eObjectType_GrowPie ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowBarChart)) grow_GetObjectType( event->object.object) == glow_eObjectType_GrowBarChart ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowAxis ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowAxisArc))
{ {
GeDyn *dyn; GeDyn *dyn;
grow_GetUserData( event->object.object, (void **)&dyn); grow_GetUserData( event->object.object, (void **)&dyn);
dyn->action( event->object.object, event); if ( dyn) {
graph->current_mb1_down = event->object.object; dyn->action( event->object.object, event);
graph->current_mb1_down = event->object.object;
}
} }
break; break;
} }
...@@ -3656,14 +3661,17 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event) ...@@ -3656,14 +3661,17 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event)
grow_GetObjectType( graph->current_mb1_down) == glow_eObjectType_GrowTable || grow_GetObjectType( graph->current_mb1_down) == glow_eObjectType_GrowTable ||
grow_GetObjectType( graph->current_mb1_down) == glow_eObjectType_GrowBar || grow_GetObjectType( graph->current_mb1_down) == glow_eObjectType_GrowBar ||
grow_GetObjectType( graph->current_mb1_down) == glow_eObjectType_GrowPie || grow_GetObjectType( graph->current_mb1_down) == glow_eObjectType_GrowPie ||
grow_GetObjectType( graph->current_mb1_down) == glow_eObjectType_GrowBarChart) grow_GetObjectType( graph->current_mb1_down) == glow_eObjectType_GrowBarChart ||
grow_GetObjectType( graph->current_mb1_down) == glow_eObjectType_GrowAxis ||
grow_GetObjectType( graph->current_mb1_down) == glow_eObjectType_GrowAxisArc)
{ {
GeDyn *dyn; GeDyn *dyn;
grow_GetUserData( graph->current_mb1_down, (void **)&dyn); grow_GetUserData( graph->current_mb1_down, (void **)&dyn);
dyn->action( graph->current_mb1_down, event); if ( dyn) {
graph->current_mb1_down = 0; dyn->action( graph->current_mb1_down, event);
graph->current_mb1_down = 0;
}
} }
break; break;
} }
...@@ -3813,7 +3821,9 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event) ...@@ -3813,7 +3821,9 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event)
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowXYCurve || grow_GetObjectType( event->object.object) == glow_eObjectType_GrowXYCurve ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowTrend || grow_GetObjectType( event->object.object) == glow_eObjectType_GrowTrend ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowPie || grow_GetObjectType( event->object.object) == glow_eObjectType_GrowPie ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowBarChart)) grow_GetObjectType( event->object.object) == glow_eObjectType_GrowBarChart ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowAxis ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowAxisArc))
break; break;
if ( graph->mode != graph_eMode_Runtime) if ( graph->mode != graph_eMode_Runtime)
break; break;
...@@ -3824,7 +3834,8 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event) ...@@ -3824,7 +3834,8 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event)
GeDyn *dyn; GeDyn *dyn;
grow_GetUserData( event->object.object, (void **)&dyn); grow_GetUserData( event->object.object, (void **)&dyn);
dyn->action( event->object.object, event); if ( dyn)
dyn->action( event->object.object, event);
break; break;
} }
default: ; default: ;
...@@ -3880,17 +3891,21 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event) ...@@ -3880,17 +3891,21 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event)
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowXYCurve || grow_GetObjectType( event->object.object) == glow_eObjectType_GrowXYCurve ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowTrend || grow_GetObjectType( event->object.object) == glow_eObjectType_GrowTrend ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowPie || grow_GetObjectType( event->object.object) == glow_eObjectType_GrowPie ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowBarChart) grow_GetObjectType( event->object.object) == glow_eObjectType_GrowBarChart ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowAxis ||
grow_GetObjectType( event->object.object) == glow_eObjectType_GrowAxisArc)
{ {
grow_GetUserData( event->object.object, (void **)&dyn); grow_GetUserData( event->object.object, (void **)&dyn);
sts = dyn->action( event->object.object, event); if ( dyn) {
if ( sts == GLOW__TERMINATED) sts = dyn->action( event->object.object, event);
return sts; if ( sts == GLOW__TERMINATED)
else if ( sts == GLOW__SUBTERMINATED) { return sts;
if ( ctx_popped) else if ( sts == GLOW__SUBTERMINATED) {
graph->grow->push(); if ( ctx_popped)
return sts; graph->grow->push();
return sts;
}
} }
} }
break; break;
...@@ -5180,11 +5195,14 @@ static void graph_free_dyn( grow_tObject object) ...@@ -5180,11 +5195,14 @@ static void graph_free_dyn( grow_tObject object)
grow_GetObjectType( object) == glow_eObjectType_GrowBar || grow_GetObjectType( object) == glow_eObjectType_GrowBar ||
grow_GetObjectType( object) == glow_eObjectType_GrowPie || grow_GetObjectType( object) == glow_eObjectType_GrowPie ||
grow_GetObjectType( object) == glow_eObjectType_GrowBarChart || grow_GetObjectType( object) == glow_eObjectType_GrowBarChart ||
grow_GetObjectType( object) == glow_eObjectType_GrowAxis ||
grow_GetObjectType( object) == glow_eObjectType_GrowAxisArc ||
grow_GetObjectType( object) == glow_eObjectType_NodeClass) { grow_GetObjectType( object) == glow_eObjectType_NodeClass) {
GeDyn *dyn; GeDyn *dyn;
grow_GetUserData( object, (void **)&dyn); grow_GetUserData( object, (void **)&dyn);
delete dyn; if ( dyn)
delete dyn;
} }
} }
......
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