//static
void FSPanelLogin::onClickHelp(void*)
{
	if (sInstance)
	{
		LLViewerHelp* vhelp = LLViewerHelp::getInstance();
		vhelp->showTopic(vhelp->preLoginTopic());
	}
}
Esempio n. 2
0
// <FS:TS> FIRE-7377: Add grid manager help button to explain how to do it
//static
void LLPanelLogin::onClickGridMgrHelp(void*)
{
	if (sInstance)
	{
		LLViewerHelp* vhelp = LLViewerHelp::getInstance();
		vhelp->showTopic(vhelp->gridMgrHelpTopic());
	}
}
// virtual
BOOL FSPanelLogin::handleKeyHere(KEY key, MASK mask)
{
	if ( KEY_F1 == key )
	{
		LLViewerHelp* vhelp = LLViewerHelp::getInstance();
		vhelp->showTopic(vhelp->f1HelpTopic());
		return TRUE;
	}

	return LLPanel::handleKeyHere(key, mask);
}
Esempio n. 4
0
	bool handle(const LLSD& params, const LLSD& query_map, LLMediaCtrl* web)
	{
		LLViewerHelp* vhelp = LLViewerHelp::getInstance();
		if (! vhelp)
		{
			return false;
		}

		// get the requested help topic name, or use the fallback if none
		std::string help_topic = vhelp->defaultTopic();
		if (params.size() >= 1)
		{
			help_topic = params[0].asString();
		}

		vhelp->showTopic(help_topic);
		return true;
	}