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
9c738972
Commit
9c738972
authored
Feb 26, 2009
by
Claes pwr46/data0/x4-6-0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Function to paste_active, autoscrolling_active and create_con_active added
parent
f03e0414
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
0 deletions
+43
-0
xtt/lib/flow/src/flow_api.cpp
xtt/lib/flow/src/flow_api.cpp
+20
-0
xtt/lib/flow/src/flow_api.h
xtt/lib/flow/src/flow_api.h
+4
-0
xtt/lib/flow/src/flow_ctx.cpp
xtt/lib/flow/src/flow_ctx.cpp
+15
-0
xtt/lib/flow/src/flow_ctx.h
xtt/lib/flow/src/flow_ctx.h
+4
-0
No files found.
xtt/lib/flow/src/flow_api.cpp
View file @
9c738972
...
...
@@ -771,6 +771,16 @@ int flow_PasteStop( flow_tCtx ctx)
return
ctx
->
paste_stop
();
}
int
flow_GetPasteActive
(
flow_tCtx
ctx
)
{
return
ctx
->
get_paste_active
();
}
int
flow_GetAutoscrollingActive
(
flow_tCtx
ctx
)
{
return
ctx
->
get_autoscrolling_active
();
}
int
flow_PendingPaste
(
flow_tCtx
ctx
)
{
return
ctx
->
pending_paste
();
...
...
@@ -781,4 +791,14 @@ int flow_PendingPasteStop( flow_tCtx ctx)
return
ctx
->
pending_paste_stop
();
}
int
flow_GetConCreateActive
(
flow_tCtx
ctx
)
{
return
ctx
->
get_con_create_active
();
}
int
flow_ConCreateStop
(
flow_tCtx
ctx
)
{
return
ctx
->
con_create_stop
();
}
xtt/lib/flow/src/flow_api.h
View file @
9c738972
...
...
@@ -251,8 +251,12 @@ int flow_LoadNodeClass( flow_tCtx ctx, char *fname, flow_tNodeClass *nodeclass);
void
flow_SetTipText
(
flow_tCtx
ctx
,
flow_tObject
object
,
char
*
text
,
int
x
,
int
y
);
void
flow_RemoveTipText
(
flow_tCtx
ctx
);
int
flow_PasteStop
(
flow_tCtx
ctx
);
int
flow_GetPasteActive
(
flow_tCtx
ctx
);
int
flow_GetAutoscrollingActive
(
flow_tCtx
ctx
);
int
flow_PendingPaste
(
flow_tCtx
ctx
);
int
flow_PendingPasteStop
(
flow_tCtx
ctx
);
int
flow_GetConCreateActive
(
flow_tCtx
ctx
);
int
flow_ConCreateStop
(
flow_tCtx
ctx
);
#if defined __cplusplus
...
...
xtt/lib/flow/src/flow_ctx.cpp
View file @
9c738972
...
...
@@ -979,6 +979,9 @@ int FlowCtx::event_handler( flow_eEvent event, int x, int y, int w, int h)
if
(
window_width
!=
width
||
window_height
!=
height
)
{
window_width
=
width
;
window_height
=
height
;
if
(
type
()
==
flow_eCtxType_Brow
)
// Get FlowFrame borders
((
BrowCtx
*
)
ctx
)
->
frame_x_right
=
MAX
(
x_right
,
1.0
*
(
window_width
+
offset_x
)
/
zoom_factor
);
size_changed
=
1
;
if
(
event_callback
[
flow_eEvent_Resized
])
{
...
...
@@ -2339,3 +2342,15 @@ int FlowCtx::pending_paste_stop()
node_movement_paste_pending
=
0
;
return
1
;
}
int
FlowCtx
::
con_create_stop
()
{
if
(
!
con_create_active
)
return
0
;
if
(
auto_scrolling_active
)
auto_scrolling_stop
();
con_create_active
=
0
;
return
1
;
}
xtt/lib/flow/src/flow_ctx.h
View file @
9c738972
...
...
@@ -320,8 +320,12 @@ class FlowCtx {
int
is_visible
(
FlowArrayElem
*
element
,
flow_eVisible
type
);
void
move_selected_nodes
(
double
delta_x
,
double
delta_y
,
int
grid
);
int
paste_stop
();
int
get_paste_active
()
{
return
node_movement_paste_active
;}
int
get_autoscrolling_active
()
{
return
auto_scrolling_active
;}
int
pending_paste
()
{
return
node_movement_paste_pending
;}
int
pending_paste_stop
();
int
get_con_create_active
()
{
return
con_create_active
;}
int
con_create_stop
();
void
set_inverse_color
(
flow_eDrawType
color
)
{
inverse_color
=
color
;
redraw
();}
~
FlowCtx
();
};
...
...
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