[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Public Types | Public Member Functions | Static Public Member Functions

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

KLFLatexSymbol KLFLatexSymbolsCache::findSymbol ( const QString symbolCode)

Definition at line 364 of file klflatexsymbols.cpp.

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

Referenced by KLFMainWin::getMissingCmdsFor().

QPixmap KLFLatexSymbolsCache::findSymbolPixmap ( const QString symbolCode)

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

void KLFLatexSymbolsCache::saveTheCache ( ) [static]
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().

KLFLatexSymbolsCache * KLFLatexSymbolsCache::theCache ( ) [static]

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

Generated by doxygen 1.7.3