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
a02c4109
Commit
a02c4109
authored
Apr 21, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Next Page more sofisticated, index didn't work in wtt
parent
219c9468
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
46 deletions
+48
-46
src/lib/co/src/co_xhelpnav.cpp
src/lib/co/src/co_xhelpnav.cpp
+47
-45
src/lib/co/src/co_xhelpnav.h
src/lib/co/src/co_xhelpnav.h
+1
-1
No files found.
src/lib/co/src/co_xhelpnav.cpp
View file @
a02c4109
...
...
@@ -195,26 +195,26 @@ void CoXHelpNavBrow::create_nodeclasses()
brow_CreateNodeClass
(
ctx
,
"NavigatorHead"
,
flow_eNodeGroup_Common
,
&
nc_header
);
brow_AddFrame
(
nc_header
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
2
,
1
);
brow_AddAnnotPixmap
(
nc_header
,
0
,
0.2
,
0.
1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_header
,
2
,
0.6
,
0
,
flow_eDrawType_TextHelveticaBold
,
2
,
flow_eAnnotType_OneLine
,
brow_AddFrame
(
nc_header
,
0
,
0
,
20
,
1.4
,
flow_eDrawType_Line
,
-
1
,
1
);
brow_AddAnnotPixmap
(
nc_header
,
0
,
0.2
,
0.
4
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_header
,
2
,
1.0
,
0
,
flow_eDrawType_TextHelveticaBold
,
4
,
flow_eAnnotType_OneLine
,
0
);
brow_AddAnnot
(
nc_header
,
8
,
0.6
,
1
,
flow_eDrawType_TextHelveticaBold
,
2
,
flow_eAnnotType_OneLine
,
brow_AddAnnot
(
nc_header
,
8
,
1.0
,
1
,
flow_eDrawType_TextHelveticaBold
,
4
,
flow_eAnnotType_OneLine
,
1
);
// Create Header2
brow_CreateNodeClass
(
ctx
,
"NavigatorHeadLarge"
,
flow_eNodeGroup_Common
,
&
nc_headerlarge
);
brow_AddFrame
(
nc_headerlarge
,
0
,
0
,
20
,
1.4
,
flow_eDrawType_Line
,
-
1
,
1
);
brow_AddAnnotPixmap
(
nc_headerlarge
,
0
,
0.
5
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddFrame
(
nc_headerlarge
,
0
,
0
,
20
,
2.0
,
flow_eDrawType_Line
,
-
1
,
1
);
brow_AddAnnotPixmap
(
nc_headerlarge
,
0
,
0.
2
,
0.4
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_headerlarge
,
2
,
1.0
,
0
,
flow_eDrawType_TextHelveticaBold
,
4
,
flow_eAnnotType_OneLine
,
flow_eDrawType_TextHelveticaBold
,
6
,
flow_eAnnotType_OneLine
,
0
);
brow_AddAnnot
(
nc_headerlarge
,
8
,
1.0
,
1
,
flow_eDrawType_TextHelveticaBold
,
4
,
flow_eAnnotType_OneLine
,
flow_eDrawType_TextHelveticaBold
,
6
,
flow_eAnnotType_OneLine
,
1
);
// Create Horizontal line
...
...
@@ -382,29 +382,25 @@ static int xhelpnav_brow_cb( FlowCtx *ctx, flow_tEvent event)
int
sts
;
brow_GetSelectedNodes
(
xhelpnav
->
brow
->
ctx
,
&
node_list
,
&
node_count
);
if
(
!
node_count
)
{
sts
=
brow_GetLast
(
xhelpnav
->
brow
->
ctx
,
&
object
);
if
(
!
node_count
)
{
sts
=
brow_GetLastVisible
(
xhelpnav
->
brow
->
ctx
,
&
object
);
if
(
EVEN
(
sts
))
return
1
;
}
else
{
sts
=
brow_GetPrevious
(
xhelpnav
->
brow
->
ctx
,
node_list
[
0
],
&
object
);
if
(
EVEN
(
sts
))
{
sts
=
brow_GetLast
(
xhelpnav
->
brow
->
ctx
,
&
object
);
if
(
EVEN
(
sts
))
{
if
(
node_count
)
free
(
node_list
);
return
1
;
}
else
{
if
(
!
brow_IsVisible
(
xhelpnav
->
brow
->
ctx
,
node_list
[
0
],
flow_eVisible_Partial
))
{
sts
=
brow_GetLastVisible
(
xhelpnav
->
brow
->
ctx
,
&
object
);
if
(
EVEN
(
sts
))
return
1
;
}
else
{
sts
=
brow_GetPrevious
(
xhelpnav
->
brow
->
ctx
,
node_list
[
0
],
&
object
);
if
(
EVEN
(
sts
))
return
1
;
}
}
brow_SelectClear
(
xhelpnav
->
brow
->
ctx
);
brow_SetInverse
(
object
,
1
);
brow_SelectInsert
(
xhelpnav
->
brow
->
ctx
,
object
);
if
(
!
brow_IsVisible
(
xhelpnav
->
brow
->
ctx
,
object
))
if
(
!
brow_IsVisible
(
xhelpnav
->
brow
->
ctx
,
object
,
flow_eVisible_Full
))
brow_CenterObject
(
xhelpnav
->
brow
->
ctx
,
object
,
0.25
);
if
(
node_count
)
free
(
node_list
);
...
...
@@ -418,29 +414,25 @@ static int xhelpnav_brow_cb( FlowCtx *ctx, flow_tEvent event)
int
sts
;
brow_GetSelectedNodes
(
xhelpnav
->
brow
->
ctx
,
&
node_list
,
&
node_count
);
if
(
!
node_count
)
{
sts
=
brow_GetFirst
(
xhelpnav
->
brow
->
ctx
,
&
object
);
if
(
!
node_count
)
{
sts
=
brow_GetFirstVisible
(
xhelpnav
->
brow
->
ctx
,
&
object
);
if
(
EVEN
(
sts
))
return
1
;
}
else
{
sts
=
brow_GetNext
(
xhelpnav
->
brow
->
ctx
,
node_list
[
0
],
&
object
);
if
(
EVEN
(
sts
))
{
sts
=
brow_GetFirst
(
xhelpnav
->
brow
->
ctx
,
&
object
);
if
(
EVEN
(
sts
))
{
if
(
node_count
)
free
(
node_list
);
return
1
;
}
else
{
if
(
!
brow_IsVisible
(
xhelpnav
->
brow
->
ctx
,
node_list
[
0
],
flow_eVisible_Partial
))
{
sts
=
brow_GetFirstVisible
(
xhelpnav
->
brow
->
ctx
,
&
object
);
if
(
EVEN
(
sts
))
return
1
;
}
else
{
sts
=
brow_GetNext
(
xhelpnav
->
brow
->
ctx
,
node_list
[
0
],
&
object
);
if
(
EVEN
(
sts
))
return
1
;
}
}
brow_SelectClear
(
xhelpnav
->
brow
->
ctx
);
brow_SetInverse
(
object
,
1
);
brow_SelectInsert
(
xhelpnav
->
brow
->
ctx
,
object
);
if
(
!
brow_IsVisible
(
xhelpnav
->
brow
->
ctx
,
object
))
if
(
!
brow_IsVisible
(
xhelpnav
->
brow
->
ctx
,
object
,
flow_eVisible_Full
))
brow_CenterObject
(
xhelpnav
->
brow
->
ctx
,
object
,
0.75
);
if
(
node_count
)
free
(
node_list
);
...
...
@@ -748,7 +740,7 @@ pwr_tStatus CoXHelpNav::search_exec( bool reverse)
brow_SelectClear
(
brow
->
ctx
);
brow_SetInverse
(
object_list
[
idx
],
1
);
brow_SelectInsert
(
brow
->
ctx
,
object_list
[
idx
]);
if
(
!
brow_IsVisible
(
brow
->
ctx
,
object_list
[
idx
]))
if
(
!
brow_IsVisible
(
brow
->
ctx
,
object_list
[
idx
]
,
flow_eVisible_Full
))
brow_CenterObject
(
brow
->
ctx
,
object_list
[
idx
],
0.25
);
search_node
=
object_list
[
idx
];
return
XHELP__SUCCESS
;
...
...
@@ -1167,8 +1159,18 @@ int CoXHelpNav::help_index( navh_eHelpFile file_type, char *file_name, int pop)
int
sts
;
brow_tObject
*
object_list
;
int
object_cnt
;
NavHelp
*
navhelp
=
new
NavHelp
(
(
void
*
)
this
,
"$pwr_exe/xtt_help.dat"
,
"$pwrp_exe/xtt_help.dat"
);
NavHelp
*
navhelp
;
switch
(
utility
)
{
case
xhelp_eUtility_Xtt
:
navhelp
=
new
NavHelp
(
(
void
*
)
this
,
xhelp_cFile_BaseXtt
,
xhelp_cFile_Project
);
break
;
case
xhelp_eUtility_Wtt
:
navhelp
=
new
NavHelp
(
(
void
*
)
this
,
xhelp_cFile_BaseWtt
,
xhelp_cFile_Project
);
break
;
default:
return
0
;
}
navhelp
->
insert_cb
=
xhelpnav_help_insert_cb
;
if
(
pop
)
...
...
src/lib/co/src/co_xhelpnav.h
View file @
a02c4109
...
...
@@ -33,7 +33,7 @@
#endif
#define xhelp_cFile_BaseXtt "$pwr_exe/xtt_help.dat"
#define xhelp_cFile_BaseWtt "$pwr_
exe
/wtt_help.dat"
#define xhelp_cFile_BaseWtt "$pwr_
lang
/wtt_help.dat"
#define xhelp_cFile_Project "$pwrp_exe/xtt_help.dat"
#define XHELPNAV_BROW_MAX 25
...
...
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