#include </home/clem/local/src/opie/development/translation/shared/metatranslator.h>
Collaboration diagram for MetaTranslator:

Public Member Functions | |
| MetaTranslator () | |
| MetaTranslator (const MetaTranslator &tor) | |
| MetaTranslator & | operator= (const MetaTranslator &tor) |
| void | clear () |
| bool | load (const QString &filename) |
| bool | save (const QString &filename) const |
| bool | release (const QString &filename, bool verbose=FALSE, QTranslator::SaveMode mode=QTranslator::Stripped) const |
| bool | contains (const char *context, const char *sourceText, const char *comment) const |
| void | insert (const MetaTranslatorMessage &m) |
| void | stripObsoleteMessages () |
| void | stripEmptyContexts () |
| void | setCodec (const char *name) |
| QString | toUnicode (const char *str, bool utf8) const |
| QValueList< MetaTranslatorMessage > | messages () const |
| QValueList< MetaTranslatorMessage > | translatedMessages () const |
Private Types | |
| typedef QMap< MetaTranslatorMessage, int > | TMM |
| typedef QMap< int, MetaTranslatorMessage > | TMMInv |
Private Attributes | |
| TMM | mm |
| QCString | codecName |
| QTextCodec * | codec |
|
|
Definition at line 99 of file metatranslator.h. |
|
|
Definition at line 100 of file metatranslator.h. |
|
|
Definition at line 325 of file metatranslator.cpp. References clear(). |
|
|
Definition at line 330 of file metatranslator.cpp. |
|
|
Definition at line 343 of file metatranslator.cpp. References QMap< Key, T >::clear(), codec, codecName, and mm. Referenced by MetaTranslator(). |
|
||||||||||||||||
|
Definition at line 501 of file metatranslator.cpp. References QMap< Key, T >::end(), QMap< Key, T >::find(), and mm. |
|
|
Definition at line 508 of file metatranslator.cpp. References QMap< Key, T >::count(), QMap< Key, T >::end(), QMap< Key, T >::find(), mm, pos, and QMap< Key, T >::replace(). Referenced by applyNumberHeuristic(), applySameTextHeuristic(), TsHandler::endElement(), UiHandler::flush(), merge(), and parse(). |
|
|
Definition at line 350 of file metatranslator.cpp. References f, FALSE, in, IO_ReadOnly, QFile::open(), t, and TRUE. Referenced by releaseQmFile(), and updateTsFiles(). |
|
|
Definition at line 571 of file metatranslator.cpp. References QValueList< T >::append(), QMap< Key, T >::begin(), QMap< Key, T >::count(), QMap< Key, T >::end(), i, mm, t, and val. Referenced by applyNumberHeuristic(), applySameTextHeuristic(), and merge(). |
|
|
Definition at line 335 of file metatranslator.cpp. |
|
||||||||||||||||
|
Definition at line 449 of file metatranslator.cpp. References QMap< Key, T >::begin(), contains(), QMap< Key, T >::end(), QCString::isEmpty(), mm, MetaTranslatorMessage::Obsolete, and MetaTranslatorMessage::Unfinished. Referenced by releaseQmFile(). |
|
|
Definition at line 375 of file metatranslator.cpp. References QMap< Key, T >::begin(), QTextCodec::codecForName(), codecName, ContextComment, QMap< Key, T >::end(), evilBytes(), f, FALSE, i, QMap< Key, T >::insert(), IO_WriteOnly, QCString::isEmpty(), mm, MetaTranslatorMessage::Obsolete, QFile::open(), protect(), QTextStream::setCodec(), t, TRUE, and MetaTranslatorMessage::Unfinished. Referenced by updateTsFiles(). |
|
|
Definition at line 551 of file metatranslator.cpp. References codec, QTextCodec::codecForName(), codecName, and QTextCodec::mibEnum(). Referenced by TsHandler::endElement(), and updateTsFiles(). |
|
|
Definition at line 530 of file metatranslator.cpp. References QMap< Key, T >::begin(), ContextComment, QMap< Key, T >::end(), QMap< Key, T >::insert(), mm, and qstrcmp(). Referenced by updateTsFiles(). |
|
|
Definition at line 517 of file metatranslator.cpp. References QMap< Key, T >::begin(), QMap< Key, T >::end(), QMap< Key, T >::insert(), mm, and MetaTranslatorMessage::Obsolete. Referenced by updateTsFiles(). |
|
||||||||||||
|
Definition at line 561 of file metatranslator.cpp. References codec, QString::fromUtf8(), and QTextCodec::toUnicode(). |
|
|
Definition at line 587 of file metatranslator.cpp. References QValueList< T >::append(), QMap< Key, T >::begin(), QMap< Key, T >::end(), MetaTranslatorMessage::Finished, mm, and val. |
|
|
Definition at line 104 of file metatranslator.h. Referenced by clear(), operator=(), setCodec(), and toUnicode(). |
|
|
Definition at line 103 of file metatranslator.h. Referenced by clear(), operator=(), save(), and setCodec(). |
|
|
Definition at line 102 of file metatranslator.h. Referenced by clear(), contains(), insert(), messages(), operator=(), release(), save(), stripEmptyContexts(), stripObsoleteMessages(), and translatedMessages(). |
1.4.2