Commit 607713e7 authored by claes's avatar claes

GrowCurve contexttype changed to GrowCtx::eventhandler

parent 997b37fd
/*
* Proview $Id: glow_ctx.cpp,v 1.6 2005-09-01 14:57:53 claes Exp $
* Proview $Id: glow_ctx.cpp,v 1.7 2005-12-06 09:20:36 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -848,7 +848,7 @@ int GlowCtx::event_handler( glow_eEvent event, int x, int y, int w, int h)
GlowCtx *ctx;
int node_move_event = 0;
if ( ctx_type == glow_eCtxType_Grow)
if ( ctx_type == glow_eCtxType_Grow || ctx_type == glow_eCtxType_Curve)
return ((GrowCtx *)this)->event_handler( event, x, y, w, h);
else if ( ctx_type == glow_eCtxType_ColPal)
return ((ColPalCtx *)this)->event_handler( event, x, y, w, h);
......@@ -2030,7 +2030,7 @@ void auto_scrolling( GlowCtx *ctx)
{
int delta_x, delta_y;
if ( ctx->ctx_type == glow_eCtxType_Grow)
if ( ctx->ctx_type == glow_eCtxType_Grow || ctx->ctx_type == glow_eCtxType_Curve)
{
grow_auto_scrolling((GrowCtx *)ctx);
return;
......
/*
* Proview $Id: glow_growctx.cpp,v 1.13 2005-11-02 14:08:35 claes Exp $
* Proview $Id: glow_growctx.cpp,v 1.14 2005-12-06 09:20:36 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -25,6 +25,7 @@
#include <stdlib.h>
#include "glow_ctx.h"
#include "glow_growctx.h"
#include "glow_curvectx.h"
#include "glow_node.h"
#include "glow_point.h"
#include "glow_rect.h"
......@@ -489,6 +490,9 @@ int GrowCtx::event_handler( glow_eEvent event, int x, int y, int w, int h)
{
int width, height;
if ( ctx_type == glow_eCtxType_Curve)
((CurveCtx *)this)->adjust_layout();
glow_draw_get_window_size( ctx, &width, &height);
if ( window_width != width || window_height != height) {
window_width = width;
......
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