#include <klflatexsymbols.h>
Public Types | |
| enum | { Ok = 0, BadHeader, BadVersion } |
Public Member Functions | |
| bool | cacheNeedsSave () const |
| QPixmap | getPixmap (const KLFLatexSymbol &sym, bool fromcacheonly=true) |
| int | precacheList (const QList< KLFLatexSymbol > &list, bool userfeedback, QWidget *parent=NULL) |
| void | setBackendSettings (const KLFBackend::klfSettings &settings) |
| KLFLatexSymbol | findSymbol (const QString &symbolCode) |
| QStringList | symbolCodeList () |
| QPixmap | findSymbolPixmap (const QString &symbolCode) |
Static Public Member Functions | |
| static KLFLatexSymbolsCache * | theCache () |
| static void | saveTheCache () |
Definition at line 67 of file klflatexsymbols.h.
| anonymous enum |
| Enumerator | |
|---|---|
| Ok | |
| BadHeader | |
| BadVersion | |
Definition at line 70 of file klflatexsymbols.h.
|
inline |
Definition at line 72 of file klflatexsymbols.h.
| KLFLatexSymbol KLFLatexSymbolsCache::findSymbol | ( | const QString & | symbolCode | ) |
Definition at line 364 of file klflatexsymbols.cpp.
References QMap::begin(), and KLFLatexSymbol::KLFLatexSymbol().
Referenced by KLFMainWin::getMissingCmdsFor().
Definition at line 383 of file klflatexsymbols.cpp.
References QString::isEmpty(), KLF_FUNC_NAME, and KLFLatexSymbol::symbol.
| QPixmap KLFLatexSymbolsCache::getPixmap | ( | const KLFLatexSymbol & | sym, |
| bool | fromcacheonly = true |
||
| ) |
Definition at line 239 of file klflatexsymbols.cpp.
References KLFLatexSymbol::BBOffset::b, KLFLatexSymbol::bbexpand, QMap::begin(), KLFBackend::klfInput::bg_color, KLFBackend::klfInput::dpi, QMap::end(), QMap::erase(), KLFBackend::klfOutput::errorstr, KLFBackend::klfInput::fg_color, QPixmap::fromImage(), KLFBackend::getLatexFormula(), QImage::height(), KLFLatexSymbol::hidden, QStringList::join(), QMap::key(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, klfDbg, KLFLatexSymbol::BBOffset::l, KLFBackend::klfInput::latex, KLFBackend::klfInput::mathmode, KLFBackend::klfInput::preamble, KLFLatexSymbol::preamble, KLFLatexSymbol::BBOffset::r, KLFBackend::klfOutput::result, QImage::scaled(), KLFBackend::klfOutput::status, KLFLatexSymbol::symbol, KLFLatexSymbol::BBOffset::t, KLFLatexSymbol::textmode, and QImage::width().
Referenced by KLFLatexSymbolsView::buildDisplay().
| int KLFLatexSymbolsCache::precacheList | ( | const QList< KLFLatexSymbol > & | list, |
| bool | userfeedback, | ||
| QWidget * | parent = NULL |
||
| ) |
TODO: we should do a first pass to see which symbols are missing, then on a second pass generate those symbols with a progress dialog...
Definition at line 319 of file klflatexsymbols.cpp.
References KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, QList::size(), and QObject::tr().
|
static |
Definition at line 426 of file klflatexsymbols.cpp.
References KLFConfig::homeConfigDir, KLF_FUNC_NAME, klfconfig, klfDbg, QFile::open(), relcachefile(), and QDataStream::setVersion().
Referenced by KLFLatexSymbols::~KLFLatexSymbols().
| void KLFLatexSymbolsCache::setBackendSettings | ( | const KLFBackend::klfSettings & | settings | ) |
Definition at line 359 of file klflatexsymbols.cpp.
Referenced by KLFLatexSymbols::KLFLatexSymbols().
| QStringList KLFLatexSymbolsCache::symbolCodeList | ( | ) |
Definition at line 374 of file klflatexsymbols.cpp.
References QMap::begin().
|
static |
Definition at line 418 of file klflatexsymbols.cpp.
Referenced by KLFLatexSymbolsView::buildDisplay(), KLFLatexEdit::contextMenuEvent(), KLFMainWin::getMissingCmdsFor(), and KLFLatexSymbols::KLFLatexSymbols().