[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project

KLFLatexSymbolsCache Class Reference

#include <klflatexsymbols.h>

Collaboration diagram for KLFLatexSymbolsCache:

Collaboration graph
[legend]

List of all members.

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 ()


Detailed Description

Definition at line 67 of file klflatexsymbols.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
Ok 
BadHeader 
BadVersion 

Definition at line 70 of file klflatexsymbols.h.


Member Function Documentation

bool KLFLatexSymbolsCache::cacheNeedsSave (  )  const [inline]

Definition at line 72 of file klflatexsymbols.h.

Referenced by saveTheCache().

QPixmap KLFLatexSymbolsCache::getPixmap ( const KLFLatexSymbol &  sym,
bool  fromcacheonly = true 
)

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 374 of file klflatexsymbols.cpp.

References QMap::begin(), and QMap::end().

QPixmap KLFLatexSymbolsCache::findSymbolPixmap ( const QString &  symbolCode  ) 

KLFLatexSymbolsCache * KLFLatexSymbolsCache::theCache (  )  [static]

void KLFLatexSymbolsCache::saveTheCache (  )  [static]


The documentation for this class was generated from the following files:

Generated by doxygen 1.5.6