#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 |
| bool KLFLatexSymbolsCache::cacheNeedsSave | ( | ) | const [inline] |
| QPixmap KLFLatexSymbolsCache::getPixmap | ( | const KLFLatexSymbol & | sym, | |
| bool | fromcacheonly = true | |||
| ) |
Definition at line 239 of file klflatexsymbols.cpp.
References KLFLatexSymbol::BBOffset::b, KLFLatexSymbol::bbexpand, KLFBackend::klfSettings::bborderoffset, QMap::begin(), KLFBackend::klfInput::bg_color, QMap::contains(), KLFBackend::klfInput::dpi, QMap::end(), KLFBackend::klfSettings::epstopdfexec, 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::klfSettings::lborderoffset, KLFBackend::klfInput::mathmode, KLFBackend::klfInput::preamble, KLFLatexSymbol::preamble, KLFLatexSymbol::BBOffset::r, KLFBackend::klfSettings::rborderoffset, KLFBackend::klfOutput::result, QImage::scaled(), KLFBackend::klfOutput::status, KLFLatexSymbol::symbol, KLFLatexSymbol::BBOffset::t, KLFBackend::klfSettings::tborderoffset, KLFLatexSymbol::textmode, and QImage::width().
Referenced by KLFLatexSymbolsView::buildDisplay(), and precacheList().
| 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 getPixmap(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, QList::size(), and QObject::tr().
| void KLFLatexSymbolsCache::setBackendSettings | ( | const KLFBackend::klfSettings & | settings | ) |
Definition at line 359 of file klflatexsymbols.cpp.
Referenced by KLFLatexSymbols::KLFLatexSymbols().
| KLFLatexSymbol KLFLatexSymbolsCache::findSymbol | ( | const QString & | symbolCode | ) |
Definition at line 364 of file klflatexsymbols.cpp.
References QMap::begin(), and QMap::end().
Referenced by findSymbolPixmap(), and KLFMainWin::getMissingCmdsFor().
| QStringList KLFLatexSymbolsCache::symbolCodeList | ( | ) |
Definition at line 383 of file klflatexsymbols.cpp.
References findSymbol(), QString::isEmpty(), KLF_FUNC_NAME, and KLFLatexSymbol::symbol.
| KLFLatexSymbolsCache * KLFLatexSymbolsCache::theCache | ( | ) | [static] |
Definition at line 418 of file klflatexsymbols.cpp.
Referenced by KLFLatexSymbolsView::buildDisplay(), KLFLatexEdit::contextMenuEvent(), KLFMainWin::getMissingCmdsFor(), and KLFLatexSymbols::KLFLatexSymbols().
| void KLFLatexSymbolsCache::saveTheCache | ( | ) | [static] |
Definition at line 426 of file klflatexsymbols.cpp.
References cacheNeedsSave(), KLFConfig::homeConfigDir, KLF_FUNC_NAME, klfconfig, klfDbg, QFile::open(), relcachefile(), saveCacheStream(), and QDataStream::setVersion().
Referenced by KLFLatexSymbols::~KLFLatexSymbols().