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
3e1faab7
Commit
3e1faab7
authored
Feb 26, 2009
by
Claes pwr46/data0/x4-6-0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handling of unexpected mousekey combinations in the plc editor
parent
391ddd4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
wb/lib/wb/src/wb_gre.cpp
wb/lib/wb/src/wb_gre.cpp
+17
-0
No files found.
wb/lib/wb/src/wb_gre.cpp
View file @
3e1faab7
...
...
@@ -935,6 +935,8 @@ void WGre::delete_selected()
sel_con_count
=
0
;
sel_node_count
=
0
;
flow_PasteStop
(
flow_ctx
);
}
//
...
...
@@ -1367,6 +1369,8 @@ int WGre::flow_cb( FlowCtx *ctx, flow_tEvent event)
gre
->
search_rectangle_delete
();
if
(
event
->
any
.
type
==
flow_eEventType_CreateCon
)
{
if
(
flow_GetPasteActive
(
ctx
)
||
flow_GetAutoscrollingActive
(
ctx
))
return
1
;
flow_GetUserData
(
event
->
con_create
.
source_object
,
(
void
**
)
&
source
);
if
(
event
->
con_create
.
dest_object
)
flow_GetUserData
(
event
->
con_create
.
dest_object
,
(
void
**
)
&
dest
);
...
...
@@ -1389,6 +1393,7 @@ int WGre::flow_cb( FlowCtx *ctx, flow_tEvent event)
case
flow_eObjectType_Node
:
flow_GetUserData
(
event
->
object
.
object
,
&
vobject
);
(
gre
->
gre_delete
)
(
gre
,
vobject
,
VLDH_NODE
);
flow_PasteStop
(
ctx
);
break
;
case
flow_eObjectType_Con
:
flow_GetUserData
(
event
->
object
.
object
,
&
vobject
);
...
...
@@ -1481,6 +1486,14 @@ int WGre::flow_cb( FlowCtx *ctx, flow_tEvent event)
break
;
case
flow_eEvent_MB2Click
:
/* Create node */
if
(
flow_GetAutoscrollingActive
(
ctx
))
return
1
;
if
(
flow_GetPasteActive
(
ctx
))
{
flow_PasteStop
(
ctx
);
return
1
;
}
switch
(
event
->
object
.
object_type
)
{
case
flow_eObjectType_NoObject
:
(
gre
->
gre_node_created
)
(
gre
,
dummy
,
event
->
object
.
x
,
...
...
@@ -1551,6 +1564,10 @@ int WGre::flow_cb( FlowCtx *ctx, flow_tEvent event)
flow_tObject
*
select_list
;
int
select_cnt
;
if
(
flow_GetPasteActive
(
ctx
)
||
flow_GetAutoscrollingActive
(
ctx
)
||
flow_GetConCreateActive
(
ctx
))
return
1
;
flow_PositionToPixel
(
gre
->
flow_ctx
,
event
->
object
.
x
,
event
->
object
.
y
,
&
x_pix
,
&
y_pix
);
...
...
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