KVIrc
4.9.2
DeveloperAPIs
|
#include <HelpIndex.h>
Classes | |
struct | Entry |
struct | PosEntry |
Signals | |
void | indexingEnd () |
void | indexingProgress (int) |
void | indexingStart (int) |
Public Member Functions | |
const QStringList & | documentList () |
QString | getDocumentTitle (const QString &) |
HelpIndex (const QString &dp, const QString &hp) | |
HelpIndex (const QStringList &dl, const QString &hp) | |
void | makeIndex () |
QStringList | query (const QStringList &, const QStringList &, const QStringList &) |
void | readDict () |
void | setDictionaryFile (const QString &) |
void | setDocList (const QStringList &) |
void | setDocListFile (const QString &) |
const QStringList & | titlesList () |
void | writeDict () |
Private Slots | |
void | filterNext () |
void | setLastWinClosed () |
Private Member Functions | |
void | buildMiniDict (const QString &) |
QString | getCharsetForDocument (QFile *) |
QStringList | getWildcardTerms (const QString &) |
void | insertInDict (const QString &, int) |
void | parseDocument (const QString &, int) |
void | readDocumentList () |
bool | searchForPattern (const QStringList &, const QStringList &, const QString &) |
void | setupDocumentList () |
QVector< Document > | setupDummyTerm (const QStringList &) |
QStringList | split (const QString &) |
void | writeDocumentList () |
Private Attributes | |
bool | alreadyHaveDocList |
QHash< QString, Entry * > | dict |
QString | dictFile |
QStringList | docList |
QString | docListFile |
QString | docPath |
QHash< QString, QString > | documentTitleCache |
bool | lastWindowClosed |
int | m_iCurItem |
QTimer * | m_pTimer |
QHash< QString, PosEntry * > | miniDict |
QStringList | titleList |
uint | wordNum |
HelpIndex::HelpIndex | ( | const QString & | dp, |
const QString & | hp | ||
) |
References alreadyHaveDocList, connect(), filterNext(), lastWindowClosed, m_pTimer, Q_UNUSED(), and setLastWinClosed().
HelpIndex::HelpIndex | ( | const QStringList & | dl, |
const QString & | hp | ||
) |
References alreadyHaveDocList, connect(), docList, lastWindowClosed, Q_UNUSED(), and setLastWinClosed().
|
private |
References miniDict, and wordNum.
Referenced by searchForPattern().
|
inline |
References docList.
Referenced by help_kvs_cmd_open(), HelpWindow::indexSelected(), HelpWindow::searchSelected(), and HelpWindow::showIndexTopic().
|
privateslot |
References docList, indexingEnd(), indexingProgress(), lastWindowClosed, m_iCurItem, m_pTimer, and parseDocument().
Referenced by HelpIndex().
|
private |
Referenced by parseDocument().
QString HelpIndex::getDocumentTitle | ( | const QString & | fullFileName | ) |
References documentTitleCache, and s.
Referenced by setupDocumentList(), and HelpWindow::startSearch().
|
private |
|
signal |
Referenced by filterNext().
|
signal |
Referenced by filterNext().
|
signal |
Referenced by makeIndex().
|
private |
References dict, HelpIndex::Entry::documents, and e.
Referenced by parseDocument().
void HelpIndex::makeIndex | ( | ) |
References alreadyHaveDocList, dict, docList, indexingStart(), lastWindowClosed, m_iCurItem, m_pTimer, and setupDocumentList().
Referenced by help_kvs_cmd_open(), HelpWindow::initialSetup(), and HelpWindow::refreshIndex().
|
private |
References c, getCharsetForDocument(), i, insertInDict(), j, and s.
Referenced by filterNext().
QStringList HelpIndex::query | ( | const QStringList & | terms, |
const QStringList & | termSeq, | ||
const QStringList & | seqWords | ||
) |
References dict, docList, Term::documents, HelpIndex::Entry::documents, e, getWildcardTerms(), searchForPattern(), setupDummyTerm(), and t().
Referenced by HelpWindow::startSearch().
void HelpIndex::readDict | ( | ) |
References dict, dictFile, f, readDocumentList(), and s.
Referenced by help_kvs_cmd_open(), and HelpWindow::initialSetup().
|
private |
References docList, docListFile, f, s, and titleList.
Referenced by readDict().
|
private |
void HelpIndex::setDictionaryFile | ( | const QString & | f | ) |
Referenced by help_module_init().
void HelpIndex::setDocList | ( | const QStringList & | lst | ) |
References docList.
void HelpIndex::setDocListFile | ( | const QString & | f | ) |
References docListFile, and f.
Referenced by help_module_init().
|
privateslot |
References lastWindowClosed.
Referenced by HelpIndex().
|
private |
References d, docList, docPath, getDocumentTitle(), and titleList.
Referenced by makeIndex().
|
private |
References dict, Term::documents, HelpIndex::Entry::documents, e, and t().
Referenced by query().
|
private |
Referenced by getWildcardTerms().
|
inline |
References titleList.
Referenced by help_kvs_cmd_open(), HelpWindow::indexingEnd(), HelpWindow::indexSelected(), HelpWindow::initialSetup(), HelpWindow::searchSelected(), and HelpWindow::showIndexTopic().
void HelpIndex::writeDict | ( | ) |
References dict, dictFile, f, s, and writeDocumentList().
Referenced by help_kvs_cmd_open(), and HelpWindow::indexingEnd().
|
private |
References docList, docListFile, f, s, and titleList.
Referenced by writeDict().
|
private |
Referenced by HelpIndex(), and makeIndex().
|
private |
Referenced by getWildcardTerms(), insertInDict(), makeIndex(), query(), readDict(), setupDummyTerm(), and writeDict().
|
private |
Referenced by readDict(), setDictionaryFile(), and writeDict().
|
private |
Referenced by documentList(), filterNext(), HelpIndex(), makeIndex(), query(), readDocumentList(), setDocList(), setupDocumentList(), and writeDocumentList().
|
private |
Referenced by readDocumentList(), setDocListFile(), and writeDocumentList().
|
private |
Referenced by setupDocumentList().
|
private |
Referenced by getDocumentTitle().
|
private |
Referenced by filterNext(), HelpIndex(), makeIndex(), and setLastWinClosed().
|
private |
Referenced by filterNext(), and makeIndex().
|
private |
Referenced by filterNext(), HelpIndex(), and makeIndex().
|
private |
Referenced by buildMiniDict(), and searchForPattern().
|
private |
Referenced by readDocumentList(), setupDocumentList(), titlesList(), and writeDocumentList().
|
private |
Referenced by buildMiniDict(), and searchForPattern().