void Help::update() { if ( m_texdocPath != KileConfig::location() ) { initTexDocumentation(); } HelpType contextHelp = contextHelpType(); if ( m_contextHelpType != contextHelp ) { m_contextHelpType = contextHelp; initContextHelp(); } }
Help::Help(KileDocument::EditorExtension *edit, QWidget *mainWindow) : m_mainWindow(mainWindow), m_edit(edit), m_userhelp(NULL) { m_helpDir = KGlobal::dirs()->findResource("appdata","help/"); KILE_DEBUG() << "help dir: " << m_helpDir; m_kileReference = m_helpDir + "latexhelp.html"; m_latex2eReference = m_helpDir + "latex2e-texlive.html"; m_contextHelpType = contextHelpType(); initTexDocumentation(); initContextHelp(); }
Help::Help(KileDocument::EditorExtension *edit, QWidget *mainWindow) : m_mainWindow(mainWindow), m_edit(edit), m_userhelp(Q_NULLPTR) { m_helpDir = QStandardPaths::locate(QStandardPaths::DataLocation, "help", QStandardPaths::LocateDirectory); KILE_DEBUG_MAIN << "help dir: " << m_helpDir; m_kileReference = m_helpDir + "latexhelp.html"; m_latex2eReference = m_helpDir + "latex2e-texlive.html"; m_contextHelpType = contextHelpType(); initTexDocumentation(); initContextHelp(); }