Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
lupdate.h File Reference

(cda38d3d08e689deab506a11ed8c54a04d3f40d4)

#include <QtCore/qtcore-config.h>
#include <QtTools/private/qttools-config_p.h>
#include <QtCore/QList>
#include <QtCore/QHash>
#include <QtCore/QCoreApplication>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QTranslator>
+ Include dependency graph for lupdate.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ParserTool
 
class  TrFunctionAliasManager
 

Macros

#define LUPDATE_FOR_EACH_TR_FUNCTION(UNARY_MACRO)
 
#define MAKE_ENTRY(F)
 

Enumerations

enum  UpdateOption {
  Verbose = 1 , NoObsolete = 2 , PluralOnly = 4 , NoSort = 8 ,
  HeuristicSameText = 16 , HeuristicSimilarText = 32 , AbsoluteLocations = 256 , RelativeLocations = 512 ,
  NoLocations = 1024 , NoUiLines = 2048 , SourceIsUtf16 = 4096
}
 

Functions

Translator merge (const Translator &tor, const Translator &virginTor, const QList< Translator > &aliens, UpdateOptions options, QString &err)
 
void loadCPP (Translator &translator, const QStringList &filenames, ConversionData &cd)
 
bool loadJava (Translator &translator, const QString &filename, ConversionData &cd)
 
bool loadPython (Translator &translator, const QString &fileName, ConversionData &cd)
 
bool loadUI (Translator &translator, const QString &filename, ConversionData &cd)
 
bool loadQScript (Translator &translator, const QString &filename, ConversionData &cd)
 
bool loadQml (Translator &translator, const QString &filename, ConversionData &cd)
 
QT_END_NAMESPACE QT_PREPEND_NAMESPACE (TrFunctionAliasManager) trFunctionAliasManager
 

Macro Definition Documentation

◆ LUPDATE_FOR_EACH_TR_FUNCTION

#define LUPDATE_FOR_EACH_TR_FUNCTION ( UNARY_MACRO)
Value:
/* from cpp.cpp */ \
UNARY_MACRO(Q_DECLARE_TR_FUNCTIONS) \
UNARY_MACRO(QT_TR_N_NOOP) \
UNARY_MACRO(QT_TRID_N_NOOP) \
UNARY_MACRO(QT_TRANSLATE_N_NOOP) \
UNARY_MACRO(QT_TRANSLATE_N_NOOP3) \
UNARY_MACRO(QT_TR_NOOP) \
UNARY_MACRO(QT_TRID_NOOP) \
UNARY_MACRO(QT_TRANSLATE_NOOP) \
UNARY_MACRO(QT_TRANSLATE_NOOP3) \
UNARY_MACRO(QT_TR_NOOP_UTF8) \
UNARY_MACRO(QT_TRANSLATE_NOOP_UTF8) \
UNARY_MACRO(QT_TRANSLATE_NOOP3_UTF8) \
UNARY_MACRO(findMessage) /* QTranslator::findMessage() has the same parameters as QApplication::translate() */ \
UNARY_MACRO(qtTrId) \
UNARY_MACRO(tr) \
UNARY_MACRO(trUtf8) \
UNARY_MACRO(translate) \
/* from qdeclarative.cpp: */ \
UNARY_MACRO(qsTr) \
UNARY_MACRO(qsTrId) \
UNARY_MACRO(qsTranslate) \
/*end*/
QString qtTrId(const char *id, int n)
#define Q_DECLARE_TR_FUNCTIONS(context)
#define tr(X)
#define QT_TR_NOOP(x)
#define QT_TRANSLATE_NOOP(scope, x)
#define QT_TR_N_NOOP(x)
#define QT_TRANSLATE_NOOP3_UTF8(scope, x, comment)
#define QT_TRID_N_NOOP(id)
#define QT_TRANSLATE_N_NOOP3(scope, x, comment)
#define QT_TR_NOOP_UTF8(x)
#define QT_TRANSLATE_N_NOOP(scope, x)
#define QT_TRID_NOOP(id)
#define QT_TRANSLATE_NOOP3(scope, x, comment)
#define QT_TRANSLATE_NOOP_UTF8(scope, x)
static bool translate(xcb_connection_t *connection, xcb_window_t child, xcb_window_t parent, int *x, int *y)

Definition at line 54 of file lupdate.h.

◆ MAKE_ENTRY

#define MAKE_ENTRY ( F)
Value:
Function_##F,
#define F(x, y, z)

Definition at line 92 of file lupdate.h.

Enumeration Type Documentation

◆ UpdateOption

Enumerator
Verbose 
NoObsolete 
PluralOnly 
NoSort 
HeuristicSameText 
HeuristicSimilarText 
AbsoluteLocations 
RelativeLocations 
NoLocations 
NoUiLines 
SourceIsUtf16 

Definition at line 23 of file lupdate.h.

Function Documentation

◆ loadCPP()

void loadCPP ( Translator & translator,
const QStringList & filenames,
ConversionData & cd )

Definition at line 2265 of file cpp.cpp.

◆ loadJava()

bool loadJava ( Translator & translator,
const QString & filename,
ConversionData & cd )

Definition at line 562 of file java.cpp.

References parse(), yyCurLineNo, yyFileName, yyInPos, yyInStr, yyPackage, yyParenDepth, yyParenLineNo, yyScope, and yyTok.

+ Here is the call graph for this function:

◆ loadPython()

bool loadPython ( Translator & translator,
const QString & fileName,
ConversionData & cd )

Definition at line 749 of file python.cpp.

References getCharFromFile(), parse(), peekCharFromFile(), Tok_tr, Tok_translate, Tok_trUtf8, tokens, and yyInFile.

+ Here is the call graph for this function:

◆ loadQml()

bool loadQml ( Translator & translator,
const QString & filename,
ConversionData & cd )

Definition at line 454 of file qdeclarative.cpp.

◆ loadQScript()

bool loadQScript ( Translator & translator,
const QString & filename,
ConversionData & cd )

Definition at line 459 of file qdeclarative.cpp.

◆ loadUI()

bool loadUI ( Translator & translator,
const QString & filename,
ConversionData & cd )

Definition at line 157 of file ui.cpp.

References XmlParser::parse().

+ Here is the call graph for this function:

◆ merge()

Translator merge ( const Translator & tor,
const Translator & virginTor,
const QList< Translator > & aliens,
UpdateOptions options,
QString & err )

Definition at line 80 of file merge.cpp.

References applySameTextHeuristic(), HeuristicSameText, Translator::locationsType(), NoObsolete, Translator::setLocationsType(), and Verbose.

+ Here is the call graph for this function:

◆ QT_PREPEND_NAMESPACE()

QT_END_NAMESPACE QT_PREPEND_NAMESPACE ( TrFunctionAliasManager )
extern