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
44cc46a9
Commit
44cc46a9
authored
Jan 05, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Description of object added
parent
e00bd934
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
wb/lib/wb/src/wb_nav.cpp
wb/lib/wb/src/wb_nav.cpp
+22
-2
wb/lib/wb/src/wb_nav.h
wb/lib/wb/src/wb_nav.h
+2
-1
No files found.
wb/lib/wb/src/wb_nav.cpp
View file @
44cc46a9
/*
* Proview $Id: wb_nav.cpp,v 1.
8 2007-01-04 07:29:03
claes Exp $
* Proview $Id: wb_nav.cpp,v 1.
9 2007-01-05 10:40:22
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -183,6 +183,7 @@ ItemObject::ItemObject( Nav *nav, pwr_tObjid item_objid,
int
size
;
pwr_tObjid
child
;
pwr_tClassId
classid
;
char
*
descr
;
type
=
nav_eItemType_Object
;
if
(
!
is_root
)
{
...
...
@@ -207,6 +208,22 @@ ItemObject::ItemObject( Nav *nav, pwr_tObjid item_objid,
ldh_eName_Object
,
name
,
sizeof
(
name
),
&
size
);
brow_SetAnnotation
(
node
,
1
,
name
,
strlen
(
name
));
brow_SetUserData
(
node
,
(
void
*
)
this
);
// Set description annotation
if
(
nav
->
show_descrip
)
{
sts
=
ldh_GetObjectPar
(
nav
->
ldhses
,
objid
,
"RtBody"
,
"Description"
,
&
descr
,
&
size
);
if
(
EVEN
(
sts
))
sts
=
ldh_GetObjectPar
(
nav
->
ldhses
,
objid
,
"DevBody"
,
"Description"
,
&
descr
,
&
size
);
if
(
EVEN
(
sts
))
sts
=
ldh_GetObjectPar
(
nav
->
ldhses
,
objid
,
"SysBody"
,
"Description"
,
&
descr
,
&
size
);
if
(
ODD
(
sts
))
{
brow_SetAnnotation
(
node
,
2
,
descr
,
strlen
(
descr
));
free
(
descr
);
}
}
}
}
...
...
@@ -1195,6 +1212,9 @@ void Nav::create_nodeclasses()
brow_AddAnnot
(
nc_object
,
5
,
0.6
,
1
,
flow_eDrawType_TextHelveticaBold
,
2
,
flow_eAnnotType_OneLine
,
1
);
brow_AddAnnot
(
nc_object
,
9
,
0.6
,
2
,
flow_eDrawType_TextHelveticaBold
,
2
,
flow_eAnnotType_OneLine
,
1
);
}
//
...
...
@@ -1304,7 +1324,7 @@ Nav::Nav(
)
:
parent_ctx
(
nav_parent_ctx
),
ldhses
(
nav_ldhses
),
root_item
(
0
),
last_selected
(
0
),
get_plant_select_cb
(
0
),
set_focus_cb
(
0
),
traverse_focus_cb
(
0
),
displayed
(
0
),
menu
(
0
),
selection_owner
(
0
)
traverse_focus_cb
(
0
),
displayed
(
0
),
menu
(
0
),
selection_owner
(
0
)
,
show_descrip
(
1
)
{
strcpy
(
name
,
nav_name
);
strcpy
(
root_name
,
nav_root_name
);
...
...
wb/lib/wb/src/wb_nav.h
View file @
44cc46a9
/*
* Proview $Id: wb_nav.h,v 1.
5 2007-01-04 07:29:04
claes Exp $
* Proview $Id: wb_nav.h,v 1.
6 2007-01-05 10:40:31
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -73,6 +73,7 @@ class Nav {
int
displayed
;
PalFileMenu
*
menu
;
int
selection_owner
;
int
show_descrip
;
virtual
void
set_inputfocus
(
int
focus
)
{}
virtual
void
set_selection_owner
()
{}
...
...
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