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
8ef3e74c
Commit
8ef3e74c
authored
Oct 23, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plc editor, opened object editors follows view/edit mode
parent
c0e86849
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
2 deletions
+23
-2
wb/lib/wb/src/wb_foe.cpp
wb/lib/wb/src/wb_foe.cpp
+19
-0
wb/lib/wb/src/wb_foe.h
wb/lib/wb/src/wb_foe.h
+1
-0
wb/lib/wb/src/wb_watt.cpp
wb/lib/wb/src/wb_watt.cpp
+2
-1
wb/lib/wb/src/wb_wattnav.h
wb/lib/wb/src/wb_wattnav.h
+1
-1
No files found.
wb/lib/wb/src/wb_foe.cpp
View file @
8ef3e74c
...
@@ -2288,6 +2288,20 @@ int WFoe::attr_delete()
...
@@ -2288,6 +2288,20 @@ int WFoe::attr_delete()
return
FOE__SUCCESS
;
return
FOE__SUCCESS
;
}
}
//
// Delete all attribute editors and remove them from the
// attribute list.
//
void
WFoe
::
attr_set_editmode
(
int
mode
)
{
int
i
;
for
(
i
=
0
;
i
<
attr_count
;
i
++
)
{
if
(
this
==
(
attr_pointer
+
i
)
->
foe
)
((
WAtt
*
)(
attr_pointer
+
i
)
->
a_ctx
)
->
set_editmode
(
mode
,
0
);
}
}
//
//
// Tell all the subwindows on the screen that I am quitting now
// Tell all the subwindows on the screen that I am quitting now
// by setting the parentctx in foe zero.
// by setting the parentctx in foe zero.
...
@@ -3633,6 +3647,7 @@ int WFoe::change_mode( int new_mode)
...
@@ -3633,6 +3647,7 @@ int WFoe::change_mode( int new_mode)
ldh_eAccess_ReadOnly
);
ldh_eAccess_ReadOnly
);
if
(
EVEN
(
sts
))
return
sts
;
if
(
EVEN
(
sts
))
return
sts
;
access
=
ldh_eAccess_ReadOnly
;
access
=
ldh_eAccess_ReadOnly
;
attr_set_editmode
(
0
);
}
}
break
;
break
;
case
TRACE
:
case
TRACE
:
...
@@ -3693,6 +3708,7 @@ int WFoe::change_mode( int new_mode)
...
@@ -3693,6 +3708,7 @@ int WFoe::change_mode( int new_mode)
gre
->
disable_button_events
();
gre
->
disable_button_events
();
edit_setup
();
edit_setup
();
set_mode_button_state
(
VIEW
,
0
);
set_mode_button_state
(
VIEW
,
0
);
attr_set_editmode
(
1
);
break
;
break
;
case
EDIT
:
case
EDIT
:
/* Mode unchanged */
/* Mode unchanged */
...
@@ -3961,6 +3977,7 @@ void WFoe::edit_exit_save( WFoe *foe)
...
@@ -3961,6 +3977,7 @@ void WFoe::edit_exit_save( WFoe *foe)
foe
->
set_mode_button_state
(
EDIT
,
0
);
foe
->
set_mode_button_state
(
EDIT
,
0
);
foe
->
set_mode_button_state
(
SIMULATE
,
1
);
foe
->
set_mode_button_state
(
SIMULATE
,
1
);
foe
->
function
=
SIMULATE
;
foe
->
function
=
SIMULATE
;
foe
->
attr_set_editmode
(
0
);
break
;
break
;
case
TRACE
:
case
TRACE
:
foe
->
gre
->
disable_button_events
();
foe
->
gre
->
disable_button_events
();
...
@@ -3973,6 +3990,7 @@ void WFoe::edit_exit_save( WFoe *foe)
...
@@ -3973,6 +3990,7 @@ void WFoe::edit_exit_save( WFoe *foe)
foe
->
set_mode_button_state
(
EDIT
,
0
);
foe
->
set_mode_button_state
(
EDIT
,
0
);
foe
->
set_mode_button_state
(
TRACE
,
1
);
foe
->
set_mode_button_state
(
TRACE
,
1
);
foe
->
function
=
TRACE
;
foe
->
function
=
TRACE
;
foe
->
attr_set_editmode
(
0
);
break
;
break
;
case
VIEW
:
case
VIEW
:
foe
->
set_mode_button_state
(
EDIT
,
0
);
foe
->
set_mode_button_state
(
EDIT
,
0
);
...
@@ -3984,6 +4002,7 @@ void WFoe::edit_exit_save( WFoe *foe)
...
@@ -3984,6 +4002,7 @@ void WFoe::edit_exit_save( WFoe *foe)
ldh_eAccess_ReadOnly
);
ldh_eAccess_ReadOnly
);
foe
->
error_msg
(
sts
);
foe
->
error_msg
(
sts
);
foe
->
access
=
ldh_eAccess_ReadOnly
;
foe
->
access
=
ldh_eAccess_ReadOnly
;
foe
->
attr_set_editmode
(
0
);
break
;
break
;
}
}
}
}
...
...
wb/lib/wb/src/wb_foe.h
View file @
8ef3e74c
...
@@ -274,6 +274,7 @@ class WFoe : public WUtility {
...
@@ -274,6 +274,7 @@ class WFoe : public WUtility {
void
disable_ldh_cb
();
void
disable_ldh_cb
();
int
attr_create
(
vldh_t_node
node
);
int
attr_create
(
vldh_t_node
node
);
int
attr_delete
();
int
attr_delete
();
void
attr_set_editmode
(
int
mode
);
int
parent_quit
();
int
parent_quit
();
int
child_quit
(
vldh_t_node
node
,
unsigned
long
windowindex
);
int
child_quit
(
vldh_t_node
node
,
unsigned
long
windowindex
);
int
child_delete
(
vldh_t_node
node
,
vldh_t_wind
subwind
);
int
child_delete
(
vldh_t_node
node
,
vldh_t_wind
subwind
);
...
...
wb/lib/wb/src/wb_watt.cpp
View file @
8ef3e74c
...
@@ -80,7 +80,8 @@ void WAtt::activate_print()
...
@@ -80,7 +80,8 @@ void WAtt::activate_print()
void
WAtt
::
set_editmode
(
int
editmode
,
ldh_tSesContext
ldhses
)
void
WAtt
::
set_editmode
(
int
editmode
,
ldh_tSesContext
ldhses
)
{
{
this
->
ldhses
=
ldhses
;
if
(
ldhses
!=
0
)
this
->
ldhses
=
ldhses
;
this
->
editmode
=
editmode
;
this
->
editmode
=
editmode
;
((
WAttNav
*
)
wattnav
)
->
set_editmode
(
editmode
,
ldhses
);
((
WAttNav
*
)
wattnav
)
->
set_editmode
(
editmode
,
ldhses
);
}
}
...
...
wb/lib/wb/src/wb_wattnav.h
View file @
8ef3e74c
...
@@ -113,7 +113,7 @@ class WAttNav {
...
@@ -113,7 +113,7 @@ class WAttNav {
void
redraw
();
void
redraw
();
void
enable_events
();
void
enable_events
();
void
set_editmode
(
int
editmode
,
ldh_tSesContext
ldhses
)
void
set_editmode
(
int
editmode
,
ldh_tSesContext
ldhses
)
{
this
->
editmode
=
editmode
;
this
->
ldhses
=
ldhses
;};
{
this
->
editmode
=
editmode
;
if
(
ldhses
!=
0
)
this
->
ldhses
=
ldhses
;};
int
select_by_name
(
const
char
*
name
);
int
select_by_name
(
const
char
*
name
);
static
int
init_brow_cb
(
FlowCtx
*
fctx
,
void
*
client_data
);
static
int
init_brow_cb
(
FlowCtx
*
fctx
,
void
*
client_data
);
...
...
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