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
9e9c70c4
Commit
9e9c70c4
authored
Mar 08, 2015
by
Claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wb script plc editing
parent
af29126f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
wb/lib/wb/src/wb_wccm.cpp
wb/lib/wb/src/wb_wccm.cpp
+16
-4
No files found.
wb/lib/wb/src/wb_wccm.cpp
View file @
9e9c70c4
...
...
@@ -1361,6 +1361,7 @@ static int wccm_openplcpgm_func(
ldh_tSesContext
ldhses
;
ldh_tWBContext
wbctx
;
ldh_sSessInfo
info
;
int
new_plc
=
0
;
sts
=
wccm_get_wbctx
(
&
wbctx
);
if
(
EVEN
(
sts
))
{
...
...
@@ -1404,6 +1405,11 @@ static int wccm_openplcpgm_func(
return
1
;
}
// Check if this is a new PlcPgm
sts
=
ldh_GetChild
(
ldhses
,
oid
,
&
windoid
);
if
(
EVEN
(
sts
))
new_plc
=
1
;
WNav
*
wnav
;
sts
=
wccm_get_wnav
(
&
wnav
);
wb_utl
*
utl
=
wnav
->
utl_new
();
...
...
@@ -1421,11 +1427,17 @@ static int wccm_openplcpgm_func(
lsts
=
ldh_ObjidToName
(
ldhses
,
windoid
,
ldh_eName_Hierarchy
,
stored_foe_window
,
sizeof
(
stored_foe_window
),
&
size
);
if
(
EVEN
(
lsts
))
return
sts
;
// Delete the document object
lsts
=
ldh_GetChild
(
ldhses
,
windoid
,
&
docoid
);
if
(
EVEN
(
lsts
))
return
sts
;
if
(
new_plc
)
{
// Delete the document object
lsts
=
ldh_GetChild
(
ldhses
,
windoid
,
&
docoid
);
if
(
EVEN
(
lsts
))
return
sts
;
stored_foe
->
cmd_delete_node
(
docoid
);
stored_foe
->
cmd_delete_node
(
docoid
);
}
else
{
// Enter edit mode
stored_foe
->
change_mode
(
EDIT
);
}
}
*
return_int
=
sts
;
*
return_decl
=
CCM_DECL_INT
;
...
...
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