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
e2ed7339
Commit
e2ed7339
authored
May 05, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plc editor text editor entry in popup menu fix
parent
30c9adbf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
9 deletions
+17
-9
wb/lib/wb/src/wb_foe.cpp
wb/lib/wb/src/wb_foe.cpp
+3
-2
wb/lib/wb/src/wb_foe.h
wb/lib/wb/src/wb_foe.h
+1
-1
wb/lib/wb/src/wb_gre.cpp
wb/lib/wb/src/wb_gre.cpp
+10
-3
wb/lib/wb/src/wb_gre.h
wb/lib/wb/src/wb_gre.h
+2
-2
wb/lib/wb/src/wb_tra.cpp
wb/lib/wb/src/wb_tra.cpp
+1
-1
No files found.
wb/lib/wb/src/wb_foe.cpp
View file @
e2ed7339
...
...
@@ -2080,7 +2080,7 @@ void WFoe::gre_subwindow( WGre *gre, vldh_t_node object, unsigned long subwindow
// Backcall from the controlled gre module
//
void
WFoe
::
gre_popupmenu
(
WGre
*
gre
,
int
x_pix
,
int
y_pix
,
int
popupmenu_type
,
vldh_t_node
node
)
vldh_t_node
node
,
int
unselect
)
{
WFoe
*
foe
;
...
...
@@ -2091,7 +2091,8 @@ void WFoe::gre_popupmenu( WGre *gre, int x_pix, int y_pix, int popupmenu_type,
if
(
popupmenu_type
==
GRE_POPUPMENUMODE_OBJECT
)
{
if
(
node
!=
0
)
{
gre
->
node_select
(
node
);
foe
->
popupmenu_node
=
node
;
if
(
unselect
)
foe
->
popupmenu_node
=
node
;
}
unsigned
int
mask
=
foe_ePopupmenu_attribute
|
...
...
wb/lib/wb/src/wb_foe.h
View file @
e2ed7339
...
...
@@ -374,7 +374,7 @@ class WFoe : public WUtility {
static
void
gre_attribute
(
WGre
*
gre
,
vldh_t_node
object
);
static
void
gre_subwindow
(
WGre
*
gre
,
vldh_t_node
object
,
unsigned
long
subwindow_nr
);
static
void
gre_popupmenu
(
WGre
*
gre
,
int
x_pix
,
int
y_pix
,
int
popupmenu_type
,
vldh_t_node
node
);
vldh_t_node
node
,
int
unselect
);
static
void
gre_getobj
(
WGre
*
gre
,
vldh_t_node
node
,
unsigned
long
index
);
static
void
gre_undelete
(
WGre
*
gre
);
static
void
gre_unselect
(
WGre
*
gre
);
...
...
wb/lib/wb/src/wb_gre.cpp
View file @
e2ed7339
...
...
@@ -1619,6 +1619,7 @@ int WGre::flow_cb( FlowCtx *ctx, flow_tEvent event)
vldh_t_node
current_node
;
flow_tObject
*
select_list
;
int
select_cnt
;
int
unselect
=
0
;
if
(
flow_GetPasteActive
(
ctx
)
||
flow_GetAutoscrollingActive
(
ctx
)
||
flow_GetConCreateActive
(
ctx
))
...
...
@@ -1635,16 +1636,22 @@ int WGre::flow_cb( FlowCtx *ctx, flow_tEvent event)
flow_GetSelectList
(
ctx
,
&
select_list
,
&
select_cnt
);
if
(
!
select_cnt
)
{
if
(
event
->
object
.
object_type
==
flow_eObjectType_Node
)
if
(
event
->
object
.
object_type
==
flow_eObjectType_Node
)
{
/* Get the current object */
flow_GetUserData
(
event
->
object
.
object
,
(
void
**
)
&
current_node
);
unselect
=
1
;
}
}
if
(
select_cnt
==
1
)
flow_GetUserData
(
select_list
[
0
],
(
void
**
)
&
current_node
);
if
(
current_node
||
select_cnt
==
1
)
gre
->
popupmenu_mode
=
GRE_POPUPMENUMODE_OBJECT
;
else
gre
->
popupmenu_mode
=
GRE_POPUPMENUMODE_AREA
;
(
gre
->
gre_popupmenu
)
(
gre
,
x_pix
,
y_pix
,
gre
->
popupmenu_mode
,
current_node
);
gre
->
popupmenu_mode
,
current_node
,
unselect
);
break
;
}
#if 0
...
...
@@ -2101,7 +2108,7 @@ int WGre::setup_backcalls (
void
(
*
attribute_bc
)(
WGre
*
,
vldh_t_node
),
void
(
*
subwindow_bc
)(
WGre
*
,
vldh_t_node
,
unsigned
long
),
void
(
*
reserv_bc
)(),
void
(
*
popupmenu_bc
)(
WGre
*
,
int
,
int
,
int
,
vldh_t_node
),
void
(
*
popupmenu_bc
)(
WGre
*
,
int
,
int
,
int
,
vldh_t_node
,
int
),
void
(
*
getobj_bc
)(
WGre
*
,
vldh_t_node
,
unsigned
long
),
void
(
*
undelete_bc
)(
WGre
*
),
void
(
*
unselect_bc
)(
WGre
*
),
...
...
wb/lib/wb/src/wb_gre.h
View file @
e2ed7339
...
...
@@ -148,7 +148,7 @@ class WGre {
void
(
*
gre_attribute
)(
WGre
*
,
vldh_t_node
);
void
(
*
gre_subwindow
)(
WGre
*
,
vldh_t_node
,
unsigned
long
);
void
(
*
gre_reserv
)();
void
(
*
gre_popupmenu
)(
WGre
*
,
int
,
int
,
int
,
vldh_t_node
);
void
(
*
gre_popupmenu
)(
WGre
*
,
int
,
int
,
int
,
vldh_t_node
,
int
);
void
(
*
gre_getobj
)(
WGre
*
,
vldh_t_node
,
unsigned
long
);
void
(
*
gre_undelete
)(
WGre
*
);
void
(
*
gre_unselect
)(
WGre
*
);
...
...
@@ -208,7 +208,7 @@ class WGre {
void
(
*
attribute_bc
)(
WGre
*
,
vldh_t_node
),
void
(
*
subwindow_bc
)(
WGre
*
,
vldh_t_node
,
unsigned
long
),
void
(
*
reserv_bc
)(),
void
(
*
popupmenu_bc
)(
WGre
*
,
int
,
int
,
int
,
vldh_t_node
),
void
(
*
popupmenu_bc
)(
WGre
*
,
int
,
int
,
int
,
vldh_t_node
,
int
),
void
(
*
getobj_bc
)(
WGre
*
,
vldh_t_node
,
unsigned
long
),
void
(
*
undelete_bc
)(
WGre
*
),
void
(
*
unselect_bc
)(
WGre
*
),
...
...
wb/lib/wb/src/wb_tra.cpp
View file @
e2ed7339
...
...
@@ -1339,7 +1339,7 @@ static int trace_flow_cb( FlowCtx *ctx, flow_tEvent event)
}
(
gre
->
gre_popupmenu
)
(
gre
,
x_pix
,
y_pix
,
gre
->
popupmenu_mode
,
current_node
);
gre
->
popupmenu_mode
,
current_node
,
1
);
break
;
}
case
flow_eEvent_MB1ClickCtrl
:
...
...
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