diff options
Diffstat (limited to 'doc/man/man3/tqtranslatormessage.3qt')
-rw-r--r-- | doc/man/man3/tqtranslatormessage.3qt | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/doc/man/man3/tqtranslatormessage.3qt b/doc/man/man3/tqtranslatormessage.3qt index 3748377ba..db1067515 100644 --- a/doc/man/man3/tqtranslatormessage.3qt +++ b/doc/man/man3/tqtranslatormessage.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTranslatorMessage 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTranslatorMessage 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,26 +7,26 @@ .ad l .nh .SH NAME -QTranslatorMessage \- Translator message and its properties +TQTranslatorMessage \- Translator message and its properties .SH SYNOPSIS -\fC#include <ntqtranslator.h>\fR +\fC#include <tqtranslator.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQTranslatorMessage\fR ()" +.BI "\fBTQTranslatorMessage\fR ()" .br .ti -1c -.BI "\fBQTranslatorMessage\fR ( const char * context, const char * sourceText, const char * comment, const TQString & translation = TQString::null )" +.BI "\fBTQTranslatorMessage\fR ( const char * context, const char * sourceText, const char * comment, const TQString & translation = TQString::null )" .br .ti -1c -.BI "\fBQTranslatorMessage\fR ( TQDataStream & stream )" +.BI "\fBTQTranslatorMessage\fR ( TQDataStream & stream )" .br .ti -1c -.BI "\fBQTranslatorMessage\fR ( const QTranslatorMessage & m )" +.BI "\fBTQTranslatorMessage\fR ( const TQTranslatorMessage & m )" .br .ti -1c -.BI "QTranslatorMessage & \fBoperator=\fR ( const QTranslatorMessage & m )" +.BI "TQTranslatorMessage & \fBoperator=\fR ( const TQTranslatorMessage & m )" .br .ti -1c .BI "uint \fBhash\fR () const" @@ -53,114 +53,114 @@ QTranslatorMessage \- Translator message and its properties .BI "void \fBwrite\fR ( TQDataStream & stream, bool strip = FALSE, Prefix prefix = HashContextSourceTextComment ) const" .br .ti -1c -.BI "Prefix \fBcommonPrefix\fR ( const QTranslatorMessage & m ) const" +.BI "Prefix \fBcommonPrefix\fR ( const TQTranslatorMessage & m ) const" .br .ti -1c -.BI "bool \fBoperator==\fR ( const QTranslatorMessage & m ) const" +.BI "bool \fBoperator==\fR ( const TQTranslatorMessage & m ) const" .br .ti -1c -.BI "bool \fBoperator!=\fR ( const QTranslatorMessage & m ) const" +.BI "bool \fBoperator!=\fR ( const TQTranslatorMessage & m ) const" .br .ti -1c -.BI "bool \fBoperator<\fR ( const QTranslatorMessage & m ) const" +.BI "bool \fBoperator<\fR ( const TQTranslatorMessage & m ) const" .br .ti -1c -.BI "bool \fBoperator<=\fR ( const QTranslatorMessage & m ) const" +.BI "bool \fBoperator<=\fR ( const TQTranslatorMessage & m ) const" .br .ti -1c -.BI "bool \fBoperator>\fR ( const QTranslatorMessage & m ) const" +.BI "bool \fBoperator>\fR ( const TQTranslatorMessage & m ) const" .br .ti -1c -.BI "bool \fBoperator>=\fR ( const QTranslatorMessage & m ) const" +.BI "bool \fBoperator>=\fR ( const TQTranslatorMessage & m ) const" .br .in -1c .SH DESCRIPTION -The QTranslatorMessage class contains a translator message and its properties. +The TQTranslatorMessage class contains a translator message and its properties. .PP This class is of no interest to most applications. It is useful for translation tools such as TQt Linguist. It is provided simply to make the API complete and regular. .PP -For a QTranslator object, a lookup key is a triple (\fIcontext\fR, \fIsource text\fR, \fIcomment\fR) that uniquely identifies a message. An extended key is a quadruple (\fIhash\fR, \fIcontext\fR, \fIsource text\fR, \fIcomment\fR), where \fIhash\fR is computed from the source text and the comment. Unless you plan to read and write messages yourself, you need not worry about the hash value. +For a TQTranslator object, a lookup key is a triple (\fIcontext\fR, \fIsource text\fR, \fIcomment\fR) that uniquely identifies a message. An extended key is a quadruple (\fIhash\fR, \fIcontext\fR, \fIsource text\fR, \fIcomment\fR), where \fIhash\fR is computed from the source text and the comment. Unless you plan to read and write messages yourself, you need not worry about the hash value. .PP -QTranslatorMessage stores this triple or quadruple and the relevant translation if there is any. +TQTranslatorMessage stores this triple or quadruple and the relevant translation if there is any. .PP -See also QTranslator, Environment Classes, and Internationalization with Qt. +See also TQTranslator, Environment Classes, and Internationalization with Qt. .SS "Member Type Documentation" -.SH "QTranslatorMessage::Prefix" +.SH "TQTranslatorMessage::Prefix" Let (\fIh\fR, \fIc\fR, \fIs\fR, \fIm\fR) be the extended key. The possible prefixes are .TP -\fCQTranslatorMessage::NoPrefix\fR - no prefix +\fCTQTranslatorMessage::NoPrefix\fR - no prefix .TP -\fCQTranslatorMessage::Hash\fR - only (\fIh\fR) +\fCTQTranslatorMessage::Hash\fR - only (\fIh\fR) .TP -\fCQTranslatorMessage::HashContext\fR - only (\fIh\fR, \fIc\fR) +\fCTQTranslatorMessage::HashContext\fR - only (\fIh\fR, \fIc\fR) .TP -\fCQTranslatorMessage::HashContextSourceText\fR - only (\fIh\fR, \fIc\fR, \fIs\fR) +\fCTQTranslatorMessage::HashContextSourceText\fR - only (\fIh\fR, \fIc\fR, \fIs\fR) .TP -\fCQTranslatorMessage::HashContextSourceTextComment\fR - the whole extended key, (\fIh\fR, \fIc\fR, \fIs\fR, \fIm\fR) +\fCTQTranslatorMessage::HashContextSourceTextComment\fR - the whole extended key, (\fIh\fR, \fIc\fR, \fIs\fR, \fIm\fR) .PP See also write() and commonPrefix(). .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTranslatorMessage::QTranslatorMessage ()" +.SH "TQTranslatorMessage::TQTranslatorMessage ()" Constructs a translator message with the extended key (0, 0, 0, 0) and TQString::null as translation. -.SH "QTranslatorMessage::QTranslatorMessage ( const char * context, const char * sourceText, const char * comment, const TQString & translation = TQString::null )" +.SH "TQTranslatorMessage::TQTranslatorMessage ( const char * context, const char * sourceText, const char * comment, const TQString & translation = TQString::null )" Constructs an translator message with the extended key (\fIh\fR, \fIcontext\fR, \fIsourceText\fR, \fIcomment\fR), where \fIh\fR is computed from \fIsourceText\fR and \fIcomment\fR, and possibly with a \fItranslation\fR. -.SH "QTranslatorMessage::QTranslatorMessage ( TQDataStream & stream )" +.SH "TQTranslatorMessage::TQTranslatorMessage ( TQDataStream & stream )" Constructs a translator message read from the \fIstream\fR. The resulting message may have any combination of content. .PP -See also QTranslator::save(). -.SH "QTranslatorMessage::QTranslatorMessage ( const QTranslatorMessage & m )" +See also TQTranslator::save(). +.SH "TQTranslatorMessage::TQTranslatorMessage ( const TQTranslatorMessage & m )" Constructs a copy of translator message \fIm\fR. -.SH "const char * QTranslatorMessage::comment () const" +.SH "const char * TQTranslatorMessage::comment () const" Returns the comment for this message (e.g. "File|Save"). .PP -\fBWarning:\fR This may return 0 if the QTranslator object is stripped (compressed). -.SH "Prefix QTranslatorMessage::commonPrefix ( const QTranslatorMessage & m ) const" +\fBWarning:\fR This may return 0 if the TQTranslator object is stripped (compressed). +.SH "Prefix TQTranslatorMessage::commonPrefix ( const TQTranslatorMessage & m ) const" Returns the widest lookup prefix that is common to this translator message and to message \fIm\fR. .PP For example, if the extended key is for this message is (71," PrintDialog", "Yes", "Print?") and that for \fIm\fR is (71," PrintDialog", "No", "Print?"), this function returns HashContext. .PP See also write(). -.SH "const char * QTranslatorMessage::context () const" +.SH "const char * TQTranslatorMessage::context () const" Returns the context for this message (e.g. "MyDialog"). .PP -\fBWarning:\fR This may return 0 if the QTranslator object is stripped (compressed). -.SH "uint QTranslatorMessage::hash () const" +\fBWarning:\fR This may return 0 if the TQTranslator object is stripped (compressed). +.SH "uint TQTranslatorMessage::hash () const" Returns the hash value used internally to represent the lookup key. This value is zero only if this translator message was constructed from a stream containing invalid data. .PP The hashing function is unspecified, but it will remain unchanged in future versions of Qt. -.SH "bool QTranslatorMessage::operator!= ( const QTranslatorMessage & m ) const" +.SH "bool TQTranslatorMessage::operator!= ( const TQTranslatorMessage & m ) const" Returns TRUE if the extended key of this object is different from that of \fIm\fR; otherwise returns FALSE. -.SH "bool QTranslatorMessage::operator< ( const QTranslatorMessage & m ) const" +.SH "bool TQTranslatorMessage::operator< ( const TQTranslatorMessage & m ) const" Returns TRUE if the extended key of this object is lexicographically before than that of \fIm\fR; otherwise returns FALSE. -.SH "bool QTranslatorMessage::operator<= ( const QTranslatorMessage & m ) const" +.SH "bool TQTranslatorMessage::operator<= ( const TQTranslatorMessage & m ) const" Returns TRUE if the extended key of this object is lexicographically before that of \fIm\fR or if they are equal; otherwise returns FALSE. -.SH "QTranslatorMessage & QTranslatorMessage::operator= ( const QTranslatorMessage & m )" +.SH "TQTranslatorMessage & TQTranslatorMessage::operator= ( const TQTranslatorMessage & m )" Assigns message \fIm\fR to this translator message and returns a reference to this translator message. -.SH "bool QTranslatorMessage::operator== ( const QTranslatorMessage & m ) const" +.SH "bool TQTranslatorMessage::operator== ( const TQTranslatorMessage & m ) const" Returns TRUE if the extended key of this object is equal to that of \fIm\fR; otherwise returns FALSE. -.SH "bool QTranslatorMessage::operator> ( const QTranslatorMessage & m ) const" +.SH "bool TQTranslatorMessage::operator> ( const TQTranslatorMessage & m ) const" Returns TRUE if the extended key of this object is lexicographically after that of \fIm\fR; otherwise returns FALSE. -.SH "bool QTranslatorMessage::operator>= ( const QTranslatorMessage & m ) const" +.SH "bool TQTranslatorMessage::operator>= ( const TQTranslatorMessage & m ) const" Returns TRUE if the extended key of this object is lexicographically after that of \fIm\fR or if they are equal; otherwise returns FALSE. -.SH "void QTranslatorMessage::setTranslation ( const TQString & translation )" +.SH "void TQTranslatorMessage::setTranslation ( const TQString & translation )" Sets the translation of the source text to \fItranslation\fR. .PP See also translation(). -.SH "const char * QTranslatorMessage::sourceText () const" +.SH "const char * TQTranslatorMessage::sourceText () const" Returns the source text of this message (e.g. "&Save"). .PP -\fBWarning:\fR This may return 0 if the QTranslator object is stripped (compressed). -.SH "TQString QTranslatorMessage::translation () const" +\fBWarning:\fR This may return 0 if the TQTranslator object is stripped (compressed). +.SH "TQString TQTranslatorMessage::translation () const" Returns the translation of the source text (e.g., "&Sauvegarder"). .PP See also setTranslation(). -.SH "void QTranslatorMessage::write ( TQDataStream & stream, bool strip = FALSE, Prefix prefix = HashContextSourceTextComment ) const" +.SH "void TQTranslatorMessage::write ( TQDataStream & stream, bool strip = FALSE, Prefix prefix = HashContextSourceTextComment ) const" Writes this translator message to the \fIstream\fR. If \fIstrip\fR is FALSE (the default), all the information in the message is written. If \fIstrip\fR is TRUE, only the part of the extended key specified by \fIprefix\fR is written with the translation (HashContextSourceTextComment by default). .PP See also commonPrefix(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/qtranslatormessage.html +.BR http://doc.trolltech.com/tqtranslatormessage.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |