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
f52b4c01
Commit
f52b4c01
authored
Oct 12, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Web link in xtt help files
parent
36cc0901
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
3 deletions
+46
-3
src/lib/co/src/co_nav_help.cpp
src/lib/co/src/co_nav_help.cpp
+31
-0
src/lib/co/src/co_xhelpnav.cpp
src/lib/co/src/co_xhelpnav.cpp
+15
-3
No files found.
src/lib/co/src/co_nav_help.cpp
View file @
f52b4c01
...
...
@@ -275,6 +275,37 @@ int NavHelp::help( char *help_key, char *help_bookmark,
link_filename_p
=
link_filename
;
}
}
else
if
(
(
s
=
strstr
(
line
,
"<weblink>"
))
||
(
s
=
strstr
(
line
,
"<WEBLINK>"
)))
{
help_remove_spaces
(
s
+
9
,
link
);
*
s
=
0
;
link_nr
=
dcli_parse
(
link
,
","
,
""
,
(
char
*
)
link_part
,
sizeof
(
link_part
)
/
sizeof
(
link_part
[
0
]),
sizeof
(
link_part
[
0
]),
0
);
if
(
link_nr
==
1
)
{
strcpy
(
link
,
"$web:"
);
help_remove_spaces
(
link_part
[
0
],
&
link
[
5
]);
strcpy
(
link_bookmark
,
""
);
link_filename_p
=
file_name
;
}
else
if
(
link_nr
==
2
)
{
strcpy
(
link
,
"$web:"
);
help_remove_spaces
(
link_part
[
0
],
&
link
[
5
]);
help_remove_spaces
(
link_part
[
1
],
link_bookmark
);
link_filename_p
=
file_name
;
}
else
if
(
link_nr
>
2
)
{
strcpy
(
link
,
"$web:"
);
help_remove_spaces
(
link_part
[
0
],
&
link
[
5
]);
help_remove_spaces
(
link_part
[
1
],
link_bookmark
);
help_remove_spaces
(
link_part
[
2
],
link_filename
);
link_filename_p
=
link_filename
;
}
}
else
{
strcpy
(
link
,
""
);
...
...
src/lib/co/src/co_xhelpnav.cpp
View file @
f52b4c01
...
...
@@ -802,7 +802,11 @@ int HItemHelpImage::doubleclick_action( CoXHelpNavBrow *brow, CoXHelpNav *xhelpn
if
(
strcmp
(
link
,
""
)
!=
0
)
{
if
(
(
strstr
(
link
,
".htm"
)
!=
0
)
||
(
strstr
(
link
,
".pdf"
)
!=
0
))
{
if
(
strncmp
(
link
,
"$web:"
,
5
)
==
0
)
{
// Open the url
xhelpnav_open_URL
(
xhelpnav
,
&
link
[
5
]);
}
else
if
(
(
strstr
(
link
,
".htm"
)
!=
0
)
||
(
strstr
(
link
,
".pdf"
)
!=
0
))
{
// Open the url
xhelpnav_open_URL
(
xhelpnav
,
link
);
}
...
...
@@ -924,7 +928,11 @@ int HItemHelp::doubleclick_action( CoXHelpNavBrow *brow, CoXHelpNav *xhelpnav, d
}
else
if
(
strcmp
(
link
,
""
)
!=
0
)
{
if
(
(
strstr
(
link
,
".htm"
)
!=
0
)
||
(
strstr
(
link
,
".pdf"
)
!=
0
))
{
if
(
strncmp
(
link
,
"$web:"
,
5
)
==
0
)
{
// Open the url
xhelpnav_open_URL
(
xhelpnav
,
&
link
[
5
]);
}
else
if
(
(
strstr
(
link
,
".htm"
)
!=
0
)
||
(
strstr
(
link
,
".pdf"
)
!=
0
))
{
// Open the url
xhelpnav_open_URL
(
xhelpnav
,
link
);
}
...
...
@@ -991,7 +999,11 @@ int HItemHelpBold::doubleclick_action( CoXHelpNavBrow *brow, CoXHelpNav *xhelpna
}
else
if
(
strcmp
(
link
,
""
)
!=
0
)
{
if
(
(
strstr
(
link
,
".htm"
)
!=
0
)
||
(
strstr
(
link
,
".pdf"
)
!=
0
))
{
if
(
strncmp
(
link
,
"$web:"
,
5
)
==
0
)
{
// Open the url
xhelpnav_open_URL
(
xhelpnav
,
&
link
[
5
]);
}
else
if
(
(
strstr
(
link
,
".htm"
)
!=
0
)
||
(
strstr
(
link
,
".pdf"
)
!=
0
))
{
// Open the url
xhelpnav_open_URL
(
xhelpnav
,
link
);
}
...
...
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