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
388a4a4d
Commit
388a4a4d
authored
Nov 15, 2013
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plc trace, highlight of reference connection when clicked on (refs #174)
parent
77b43241
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
0 deletions
+15
-0
xtt/lib/flow/src/flow_api.cpp
xtt/lib/flow/src/flow_api.cpp
+4
-0
xtt/lib/flow/src/flow_api.h
xtt/lib/flow/src/flow_api.h
+1
-0
xtt/lib/flow/src/flow_con.h
xtt/lib/flow/src/flow_con.h
+2
-0
xtt/lib/xtt/src/xtt_trace.cpp
xtt/lib/xtt/src/xtt_trace.cpp
+8
-0
No files found.
xtt/lib/flow/src/flow_api.cpp
View file @
388a4a4d
...
...
@@ -854,4 +854,8 @@ int flow_ConCreateStop( flow_tCtx ctx)
return
ctx
->
con_create_stop
();
}
int
flow_ConIsReference
(
flow_tCon
con
)
{
return
((
FlowCon
*
)
con
)
->
is_reference
();
}
xtt/lib/flow/src/flow_api.h
View file @
388a4a4d
...
...
@@ -284,6 +284,7 @@ int flow_PendingPaste( flow_tCtx ctx);
int
flow_PendingPasteStop
(
flow_tCtx
ctx
);
int
flow_GetConCreateActive
(
flow_tCtx
ctx
);
int
flow_ConCreateStop
(
flow_tCtx
ctx
);
int
flow_ConIsReference
(
flow_tCon
con
);
#if defined __cplusplus
...
...
xtt/lib/flow/src/flow_con.h
View file @
388a4a4d
...
...
@@ -118,6 +118,8 @@ class FlowCon : public FlowArrayElem {
void
select_region_insert
(
double
ll_x
,
double
ll_y
,
double
ur_x
,
double
ur_y
);
flow_eObjectType
type
()
{
return
flow_eObjectType_Con
;};
int
is_reference
()
{
return
temporary_ref
||
cc
->
con_type
==
flow_eConType_Reference
;}
double
x_right
;
double
x_left
;
double
y_high
;
...
...
xtt/lib/xtt/src/xtt_trace.cpp
View file @
388a4a4d
...
...
@@ -730,6 +730,14 @@ int RtTrace::flow_cb( FlowCtx *ctx, flow_tEvent event)
flow_SelectInsert
(
ctx
,
event
->
object
.
object
);
}
break
;
case
flow_eObjectType_Con
:
if
(
flow_ConIsReference
(
event
->
object
.
object
))
{
int
val
;
flow_GetHighlight
(
event
->
object
.
object
,
&
val
);
flow_SetHighlight
(
event
->
object
.
object
,
!
val
);
}
break
;
default:
flow_SelectClear
(
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