Util Class Reference

#include <Util.h>

List of all members.

Static Public Member Functions

static const QString & getLanguageCode (const QString &language)
static QString escapeXml (QString xml)
static bool makeDirectory (const QString &dir)
static bool copy (const QString &fromFile, const QString &toFile)
static bool deleteDirectory (const QString &dir)
static QString term2Xml (const Term &term, QStringList *languages=NULL, uint indentLevel=0)
static int getDefaultQuizLength ()
static QString getDefaultLabelsFontFamily ()
static int getDefaultLabelsFontSizeModifier ()
static QString getDefaultFontFamily ()
static int getDefaultFontSizeModifier ()
static QString getDigraph (const QString &buffer)
static QAction * createAction (const QString &name, const char **icon, QObject *receiver, const char *slot, int defaultKey=-1, bool toggle=false)
static QString describeKey (int key)
static QByteArray qCompress (const QByteArray &byteArray, int compressionLevel=-1)
static QByteArray qUncompress (const QByteArray &byteArray)

Static Public Attributes

static const QString languageCodeList []


Detailed Description

Definition at line 72 of file Util.h.


Member Function Documentation

const QString & Util::getLanguageCode ( const QString &  language  )  [static]

Definition at line 11 of file Util.cpp.

QString Util::escapeXml ( QString  xml  )  [static]

Definition at line 49 of file Util.cpp.

bool Util::makeDirectory ( const QString &  dir  )  [static]

Definition at line 101 of file Util.cpp.

bool Util::copy ( const QString &  fromFile,
const QString &  toFile 
) [static]

Definition at line 121 of file Util.cpp.

bool Util::deleteDirectory ( const QString &  dir  )  [static]

Definition at line 161 of file Util.cpp.

QString Util::term2Xml ( const Term term,
QStringList *  languages = NULL,
uint  indentLevel = 0 
) [static]

Definition at line 64 of file Util.cpp.

int Util::getDefaultQuizLength (  )  [static]

Definition at line 45 of file Util.cpp.

QString Util::getDefaultLabelsFontFamily (  )  [static]

Definition at line 20 of file Util.cpp.

int Util::getDefaultLabelsFontSizeModifier (  )  [static]

Definition at line 24 of file Util.cpp.

QString Util::getDefaultFontFamily (  )  [static]

Definition at line 28 of file Util.cpp.

int Util::getDefaultFontSizeModifier (  )  [static]

Definition at line 41 of file Util.cpp.

QString Util::getDigraph ( const QString &  buffer  )  [static]

Definition at line 188 of file Util.cpp.

QAction * Util::createAction ( const QString &  name,
const char **  icon,
QObject *  receiver,
const char *  slot,
int  defaultKey = -1,
bool  toggle = false 
) [static]

Definition at line 223 of file Util.cpp.

QString Util::describeKey ( int  key  )  [static]

Definition at line 238 of file Util.cpp.

QByteArray Util::qCompress ( const QByteArray &  byteArray,
int  compressionLevel = -1 
) [static]

Definition at line 344 of file Util.cpp.

QByteArray Util::qUncompress ( const QByteArray &  byteArray  )  [static]

Definition at line 388 of file Util.cpp.


Member Data Documentation

const QString Util::languageCodeList [static]

Initial value:

 { 
    QObject::tr( "en" ), QObject::tr( "fr" ), QObject::tr( "es" ), QObject::tr( "ja" ), QObject::tr( "de" ), 
    QObject::tr( "ar" ), QObject::tr( "bg" ), QObject::tr( "el" ), QObject::tr( "it" ), QObject::tr( "ko" ), QObject::tr( "nl" ), 
    QObject::tr( "pt" ), QObject::tr( "ru" ), QObject::tr( "sw" ), QObject::tr( "th" ), QObject::tr( "vi" ), QObject::tr( "zh" )
}

Definition at line 76 of file Util.h.


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

Generated on Sun Mar 1 17:30:48 2009 for toMOTko by  doxygen 1.5.6