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
67243729
Commit
67243729
authored
Mar 06, 2017
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge, set subwindow fix
parent
d28b2480
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
8 deletions
+18
-8
xtt/lib/ge/src/ge_graph.cpp
xtt/lib/ge/src/ge_graph.cpp
+4
-3
xtt/lib/glow/src/glow_growctx.cpp
xtt/lib/glow/src/glow_growctx.cpp
+1
-1
xtt/lib/glow/src/glow_growwindow.cpp
xtt/lib/glow/src/glow_growwindow.cpp
+12
-3
xtt/lib/glow/src/glow_growwindow.h
xtt/lib/glow/src/glow_growwindow.h
+1
-1
No files found.
xtt/lib/ge/src/ge_graph.cpp
View file @
67243729
...
...
@@ -4386,8 +4386,9 @@ int Graph::set_subwindow_source( const char *name, char *source, char *owner)
if
(
ctx
!=
grow
->
ctx
)
grow
->
pop
(
ctx
);
if
(
sts
)
return
GLOW__SUBTERMINATED
;
// return sts
;
return
1
;
}
int
Graph
::
sound
(
pwr_tAttrRef
*
aref
)
...
...
xtt/lib/glow/src/glow_growctx.cpp
View file @
67243729
...
...
@@ -1968,7 +1968,7 @@ int GrowCtx::event_handler( glow_eEvent event, int x, int y, int w, int h)
if
(
callback_object_type
!=
glow_eObjectType_NoObject
)
e
.
object
.
object
=
callback_object
;
sts
=
event_callback
[
event
](
this
,
&
e
);
if
(
sts
==
GLOW__TERMINATED
)
if
(
sts
==
GLOW__TERMINATED
||
sts
==
GLOW__SUBTERMINATED
)
return
sts
;
}
return
1
;
...
...
xtt/lib/glow/src/glow_growwindow.cpp
View file @
67243729
...
...
@@ -694,6 +694,10 @@ int GrowWindow::event_handler( GlowWind *w, glow_eEvent event, int x, int y, dou
sts
=
window_ctx
->
event_handler
(
event
,
x
,
y
,
0
,
0
);
if
(
sts
==
GLOW__TERMINATED
)
return
sts
;
else
if
(
sts
==
GLOW__SUBTERMINATED
)
{
ctx
->
gdraw
->
pop_customcolors
();
return
1
;
}
window_ctx
->
redraw_callback
=
0
;
window_ctx
->
redraw_data
=
0
;
...
...
@@ -732,8 +736,10 @@ void GrowWindow::set_input_focus( int focus, glow_eEvent event)
}
}
void
GrowWindow
::
update_attributes
()
int
GrowWindow
::
update_attributes
()
{
int
sts
=
0
;
if
(
strcmp
(
input_file_name
,
file_name
)
!=
0
||
(
window_ctx
&&
strcmp
(
window_ctx
->
owner
,
owner
)
!=
0
))
{
// New graph, create new context
...
...
@@ -762,6 +768,7 @@ void GrowWindow::update_attributes()
}
strcpy
(
file_name
,
input_file_name
);
new_ctx
();
sts
=
1
;
//#if 0
ctx
->
gdraw
->
reset_clip_rectangle
(
&
ctx
->
mw
);
...
...
@@ -780,6 +787,7 @@ void GrowWindow::update_attributes()
v_scrollbar
->
set_colors
(
scrollbar_bg_color
,
scrollbar_color
);
if
(
h_scrollbar
)
h_scrollbar
->
set_colors
(
scrollbar_bg_color
,
scrollbar_color
);
return
sts
;
}
void
GrowWindow
::
set_transform_from_stored
(
GlowTransform
*
t
)
...
...
@@ -1062,6 +1070,7 @@ int GrowWindow::get_background_object_limits(GlowTransform *t,
int
GrowWindow
::
set_source
(
char
*
source
,
char
*
new_owner
)
{
int
clip_removed
=
0
;
int
sts
;
if
(
ctx
->
gdraw
->
clip_level
(
&
ctx
->
mw
))
{
// Remove any clip
...
...
@@ -1072,7 +1081,7 @@ int GrowWindow::set_source( char *source, char *new_owner)
strcpy
(
input_file_name
,
source
);
if
(
new_owner
)
strncpy
(
owner
,
new_owner
,
sizeof
(
owner
));
update_attributes
();
sts
=
update_attributes
();
window_ctx
->
gdraw
->
push_customcolors
(
window_ctx
->
customcolors
);
draw
();
...
...
@@ -1082,5 +1091,5 @@ int GrowWindow::set_source( char *source, char *new_owner)
// Set a clip to match the previous reset
ctx
->
gdraw
->
set_clip_rectangle
(
&
ctx
->
mw
,
0
,
0
,
ctx
->
mw
.
window_width
,
ctx
->
mw
.
window_height
);
return
1
;
return
sts
;
}
xtt/lib/glow/src/glow_growwindow.h
View file @
67243729
...
...
@@ -258,7 +258,7 @@ class GrowWindow : public GrowRect {
double
fy
);
//! Check if new filename
void
update_attributes
();
int
update_attributes
();
//! Create a new grow context
void
new_ctx
();
...
...
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