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
ebf937b9
Commit
ebf937b9
authored
Feb 09, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export java added
parent
265fa359
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
35 deletions
+44
-35
xtt/lib/glow/src/glow_growfolder.cpp
xtt/lib/glow/src/glow_growfolder.cpp
+4
-5
xtt/lib/glow/src/glow_growwindow.cpp
xtt/lib/glow/src/glow_growwindow.cpp
+36
-30
xtt/lib/glow/src/glow_growwindow.h
xtt/lib/glow/src/glow_growwindow.h
+4
-0
No files found.
xtt/lib/glow/src/glow_growfolder.cpp
View file @
ebf937b9
...
...
@@ -549,11 +549,10 @@ void GrowFolder::export_javabean( GlowTransform *t, void *node,
ll_y
=
min
(
y1
,
y2
);
ur_y
=
max
(
y1
,
y2
);
// ((GrowCtx *)ctx)->export_jbean->bar( ll_x, ll_y, ur_x, ur_y,
// draw_type, fill_drawtype, bar_drawtype, bar_bordercolor, fill,
// border, min_value, max_value, bar_borderwidth,
// line_width, rotation,
// pass, shape_cnt, node_cnt, fp);
((
GrowCtx
*
)
ctx
)
->
export_jbean
->
folder
(
ll_x
,
ll_y
,
ur_x
,
ur_y
,
folders
,
(
char
*
)
folder_file_names
,
(
char
*
)
folder_text
,
(
int
*
)
folder_v_scrollbar
,
(
int
*
)
folder_h_scrollbar
,
pass
,
shape_cnt
,
node_cnt
,
fp
);
}
void
GrowFolder
::
convert
(
glow_eConvert
version
)
...
...
xtt/lib/glow/src/glow_growwindow.cpp
View file @
ebf937b9
...
...
@@ -415,6 +415,27 @@ int GrowWindow::trace_init()
// sts = ctx->trace_connect_func( (void *) this, &trace);
if
(
window_ctx
)
{
double
dx1
,
dy1
,
dx2
,
dy2
;
ctx
->
set_nodraw
();
configure_scrollbars
();
ctx
->
reset_nodraw
();
dx1
=
trf
.
x
(
ll
.
x
,
ll
.
y
);
dy1
=
trf
.
y
(
ll
.
x
,
ll
.
y
);
dx2
=
trf
.
x
(
ur
.
x
,
ur
.
y
);
dy2
=
trf
.
y
(
ur
.
x
,
ur
.
y
);
dx1
=
min
(
dx1
,
dx2
);
dx2
=
max
(
dx1
,
dx2
);
dy1
=
min
(
dy1
,
dy2
);
dy2
=
max
(
dy1
,
dy2
);
int
ll_x
=
int
(
dx1
*
ctx
->
zoom_factor_x
)
-
ctx
->
offset_x
;
int
ll_y
=
int
(
(
dy1
+
y_low_offs
)
*
ctx
->
zoom_factor_y
)
-
ctx
->
offset_y
;
window_ctx
->
offset_x
=
-
ll_x
+
int
(
h_value
*
ctx
->
zoom_factor_x
);
window_ctx
->
offset_y
=
-
ll_y
+
int
(
v_value
*
ctx
->
zoom_factor_y
);
window_ctx
->
trace_init
(
ctx
->
trace_connect_func
,
ctx
->
trace_disconnect_func
,
ctx
->
trace_scan_func
);
...
...
@@ -516,11 +537,9 @@ void GrowWindow::export_javabean( GlowTransform *t, void *node,
ll_y
=
min
(
y1
,
y2
);
ur_y
=
max
(
y1
,
y2
);
// ((GrowCtx *)ctx)->export_jbean->bar( ll_x, ll_y, ur_x, ur_y,
// draw_type, fill_drawtype, bar_drawtype, bar_bordercolor, fill,
// border, min_value, max_value, bar_borderwidth,
// line_width, rotation,
// pass, shape_cnt, node_cnt, fp);
((
GrowCtx
*
)
ctx
)
->
export_jbean
->
window
(
ll_x
,
ll_y
,
ur_x
,
ur_y
,
file_name
,
vertical_scrollbar
,
horizontal_scrollbar
,
pass
,
shape_cnt
,
node_cnt
,
fp
);
}
void
GrowWindow
::
convert
(
glow_eConvert
version
)
...
...
@@ -778,31 +797,7 @@ void GrowWindow::new_ctx()
window_ctx
->
a
.
zoom
();
if
(
ctx
->
trace_started
)
{
double
dx1
,
dy1
,
dx2
,
dy2
;
ctx
->
set_nodraw
();
configure_scrollbars
();
ctx
->
reset_nodraw
();
dx1
=
trf
.
x
(
ll
.
x
,
ll
.
y
);
dy1
=
trf
.
y
(
ll
.
x
,
ll
.
y
);
dx2
=
trf
.
x
(
ur
.
x
,
ur
.
y
);
dy2
=
trf
.
y
(
ur
.
x
,
ur
.
y
);
dx1
=
min
(
dx1
,
dx2
);
dx2
=
max
(
dx1
,
dx2
);
dy1
=
min
(
dy1
,
dy2
);
dy2
=
max
(
dy1
,
dy2
);
int
ll_x
=
int
(
dx1
*
ctx
->
zoom_factor_x
)
-
ctx
->
offset_x
;
int
ll_y
=
int
(
(
dy1
+
y_low_offs
)
*
ctx
->
zoom_factor_y
)
-
ctx
->
offset_y
;
window_ctx
->
offset_x
=
-
ll_x
+
int
(
h_value
*
ctx
->
zoom_factor_x
);
window_ctx
->
offset_y
=
-
ll_y
+
int
(
v_value
*
ctx
->
zoom_factor_y
);
window_ctx
->
trace_init
(
ctx
->
trace_connect_func
,
ctx
->
trace_disconnect_func
,
ctx
->
trace_scan_func
);
memcpy
(
window_ctx
->
event_callback
,
ctx
->
event_callback
,
sizeof
(
ctx
->
event_callback
));
trace_init
();
trace_scan
();
}
}
...
...
@@ -871,3 +866,14 @@ void GrowWindow::zoom()
if
(
window_ctx
)
window_ctx
->
a
.
zoom
();
}
int
GrowWindow
::
get_background_object_limits
(
GlowTransform
*
t
,
glow_eTraceType
type
,
double
x
,
double
y
,
GlowArrayElem
**
background
,
double
*
min
,
double
*
max
,
glow_eDirection
*
direction
)
{
if
(
window_ctx
)
return
window_ctx
->
get_background_object_limits
(
type
,
x
,
y
,
background
,
min
,
max
,
direction
);
return
0
;
}
xtt/lib/glow/src/glow_growwindow.h
View file @
ebf937b9
...
...
@@ -253,6 +253,10 @@ class GrowWindow : public GrowRect {
void
draw_background
();
void
set_shadow
(
int
shadowval
)
{
shadow
=
shadowval
;
configure_scrollbars
();
draw
();}
void
zoom
();
int
get_background_object_limits
(
GlowTransform
*
t
,
glow_eTraceType
type
,
double
x
,
double
y
,
GlowArrayElem
**
background
,
double
*
min
,
double
*
max
,
glow_eDirection
*
direction
);
static
void
v_value_changed_cb
(
void
*
o
,
double
value
);
static
void
h_value_changed_cb
(
void
*
o
,
double
value
);
...
...
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