Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
607713e7
Commit
607713e7
authored
Dec 06, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GrowCurve contexttype changed to GrowCtx::eventhandler
parent
997b37fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
xtt/lib/glow/src/glow_ctx.cpp
xtt/lib/glow/src/glow_ctx.cpp
+3
-3
xtt/lib/glow/src/glow_growctx.cpp
xtt/lib/glow/src/glow_growctx.cpp
+5
-1
No files found.
xtt/lib/glow/src/glow_ctx.cpp
View file @
607713e7
/*
* 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
;
...
...
xtt/lib/glow/src/glow_growctx.cpp
View file @
607713e7
/*
* Proview $Id: glow_growctx.cpp,v 1.1
3 2005-11-02 14:08:35
claes Exp $
* Proview $Id: glow_growctx.cpp,v 1.1
4 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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment