void Help::helpTexRefsKeyword(Kate::View *view) { QString word = getKeyword(view); KILE_DEBUG() << "keyword: " << word << endl; if ( !word.isNull() && m_dictHelpTex.contains(word) ) { KILE_DEBUG() << "about to show help for " << word << " (section " << m_dictHelpTex[word] << " )" << endl; showHelpFile( m_texdocPath + m_texReference + m_dictHelpTex[word] ); } else noHelpAvailableFor(word); }
void Help::helpKileRefsKeyword(Kate::View *view) { QString kilehelp = KGlobal::dirs()->findResource("html","en/kile/latexhelp.html"); KILE_DEBUG() << "kilehelp = " << kilehelp << endl; if ( ! kilehelp.isEmpty() ) { QString word = getKeyword(view); KILE_DEBUG() << "word = " << word << " " << m_dictHelpKile.contains(word) << endl; if ( !word.isNull() && m_dictHelpKile.contains(word) ) { showHelpFile( kilehelp + '#' + m_dictHelpKile[word] ); } else noHelpAvailableFor(word); } }
// Context help: user either current TexLive's Latex2e help, TexLive's older tex-refs help or Kile LaTeX help void Help::helpKeyword(KTextEditor::View *view) { QString word = getKeyword(view); KILE_DEBUG() << "keyword: " << word; if ( !m_helpDir.isEmpty() && !word.isEmpty() && m_dictHelpTex.contains(word) ) { KILE_DEBUG() << "about to show help for '" << word << "' (section " << m_dictHelpTex[word] << " )"; if ( m_contextHelpType == HelpLatex2eRefs ) { showHelpFile( m_latex2eReference + "#" + m_dictHelpTex[word] ); } else if ( m_contextHelpType == HelpTexRefs ) { showHelpFile( m_texdocPath + m_texrefsReference + m_dictHelpTex[word] ); } else if ( m_contextHelpType == HelpKileRefs ) { showHelpFile(m_kileReference + '#' + m_dictHelpTex[word]); } } else { noHelpAvailableFor(word); } }