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
62b5e0b9
Commit
62b5e0b9
authored
Feb 19, 2009
by
Claes pwr46/data0/x4-6-0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix in connectionpoint selection. Removed node wasn't removed from selection list
parent
f725cf84
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-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
+1
-0
xtt/lib/flow/src/flow_node.cpp
xtt/lib/flow/src/flow_node.cpp
+1
-0
No files found.
xtt/lib/flow/src/flow_ctx.cpp
View file @
62b5e0b9
...
...
@@ -293,6 +293,21 @@ void FlowCtx::conpoint_select( FlowArrayElem *node, int cp_num)
conpoint_select_idx
++
;
}
void
FlowCtx
::
conpoint_select_remove
(
FlowArrayElem
*
node
)
{
// Remove all occurences of the node
for
(
int
i
=
0
;
i
<
conpoint_select_idx
;
i
++
)
{
if
(
conpoint_select_node
[
i
]
==
node
)
{
// Hit, remove node
for
(
int
j
=
i
;
j
<
conpoint_select_idx
-
1
;
j
++
)
{
conpoint_select_node
[
j
]
=
conpoint_select_node
[
j
+
1
];
conpoint_select_num
[
j
]
=
conpoint_select_num
[
j
+
1
];
}
conpoint_select_idx
--
;
}
}
}
void
FlowCtx
::
conpoint_select_clear
()
{
if
(
conpoint_select_idx
>=
1
)
...
...
xtt/lib/flow/src/flow_ctx.h
View file @
62b5e0b9
...
...
@@ -120,6 +120,7 @@ class FlowCtx {
void
con_create_source
(
FlowArrayElem
*
node
,
int
cp_num
,
int
cp_x
,
int
cp_y
);
void
con_create_dest
(
FlowArrayElem
*
node
,
int
cp_num
,
flow_eEvent
event
,
int
x
,
int
y
);
void
conpoint_select
(
FlowArrayElem
*
node
,
int
cp_num
);
void
conpoint_select_remove
(
FlowArrayElem
*
node
);
void
conpoint_select_clear
();
void
get_selectlist
(
FlowArrayElem
***
list
,
int
*
size
)
{
*
list
=
a_sel
.
a
;
*
size
=
a_sel
.
size
();};
...
...
xtt/lib/flow/src/flow_node.cpp
View file @
62b5e0b9
...
...
@@ -93,6 +93,7 @@ FlowNode::~FlowNode()
ctx
->
set_defered_redraw
();
ctx
->
delete_node_cons
(
this
);
ctx
->
conpoint_select_remove
(
this
);
ctx
->
draw
(
int
(
x_left
*
ctx
->
zoom_factor
-
ctx
->
offset_x
-
20
),
int
(
y_low
*
ctx
->
zoom_factor
-
ctx
->
offset_y
-
20
),
int
(
x_right
*
ctx
->
zoom_factor
-
ctx
->
offset_x
+
20
),
...
...
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