lib

SymbolTable Class Reference

#include <symboltable.h>

List of all members.


Detailed Description

The symbol table.

It contains all names that are know to the system.

Definition at line 101 of file symboltable.h.


Public Types

typedef QMap< QChar, CharTableEntryUnicodeTable
typedef QMap< QChar, QString > NameTable
typedef QMap< QString, QChar > EntryTable
typedef QValueVector< QFont > FontTable

Public Member Functions

 SymbolTable ()
void init (ContextStyle *context)
bool contains (QString name) const
QChar unicode (QString name) const
QString name (QChar symbol) const
const CharTableEntryentry (QChar symbol, CharStyle style=normalChar) const
QFont font (QChar symbol, CharStyle style=normalChar) const
QChar character (QChar symbol, CharStyle style=normalChar) const
CharClass charClass (QChar symbol, CharStyle style=normalChar) const
QChar unicodeFromSymbolFont (QChar pos) const
QString greekLetters () const
QStringList allNames () const
bool inTable (QChar ch, CharStyle style=anyChar) const
void initFont (const InternFontTable *table, const char *fontname, const NameTable &tempNames)

Member Function Documentation

QStringList SymbolTable::allNames (  )  const

Returns:
all known names as strings.

Definition at line 173 of file symboltable.cc.

QString SymbolTable::greekLetters (  )  const

Returns:
a string with all greek letters.

Definition at line 167 of file symboltable.cc.

void SymbolTable::init ( ContextStyle context  ) 

Reads the unicode / font tables.

Definition at line 63 of file symboltable.cc.

QChar SymbolTable::unicode ( QString  name  )  const

Returns:
the char in the symbol font that belongs to the given name.

Definition at line 100 of file symboltable.cc.

QChar SymbolTable::unicodeFromSymbolFont ( QChar  pos  )  const

Returns:
the unicode value of the symbol font char.

Definition at line 161 of file symboltable.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys