Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
2d5c6ea8
Commit
2d5c6ea8
authored
15 years ago
by
Lynx Linden
Browse files
Options
Downloads
Plain Diff
Automated merge with
ssh://hg.lindenlab.com/viewer/viewer-2-0
parents
c50072b5
434407ef
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/llui/llhelp.h
+2
-0
2 additions, 0 deletions
indra/llui/llhelp.h
indra/newview/llviewerhelp.cpp
+19
-4
19 additions, 4 deletions
indra/newview/llviewerhelp.cpp
indra/newview/llviewerhelp.h
+3
-0
3 additions, 0 deletions
indra/newview/llviewerhelp.h
with
24 additions
and
4 deletions
indra/llui/llhelp.h
+
2
−
0
View file @
2d5c6ea8
...
...
@@ -40,6 +40,8 @@ class LLHelp
virtual
void
showTopic
(
const
std
::
string
&
topic
)
=
0
;
// return default (fallback) topic name suitable for showTopic()
virtual
std
::
string
defaultTopic
()
=
0
;
// return topic to use before the user logs in
virtual
std
::
string
preLoginTopic
()
=
0
;
};
#endif // headerguard
This diff is collapsed.
Click to expand it.
indra/newview/llviewerhelp.cpp
+
19
−
4
View file @
2d5c6ea8
...
...
@@ -39,6 +39,7 @@
#include
"llviewercontrol.h"
#include
"llversionviewer.h"
#include
"llappviewer.h"
#include
"lllogininstance.h"
#include
"llviewerhelputil.h"
#include
"llviewerhelp.h"
...
...
@@ -51,17 +52,25 @@ void LLViewerHelp::showTopic(const std::string &topic)
{
showHelp
();
// allow overriding the help server with a local help file
if
(
gSavedSettings
.
getBOOL
(
"HelpUseLocal"
)
)
{
LLFloaterHelpBrowser
*
helpbrowser
=
dynamic_cast
<
LLFloaterHelpBrowser
*>
(
LLFloaterReg
::
getInstance
(
"help_browser"
));
helpbrowser
->
navigateToLocalPage
(
"help-offline"
,
"index.html"
);
return
;
}
else
// use a special login topic before the user logs in
std
::
string
help_topic
=
topic
;
if
(
!
LLLoginInstance
::
getInstance
()
->
authSuccess
())
{
const
LLOSInfo
&
osinfo
=
LLAppViewer
::
instance
()
->
getOSInfo
();
std
::
string
helpURL
=
LLViewerHelpUtil
::
buildHelpURL
(
topic
,
gSavedSettings
,
osinfo
);
setRawURL
(
helpURL
);
help_topic
=
preLoginTopic
();
}
// work out the URL for this topic and display it
const
LLOSInfo
&
osinfo
=
LLAppViewer
::
instance
()
->
getOSInfo
();
std
::
string
helpURL
=
LLViewerHelpUtil
::
buildHelpURL
(
help_topic
,
gSavedSettings
,
osinfo
);
setRawURL
(
helpURL
);
}
std
::
string
LLViewerHelp
::
defaultTopic
()
...
...
@@ -70,6 +79,12 @@ std::string LLViewerHelp::defaultTopic()
return
"this_is_fallbacktopic"
;
}
std
::
string
LLViewerHelp
::
preLoginTopic
()
{
// *hack: to be done properly
return
"pre_login_help"
;
}
//////////////////////////////
// our own interfaces
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llviewerhelp.h
+
3
−
0
View file @
2d5c6ea8
...
...
@@ -57,6 +57,9 @@ class LLViewerHelp : public LLHelp, public LLSingleton<LLViewerHelp>
// return topic derived from viewer UI focus, else default topic
std
::
string
getTopicFromFocus
();
// return topic to use before the user logs in
std
::
string
preLoginTopic
();
private:
static
void
showHelp
();
// make sure help UI is visible & raised
static
void
setRawURL
(
std
::
string
url
);
// send URL to help UI
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment