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
cbb816da
Commit
cbb816da
authored
Oct 21, 2011
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wtt, edit functions for crossreferencs items removed
parent
2e0dd2a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
wb/lib/wb/src/wb_wnav.cpp
wb/lib/wb/src/wb_wnav.cpp
+15
-1
wb/lib/wb/src/wb_wtt.cpp
wb/lib/wb/src/wb_wtt.cpp
+7
-0
No files found.
wb/lib/wb/src/wb_wnav.cpp
View file @
cbb816da
...
...
@@ -1009,6 +1009,14 @@ int WNav::get_select( pwr_sAttrRef **attrref, int **is_attr, int *cnt)
}
*
is_attr_p
=
1
;
break
;
case
wnav_eItemType_Crossref
:
sts
=
ldh_NameToAttrRef
(
ldhses
,
attr_str
,
ap
);
if
(
EVEN
(
sts
))
{
// ldh_NameToAttrRef doesn't handle objects with no RtBody...
*
ap
=
cdh_ObjidToAref
(
item
->
objid
);
}
*
is_attr_p
=
2
;
break
;
default:
sts
=
ldh_NameToAttrRef
(
ldhses
,
attr_str
,
ap
);
if
(
EVEN
(
sts
))
{
...
...
@@ -1783,7 +1791,13 @@ int WNav::brow_cb( FlowCtx *ctx, flow_tEvent event)
{
case
flow_eObjectType_Node
:
brow_GetUserData
(
event
->
object
.
object
,
(
void
**
)
&
item
);
aref
=
item
->
aref
();
switch
(
item
->
type
)
{
case
wnav_eItemType_Crossref
:
aref
=
pwr_cNAttrRef
;
break
;
default:
aref
=
item
->
aref
();
}
break
;
default:
aref
=
pwr_cNAttrRef
;
...
...
wb/lib/wb/src/wb_wtt.cpp
View file @
cbb816da
...
...
@@ -1107,6 +1107,13 @@ void Wtt::activate_cut()
return
;
}
for
(
int
i
=
0
;
i
<
sel_cnt
;
i
++
)
{
if
(
is_attr
[
i
])
{
message
(
'E'
,
"Selected item is not an object"
);
return
;
}
}
sts
=
ldh_Cut
(
ldhses
,
sel_list
,
false
);
if
(
EVEN
(
sts
))
{
message
(
'E'
,
wnav_get_message
(
sts
));
...
...
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