diff options
Diffstat (limited to 'doc/man/man3')
53 files changed, 689 insertions, 689 deletions
diff --git a/doc/man/man3/tqapplication.3qt b/doc/man/man3/tqapplication.3qt index 582175acd..37c4ea97d 100644 --- a/doc/man/man3/tqapplication.3qt +++ b/doc/man/man3/tqapplication.3qt @@ -91,10 +91,10 @@ Inherits TQObject. .BI "virtual bool \fBnotify\fR ( TQObject * receiver, QEvent * e )" .br .ti -1c -.BI "void setDefaultCodec ( QTextCodec * codec ) \fI(obsolete)\fR" +.BI "void setDefaultCodec ( TQTextCodec * codec ) \fI(obsolete)\fR" .br .ti -1c -.BI "QTextCodec * defaultCodec () const \fI(obsolete)\fR" +.BI "TQTextCodec * defaultCodec () const \fI(obsolete)\fR" .br .ti -1c .BI "void \fBinstallTranslator\fR ( QTranslator * mf )" @@ -487,7 +487,7 @@ See setColorSpec() for full details. .SH "QApplication::Encoding" This enum type defines the 8-bit encoding of character string arguments to translate(): .TP -\fCQApplication::DefaultCodec\fR - the encoding specified by QTextCodec::codecForTr() (Latin-1 if none has been set) +\fCQApplication::DefaultCodec\fR - the encoding specified by TQTextCodec::codecForTr() (Latin-1 if none has been set) .TP \fCQApplication::UnicodeUTF8\fR - UTF-8 .PP @@ -837,10 +837,10 @@ The default value on X11 is 1000 milliseconds. On Windows, the control panel val Widgets should not cache this value since it may be changed at any time by the user changing the global desktop settings. .PP See also setCursorFlashTime(). -.SH "QTextCodec * QApplication::defaultCodec () const" +.SH "TQTextCodec * QApplication::defaultCodec () const" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP -Returns QTextCodec::codecForTr(). +Returns TQTextCodec::codecForTr(). .SH "QDesktopWidget * QApplication::desktop ()\fC [static]\fR" Returns the desktop widget (also called the root window). .PP @@ -1300,10 +1300,10 @@ Sets the text cursor's flash (blink) time to \fImsecs\fR milliseconds. The flash Note that on Microsoft Windows, calling this function sets the cursor flash time for all windows. .PP See also cursorFlashTime(). -.SH "void QApplication::setDefaultCodec ( QTextCodec * codec )" +.SH "void QApplication::setDefaultCodec ( TQTextCodec * codec )" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP -This is the same as QTextCodec::setCodecForTr(). +This is the same as TQTextCodec::setCodecForTr(). .SH "void QApplication::setDesktopSettingsAware ( bool on )\fC [static]\fR" By default, TQt will try to use the current standard colors, fonts etc., from the underlying window system's desktop settings, and use them for all relevant widgets. This behavior can be switched off by calling this function with \fIon\fR set to FALSE. .PP @@ -1527,7 +1527,7 @@ See also setStartDragDistance(), startDragTime(), and QPoint::manhattanLength(). .SH "int QApplication::startDragTime ()\fC [static]\fR" If you support drag and drop in you application and a drag should start after a mouse click and after a certain time elapsed, you should use the value which this method returns as the delay (in ms). .PP -Qt also uses this delay internally, e.g. in QTextEdit and QLineEdit, for starting a drag. +Qt also uses this delay internally, e.g. in TQTextEdit and QLineEdit, for starting a drag. .PP The default value is 500 ms. .PP diff --git a/doc/man/man3/tqaxbase.3qt b/doc/man/man3/tqaxbase.3qt index c01d3eb1e..51d6f4d8d 100644 --- a/doc/man/man3/tqaxbase.3qt +++ b/doc/man/man3/tqaxbase.3qt @@ -339,7 +339,7 @@ The QVariant objects in \fIvars\fR are updated when the method has out-parameter .SH "void QAxBase::exception ( int code, const TQString & source, const TQString & desc, const TQString & help )\fC [signal]\fR" This signal is emitted when the COM object throws an exception while called using the OLE automation interface IDispatch. \fIcode\fR, \fIsource\fR, \fIdesc\fR and \fIhelp\fR provide information about the exception as provided by the COM server and can be used to provide useful feedback to the end user. \fIhelp\fR includes the help file, and the help context ID in brackets, e.g. "filename [id]". .SH "TQString QAxBase::generateDocumentation ()" -Returns a rich text string with documentation for the wrapped COM object. Dump the string to an HTML-file, or use it in e.g. a QTextBrowser widget. +Returns a rich text string with documentation for the wrapped COM object. Dump the string to an HTML-file, or use it in e.g. a TQTextBrowser widget. .SH "bool QAxBase::initialize ( IUnknown ** ptr )\fC [virtual protected]\fR" This virtual function is called by setControl() and creates the requested COM object. \fIptr\fR is set to the object's IUnknown implementation. The function returns TRUE if the object initialization succeeded; otherwise the function returns FALSE. .PP diff --git a/doc/man/man3/tqbig5codec.3qt b/doc/man/man3/tqbig5codec.3qt index a31e869f6..81c93dc18 100644 --- a/doc/man/man3/tqbig5codec.3qt +++ b/doc/man/man3/tqbig5codec.3qt @@ -11,7 +11,7 @@ QBig5Codec \- Conversion to and from the Big5 encoding .SH SYNOPSIS \fC#include <ntqbig5codec.h>\fR .PP -Inherits QTextCodec. +Inherits TQTextCodec. .PP .SH DESCRIPTION The QBig5Codec class provides conversion to and from the Big5 encoding. diff --git a/doc/man/man3/tqbig5hkscscodec.3qt b/doc/man/man3/tqbig5hkscscodec.3qt index c263b177c..e02c8f59e 100644 --- a/doc/man/man3/tqbig5hkscscodec.3qt +++ b/doc/man/man3/tqbig5hkscscodec.3qt @@ -11,7 +11,7 @@ QBig5hkscsCodec \- Conversion to and from the Big5-HKSCS encoding .SH SYNOPSIS \fC#include <ntqbig5codec.h>\fR .PP -Inherits QTextCodec. +Inherits TQTextCodec. .PP .SH DESCRIPTION The QBig5hkscsCodec class provides conversion to and from the Big5-HKSCS encoding. diff --git a/doc/man/man3/tqbuffer.3qt b/doc/man/man3/tqbuffer.3qt index 1b0b5b1ef..150ee6243 100644 --- a/doc/man/man3/tqbuffer.3qt +++ b/doc/man/man3/tqbuffer.3qt @@ -42,19 +42,19 @@ Inherits TQIODevice. .SH DESCRIPTION The QBuffer class is an I/O device that operates on a QByteArray. .PP -QBuffer is used to read and write to a memory buffer. It is normally used with a QTextStream or a QDataStream. QBuffer has an associated QByteArray which holds the buffer data. The size() of the buffer is automatically adjusted as data is written. +QBuffer is used to read and write to a memory buffer. It is normally used with a TQTextStream or a QDataStream. QBuffer has an associated QByteArray which holds the buffer data. The size() of the buffer is automatically adjusted as data is written. .PP The constructor \fCQBuffer(QByteArray)\fR creates a QBuffer using an existing byte array. The byte array can also be set with setBuffer(). Writing to the QBuffer will modify the original byte array because QByteArray is explicitly shared. .PP Use open() to open the buffer before use and to set the mode (read-only, write-only, etc.). close() closes the buffer. The buffer must be closed before reopening or calling setBuffer(). .PP -A common way to use QBuffer is through QDataStream or QTextStream, which have constructors that take a QBuffer parameter. For convenience, there are also QDataStream and QTextStream constructors that take a QByteArray parameter. These constructors create and open an internal QBuffer. +A common way to use QBuffer is through QDataStream or TQTextStream, which have constructors that take a QBuffer parameter. For convenience, there are also QDataStream and TQTextStream constructors that take a QByteArray parameter. These constructors create and open an internal QBuffer. .PP -Note that QTextStream can also operate on a TQString (a Unicode string); a QBuffer cannot. +Note that TQTextStream can also operate on a TQString (a Unicode string); a QBuffer cannot. .PP You can also use QBuffer directly through the standard TQIODevice functions readBlock(), writeBlock() readLine(), at(), getch(), putch() and ungetch(). .PP -See also QFile, QDataStream, QTextStream, QByteArray, Shared Classes, Collection Classes, and Input/Output and Networking. +See also QFile, QDataStream, TQTextStream, QByteArray, Shared Classes, Collection Classes, and Input/Output and Networking. .SH MEMBER FUNCTION DOCUMENTATION .SH "QBuffer::QBuffer ()" Constructs an empty buffer. diff --git a/doc/man/man3/tqdatastream.3qt b/doc/man/man3/tqdatastream.3qt index df2683494..f72920e11 100644 --- a/doc/man/man3/tqdatastream.3qt +++ b/doc/man/man3/tqdatastream.3qt @@ -159,7 +159,7 @@ The QDataStream class provides serialization of binary data to a TQIODevice. .PP A data stream is a binary stream of encoded information which is 100% independent of the host computer's operating system, CPU or byte order. For example, a data stream that is written by a PC under Windows can be read by a Sun SPARC running Solaris. .PP -You can also use a data stream to read/write raw unencoded binary data. If you want a "parsing" input stream, see QTextStream. +You can also use a data stream to read/write raw unencoded binary data. If you want a "parsing" input stream, see TQTextStream. .PP The QDataStream class implements the serialization of C++'s basic data types, like \fCchar\fR, \fCshort\fR, \fCint\fR, \fCchar*\fR, etc. Serialization of more complex data is accomplished by breaking up the data into primitive units. .PP @@ -294,7 +294,7 @@ You may wish to read/write your own raw binary data to/from the data stream dire .PP A similar pair of functions is readBytes() and writeBytes(). These differ from their \fIraw\fR counterparts as follows: readBytes() reads a TQ_UINT32 which is taken to be the length of the data to be read, then that number of bytes is read into the preallocated char*; writeBytes() writes a TQ_UINT32 containing the length of the data, followed by the data. Notice that any encoding/decoding of the data (apart from the length TQ_UINT32) must be done by you. .PP -See also QTextStream, QVariant, and Input/Output and Networking. +See also TQTextStream, QVariant, and Input/Output and Networking. .SS "Member Type Documentation" .SH "QDataStream::ByteOrder" The byte order used for reading/writing the data. diff --git a/doc/man/man3/tqdockarea.3qt b/doc/man/man3/tqdockarea.3qt index c799b50df..d4ea200d0 100644 --- a/doc/man/man3/tqdockarea.3qt +++ b/doc/man/man3/tqdockarea.3qt @@ -82,10 +82,10 @@ Inherits TQWidget. .SH RELATED FUNCTION DOCUMENTATION .in +1c .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( QTextStream & ts, const QDockArea & dockArea )" +.BI "TQTextStream & \fBoperator<<\fR ( TQTextStream & ts, const QDockArea & dockArea )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( QTextStream & ts, QDockArea & dockArea )" +.BI "TQTextStream & \fBoperator>>\fR ( TQTextStream & ts, QDockArea & dockArea )" .br .in -1c .SH DESCRIPTION @@ -107,9 +107,9 @@ The QDockArea class maintains a position list of all its child dock windows. Doc .PP To dock or undock a dock window use QDockWindow::dock() and QDockWindow::undock() respectively. If you want to control which dock windows can dock in a dock area use setAcceptDockWindow(). To see if a dock area contains a particular dock window use hasDockWindow(); to see how many dock windows a dock area contains use count(). .PP -The streaming operators can write the positions of the dock windows in the dock area to a QTextStream. The positions can be read back later to restore the saved positions. +The streaming operators can write the positions of the dock windows in the dock area to a TQTextStream. The positions can be read back later to restore the saved positions. .PP -Save the positions to a QTextStream: +Save the positions to a TQTextStream: .PP .nf .br @@ -117,7 +117,7 @@ Save the positions to a QTextStream: .br .fi .PP -Restore the positions from a QTextStream: +Restore the positions from a TQTextStream: .PP .nf .br @@ -198,11 +198,11 @@ There is no default value; the orientation is specified in the constructor. .PP Get this property's value with orientation(). .SH RELATED FUNCTION DOCUMENTATION -.SH "QTextStream & operator<< ( QTextStream & ts, const QDockArea & dockArea )" +.SH "TQTextStream & operator<< ( TQTextStream & ts, const QDockArea & dockArea )" Writes the layout of the dock windows in dock area \fIdockArea\fR to the text stream \fIts\fR. .PP See also operator>>(). -.SH "QTextStream & operator>> ( QTextStream & ts, QDockArea & dockArea )" +.SH "TQTextStream & operator>> ( TQTextStream & ts, QDockArea & dockArea )" Reads the layout description of the dock windows in dock area \fIdockArea\fR from the text stream \fIts\fR and restores it. The layout description must have been previously written by the operator<<() function. .PP See also operator<<(). diff --git a/doc/man/man3/tqdomnode.3qt b/doc/man/man3/tqdomnode.3qt index 4b9db6309..7f68db777 100644 --- a/doc/man/man3/tqdomnode.3qt +++ b/doc/man/man3/tqdomnode.3qt @@ -204,13 +204,13 @@ Inherited by TQDomDocumentType, TQDomDocument, TQDomDocumentFragment, TQDomChara .BI "TQDomComment \fBtoComment\fR ()" .br .ti -1c -.BI "void \fBsave\fR ( QTextStream & str, int indent ) const" +.BI "void \fBsave\fR ( TQTextStream & str, int indent ) const" .br .in -1c .SH RELATED FUNCTION DOCUMENTATION .in +1c .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( QTextStream & str, const TQDomNode & node )" +.BI "TQTextStream & \fBoperator<<\fR ( TQTextStream & str, const TQDomNode & node )" .br .in -1c .SH DESCRIPTION @@ -636,7 +636,7 @@ If \fInewChild\fR is a TQDomDocumentFragment, then \fIoldChild\fR is replaced by Returns a new reference to \fIoldChild\fR on success or a null node an failure. .PP See also insertBefore(), insertAfter(), removeChild(), and appendChild(). -.SH "void TQDomNode::save ( QTextStream & str, int indent ) const" +.SH "void TQDomNode::save ( TQTextStream & str, int indent ) const" Writes the XML representation of the node and all its children to the stream \fIstr\fR. This function uses \fIindent\fR as the amount of space to indent the node. .SH "void TQDomNode::setNodeValue ( const TQString & v )\fC [virtual]\fR" Sets the node's value to \fIv\fR. @@ -703,7 +703,7 @@ Converts a TQDomNode into a TQDomText. If the node is not a text, the returned o .PP See also isText(). .SH RELATED FUNCTION DOCUMENTATION -.SH "QTextStream & operator<< ( QTextStream & str, const TQDomNode & node )" +.SH "TQTextStream & operator<< ( TQTextStream & str, const TQDomNode & node )" Writes the XML representation of the node \fInode\fR and all its children to the stream \fIstr\fR. diff --git a/doc/man/man3/tqdragobject.3qt b/doc/man/man3/tqdragobject.3qt index 5cd6a7946..d54533478 100644 --- a/doc/man/man3/tqdragobject.3qt +++ b/doc/man/man3/tqdragobject.3qt @@ -13,7 +13,7 @@ QDragObject \- Encapsulates MIME-based data transfer .PP Inherits TQObject and QMimeSource. .PP -Inherited by QStoredDrag, QTextDrag, TQImageDrag, and QIconDrag. +Inherited by QStoredDrag, TQTextDrag, TQImageDrag, and QIconDrag. .PP .SS "Public Members" .in +1c diff --git a/doc/man/man3/tqdropevent.3qt b/doc/man/man3/tqdropevent.3qt index b28c6aa5d..86abec601 100644 --- a/doc/man/man3/tqdropevent.3qt +++ b/doc/man/man3/tqdropevent.3qt @@ -93,7 +93,7 @@ The Link and Move actions only makes sense if the data is a reference, for examp .SH "QDropEvent::QDropEvent ( const QPoint & pos, Type typ = Drop )" Constructs a drop event that drops a drop of type \fItyp\fR on point \fIpos\fR. .SH "void QDropEvent::accept ( bool y = TRUE )" -Call this function to indicate whether the event provided data which your widget processed. Set \fIy\fR to TRUE (the default) if your widget could process the data, otherwise set \fIy\fR to FALSE. To get the data, use encodedData(), or preferably, the decode() methods of existing QDragObject subclasses, such as QTextDrag::decode(), or your own subclasses. +Call this function to indicate whether the event provided data which your widget processed. Set \fIy\fR to TRUE (the default) if your widget could process the data, otherwise set \fIy\fR to FALSE. To get the data, use encodedData(), or preferably, the decode() methods of existing QDragObject subclasses, such as TQTextDrag::decode(), or your own subclasses. .PP See also acceptAction(). .PP diff --git a/doc/man/man3/tqeucjpcodec.3qt b/doc/man/man3/tqeucjpcodec.3qt index d1c22f614..cb4fe4619 100644 --- a/doc/man/man3/tqeucjpcodec.3qt +++ b/doc/man/man3/tqeucjpcodec.3qt @@ -13,7 +13,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .PP \fC#include <ntqeucjpcodec.h>\fR .PP -Inherits QTextCodec. +Inherits TQTextCodec. .PP .SS "Public Members" .in +1c @@ -33,7 +33,7 @@ Inherits QTextCodec. .SH DESCRIPTION The QEucJpCodec class provides conversion to and from EUC-JP character sets. .PP -More precisely, the QEucJpCodec class subclasses QTextCodec to provide support for EUC-JP, the main legacy encoding for Unix machines in Japan. +More precisely, the QEucJpCodec class subclasses TQTextCodec to provide support for EUC-JP, the main legacy encoding for Unix machines in Japan. .PP The environment variable \fCUNICODEMAP_JP\fR can be used to fine-tune QJisCodec, QSjisCodec and QEucJpCodec. The QJisCodec documentation describes how to use this variable. .PP @@ -58,11 +58,11 @@ Destroys the codec. .SH "int QEucJpCodec::mibEnum () const\fC [virtual]\fR" Returns 18. .PP -Reimplemented from QTextCodec. +Reimplemented from TQTextCodec. .SH "const char * QEucJpCodec::mimeName () const\fC [virtual]\fR" Returns the codec's mime name. .PP -Reimplemented from QTextCodec. +Reimplemented from TQTextCodec. .SH "SEE ALSO" .BR http://doc.trolltech.com/ntqeucjpcodec.html diff --git a/doc/man/man3/tqeuckrcodec.3qt b/doc/man/man3/tqeuckrcodec.3qt index 4bb1b46b5..1e0d89622 100644 --- a/doc/man/man3/tqeuckrcodec.3qt +++ b/doc/man/man3/tqeuckrcodec.3qt @@ -13,7 +13,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .PP \fC#include <ntqeuckrcodec.h>\fR .PP -Inherits QTextCodec. +Inherits TQTextCodec. .PP .SS "Public Members" .in +1c @@ -24,7 +24,7 @@ Inherits QTextCodec. .SH DESCRIPTION The QEucKrCodec class provides conversion to and from EUC-KR character sets. .PP -The QEucKrCodec class subclasses QTextCodec to provide support for EUC-KR, the main legacy encoding for UNIX machines in Korea. +The QEucKrCodec class subclasses TQTextCodec to provide support for EUC-KR, the main legacy encoding for UNIX machines in Korea. .PP It was largely written by Mizi Research Inc. Here is the copyright statement for the code as it was at the point of contribution. Trolltech's subsequent modifications are covered by the usual copyright for Qt. .PP @@ -43,7 +43,7 @@ See also Internationalization with Qt. .SH "const char * QEucKrCodec::mimeName () const\fC [virtual]\fR" Returns the codec's mime name. .PP -Reimplemented from QTextCodec. +Reimplemented from TQTextCodec. .SH "SEE ALSO" .BR http://doc.trolltech.com/ntqeuckrcodec.html diff --git a/doc/man/man3/tqfile.3qt b/doc/man/man3/tqfile.3qt index 228c4a0b5..46d8aaf54 100644 --- a/doc/man/man3/tqfile.3qt +++ b/doc/man/man3/tqfile.3qt @@ -123,15 +123,15 @@ Inherits TQIODevice. .SH DESCRIPTION The QFile class is an I/O device that operates on files. .PP -QFile is an I/O device for reading and writing binary and text files. A QFile may be used by itself or more conveniently with a QDataStream or QTextStream. +QFile is an I/O device for reading and writing binary and text files. A QFile may be used by itself or more conveniently with a QDataStream or TQTextStream. .PP The file name is usually passed in the constructor but can be changed with setName(). You can check for a file's existence with exists() and remove a file with remove(). .PP -The file is opened with open(), closed with close() and flushed with flush(). Data is usually read and written using QDataStream or QTextStream, but you can read with readBlock() and readLine() and write with writeBlock(). QFile also supports getch(), ungetch() and putch(). +The file is opened with open(), closed with close() and flushed with flush(). Data is usually read and written using QDataStream or TQTextStream, but you can read with readBlock() and readLine() and write with writeBlock(). QFile also supports getch(), ungetch() and putch(). .PP The size of the file is returned by size(). You can get the current file position or move to a new file position using the at() functions. If you've reached the end of the file, atEnd() returns TRUE. The file handle is returned by handle(). .PP -Here is a code fragment that uses QTextStream to read a text file line by line. It prints each line with a line number. +Here is a code fragment that uses TQTextStream to read a text file line by line. It prints each line with a line number. .PP .nf .br @@ -141,7 +141,7 @@ Here is a code fragment that uses QTextStream to read a text file line by line. .br if ( file.open( IO_ReadOnly ) ) { .br - QTextStream stream( &file ); + TQTextStream stream( &file ); .br TQString line; .br @@ -171,7 +171,7 @@ Writing text is just as easy. The following example shows how to write the data .br if ( file.open( IO_WriteOnly ) ) { .br - QTextStream stream( &file ); + TQTextStream stream( &file ); .br for ( TQStringList::Iterator it = lines.begin(); it != lines.end(); ++it ) .br @@ -189,7 +189,7 @@ The QDir class manages directories and lists of file names. .PP Qt uses Unicode file names. If you want to do your own I/O on Unix systems you may want to use encodeName() (and decodeName()) to convert the file name into the local encoding. .PP -See also QDataStream, QTextStream, and Input/Output and Networking. +See also QDataStream, TQTextStream, and Input/Output and Networking. .SS "Member Type Documentation" .SH "QFile::DecoderFn" This is used by QFile::setDecodingFunction(). @@ -414,7 +414,7 @@ Reads bytes from the file into the char* \fIp\fR, until end-of-line or \fImaxlen .PP This function is only efficient for buffered files. Avoid readLine() for files that have been opened with the IO_Raw flag. .PP -See also readBlock() and QTextStream::readLine(). +See also readBlock() and TQTextStream::readLine(). .PP Reimplemented from TQIODevice. .SH "TQ_LONG QFile::readLine ( TQString & s, TQ_ULONG maxlen )" @@ -428,7 +428,7 @@ This function is only efficient for buffered files. Avoid using readLine() for f .PP Note that the string is read as plain Latin1 bytes, not Unicode. .PP -See also readBlock() and QTextStream::readLine(). +See also readBlock() and TQTextStream::readLine(). .SH "bool QFile::remove ()" Removes the file specified by the file name currently set. Returns TRUE if successful; otherwise returns FALSE. .PP diff --git a/doc/man/man3/tqfontmetrics.3qt b/doc/man/man3/tqfontmetrics.3qt index 9bcfe9fdb..d9f860abc 100644 --- a/doc/man/man3/tqfontmetrics.3qt +++ b/doc/man/man3/tqfontmetrics.3qt @@ -80,10 +80,10 @@ QFontMetrics \- Font metrics information .BI "QRect \fBboundingRect\fR ( TQChar ch ) const" .br .ti -1c -.BI "QRect \fBboundingRect\fR ( int x, int y, int w, int h, int flgs, const TQString & str, int len = -1, int tabstops = 0, int * tabarray = 0, QTextParag ** intern = 0 ) const" +.BI "QRect \fBboundingRect\fR ( int x, int y, int w, int h, int flgs, const TQString & str, int len = -1, int tabstops = 0, int * tabarray = 0, TQTextParag ** intern = 0 ) const" .br .ti -1c -.BI "QSize \fBsize\fR ( int flgs, const TQString & str, int len = -1, int tabstops = 0, int * tabarray = 0, QTextParag ** intern = 0 ) const" +.BI "QSize \fBsize\fR ( int flgs, const TQString & str, int len = -1, int tabstops = 0, int * tabarray = 0, TQTextParag ** intern = 0 ) const" .br .ti -1c .BI "int \fBunderlinePos\fR () const" @@ -180,7 +180,7 @@ Example: xform/xform.cpp. This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the bounding rectangle that contains the first \fIlen\fR characters of string \fIstr\fR. -.SH "QRect QFontMetrics::boundingRect ( int x, int y, int w, int h, int flgs, const TQString & str, int len = -1, int tabstops = 0, int * tabarray = 0, QTextParag ** intern = 0 ) const" +.SH "QRect QFontMetrics::boundingRect ( int x, int y, int w, int h, int flgs, const TQString & str, int len = -1, int tabstops = 0, int * tabarray = 0, TQTextParag ** intern = 0 ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the bounding rectangle of the first \fIlen\fR characters of \fIstr\fR, which is the set of pixels the text would cover if drawn at (0, 0). The drawing, and hence the bounding rectangle, is constrained to the rectangle (\fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR). @@ -331,7 +331,7 @@ See width() for a graphical description of this metric. See also leftBearing(), minRightBearing(), and width(). .PP Example: qfd/fontdisplayer.cpp. -.SH "QSize QFontMetrics::size ( int flgs, const TQString & str, int len = -1, int tabstops = 0, int * tabarray = 0, QTextParag ** intern = 0 ) const" +.SH "QSize QFontMetrics::size ( int flgs, const TQString & str, int len = -1, int tabstops = 0, int * tabarray = 0, TQTextParag ** intern = 0 ) const" Returns the size in pixels of the first \fIlen\fR characters of \fIstr\fR. .PP If \fIlen\fR is negative (the default), the entire string is used. diff --git a/doc/man/man3/tqgb18030codec.3qt b/doc/man/man3/tqgb18030codec.3qt index af28f6a0e..cbf2e29b0 100644 --- a/doc/man/man3/tqgb18030codec.3qt +++ b/doc/man/man3/tqgb18030codec.3qt @@ -13,7 +13,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .PP \fC#include <ntqgb18030codec.h>\fR .PP -Inherits QTextCodec. +Inherits TQTextCodec. .PP Inherited by QGbkCodec and QGb2312Codec. .PP diff --git a/doc/man/man3/tqhebrewcodec.3qt b/doc/man/man3/tqhebrewcodec.3qt index 9d584a79b..c54ef8fa7 100644 --- a/doc/man/man3/tqhebrewcodec.3qt +++ b/doc/man/man3/tqhebrewcodec.3qt @@ -13,7 +13,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .PP \fC#include <ntqrtlcodec.h>\fR .PP -Inherits QTextCodec. +Inherits TQTextCodec. .PP .SS "Public Members" .in +1c @@ -46,11 +46,11 @@ The algorithm is designed to work on whole paragraphs of text, so processing a l .PP Some encodings (for example Japanese or UTF-8) are multibyte (so one input character is mapped to two output characters). The \fIlenInOut\fR argument specifies the number of QChars that should be converted and is set to the number of characters returned. .PP -Reimplemented from QTextCodec. +Reimplemented from TQTextCodec. .SH "const char * QHebrewCodec::mimeName () const\fC [virtual]\fR" Returns the codec's mime name. .PP -Reimplemented from QTextCodec. +Reimplemented from TQTextCodec. .SH "SEE ALSO" .BR http://doc.trolltech.com/qhebrewcodec.html diff --git a/doc/man/man3/tqiconview.3qt b/doc/man/man3/tqiconview.3qt index a8003b48d..73473bfc4 100644 --- a/doc/man/man3/tqiconview.3qt +++ b/doc/man/man3/tqiconview.3qt @@ -423,13 +423,13 @@ The simple approach to dragging items out of the icon view is to subclass QIconV .br { .br - return new QTextDrag( currentItem()->text(), this ); + return new TQTextDrag( currentItem()->text(), this ); .br } .br .fi .PP -In this example we create a QTextDrag object, (derived from QDragObject), containing the item's label and return it as the drag object. We could just as easily have created a TQImageDrag from the item's pixmap and returned that instead. +In this example we create a TQTextDrag object, (derived from QDragObject), containing the item's label and return it as the drag object. We could just as easily have created a TQImageDrag from the item's pixmap and returned that instead. .PP QIconViews and their QIconViewItems can also be the targets of drag and drops. To make the QIconView itself able to accept drops connect to the dropped() signal. When a drop occurs this signal will be emitted with a QDragEvent and a TQValueList of QIconDragItems. To make a QIconViewItem into a drop target subclass QIconViewItem and reimplement QIconViewItem::acceptDrop() and QIconViewItem::dropped(). .PP @@ -454,7 +454,7 @@ QIconViews and their QIconViewItems can also be the targets of drag and drops. T .br TQString label; .br - if ( QTextDrag::decode( evt, label ) ) + if ( TQTextDrag::decode( evt, label ) ) .br setText( label ); .br diff --git a/doc/man/man3/tqiodevice.3qt b/doc/man/man3/tqiodevice.3qt index 3405e292d..3bf3f3539 100644 --- a/doc/man/man3/tqiodevice.3qt +++ b/doc/man/man3/tqiodevice.3qt @@ -152,7 +152,7 @@ The TQIODevice class is the base class of I/O devices. .PP An I/O device represents a medium that one can read bytes from and/or write bytes to. The TQIODevice class is the abstract superclass of all such devices; classes such as QFile, QBuffer and QSocket inherit TQIODevice and implement virtual functions such as write() appropriately. .PP -Although applications sometimes use TQIODevice directly, it is usually better to use QTextStream and QDataStream, which provide stream operations on any TQIODevice subclass. QTextStream provides text-oriented stream functionality (for human-readable ASCII files, for example), whereas QDataStream deals with binary data in a totally platform-independent manner. +Although applications sometimes use TQIODevice directly, it is usually better to use TQTextStream and QDataStream, which provide stream operations on any TQIODevice subclass. TQTextStream provides text-oriented stream functionality (for human-readable ASCII files, for example), whereas QDataStream deals with binary data in a totally platform-independent manner. .PP The public member functions in TQIODevice roughly fall into two groups: the action functions and the state access functions. The most important action functions are: .IP @@ -270,7 +270,7 @@ TQIODevice provides numerous pure virtual functions that you need to implement w .PP The three non-pure virtual functions need not be reimplemented for sequential devices. .PP -See also QDataStream, QTextStream, and Input/Output and Networking. +See also QDataStream, TQTextStream, and Input/Output and Networking. .SS "Member Type Documentation" .SH "TQIODevice::Offset" The offset within the device. @@ -447,7 +447,7 @@ Returns the number of bytes read including the terminating '\0', or -1 if an .PP This virtual function can be reimplemented much more efficiently by the most subclasses. .PP -See also readBlock() and QTextStream::readLine(). +See also readBlock() and TQTextStream::readLine(). .PP Reimplemented in QFile. .SH "bool TQIODevice::reset ()" diff --git a/doc/man/man3/tqjiscodec.3qt b/doc/man/man3/tqjiscodec.3qt index 000b13492..e592ce5a6 100644 --- a/doc/man/man3/tqjiscodec.3qt +++ b/doc/man/man3/tqjiscodec.3qt @@ -13,7 +13,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .PP \fC#include <ntqjiscodec.h>\fR .PP -Inherits QTextCodec. +Inherits TQTextCodec. .PP .SS "Public Members" .in +1c @@ -24,7 +24,7 @@ Inherits QTextCodec. .SH DESCRIPTION The QJisCodec class provides conversion to and from JIS character sets. .PP -More precisely, the QJisCodec class subclasses QTextCodec to provide support for JIS X 0201 Latin, JIS X 0201 Kana, JIS X 0208 and JIS X 0212. +More precisely, the QJisCodec class subclasses TQTextCodec to provide support for JIS X 0201 Latin, JIS X 0201 Kana, JIS X 0208 and JIS X 0212. .PP The environment variable UNICODEMAP_JP can be used to fine-tune QJisCodec, QSjisCodec and QEucJpCodec. The mapping names are as for the Japanese XML working group's XML Japanese Profile, because it names and explains all the widely used mappings. Here are brief descriptions, written by Serika Kurusugawa: .IP @@ -68,7 +68,7 @@ See also Internationalization with Qt. .SH "const char * QJisCodec::mimeName () const\fC [virtual]\fR" Returns the codec's mime name. .PP -Reimplemented from QTextCodec. +Reimplemented from TQTextCodec. .SH "SEE ALSO" .BR http://doc.trolltech.com/ntqjiscodec.html diff --git a/doc/man/man3/tqlabel.3qt b/doc/man/man3/tqlabel.3qt index 621dc7e18..360d5743a 100644 --- a/doc/man/man3/tqlabel.3qt +++ b/doc/man/man3/tqlabel.3qt @@ -180,7 +180,7 @@ In this example, keyboard focus is transferred to the label's buddy (the QLineEd .ce 1 .B "[Image Omitted]" .PP -See also QLineEdit, QTextEdit, QPixmap, QMovie, GUI Design Handbook: Label, Basic Widgets, and Text Related Classes. +See also QLineEdit, TQTextEdit, QPixmap, QMovie, GUI Design Handbook: Label, Basic Widgets, and Text Related Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "QLabel::QLabel ( TQWidget * parent, const char * name = 0, WFlags f = 0 )" Constructs an empty label. @@ -393,7 +393,7 @@ If the text is interpreted as a plain text and a buddy has been set, the buddy a .PP The label resizes itself if auto-resizing is enabled. .PP -Note that Qlabel is well-suited to display small rich text documents, i.e. those small documents that get their document specific settings (font, text color, link color) from the label's palette and font properties. For large documents, use QTextEdit in read-only mode instead. QTextEdit will flicker less on resize and can also provide a scrollbar when necessary. +Note that Qlabel is well-suited to display small rich text documents, i.e. those small documents that get their document specific settings (font, text color, link color) from the label's palette and font properties. For large documents, use TQTextEdit in read-only mode instead. TQTextEdit will flicker less on resize and can also provide a scrollbar when necessary. .PP See also textFormat, setBuddy(), and alignment. .PP diff --git a/doc/man/man3/tqlineedit.3qt b/doc/man/man3/tqlineedit.3qt index 097adb230..79c09d9fc 100644 --- a/doc/man/man3/tqlineedit.3qt +++ b/doc/man/man3/tqlineedit.3qt @@ -286,7 +286,7 @@ By changing the echoMode() of a line edit, it can also be used as a "write-only" .PP The length of the text can be constrained to maxLength(). The text can be arbitrarily constrained using a validator() or an inputMask(), or both. .PP -A related class is QTextEdit which allows multi-line, rich-text editing. +A related class is TQTextEdit which allows multi-line, rich-text editing. .PP You can change the text with setText() or insert(). The text is retrieved with text(); the displayed text (which may be different, see EchoMode) is retrieved with displayText(). Text can be selected with setSelection() or selectAll(), and the selection can be cut(), copy()ied and paste()d. The text can be aligned with setAlignment(). .PP @@ -310,7 +310,7 @@ Any other key sequence that represents a valid character, will cause the charact .ce 1 .B "[Image Omitted]" .PP -See also QTextEdit, QLabel, QComboBox, GUI Design Handbook: Field, Entry, and Basic Widgets. +See also TQTextEdit, QLabel, QComboBox, GUI Design Handbook: Field, Entry, and Basic Widgets. .SS "Member Type Documentation" .SH "QLineEdit::EchoMode" This enum type describes how a line edit should display its contents. diff --git a/doc/man/man3/tqmacmime.3qt b/doc/man/man3/tqmacmime.3qt index c2ca8db25..fd0740e21 100644 --- a/doc/man/man3/tqmacmime.3qt +++ b/doc/man/man3/tqmacmime.3qt @@ -65,9 +65,9 @@ By instantiating subclasses of QMacMime that provide conversions between Mac fla .PP Qt has predefined support for the following Mac flavors: .TP -kScrapFlavorTypeUnicode - converted to "text/plain;charset=ISO-10646-UCS-2" and supported by QTextDrag. +kScrapFlavorTypeUnicode - converted to "text/plain;charset=ISO-10646-UCS-2" and supported by TQTextDrag. .TP -kScrapFlavorTypeText - converted to "text/plain;charset=system" or "text/plain" and supported by QTextDrag. +kScrapFlavorTypeText - converted to "text/plain;charset=system" or "text/plain" and supported by TQTextDrag. .TP kScrapFlavorTypePicture - converted to "image/format", where format is a TQt image format, and supported by TQImageDrag. .TP diff --git a/doc/man/man3/tqmacstyle.3qt b/doc/man/man3/tqmacstyle.3qt index 700edcf13..5bd3da5f3 100644 --- a/doc/man/man3/tqmacstyle.3qt +++ b/doc/man/man3/tqmacstyle.3qt @@ -73,7 +73,7 @@ This type is used to signify a widget's focus rectangle policy. .TP \fCQMacStyle::FocusDisabled\fR - never show a focus rectangle for the widget. .TP -\fCQMacStyle::FocusDefault\fR - show a focus rectangle when the widget has focus and the widget is a QSpinWidget, QDateTimeEdit, QLineEdit, QListBox, QListView, editable QTextEdit, or one of their subclasses. +\fCQMacStyle::FocusDefault\fR - show a focus rectangle when the widget has focus and the widget is a QSpinWidget, QDateTimeEdit, QLineEdit, QListBox, QListView, editable TQTextEdit, or one of their subclasses. .SH "QMacStyle::WidgetSizePolicy" .TP \fCQMacStyle::SizeSmall\fR diff --git a/doc/man/man3/tqmainwindow.3qt b/doc/man/man3/tqmainwindow.3qt index 244760e10..0d7f189ec 100644 --- a/doc/man/man3/tqmainwindow.3qt +++ b/doc/man/man3/tqmainwindow.3qt @@ -238,10 +238,10 @@ Inherits TQWidget. .SH RELATED FUNCTION DOCUMENTATION .in +1c .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( QTextStream & ts, const QMainWindow & mainWindow )" +.BI "TQTextStream & \fBoperator<<\fR ( TQTextStream & ts, const QMainWindow & mainWindow )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( QTextStream & ts, QMainWindow & mainWindow )" +.BI "TQTextStream & \fBoperator>>\fR ( TQTextStream & ts, QMainWindow & mainWindow )" .br .in -1c .SH DESCRIPTION @@ -253,7 +253,7 @@ Main windows are most often used to provide menus, toolbars and a status bar aro .br QMainWindow *mw = new QMainWindow; .br - QTextEdit *edit = new QTextEdit( mw, "editor" ); + TQTextEdit *edit = new TQTextEdit( mw, "editor" ); .br edit->setFocus(); .br @@ -312,7 +312,7 @@ This extract shows the creation of a toolbar with one toolbar button. QMainWindo .PP .nf .br - e = new QTextEdit( this, "editor" ); + e = new TQTextEdit( this, "editor" ); .br e->setFocus(); .br @@ -422,7 +422,7 @@ To save the layout and positions of all the dock windows do this: .br if ( file.open( IO_WriteOnly ) ) { .br - QTextStream stream( &file ); + TQTextStream stream( &file ); .br stream << *mainWindow; .br @@ -440,7 +440,7 @@ To restore the dock window positions and sizes (normally when the application is .br if ( file.open( IO_ReadOnly ) ) { .br - QTextStream stream( &file ); + TQTextStream stream( &file ); .br stream >> *mainWindow; .br @@ -806,13 +806,13 @@ See also QToolButton::usesTextLabel. .PP Set this property's value with setUsesTextLabel() and get this property's value with usesTextLabel(). .SH RELATED FUNCTION DOCUMENTATION -.SH "QTextStream & operator<< ( QTextStream & ts, const QMainWindow & mainWindow )" +.SH "TQTextStream & operator<< ( TQTextStream & ts, const QMainWindow & mainWindow )" Writes the layout (sizes and positions) of the dock windows in the dock areas of the QMainWindow \fImainWindow\fR, including Minimized and TornOff dock windows, to the text stream \fIts\fR. .PP This can be used, for example, in conjunction with QSettings to save the user's layout when the \\mainWindow receives a closeEvent. .PP See also operator>>() and closeEvent(). -.SH "QTextStream & operator>> ( QTextStream & ts, QMainWindow & mainWindow )" +.SH "TQTextStream & operator>> ( TQTextStream & ts, QMainWindow & mainWindow )" Reads the layout (sizes and positions) of the dock windows in the dock areas of the QMainWindow \fImainWindow\fR from the text stream, \fIts\fR, including Minimized and TornOff dock windows. Restores the dock windows and dock areas to these sizes and positions. The layout information must be in the format produced by operator<<(). .PP This can be used, for example, in conjunction with QSettings to restore the user's layout. diff --git a/doc/man/man3/tqmimesource.3qt b/doc/man/man3/tqmimesource.3qt index 494ff5390..8263cdb69 100644 --- a/doc/man/man3/tqmimesource.3qt +++ b/doc/man/man3/tqmimesource.3qt @@ -60,7 +60,7 @@ Reimplemented in QDropEvent. .SH "bool QMimeSource::provides ( const char * mimeType ) const\fC [virtual]\fR" Returns TRUE if the object can provide the data in format \fImimeType\fR; otherwise returns FALSE. .PP -If you inherit from QMimeSource, for consistency reasons it is better to implement the more abstract canDecode() functions such as QTextDrag::canDecode() and TQImageDrag::canDecode(). +If you inherit from QMimeSource, for consistency reasons it is better to implement the more abstract canDecode() functions such as TQTextDrag::canDecode() and TQImageDrag::canDecode(). .PP Example: iconview/simple_dd/main.cpp. .PP diff --git a/doc/man/man3/tqmimesourcefactory.3qt b/doc/man/man3/tqmimesourcefactory.3qt index eb6b2a30e..1ca7c8d7c 100644 --- a/doc/man/man3/tqmimesourcefactory.3qt +++ b/doc/man/man3/tqmimesourcefactory.3qt @@ -78,7 +78,7 @@ A QMimeSourceFactory provides an abstract interface to a collection of informati .PP The base QMimeSourceFactory can be used in two ways: as an abstraction of a collection of files or as specifically stored data. For it to access files, call setFilePath() before accessing data. For stored data, call setData() for each item (there are also convenience functions, e.g. setText(), setImage() and setPixmap(), that simply call setData() with appropriate parameters). .PP -The rich text widgets, QTextEdit and QTextBrowser, use QMimeSourceFactory to resolve references such as images or links within rich text documents. They either access the default factory (see defaultFactory()) or their own (see QTextEdit::setMimeSourceFactory()). Other classes that are capable of displaying rich text (such as QLabel, QWhatsThis or QMessageBox) always use the default factory. +The rich text widgets, TQTextEdit and TQTextBrowser, use QMimeSourceFactory to resolve references such as images or links within rich text documents. They either access the default factory (see defaultFactory()) or their own (see TQTextEdit::setMimeSourceFactory()). Other classes that are capable of displaying rich text (such as QLabel, QWhatsThis or QMessageBox) always use the default factory. .PP A factory can also be used as a container to store data associated with a name. This technique is useful whenever rich text contains images that are stored in the program itself, not loaded from the hard disk. Your program may, for example, define some image data as: .PP @@ -166,7 +166,7 @@ This is an overloaded member function, provided for convenience. It behaves esse .PP A convenience function. See data(const TQString& abs_name). The file name is given in \fIabs_or_rel_name\fR and the path is in \fIcontext\fR. .SH "QMimeSourceFactory * QMimeSourceFactory::defaultFactory ()\fC [static]\fR" -Returns the application-wide default mime source factory. This factory is used by rich text rendering classes such as QSimpleRichText, QWhatsThis and QMessageBox to resolve named references within rich text documents. It serves also as the initial factory for the more complex render widgets, QTextEdit and QTextBrowser. +Returns the application-wide default mime source factory. This factory is used by rich text rendering classes such as QSimpleRichText, QWhatsThis and QMessageBox to resolve named references within rich text documents. It serves also as the initial factory for the more complex render widgets, TQTextEdit and TQTextBrowser. .PP See also setDefaultFactory(). .PP @@ -203,7 +203,7 @@ Sets \fIpixmap\fR to be the data item associated with the absolute name \fIabs_n .SH "void QMimeSourceFactory::setText ( const TQString & abs_name, const TQString & text )\fC [virtual]\fR" Sets \fItext\fR to be the data item associated with the absolute name \fIabs_name\fR. .PP -Equivalent to setData(abs_name, new QTextDrag(text)). +Equivalent to setData(abs_name, new TQTextDrag(text)). .SH "QMimeSourceFactory * QMimeSourceFactory::takeDefaultFactory ()\fC [static]\fR" Sets the defaultFactory() to 0 and returns the previous one. diff --git a/doc/man/man3/tqnpstream.3qt b/doc/man/man3/tqnpstream.3qt index c030186a1..d948389c2 100644 --- a/doc/man/man3/tqnpstream.3qt +++ b/doc/man/man3/tqnpstream.3qt @@ -57,7 +57,7 @@ This class is defined in the \fBQt Netscape Extension\fR, which can be found in .PP The QNPStream class provides a stream of data provided to a QNPInstance by the browser. .PP -Note that this is neither a QTextStream nor a QDataStream. +Note that this is neither a TQTextStream nor a QDataStream. .PP See also QNPInstance::write() and QNPInstance::newStreamCreated(). .SH MEMBER FUNCTION DOCUMENTATION diff --git a/doc/man/man3/tqobject.3qt b/doc/man/man3/tqobject.3qt index b741deaf1..c96785f30 100644 --- a/doc/man/man3/tqobject.3qt +++ b/doc/man/man3/tqobject.3qt @@ -525,7 +525,7 @@ Example: .br private: .br - QTextEdit *textEdit; + TQTextEdit *textEdit; .br }; .br @@ -536,7 +536,7 @@ Example: .br { .br - textEdit = new QTextEdit( this ); + textEdit = new TQTextEdit( this ); .br setCentralWidget( textEdit ); .br diff --git a/doc/man/man3/tqpainter.3qt b/doc/man/man3/tqpainter.3qt index 7072d00f2..6b8005fb0 100644 --- a/doc/man/man3/tqpainter.3qt +++ b/doc/man/man3/tqpainter.3qt @@ -384,16 +384,16 @@ Inherited by QDirectPainter. .BI "void \fBdrawText\fR ( const QPoint & p, const TQString &, int pos, int len, TextDirection dir = Auto )" .br .ti -1c -.BI "void \fBdrawText\fR ( int x, int y, int w, int h, int flags, const TQString &, int len = -1, QRect * br = 0, QTextParag ** internal = 0 )" +.BI "void \fBdrawText\fR ( int x, int y, int w, int h, int flags, const TQString &, int len = -1, QRect * br = 0, TQTextParag ** internal = 0 )" .br .ti -1c -.BI "void \fBdrawText\fR ( const QRect & r, int tf, const TQString & str, int len = -1, QRect * brect = 0, QTextParag ** internal = 0 )" +.BI "void \fBdrawText\fR ( const QRect & r, int tf, const TQString & str, int len = -1, QRect * brect = 0, TQTextParag ** internal = 0 )" .br .ti -1c -.BI "QRect \fBboundingRect\fR ( int x, int y, int w, int h, int flags, const TQString &, int len = -1, QTextParag ** intern = 0 )" +.BI "QRect \fBboundingRect\fR ( int x, int y, int w, int h, int flags, const TQString &, int len = -1, TQTextParag ** intern = 0 )" .br .ti -1c -.BI "QRect \fBboundingRect\fR ( const QRect & r, int flags, const TQString & str, int len = -1, QTextParag ** internal = 0 )" +.BI "QRect \fBboundingRect\fR ( const QRect & r, int flags, const TQString & str, int len = -1, TQTextParag ** internal = 0 )" .br .ti -1c .BI "int \fBtabStops\fR () const" @@ -694,7 +694,7 @@ Example: .fi .PP See also end(). -.SH "QRect QPainter::boundingRect ( int x, int y, int w, int h, int flags, const TQString &, int len = -1, QTextParag ** intern = 0 )" +.SH "QRect QPainter::boundingRect ( int x, int y, int w, int h, int flags, const TQString &, int len = -1, TQTextParag ** intern = 0 )" Returns the bounding rectangle of the aligned text that would be printed with the corresponding drawText() function using the first \fIlen\fR characters of the string if \fIlen\fR is > -1, or the whole of the string if \fIlen\fR is -1. The drawing, and hence the bounding rectangle, is constrained to the rectangle that begins at point \fI(x, y)\fR with width \fIw\fR and hight \fIh\fR, or to the rectangle required to draw the text, whichever is the larger. .PP The \fIflags\fR argument is the bitwise OR of the following flags: <center>.nf @@ -711,7 +711,7 @@ If several of the horizontal or several of the vertical alignment flags are set, The \fIintern\fR parameter should not be used. .PP See also TQt::TextFlags. -.SH "QRect QPainter::boundingRect ( const QRect & r, int flags, const TQString & str, int len = -1, QTextParag ** internal = 0 )" +.SH "QRect QPainter::boundingRect ( const QRect & r, int flags, const TQString & str, int len = -1, TQTextParag ** internal = 0 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the bounding rectangle of the aligned text that would be printed with the corresponding drawText() function using the first \fIlen\fR characters from \fIstr\fR if \fIlen\fR is > -1, or the whole of \fIstr\fR if \fIlen\fR is -1. The drawing, and hence the bounding rectangle, is constrained to the rectangle \fIr\fR, or to the rectangle required to draw the text, whichever is the larger. @@ -994,11 +994,11 @@ See also QPainter::TextDirection. This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Draws the text from position \fIpos\fR, at point \fI(x, y)\fR. If \fIlen\fR is -1 the entire string is drawn, otherwise just the first \fIlen\fR characters. The text's direction is specified by \fIdir\fR. -.SH "void QPainter::drawText ( int x, int y, int w, int h, int flags, const TQString &, int len = -1, QRect * br = 0, QTextParag ** internal = 0 )" +.SH "void QPainter::drawText ( int x, int y, int w, int h, int flags, const TQString &, int len = -1, QRect * br = 0, TQTextParag ** internal = 0 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Draws the given text within the rectangle starting at \fIx\fR, \fIy\fR, with width \fIw\fR and height \fIh\fR. If \fIlen\fR is -1 (the default) all the text is drawn, otherwise the first \fIlen\fR characters are drawn. The text's flags that are given in the \fIflags\fR parameter are TQt::AlignmentFlags and TQt::TextFlags OR'd together. \fIbr\fR (if not null) is set to the actual bounding rectangle of the output. The \fIinternal\fR parameter is for internal use only. -.SH "void QPainter::drawText ( const QRect & r, int tf, const TQString & str, int len = -1, QRect * brect = 0, QTextParag ** internal = 0 )" +.SH "void QPainter::drawText ( const QRect & r, int tf, const TQString & str, int len = -1, QRect * brect = 0, TQTextParag ** internal = 0 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Draws at most \fIlen\fR characters from \fIstr\fR in the rectangle \fIr\fR. diff --git a/doc/man/man3/tqprocess.3qt b/doc/man/man3/tqprocess.3qt index d6094baee..1a02d2f9f 100644 --- a/doc/man/man3/tqprocess.3qt +++ b/doc/man/man3/tqprocess.3qt @@ -395,13 +395,13 @@ Use of this function's return value is likely to be non-portable. .SH "TQString QProcess::readLineStderr ()\fC [virtual]\fR" Reads a line of text from standard error, excluding any trailing newline or carriage return characters and returns it. Returns TQString::null if canReadLineStderr() returns FALSE. .PP -By default, the text is interpreted to be in Latin-1 encoding. If you need other codecs, you can set a different codec with QTextCodec::setCodecForCStrings(). +By default, the text is interpreted to be in Latin-1 encoding. If you need other codecs, you can set a different codec with TQTextCodec::setCodecForCStrings(). .PP See also canReadLineStderr(), readyReadStderr(), readStderr(), and readLineStdout(). .SH "TQString QProcess::readLineStdout ()\fC [virtual]\fR" Reads a line of text from standard output, excluding any trailing newline or carriage return characters, and returns it. Returns TQString::null if canReadLineStdout() returns FALSE. .PP -By default, the text is interpreted to be in Latin-1 encoding. If you need other codecs, you can set a different codec with QTextCodec::setCodecForCStrings(). +By default, the text is interpreted to be in Latin-1 encoding. If you need other codecs, you can set a different codec with TQTextCodec::setCodecForCStrings(). .PP See also canReadLineStdout(), readyReadStdout(), readStdout(), and readLineStderr(). .SH "QByteArray QProcess::readStderr ()\fC [virtual]\fR" diff --git a/doc/man/man3/tqscrollview.3qt b/doc/man/man3/tqscrollview.3qt index baa98574c..aee662c84 100644 --- a/doc/man/man3/tqscrollview.3qt +++ b/doc/man/man3/tqscrollview.3qt @@ -13,7 +13,7 @@ QScrollView \- Scrolling area with on-demand scroll bars .PP Inherits QFrame. .PP -Inherited by TQCanvasView, QTable, QGridView, QIconView, QListBox, QListView, and QTextEdit. +Inherited by TQCanvasView, QTable, QGridView, QIconView, QListBox, QListView, and TQTextEdit. .PP .SS "Public Members" .in +1c diff --git a/doc/man/man3/tqsimplerichtext.3qt b/doc/man/man3/tqsimplerichtext.3qt index f08bf3796..834f3c16f 100644 --- a/doc/man/man3/tqsimplerichtext.3qt +++ b/doc/man/man3/tqsimplerichtext.3qt @@ -68,7 +68,7 @@ Once created, the rich text object can be queried for its width(), height(), and .PP Once constructed from a string the contents cannot be changed, only resized. If the contents change, just throw the rich text object away and make a new one with the new contents. .PP -For large documents use QTextEdit or QTextBrowser. For very small items of rich text you can use a QLabel. +For large documents use TQTextEdit or TQTextBrowser. For very small items of rich text you can use a QLabel. .PP If you are using QSimpleRichText to print in high resolution you should call setWidth(QPainter, int) so that the content will be laid out properly on the page. .PP diff --git a/doc/man/man3/tqsjiscodec.3qt b/doc/man/man3/tqsjiscodec.3qt index e04b3654c..22ae99d37 100644 --- a/doc/man/man3/tqsjiscodec.3qt +++ b/doc/man/man3/tqsjiscodec.3qt @@ -13,7 +13,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .PP \fC#include <ntqsjiscodec.h>\fR .PP -Inherits QTextCodec. +Inherits TQTextCodec. .PP .SS "Public Members" .in +1c @@ -30,7 +30,7 @@ Inherits QTextCodec. .SH DESCRIPTION The QSjisCodec class provides conversion to and from Shift-JIS. .PP -More precisely, the QSjisCodec class subclasses QTextCodec to provide support for Shift-JIS, an encoding of JIS X 0201 Latin, JIS X 0201 Kana or JIS X 0208. +More precisely, the QSjisCodec class subclasses TQTextCodec to provide support for Shift-JIS, an encoding of JIS X 0201 Latin, JIS X 0201 Kana or JIS X 0208. .PP The environment variable \fCUNICODEMAP_JP\fR can be used to fine-tune QJisCodec, QSjisCodec and QEucJpCodec. The QJisCodec documentation describes how to use this variable. .PP @@ -55,7 +55,7 @@ Destroys the Shift-JIS codec. .SH "const char * QSjisCodec::mimeName () const\fC [virtual]\fR" Returns the codec's mime name. .PP -Reimplemented from QTextCodec. +Reimplemented from TQTextCodec. .SH "SEE ALSO" .BR http://doc.trolltech.com/ntqsjiscodec.html diff --git a/doc/man/man3/tqsplitter.3qt b/doc/man/man3/tqsplitter.3qt index 59ab39e3a..0c6021a86 100644 --- a/doc/man/man3/tqsplitter.3qt +++ b/doc/man/man3/tqsplitter.3qt @@ -115,10 +115,10 @@ Inherits QFrame. .SH RELATED FUNCTION DOCUMENTATION .in +1c .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( QTextStream & ts, const QSplitter & splitter )" +.BI "TQTextStream & \fBoperator<<\fR ( TQTextStream & ts, const QSplitter & splitter )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( QTextStream & ts, QSplitter & splitter )" +.BI "TQTextStream & \fBoperator>>\fR ( TQTextStream & ts, QSplitter & splitter )" .br .in -1c .SH DESCRIPTION @@ -126,7 +126,7 @@ The QSplitter class implements a splitter widget. .PP A splitter lets the user control the size of child widgets by dragging the boundary between the children. Any number of widgets may be controlled by a single splitter. .PP -To show a QListBox, a QListView and a QTextEdit side by side: +To show a QListBox, a QListView and a TQTextEdit side by side: .PP .nf .br @@ -136,7 +136,7 @@ To show a QListBox, a QListView and a QTextEdit side by side: .br QListView *lv = new QListView( split ); .br - QTextEdit *ed = new QTextEdit( split ); + TQTextEdit *ed = new TQTextEdit( split ); .br .fi .PP @@ -297,11 +297,11 @@ By default the orientation is horizontal (the widgets are side by side). The pos .PP Set this property's value with setOrientation() and get this property's value with orientation(). .SH RELATED FUNCTION DOCUMENTATION -.SH "QTextStream & operator<< ( QTextStream & ts, const QSplitter & splitter )" +.SH "TQTextStream & operator<< ( TQTextStream & ts, const QSplitter & splitter )" Writes the sizes and the hidden state of the widgets in the splitter \fIsplitter\fR to the text stream \fIts\fR. .PP See also operator>>(), sizes(), and TQWidget::hidden. -.SH "QTextStream & operator>> ( QTextStream & ts, QSplitter & splitter )" +.SH "TQTextStream & operator>> ( TQTextStream & ts, QSplitter & splitter )" Reads the sizes and the hidden state of the widgets in the splitter \fIsplitter\fR from the text stream \fIts\fR. The sizes must have been previously written by the operator<<() function. .PP See also operator<<(), setSizes(), and TQWidget::hide(). diff --git a/doc/man/man3/tqsqlpropertymap.3qt b/doc/man/man3/tqsqlpropertymap.3qt index 8dd222df2..c5bc51d7e 100644 --- a/doc/man/man3/tqsqlpropertymap.3qt +++ b/doc/man/man3/tqsqlpropertymap.3qt @@ -123,7 +123,7 @@ Constructs a TQSqlPropertyMap. .PP The default property mappings used by TQt widgets are: <center>.nf .TS -l - l. Widgets Property QCheckBox, QRadioButton checked QComboBox, QListBox currentItem QDateEdit date QDateTimeEdit dateTime QTextBrowser source QButton, QDial, QLabel, QLineEdit, QMultiLineEdit, QPushButton, QTextEdit, text QTimeEdit time QLCDNumber, QScrollBar QSlider, QSpinBox +l - l. Widgets Property QCheckBox, QRadioButton checked QComboBox, QListBox currentItem QDateEdit date QDateTimeEdit dateTime TQTextBrowser source QButton, QDial, QLabel, QLineEdit, QMultiLineEdit, QPushButton, TQTextEdit, text QTimeEdit time QLCDNumber, QScrollBar QSlider, QSpinBox .TE .fi </center> diff --git a/doc/man/man3/tqstring.3qt b/doc/man/man3/tqstring.3qt index 596dc4098..59383a654 100644 --- a/doc/man/man3/tqstring.3qt +++ b/doc/man/man3/tqstring.3qt @@ -692,7 +692,7 @@ If only \fIunicode\fR is 0, the string is empty but has \fIlength\fR characters .PP See also isNull() and setLength(). .SH "TQString::TQString ( const char * str )" -Constructs a string that is a deep copy of \fIstr\fR, interpreted as a classic C string. The encoding is assumed to be Latin-1, unless you change it using QTextCodec::setCodecForCStrings(). +Constructs a string that is a deep copy of \fIstr\fR, interpreted as a classic C string. The encoding is assumed to be Latin-1, unless you change it using TQTextCodec::setCodecForCStrings(). .PP If \fIstr\fR is 0, then a null string is created. .PP @@ -897,7 +897,7 @@ This is the same as calling str.arg(\fIa1\fR).arg(\fIa2\fR).arg(\fIa3\fR).arg(\f .SH "const char * TQString::ascii () const" Returns an 8-bit ASCII representation of the string. .PP -If a codec has been set using QTextCodec::codecForCStrings(), it is used to convert Unicode to 8-bit char. Otherwise, this function does the same as latin1(). +If a codec has been set using TQTextCodec::codecForCStrings(), it is used to convert Unicode to 8-bit char. Otherwise, this function does the same as latin1(). .PP See also fromAscii(), latin1(), utf8(), and local8Bit(). .PP @@ -1156,7 +1156,7 @@ See also find(). .SH "TQString TQString::fromAscii ( const char * ascii, int len = -1 )\fC [static]\fR" Returns the Unicode string decoded from the first \fIlen\fR bytes of \fIascii\fR, ignoring the rest of \fIascii\fR. If \fIlen\fR is -1 then the length of \fIascii\fR is used. If \fIlen\fR is bigger than the length of \fIascii\fR then it will use the length of \fIascii\fR. .PP -If a codec has been set using QTextCodec::codecForCStrings(), it is used to convert the string from 8-bit characters to Unicode. Otherwise, this function does the same as fromLatin1(). +If a codec has been set using TQTextCodec::codecForCStrings(), it is used to convert the string from 8-bit characters to Unicode. Otherwise, this function does the same as fromLatin1(). .PP This is the same as the TQString(const char*) constructor, but you can make that constructor invisible if you compile with the define \fCTQT_NO_CAST_ASCII\fR, in which case you can explicitly create a TQString from 8-bit ASCII text using this function. .PP @@ -1187,7 +1187,7 @@ Returns the Unicode string decoded from the first \fIlen\fR bytes of \fIlocal8Bi .PP \fIlocal8Bit\fR is assumed to be encoded in a locale-specific format. .PP -See QTextCodec for more diverse coding/decoding of Unicode strings. +See TQTextCodec for more diverse coding/decoding of Unicode strings. .SH "TQString TQString::fromUcs2 ( const unsigned short * str )\fC [static]\fR" Constructs a string that is a deep copy of \fIstr\fR, interpreted as a UCS2 encoded, zero terminated, Unicode string. .PP @@ -1205,7 +1205,7 @@ Returns the Unicode string decoded from the first \fIlen\fR bytes of \fIutf8\fR, .br .fi .PP -See QTextCodec for more diverse coding/decoding of Unicode strings. +See TQTextCodec for more diverse coding/decoding of Unicode strings. .PP Example: fonts/simple-qfont-demo/viewer.cpp. .SH "TQString & TQString::insert ( uint index, const TQString & s )" @@ -1291,7 +1291,7 @@ See also isEmpty() and length(). Examples: .)l i18n/main.cpp, network/ftpclient/ftpmainwindow.ui.h, and qdir/qdir.cpp. .SH "const char * TQString::latin1 () const" -Returns a Latin-1 representation of the string. The returned value is undefined if the string contains non-Latin-1 characters. If you want to convert strings into formats other than Unicode, see the QTextCodec classes. +Returns a Latin-1 representation of the string. The returned value is undefined if the string contains non-Latin-1 characters. If you want to convert strings into formats other than Unicode, see the TQTextCodec classes. .PP This function is mainly useful for boot-strapping legacy code to use Unicode. .PP @@ -1343,9 +1343,9 @@ See also isNull() and isEmpty(). Examples: .)l dirview/dirview.cpp, fileiconview/qfileiconview.cpp, network/networkprotocol/nntp.cpp, rot13/rot13.cpp, and themes/themes.cpp. .SH "QCString TQString::local8Bit () const" -Returns the string encoded in a locale-specific format. On X11, this is the QTextCodec::codecForLocale(). On Windows, it is a system-defined encoding. On Mac OS X, this always uses UTF-8 as the encoding. +Returns the string encoded in a locale-specific format. On X11, this is the TQTextCodec::codecForLocale(). On Windows, it is a system-defined encoding. On Mac OS X, this always uses UTF-8 as the encoding. .PP -See QTextCodec for more diverse coding/decoding of Unicode strings. +See TQTextCodec for more diverse coding/decoding of Unicode strings. .PP See also fromLocal8Bit(), ascii(), latin1(), and utf8(). .SH "int TQString::localeAwareCompare ( const TQString & s1, const TQString & s2 )\fC [static]\fR" @@ -1353,7 +1353,7 @@ Compares \fIs1\fR with \fIs2\fR and returns an integer less than, equal to, or g .PP The comparison is performed in a locale- and also platform-dependent manner. Use this function to present sorted lists of strings to the user. .PP -See also TQString::compare() and QTextCodec::locale(). +See also TQString::compare() and TQTextCodec::locale(). .SH "int TQString::localeAwareCompare ( const TQString & s ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP @@ -2058,7 +2058,7 @@ See also stripWhiteSpace(). .SH "TQString & TQString::sprintf ( const char * cformat, ... )" Safely builds a formatted string from the format string \fIcformat\fR and an arbitrary list of arguments. The format string supports all the escape sequences of printf() in the standard C library. .PP -The %s escape sequence expects a utf8() encoded string. The format string \fIcformat\fR is expected to be in latin1. If you need a Unicode format string, use arg() instead. For typesafe string building, with full Unicode support, you can use QTextOStream like this: +The %s escape sequence expects a utf8() encoded string. The format string \fIcformat\fR is expected to be in latin1. If you need a Unicode format string, use arg() instead. For typesafe string building, with full Unicode support, you can use TQTextOStream like this: .PP .nf .br @@ -2068,7 +2068,7 @@ The %s escape sequence expects a utf8() encoded string. The format string \fIcfo .br int x = ...; .br - QTextOStream( &str ) << s << " : " << x; + TQTextOStream( &str ) << s << " : " << x; .br .fi .PP @@ -2394,7 +2394,7 @@ Examples: .SH "QCString TQString::utf8 () const" Returns the string encoded in UTF-8 format. .PP -See QTextCodec for more diverse coding/decoding of Unicode strings. +See TQTextCodec for more diverse coding/decoding of Unicode strings. .PP See also fromUtf8(), ascii(), latin1(), and local8Bit(). .PP diff --git a/doc/man/man3/tqstylesheet.3qt b/doc/man/man3/tqstylesheet.3qt index 19e069432..994e8dddb 100644 --- a/doc/man/man3/tqstylesheet.3qt +++ b/doc/man/man3/tqstylesheet.3qt @@ -28,7 +28,7 @@ Inherits TQObject. .BI "const QStyleSheetItem * \fBitem\fR ( const TQString & name ) const" .br .ti -1c -.BI "virtual QTextCustomItem * \fBtag\fR ( const TQString & name, const TQMap<TQString, TQString> & attr, const TQString & context, const QMimeSourceFactory & factory, bool emptyTag, QTextDocument * doc ) const" +.BI "virtual TQTextCustomItem * \fBtag\fR ( const TQString & name, const TQMap<TQString, TQString> & attr, const TQString & context, const QMimeSourceFactory & factory, bool emptyTag, TQTextDocument * doc ) const" .br .ti -1c .BI "virtual void \fBscaleFont\fR ( QFont & font, int logicalSize ) const" @@ -58,7 +58,7 @@ Inherits TQObject. .SH DESCRIPTION The QStyleSheet class is a collection of styles for rich text rendering and a generator of tags. .PP -By creating QStyleSheetItem objects for a style sheet you build a definition of a set of tags. This definition will be used by the internal rich text rendering system to parse and display text documents to which the style sheet applies. Rich text is normally visualized in a QTextEdit or a QTextBrowser. However, QLabel, QWhatsThis and QMessageBox also support it, and other classes are likely to follow. With QSimpleRichText it is possible to use the rich text renderer for custom widgets as well. +By creating QStyleSheetItem objects for a style sheet you build a definition of a set of tags. This definition will be used by the internal rich text rendering system to parse and display text documents to which the style sheet applies. Rich text is normally visualized in a TQTextEdit or a TQTextBrowser. However, QLabel, QWhatsThis and QMessageBox also support it, and other classes are likely to follow. With QSimpleRichText it is possible to use the rich text renderer for custom widgets as well. .PP The default QStyleSheet object has the following style bindings, sorted by structuring bindings, anchors, character style bindings (i.e. inline styles), special elements such as horizontal lines or images, and other tags. In addition, rich text supports simple HTML tables. .PP @@ -152,7 +152,7 @@ See also escape(). Examples: .)l action/application.cpp, application/application.cpp, and mdi/application.cpp. .SH "QStyleSheet * QStyleSheet::defaultSheet ()\fC [static]\fR" -Returns the application-wide default style sheet. This style sheet is used by rich text rendering classes such as QSimpleRichText, QWhatsThis and QMessageBox to define the rendering style and available tags within rich text documents. It also serves as the initial style sheet for the more complex render widgets, QTextEdit and QTextBrowser. +Returns the application-wide default style sheet. This style sheet is used by rich text rendering classes such as QSimpleRichText, QWhatsThis and QMessageBox to define the rendering style and available tags within rich text documents. It also serves as the initial style sheet for the more complex render widgets, TQTextEdit and TQTextBrowser. .PP See also setDefaultSheet(). .SH "void QStyleSheet::error ( const TQString & msg ) const\fC [virtual]\fR" @@ -187,7 +187,7 @@ See also QStyleSheetItem::logicalFontSize(), QStyleSheetItem::logicalFontSizeSte Sets the application-wide default style sheet to \fIsheet\fR, deleting any style sheet previously set. The ownership is transferred to QStyleSheet. .PP See also defaultSheet(). -.SH "QTextCustomItem * QStyleSheet::tag ( const TQString & name, const TQMap<TQString, TQString> & attr, const TQString & context, const QMimeSourceFactory & factory, bool emptyTag, QTextDocument * doc ) const\fC [virtual]\fR" +.SH "TQTextCustomItem * QStyleSheet::tag ( const TQString & name, const TQMap<TQString, TQString> & attr, const TQString & context, const QMimeSourceFactory & factory, bool emptyTag, TQTextDocument * doc ) const\fC [virtual]\fR" \fBThis function is under development and is subject to change.\fR .PP Generates an internal object for the tag called \fIname\fR, given the attributes \fIattr\fR, and using additional information provided by the mime source factory \fIfactory\fR. diff --git a/doc/man/man3/tqsyntaxhighlighter.3qt b/doc/man/man3/tqsyntaxhighlighter.3qt index d6cf2e718..15898d33f 100644 --- a/doc/man/man3/tqsyntaxhighlighter.3qt +++ b/doc/man/man3/tqsyntaxhighlighter.3qt @@ -7,7 +7,7 @@ .ad l .nh .SH NAME -QSyntaxHighlighter \- Base class for implementing QTextEdit syntax highlighters +QSyntaxHighlighter \- Base class for implementing TQTextEdit syntax highlighters .SH SYNOPSIS \fC#include <ntqsyntaxhighlighter.h>\fR .PP @@ -16,7 +16,7 @@ Inherits Qt. .SS "Public Members" .in +1c .ti -1c -.BI "\fBQSyntaxHighlighter\fR ( QTextEdit * textEdit )" +.BI "\fBQSyntaxHighlighter\fR ( TQTextEdit * textEdit )" .br .ti -1c .BI "virtual \fB~QSyntaxHighlighter\fR ()" @@ -34,7 +34,7 @@ Inherits Qt. .BI "void \fBsetFormat\fR ( int start, int count, const QFont & font )" .br .ti -1c -.BI "QTextEdit * \fBtextEdit\fR () const" +.BI "TQTextEdit * \fBtextEdit\fR () const" .br .ti -1c .BI "void \fBrehighlight\fR ()" @@ -44,17 +44,17 @@ Inherits Qt. .br .in -1c .SH DESCRIPTION -The QSyntaxHighlighter class is a base class for implementing QTextEdit syntax highlighters. +The QSyntaxHighlighter class is a base class for implementing TQTextEdit syntax highlighters. .PP -A syntax highligher automatically highlights parts of the text in a QTextEdit. Syntax highlighters are often used when the user is entering text in a specific format (for example, source code) and help the user to read the text and identify syntax errors. +A syntax highligher automatically highlights parts of the text in a TQTextEdit. Syntax highlighters are often used when the user is entering text in a specific format (for example, source code) and help the user to read the text and identify syntax errors. .PP -To provide your own syntax highlighting for QTextEdit, you must subclass QSyntaxHighlighter and reimplement highlightParagraph(). +To provide your own syntax highlighting for TQTextEdit, you must subclass QSyntaxHighlighter and reimplement highlightParagraph(). .PP -When you create an instance of your QSyntaxHighlighter subclass, pass it the QTextEdit that you want the syntax highlighting to be applied to. After this your highlightParagraph() function will be called automatically whenever necessary. Use your highlightParagraph() function to apply formatting (e.g. setting the font and color) to the text that is passed to it. +When you create an instance of your QSyntaxHighlighter subclass, pass it the TQTextEdit that you want the syntax highlighting to be applied to. After this your highlightParagraph() function will be called automatically whenever necessary. Use your highlightParagraph() function to apply formatting (e.g. setting the font and color) to the text that is passed to it. .PP See also Basic Widgets and Text Related Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QSyntaxHighlighter::QSyntaxHighlighter ( QTextEdit * textEdit )" +.SH "QSyntaxHighlighter::QSyntaxHighlighter ( TQTextEdit * textEdit )" Constructs the QSyntaxHighlighter and installs it on \fItextEdit\fR. .PP It is the caller's responsibility to delete the QSyntaxHighlighter when it is no longer needed. @@ -90,8 +90,8 @@ The specified \fIfont\fR and \fIcolor\fR are applied to the text from position \ This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .SH "void QSyntaxHighlighter::setFormat ( int start, int count, const QFont & font )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.SH "QTextEdit * QSyntaxHighlighter::textEdit () const" -Returns the QTextEdit on which this syntax highlighter is +.SH "TQTextEdit * QSyntaxHighlighter::textEdit () const" +Returns the TQTextEdit on which this syntax highlighter is installed .SH "SEE ALSO" diff --git a/doc/man/man3/tqt.3qt b/doc/man/man3/tqt.3qt index 600864301..46022863f 100644 --- a/doc/man/man3/tqt.3qt +++ b/doc/man/man3/tqt.3qt @@ -1220,7 +1220,7 @@ This enum is used in widgets that can display both plain text and rich text, e.g .TP \fCQt::AutoText\fR - The text string is interpreted as for RichText if QStyleSheet::mightBeRichText() returns TRUE, otherwise as PlainText. .TP -\fCQt::LogText\fR - A special, limited text format which is only used by QTextEdit in an optimized mode. +\fCQt::LogText\fR - A special, limited text format which is only used by TQTextEdit in an optimized mode. .SH "TQt::TimeSpec" .TP \fCQt::LocalTime\fR - Locale dependent time (Timezones and Daylight Savings Time) diff --git a/doc/man/man3/tqtextbrowser.3qt b/doc/man/man3/tqtextbrowser.3qt index f045cb4a6..2caf9554f 100644 --- a/doc/man/man3/tqtextbrowser.3qt +++ b/doc/man/man3/tqtextbrowser.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTextBrowser 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTextBrowser 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,16 +7,16 @@ .ad l .nh .SH NAME -QTextBrowser \- Rich text browser with hypertext navigation +TQTextBrowser \- Rich text browser with hypertext navigation .SH SYNOPSIS -\fC#include <ntqtextbrowser.h>\fR +\fC#include <tqtextbrowser.h>\fR .PP -Inherits QTextEdit. +Inherits TQTextEdit. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQTextBrowser\fR ( TQWidget * parent = 0, const char * name = 0 )" +.BI "\fBTQTextBrowser\fR ( TQWidget * parent = 0, const char * name = 0 )" .br .ti -1c .BI "TQString \fBsource\fR () const" @@ -89,13 +89,13 @@ Inherits QTextEdit. .br .in -1c .SH DESCRIPTION -The QTextBrowser class provides a rich text browser with hypertext navigation. +The TQTextBrowser class provides a rich text browser with hypertext navigation. .PP -This class extends QTextEdit (in read-only mode), adding some navigation functionality so that users can follow links in hypertext documents. The contents of QTextEdit is set with setText(), but QTextBrowser has an additional function, setSource(), which makes it possible to set the text to a named document. The name is looked up in the text view's mime source factory. If a document name ends with an anchor (for example, "\fC#anchor"\fR), the text browser automatically scrolls to that position (using scrollToAnchor()). When the user clicks on a hyperlink, the browser will call setSource() itself, with the link's \fChref\fR value as argument. You can track the current source by connetion to the sourceChanged() signal. +This class extends TQTextEdit (in read-only mode), adding some navigation functionality so that users can follow links in hypertext documents. The contents of TQTextEdit is set with setText(), but TQTextBrowser has an additional function, setSource(), which makes it possible to set the text to a named document. The name is looked up in the text view's mime source factory. If a document name ends with an anchor (for example, "\fC#anchor"\fR), the text browser automatically scrolls to that position (using scrollToAnchor()). When the user clicks on a hyperlink, the browser will call setSource() itself, with the link's \fChref\fR value as argument. You can track the current source by connetion to the sourceChanged() signal. .PP -QTextBrowser provides backward() and forward() slots which you can use to implement Back and Forward buttons. The home() slot sets the text to the very first document displayed. The linkClicked() signal is emitted when the user clicks a link. +TQTextBrowser provides backward() and forward() slots which you can use to implement Back and Forward buttons. The home() slot sets the text to the very first document displayed. The linkClicked() signal is emitted when the user clicks a link. .PP -By using QTextEdit::setMimeSourceFactory() you can provide your own subclass of QMimeSourceFactory. This makes it possible to access data from anywhere, for example from a network or from a database. See QMimeSourceFactory::data() for details. +By using TQTextEdit::setMimeSourceFactory() you can provide your own subclass of QMimeSourceFactory. This makes it possible to access data from anywhere, for example from a network or from a database. See QMimeSourceFactory::data() for details. .PP If you intend using the mime factory to read the data directly from the file system, you may have to specify the encoding for the file extension you are using. For example: .PP @@ -106,9 +106,9 @@ If you intend using the mime factory to read the data directly from the file sys .fi This is to ensure that the factory is able to resolve the document names. .PP -QTextBrowser interprets the tags it processes in accordance with the default style sheet. Change the style sheet with setStyleSheet(); see QStyleSheet for details. +TQTextBrowser interprets the tags it processes in accordance with the default style sheet. Change the style sheet with setStyleSheet(); see QStyleSheet for details. .PP -If you want to provide your users with editable rich text use QTextEdit. If you want a text browser without hypertext navigation use QTextEdit, and use QTextEdit::setReadOnly() to disable editing. If you just need to display a small piece of rich text use QSimpleRichText or QLabel. +If you want to provide your users with editable rich text use TQTextEdit. If you want a text browser without hypertext navigation use TQTextEdit, and use TQTextEdit::setReadOnly() to disable editing. If you just need to display a small piece of rich text use QSimpleRichText or QLabel. .PP .ce 1 .B "[Image Omitted]" @@ -119,41 +119,41 @@ If you want to provide your users with editable rich text use QTextEdit. If you .PP See also Advanced Widgets, Help System, and Text Related Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTextBrowser::QTextBrowser ( TQWidget * parent = 0, const char * name = 0 )" -Constructs an empty QTextBrowser called \fIname\fR, with parent \fIparent\fR. -.SH "void QTextBrowser::anchorClicked ( const TQString & name, const TQString & link )\fC [signal]\fR" +.SH "TQTextBrowser::TQTextBrowser ( TQWidget * parent = 0, const char * name = 0 )" +Constructs an empty TQTextBrowser called \fIname\fR, with parent \fIparent\fR. +.SH "void TQTextBrowser::anchorClicked ( const TQString & name, const TQString & link )\fC [signal]\fR" This signal is emitted when the user clicks an anchor. The \fIlink\fR is the value of the \fChref\fR i.e. the name of the target document. The \fIname\fR is the name of the anchor. .PP See also linkClicked(). -.SH "void QTextBrowser::backward ()\fC [virtual slot]\fR" +.SH "void TQTextBrowser::backward ()\fC [virtual slot]\fR" Changes the document displayed to the previous document in the list of documents built by navigating links. Does nothing if there is no previous document. .PP See also forward() and backwardAvailable(). .PP Example: helpviewer/helpwindow.cpp. -.SH "void QTextBrowser::backwardAvailable ( bool available )\fC [signal]\fR" +.SH "void TQTextBrowser::backwardAvailable ( bool available )\fC [signal]\fR" This signal is emitted when the availability of backward() changes. \fIavailable\fR is FALSE when the user is at home(); otherwise it is TRUE. .PP Example: helpviewer/helpwindow.cpp. -.SH "void QTextBrowser::forward ()\fC [virtual slot]\fR" +.SH "void TQTextBrowser::forward ()\fC [virtual slot]\fR" Changes the document displayed to the next document in the list of documents built by navigating links. Does nothing if there is no next document. .PP See also backward() and forwardAvailable(). .PP Example: helpviewer/helpwindow.cpp. -.SH "void QTextBrowser::forwardAvailable ( bool available )\fC [signal]\fR" +.SH "void TQTextBrowser::forwardAvailable ( bool available )\fC [signal]\fR" This signal is emitted when the availability of forward() changes. \fIavailable\fR is TRUE after the user navigates backward() and FALSE when the user navigates or goes forward(). .PP Example: helpviewer/helpwindow.cpp. -.SH "void QTextBrowser::highlighted ( const TQString & link )\fC [signal]\fR" +.SH "void TQTextBrowser::highlighted ( const TQString & link )\fC [signal]\fR" This signal is emitted when the user has selected but not activated a link in the document. \fIlink\fR is the value of the \fChref\fR i.e. the name of the target document. .PP Example: helpviewer/helpwindow.cpp. -.SH "void QTextBrowser::home ()\fC [virtual slot]\fR" +.SH "void TQTextBrowser::home ()\fC [virtual slot]\fR" Changes the document displayed to be the first document the browser displayed. .PP Example: helpviewer/helpwindow.cpp. -.SH "void QTextBrowser::keyPressEvent ( QKeyEvent * e )\fC [virtual protected]\fR" +.SH "void TQTextBrowser::keyPressEvent ( QKeyEvent * e )\fC [virtual protected]\fR" The event \fIe\fR is used to provide the following keyboard shortcuts: <center>.nf .TS l - l. Keypress Action Alt+Left Arrow backward() Alt+Right Arrow forward() Alt+Up Arrow @@ -161,20 +161,20 @@ l - l. Keypress Action Alt+Left Arrow backward() Alt+Right Arrow forward() Alt+U .fi </center> .PP -Reimplemented from QTextEdit. -.SH "void QTextBrowser::linkClicked ( const TQString & link )\fC [signal]\fR" +Reimplemented from TQTextEdit. +.SH "void TQTextBrowser::linkClicked ( const TQString & link )\fC [signal]\fR" This signal is emitted when the user clicks a link. The \fIlink\fR is the value of the \fChref\fR i.e. the name of the target document. .PP The \fIlink\fR will be the absolute location of the document, based on the value of the anchor's href tag and the current context of the document. .PP See also anchorClicked() and context(). -.SH "void QTextBrowser::reload ()\fC [virtual slot]\fR" +.SH "void TQTextBrowser::reload ()\fC [virtual slot]\fR" Reloads the current set source. -.SH "void QTextBrowser::setSource ( const TQString & name )\fC [virtual slot]\fR" +.SH "void TQTextBrowser::setSource ( const TQString & name )\fC [virtual slot]\fR" Sets the name of the displayed document to \fIname\fR. See the "source" property for details. -.SH "TQString QTextBrowser::source () const" +.SH "TQString TQTextBrowser::source () const" Returns the name of the displayed document. See the "source" property for details. -.SH "void QTextBrowser::sourceChanged ( const TQString & src )\fC [signal]\fR" +.SH "void TQTextBrowser::sourceChanged ( const TQString & src )\fC [signal]\fR" This signal is emitted when the mime source has changed, \fIsrc\fR being the new source. .PP Source changes happen both programmatically when calling setSource(), forward(), backword() or home() or when the user clicks on links or presses the equivalent key sequences. @@ -206,7 +206,7 @@ This property holds whether undo and redo are enabled. .PP .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqtextbrowser.html +.BR http://doc.trolltech.com/tqtextbrowser.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqtextcodec.3qt b/doc/man/man3/tqtextcodec.3qt index a16d0059d..25beae66b 100644 --- a/doc/man/man3/tqtextcodec.3qt +++ b/doc/man/man3/tqtextcodec.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTextCodec 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTextCodec 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,18 +7,18 @@ .ad l .nh .SH NAME -QTextCodec \- Conversion between text encodings +TQTextCodec \- Conversion between text encodings .SH SYNOPSIS -Almost all the functions in this class are reentrant when TQt is built with thread support. The exceptions are \fB~QTextCodec\fR(), \fBsetCodecForTr\fR(), \fBsetCodecForCStrings\fR(), and \fBQTextCodec\fR(). </p> +Almost all the functions in this class are reentrant when TQt is built with thread support. The exceptions are \fB~TQTextCodec\fR(), \fBsetCodecForTr\fR(), \fBsetCodecForCStrings\fR(), and \fBTQTextCodec\fR(). </p> .PP -\fC#include <ntqtextcodec.h>\fR +\fC#include <tqtextcodec.h>\fR .PP Inherited by QBig5Codec, QBig5hkscsCodec, QEucJpCodec, QEucKrCodec, QGb18030Codec, QJisCodec, QHebrewCodec, QSjisCodec, and QTsciiCodec. .PP .SS "Public Members" .in +1c .ti -1c -.BI "virtual \fB~QTextCodec\fR ()" +.BI "virtual \fB~TQTextCodec\fR ()" .br .ti -1c .BI "virtual const char * \fBname\fR () const = 0" @@ -30,10 +30,10 @@ Inherited by QBig5Codec, QBig5hkscsCodec, QEucJpCodec, QEucKrCodec, QGb18030Code .BI "virtual int \fBmibEnum\fR () const = 0" .br .ti -1c -.BI "virtual QTextDecoder * \fBmakeDecoder\fR () const" +.BI "virtual TQTextDecoder * \fBmakeDecoder\fR () const" .br .ti -1c -.BI "virtual QTextEncoder * \fBmakeEncoder\fR () const" +.BI "virtual TQTextEncoder * \fBmakeEncoder\fR () const" .br .ti -1c .BI "virtual TQString \fBtoUnicode\fR ( const char * chars, int len ) const" @@ -75,40 +75,40 @@ Inherited by QBig5Codec, QBig5hkscsCodec, QEucJpCodec, QEucKrCodec, QGb18030Code .SS "Static Public Members" .in +1c .ti -1c -.BI "QTextCodec * \fBloadCharmap\fR ( TQIODevice * iod )" +.BI "TQTextCodec * \fBloadCharmap\fR ( TQIODevice * iod )" .br .ti -1c -.BI "QTextCodec * \fBloadCharmapFile\fR ( TQString filename )" +.BI "TQTextCodec * \fBloadCharmapFile\fR ( TQString filename )" .br .ti -1c -.BI "QTextCodec * \fBcodecForMib\fR ( int mib )" +.BI "TQTextCodec * \fBcodecForMib\fR ( int mib )" .br .ti -1c -.BI "QTextCodec * \fBcodecForName\fR ( const char * name, int accuracy = 0 )" +.BI "TQTextCodec * \fBcodecForName\fR ( const char * name, int accuracy = 0 )" .br .ti -1c -.BI "QTextCodec * \fBcodecForContent\fR ( const char * chars, int len )" +.BI "TQTextCodec * \fBcodecForContent\fR ( const char * chars, int len )" .br .ti -1c -.BI "QTextCodec * \fBcodecForIndex\fR ( int i )" +.BI "TQTextCodec * \fBcodecForIndex\fR ( int i )" .br .ti -1c -.BI "QTextCodec * \fBcodecForLocale\fR ()" +.BI "TQTextCodec * \fBcodecForLocale\fR ()" .br .ti -1c -.BI "void \fBsetCodecForLocale\fR ( QTextCodec * c )" +.BI "void \fBsetCodecForLocale\fR ( TQTextCodec * c )" .br .ti -1c -.BI "QTextCodec * \fBcodecForTr\fR ()" +.BI "TQTextCodec * \fBcodecForTr\fR ()" .br .ti -1c -.BI "void \fBsetCodecForTr\fR ( QTextCodec * c )" +.BI "void \fBsetCodecForTr\fR ( TQTextCodec * c )" .br .ti -1c -.BI "QTextCodec * \fBcodecForCStrings\fR ()" +.BI "TQTextCodec * \fBcodecForCStrings\fR ()" .br .ti -1c -.BI "void \fBsetCodecForCStrings\fR ( QTextCodec * c )" +.BI "void \fBsetCodecForCStrings\fR ( TQTextCodec * c )" .br .ti -1c .BI "void \fBdeleteAllCodecs\fR ()" @@ -120,7 +120,7 @@ Inherited by QBig5Codec, QBig5hkscsCodec, QEucJpCodec, QEucKrCodec, QGb18030Code .SS "Protected Members" .in +1c .ti -1c -.BI "\fBQTextCodec\fR ()" +.BI "\fBTQTextCodec\fR ()" .br .in -1c .SS "Static Protected Members" @@ -130,11 +130,11 @@ Inherited by QBig5Codec, QBig5hkscsCodec, QEucJpCodec, QEucKrCodec, QGb18030Code .br .in -1c .SH DESCRIPTION -The QTextCodec class provides conversion between text encodings. +The TQTextCodec class provides conversion between text encodings. .PP Qt uses Unicode to store, draw and manipulate strings. In many situations you may wish to deal with data that uses a different encoding. For example, most Japanese documents are still stored in Shift-JIS or ISO2022, while Russian users often have their documents in KOI8-R or CP1251. .PP -Qt provides a set of QTextCodec classes to help with converting non-Unicode formats to and from Unicode. You can also create your own codec classes (see later). +Qt provides a set of TQTextCodec classes to help with converting non-Unicode formats to and from Unicode. You can also create your own codec classes (see later). .PP The supported encodings are: .TP @@ -224,13 +224,13 @@ Apple Roman .TP TIS-620 -- Thai .PP -QTextCodecs can be used as follows to convert some locally encoded string to Unicode. Suppose you have some string encoded in Russian KOI8-R encoding, and want to convert it to Unicode. The simple way to do this is: +TQTextCodecs can be used as follows to convert some locally encoded string to Unicode. Suppose you have some string encoded in Russian KOI8-R encoding, and want to convert it to Unicode. The simple way to do this is: .PP .nf .br QCString locallyEncoded = "..."; // text to convert .br - QTextCodec *codec = QTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R + TQTextCodec *codec = TQTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R .br TQString unicodeString = codec->toUnicode( locallyEncoded ); .br @@ -242,7 +242,7 @@ After this, \fCunicodeString\fR holds the text converted to Unicode. Converting .br TQString unicodeString = "..."; // any Unicode text .br - QTextCodec *codec = QTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R + TQTextCodec *codec = TQTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R .br QCString locallyEncoded = codec->fromUnicode( unicodeString ); .br @@ -250,13 +250,13 @@ After this, \fCunicodeString\fR holds the text converted to Unicode. Converting .PP Some care must be taken when trying to convert the data in chunks, for example, when receiving it over a network. In such cases it is possible that a multi-byte character will be split over two chunks. At best this might result in the loss of a character and at worst cause the entire conversion to fail. .PP -The approach to use in these situations is to create a QTextDecoder object for the codec and use this QTextDecoder for the whole decoding process, as shown below: +The approach to use in these situations is to create a TQTextDecoder object for the codec and use this TQTextDecoder for the whole decoding process, as shown below: .PP .nf .br - QTextCodec *codec = QTextCodec::codecForName( "Shift-JIS" ); + TQTextCodec *codec = TQTextCodec::codecForName( "Shift-JIS" ); .br - QTextDecoder *decoder = codec->makeDecoder(); + TQTextDecoder *decoder = codec->makeDecoder(); .br .br TQString unicodeString; @@ -271,17 +271,17 @@ The approach to use in these situations is to create a QTextDecoder object for t .br .fi .PP -The QTextDecoder object maintains state between chunks and therefore works correctly even if a multi-byte character is split between chunks. +The TQTextDecoder object maintains state between chunks and therefore works correctly even if a multi-byte character is split between chunks. .SH "Creating your own Codec class" -Support for new text encodings can be added to TQt by creating QTextCodec subclasses. +Support for new text encodings can be added to TQt by creating TQTextCodec subclasses. .PP -Built-in codecs can be overridden by custom codecs since more recently created QTextCodec objects take precedence over earlier ones. +Built-in codecs can be overridden by custom codecs since more recently created TQTextCodec objects take precedence over earlier ones. .PP You may find it more convenient to make your codec class available as a plugin; see the plugin documentation for more details. .PP -The abstract virtual functions describe the encoder to the system and the coder is used as required in the different text file formats supported by QTextStream, and under X11, for the locale-specific character input and output. +The abstract virtual functions describe the encoder to the system and the coder is used as required in the different text file formats supported by TQTextStream, and under X11, for the locale-specific character input and output. .PP -To add support for another 8-bit encoding to Qt, make a subclass of QTextCodec and implement at least the following methods: +To add support for another 8-bit encoding to Qt, make a subclass of TQTextCodec and implement at least the following methods: .PP .nf .br @@ -301,10 +301,10 @@ If the encoding is multi-byte then it will have "state"; that is, the interpreta .PP .nf .br - QTextDecoder* makeDecoder() const + TQTextDecoder* makeDecoder() const .br .fi -Return a QTextDecoder that remembers incomplete multi-byte sequence prefixes or other required state. +Return a TQTextDecoder that remembers incomplete multi-byte sequence prefixes or other required state. .PP If the encoding does \fInot\fR require state, you should implement: .PP @@ -315,16 +315,16 @@ If the encoding does \fInot\fR require state, you should implement: .fi Converts \fIlen\fR characters from \fIchars\fR to Unicode. .PP -The base QTextCodec class has default implementations of the above two functions, \fIbut they are mutually recursive\fR, so you must re-implement at least one of them, or both for improved efficiency. +The base TQTextCodec class has default implementations of the above two functions, \fIbut they are mutually recursive\fR, so you must re-implement at least one of them, or both for improved efficiency. .PP For conversion from Unicode to 8-bit encodings, it is rarely necessary to maintain state. However, two functions similar to the two above are used for encoding: .PP .nf .br - QTextEncoder* makeEncoder() const + TQTextEncoder* makeEncoder() const .br .fi -Return a QTextEncoder. +Return a TQTextEncoder. .PP .nf .br @@ -346,7 +346,7 @@ Gives a value indicating how likely it is that \fIlen\fR characters from \fIchar .PP A good model for this function is the QWindowsLocalCodec::heuristicContentMatch function found in the TQt sources. .PP -A QTextCodec subclass might have improved performance if you also re-implement: +A TQTextCodec subclass might have improved performance if you also re-implement: .PP .nf .br @@ -373,26 +373,26 @@ Codecs can also be created as plugins. .PP See also Internationalization with Qt. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTextCodec::QTextCodec ()\fC [protected]\fR" +.SH "TQTextCodec::TQTextCodec ()\fC [protected]\fR" \fBWarning:\fR This function is \fInot\fR reentrant.</p> .PP -Constructs a QTextCodec, and gives it the highest precedence. The QTextCodec should always be constructed on the heap (i.e. with \fCnew\fR). TQt takes ownership and will delete it when the application terminates. -.SH "QTextCodec::~QTextCodec ()\fC [virtual]\fR" +Constructs a TQTextCodec, and gives it the highest precedence. The TQTextCodec should always be constructed on the heap (i.e. with \fCnew\fR). TQt takes ownership and will delete it when the application terminates. +.SH "TQTextCodec::~TQTextCodec ()\fC [virtual]\fR" \fBWarning:\fR This function is \fInot\fR reentrant.</p> .PP -Destroys the QTextCodec. Note that you should not delete codecs yourself: once created they become Qt's responsibility. -.SH "bool QTextCodec::canEncode ( TQChar ch ) const\fC [virtual]\fR" +Destroys the TQTextCodec. Note that you should not delete codecs yourself: once created they become Qt's responsibility. +.SH "bool TQTextCodec::canEncode ( TQChar ch ) const\fC [virtual]\fR" Returns TRUE if the Unicode character \fIch\fR can be fully encoded with this codec; otherwise returns FALSE. The default implementation tests if the result of toUnicode(fromUnicode(ch)) is the original \fIch\fR. Subclasses may be able to improve the efficiency. -.SH "bool QTextCodec::canEncode ( const TQString & s ) const\fC [virtual]\fR" +.SH "bool TQTextCodec::canEncode ( const TQString & s ) const\fC [virtual]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fIs\fR contains the string being tested for encode-ability. -.SH "QTextCodec * QTextCodec::codecForCStrings ()\fC [static]\fR" +.SH "TQTextCodec * TQTextCodec::codecForCStrings ()\fC [static]\fR" Returns the codec used by TQString to convert to and from const char* and QCStrings. If this function returns 0 (the default), TQString assumes Latin-1. .PP See also setCodecForCStrings(). -.SH "QTextCodec * QTextCodec::codecForContent ( const char * chars, int len )\fC [static]\fR" -Searches all installed QTextCodec objects, returning the one which most recognizes the given content. May return 0. +.SH "TQTextCodec * TQTextCodec::codecForContent ( const char * chars, int len )\fC [static]\fR" +Searches all installed TQTextCodec objects, returning the one which most recognizes the given content. May return 0. .PP Note that this is often a poor choice, since character encodings often use most of the available character sequences, and so only by linguistic analysis could a true match be made. .PP @@ -401,99 +401,99 @@ Note that this is often a poor choice, since character encodings often use most See also heuristicContentMatch(). .PP Example: qwerty/qwerty.cpp. -.SH "QTextCodec * QTextCodec::codecForIndex ( int i )\fC [static]\fR" -Returns the QTextCodec \fIi\fR positions from the most recently inserted codec, or 0 if there is no such QTextCodec. Thus, codecForIndex(0) returns the most recently created QTextCodec. +.SH "TQTextCodec * TQTextCodec::codecForIndex ( int i )\fC [static]\fR" +Returns the TQTextCodec \fIi\fR positions from the most recently inserted codec, or 0 if there is no such TQTextCodec. Thus, codecForIndex(0) returns the most recently created TQTextCodec. .PP Example: qwerty/qwerty.cpp. -.SH "QTextCodec * QTextCodec::codecForLocale ()\fC [static]\fR" +.SH "TQTextCodec * TQTextCodec::codecForLocale ()\fC [static]\fR" Returns a pointer to the codec most suitable for this locale. .PP Example: qwerty/qwerty.cpp. -.SH "QTextCodec * QTextCodec::codecForMib ( int mib )\fC [static]\fR" -Returns the QTextCodec which matches the MIBenum \fImib\fR. -.SH "QTextCodec * QTextCodec::codecForName ( const char * name, int accuracy = 0 )\fC [static]\fR" -Searches all installed QTextCodec objects and returns the one which best matches \fIname\fR; the match is case-insensitive. Returns 0 if no codec's heuristicNameMatch() reports a match better than \fIaccuracy\fR, or if \fIname\fR is a null string. +.SH "TQTextCodec * TQTextCodec::codecForMib ( int mib )\fC [static]\fR" +Returns the TQTextCodec which matches the MIBenum \fImib\fR. +.SH "TQTextCodec * TQTextCodec::codecForName ( const char * name, int accuracy = 0 )\fC [static]\fR" +Searches all installed TQTextCodec objects and returns the one which best matches \fIname\fR; the match is case-insensitive. Returns 0 if no codec's heuristicNameMatch() reports a match better than \fIaccuracy\fR, or if \fIname\fR is a null string. .PP See also heuristicNameMatch(). -.SH "QTextCodec * QTextCodec::codecForTr ()\fC [static]\fR" +.SH "TQTextCodec * TQTextCodec::codecForTr ()\fC [static]\fR" Returns the codec used by TQObject::tr() on its argument. If this function returns 0 (the default), tr() assumes Latin-1. .PP See also setCodecForTr(). -.SH "void QTextCodec::deleteAllCodecs ()\fC [static]\fR" +.SH "void TQTextCodec::deleteAllCodecs ()\fC [static]\fR" Deletes all the created codecs. .PP \fBWarning:\fR Do not call this function. .PP -QApplication calls this function just before exiting to delete any QTextCodec objects that may be lying around. Since various other classes hold pointers to QTextCodec objects, it is not safe to call this function earlier. +QApplication calls this function just before exiting to delete any TQTextCodec objects that may be lying around. Since various other classes hold pointers to TQTextCodec objects, it is not safe to call this function earlier. .PP -If you are using the utility classes (like TQString) but not using QApplication, calling this function at the very end of your application may be helpful for chasing down memory leaks by eliminating any QTextCodec objects. -.SH "QCString QTextCodec::fromUnicode ( const TQString & uc, int & lenInOut ) const\fC [virtual]\fR" -QTextCodec subclasses must reimplement either this function or makeEncoder(). It converts the first \fIlenInOut\fR characters of \fIuc\fR from Unicode to the encoding of the subclass. If \fIlenInOut\fR is negative or too large, the length of \fIuc\fR is used instead. +If you are using the utility classes (like TQString) but not using QApplication, calling this function at the very end of your application may be helpful for chasing down memory leaks by eliminating any TQTextCodec objects. +.SH "QCString TQTextCodec::fromUnicode ( const TQString & uc, int & lenInOut ) const\fC [virtual]\fR" +TQTextCodec subclasses must reimplement either this function or makeEncoder(). It converts the first \fIlenInOut\fR characters of \fIuc\fR from Unicode to the encoding of the subclass. If \fIlenInOut\fR is negative or too large, the length of \fIuc\fR is used instead. .PP Converts \fIlenInOut\fR characters (not bytes) from \fIuc\fR, producing a QCString. \fIlenInOut\fR will be set to the length of the result (in bytes). .PP The default implementation makes an encoder with makeEncoder() and converts the input with that. Note that the default makeEncoder() implementation makes an encoder that simply calls this function, hence subclasses \fImust\fR reimplement one function or the other to avoid infinite recursion. .PP Reimplemented in QHebrewCodec. -.SH "QCString QTextCodec::fromUnicode ( const TQString & uc ) const" +.SH "QCString TQTextCodec::fromUnicode ( const TQString & uc ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fIuc\fR is the unicode source string. -.SH "int QTextCodec::heuristicContentMatch ( const char * chars, int len ) const\fC [pure virtual]\fR" -QTextCodec subclasses must reimplement this function. It examines the first \fIlen\fR bytes of \fIchars\fR and returns a value indicating how likely it is that the string is a prefix of text encoded in the encoding of the subclass. A negative return value indicates that the text is detectably not in the encoding (e.g. it contains characters undefined in the encoding). A return value of 0 indicates that the text should be decoded with this codec rather than as ASCII, but there is no particular evidence. The value should range up to \fIlen\fR. Thus, most decoders will return -1, 0, or -\fIlen\fR. +.SH "int TQTextCodec::heuristicContentMatch ( const char * chars, int len ) const\fC [pure virtual]\fR" +TQTextCodec subclasses must reimplement this function. It examines the first \fIlen\fR bytes of \fIchars\fR and returns a value indicating how likely it is that the string is a prefix of text encoded in the encoding of the subclass. A negative return value indicates that the text is detectably not in the encoding (e.g. it contains characters undefined in the encoding). A return value of 0 indicates that the text should be decoded with this codec rather than as ASCII, but there is no particular evidence. The value should range up to \fIlen\fR. Thus, most decoders will return -1, 0, or -\fIlen\fR. .PP The characters are not null terminated. .PP See also codecForContent(). -.SH "int QTextCodec::heuristicNameMatch ( const char * hint ) const\fC [virtual]\fR" +.SH "int TQTextCodec::heuristicNameMatch ( const char * hint ) const\fC [virtual]\fR" Returns a value indicating how likely it is that this decoder is appropriate for decoding some format that has the given name. The name is compared with the \fIhint\fR. .PP A good match returns a positive number around the length of the string. A bad match is negative. .PP The default implementation calls simpleHeuristicNameMatch() with the name of the codec. -.SH "QTextCodec * QTextCodec::loadCharmap ( TQIODevice * iod )\fC [static]\fR" +.SH "TQTextCodec * TQTextCodec::loadCharmap ( TQIODevice * iod )\fC [static]\fR" Reads a POSIX2 charmap definition from \fIiod\fR. The parser recognizes the following lines: .PP <font name="sans"> <code_set_name> \fIname\fR</br> <escape_char> \fIcharacter\fR</br> % alias \fIalias\fR</br> CHARMAP</br> <\fItoken\fR> /x\fIhexbyte\fR <U\fIunicode\fR> ...</br> <\fItoken\fR> /d\fIdecbyte\fR <U\fIunicode\fR> ...</br> <\fItoken\fR> /\fIoctbyte\fR <U\fIunicode\fR> ...</br> <\fItoken\fR> /\fIany\fR/\fIany\fR... <U\fIunicode\fR> ...</br> END CHARMAP</br> </font> .PP -The resulting QTextCodec is returned (and also added to the global list of codecs). The name() of the result is taken from the code_set_name. +The resulting TQTextCodec is returned (and also added to the global list of codecs). The name() of the result is taken from the code_set_name. .PP -Note that a codec constructed in this way uses much more memory and is slower than a hand-written QTextCodec subclass, since tables in code are kept in memory shared by all TQt applications. +Note that a codec constructed in this way uses much more memory and is slower than a hand-written TQTextCodec subclass, since tables in code are kept in memory shared by all TQt applications. .PP See also loadCharmapFile(). .PP Example: qwerty/qwerty.cpp. -.SH "QTextCodec * QTextCodec::loadCharmapFile ( TQString filename )\fC [static]\fR" +.SH "TQTextCodec * TQTextCodec::loadCharmapFile ( TQString filename )\fC [static]\fR" A convenience function for loadCharmap() that loads the charmap definition from the file \fIfilename\fR. -.SH "const char * QTextCodec::locale ()\fC [static]\fR" +.SH "const char * TQTextCodec::locale ()\fC [static]\fR" Returns a string representing the current language and sublanguage, e.g. "pt" for Portuguese, or "pt_br" for Portuguese/Brazil. .PP Example: i18n/main.cpp. -.SH "QTextDecoder * QTextCodec::makeDecoder () const\fC [virtual]\fR" -Creates a QTextDecoder which stores enough state to decode chunks of char* data to create chunks of Unicode data. The default implementation creates a stateless decoder, which is only sufficient for the simplest encodings where each byte corresponds to exactly one Unicode character. +.SH "TQTextDecoder * TQTextCodec::makeDecoder () const\fC [virtual]\fR" +Creates a TQTextDecoder which stores enough state to decode chunks of char* data to create chunks of Unicode data. The default implementation creates a stateless decoder, which is only sufficient for the simplest encodings where each byte corresponds to exactly one Unicode character. .PP The caller is responsible for deleting the returned object. -.SH "QTextEncoder * QTextCodec::makeEncoder () const\fC [virtual]\fR" -Creates a QTextEncoder which stores enough state to encode chunks of Unicode data as char* data. The default implementation creates a stateless encoder, which is only sufficient for the simplest encodings where each Unicode character corresponds to exactly one character. +.SH "TQTextEncoder * TQTextCodec::makeEncoder () const\fC [virtual]\fR" +Creates a TQTextEncoder which stores enough state to encode chunks of Unicode data as char* data. The default implementation creates a stateless encoder, which is only sufficient for the simplest encodings where each Unicode character corresponds to exactly one character. .PP The caller is responsible for deleting the returned object. -.SH "int QTextCodec::mibEnum () const\fC [pure virtual]\fR" -Subclasses of QTextCodec must reimplement this function. It returns the MIBenum (see the IANA character-sets encoding file for more information). It is important that each QTextCodec subclass returns the correct unique value for this function. +.SH "int TQTextCodec::mibEnum () const\fC [pure virtual]\fR" +Subclasses of TQTextCodec must reimplement this function. It returns the MIBenum (see the IANA character-sets encoding file for more information). It is important that each TQTextCodec subclass returns the correct unique value for this function. .PP Reimplemented in QEucJpCodec. -.SH "const char * QTextCodec::mimeName () const\fC [virtual]\fR" +.SH "const char * TQTextCodec::mimeName () const\fC [virtual]\fR" Returns the preferred mime name of the encoding as defined in the IANA character-sets encoding file. .PP Reimplemented in QEucJpCodec, QEucKrCodec, QJisCodec, QHebrewCodec, and QSjisCodec. -.SH "const char * QTextCodec::name () const\fC [pure virtual]\fR" -QTextCodec subclasses must reimplement this function. It returns the name of the encoding supported by the subclass. When choosing a name for an encoding, consider these points: +.SH "const char * TQTextCodec::name () const\fC [pure virtual]\fR" +TQTextCodec subclasses must reimplement this function. It returns the name of the encoding supported by the subclass. When choosing a name for an encoding, consider these points: .TP -On X11, heuristicNameMatch( const char * hint ) is used to test if a the QTextCodec can convert between Unicode and the encoding of a font with encoding \fIhint\fR, such as "iso8859-1" for Latin-1 fonts," koi8-r" for Russian KOI8 fonts. The default algorithm of heuristicNameMatch() uses name(). +On X11, heuristicNameMatch( const char * hint ) is used to test if a the TQTextCodec can convert between Unicode and the encoding of a font with encoding \fIhint\fR, such as "iso8859-1" for Latin-1 fonts," koi8-r" for Russian KOI8 fonts. The default algorithm of heuristicNameMatch() uses name(). .TP Some applications may use this function to present encodings to the end user. .PP Example: qwerty/qwerty.cpp. -.SH "void QTextCodec::setCodecForCStrings ( QTextCodec * c )\fC [static]\fR" +.SH "void TQTextCodec::setCodecForCStrings ( TQTextCodec * c )\fC [static]\fR" \fBWarning:\fR This function is \fInot\fR reentrant.</p> .PP Sets the codec used by TQString to convert to and from const char* and QCStrings. If \fIc\fR is 0 (the default), TQString assumes Latin-1. @@ -501,11 +501,11 @@ Sets the codec used by TQString to convert to and from const char* and QCStrings \fBWarning:\fR Some codecs do not preserve the characters in the ascii range (0x00 to 0x7f). For example, the Japanese Shift-JIS encoding maps the backslash character (0x5a) to the Yen character. This leads to unexpected results when using the backslash character to escape characters in strings used in e.g. regular expressions. Use TQString::fromLatin1() to preserve characters in the ascii range when needed. .PP See also codecForCStrings() and setCodecForTr(). -.SH "void QTextCodec::setCodecForLocale ( QTextCodec * c )\fC [static]\fR" +.SH "void TQTextCodec::setCodecForLocale ( TQTextCodec * c )\fC [static]\fR" Set the codec to \fIc\fR; this will be returned by codecForLocale(). This might be needed for some applications that want to use their own mechanism for setting the locale. .PP See also codecForLocale(). -.SH "void QTextCodec::setCodecForTr ( QTextCodec * c )\fC [static]\fR" +.SH "void TQTextCodec::setCodecForTr ( TQTextCodec * c )\fC [static]\fR" \fBWarning:\fR This function is \fInot\fR reentrant.</p> .PP Sets the codec used by TQObject::tr() on its argument to \fIc\fR. If \fIc\fR is 0 (the default), tr() assumes Latin-1. @@ -522,7 +522,7 @@ If the literal quoted text in the program is not in the Latin-1 encoding, this f .br ... install any additional codecs ... .br - QTextCodec::setCodecForTr( QTextCodec::codecForName("eucKR") ); + TQTextCodec::setCodecForTr( TQTextCodec::codecForName("eucKR") ); .br ... .br @@ -533,35 +533,35 @@ If the literal quoted text in the program is not in the Latin-1 encoding, this f Note that this is not the way to select the encoding that the \fIuser\fR has chosen. For example, to convert an application containing literal English strings to Korean, all that is needed is for the English strings to be passed through tr() and for translation files to be loaded. For details of internationalization, see the TQt internationalization documentation. .PP See also codecForTr() and setCodecForCStrings(). -.SH "int QTextCodec::simpleHeuristicNameMatch ( const char * name, const char * hint )\fC [static protected]\fR" +.SH "int TQTextCodec::simpleHeuristicNameMatch ( const char * name, const char * hint )\fC [static protected]\fR" A simple utility function for heuristicNameMatch(): it does some very minor character-skipping so that almost-exact matches score high. \fIname\fR is the text we're matching and \fIhint\fR is used for the comparison. -.SH "TQString QTextCodec::toUnicode ( const char * chars, int len ) const\fC [virtual]\fR" -QTextCodec subclasses must reimplement this function or makeDecoder(). It converts the first \fIlen\fR characters of \fIchars\fR to Unicode. +.SH "TQString TQTextCodec::toUnicode ( const char * chars, int len ) const\fC [virtual]\fR" +TQTextCodec subclasses must reimplement this function or makeDecoder(). It converts the first \fIlen\fR characters of \fIchars\fR to Unicode. .PP The default implementation makes a decoder with makeDecoder() and converts the input with that. Note that the default makeDecoder() implementation makes a decoder that simply calls this function, hence subclasses \fImust\fR reimplement one function or the other to avoid infinite recursion. -.SH "TQString QTextCodec::toUnicode ( const QByteArray & a, int len ) const" +.SH "TQString TQTextCodec::toUnicode ( const QByteArray & a, int len ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fIa\fR contains the source characters; \fIlen\fR contains the number of characters in \fIa\fR to use. -.SH "TQString QTextCodec::toUnicode ( const QByteArray & a ) const" +.SH "TQString TQTextCodec::toUnicode ( const QByteArray & a ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fIa\fR contains the source characters. -.SH "TQString QTextCodec::toUnicode ( const QCString & a, int len ) const" +.SH "TQString TQTextCodec::toUnicode ( const QCString & a, int len ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fIa\fR contains the source characters; \fIlen\fR contains the number of characters in \fIa\fR to use. -.SH "TQString QTextCodec::toUnicode ( const QCString & a ) const" +.SH "TQString TQTextCodec::toUnicode ( const QCString & a ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fIa\fR contains the source characters. -.SH "TQString QTextCodec::toUnicode ( const char * chars ) const" +.SH "TQString TQTextCodec::toUnicode ( const char * chars ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fIchars\fR contains the source characters. .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqtextcodec.html +.BR http://doc.trolltech.com/tqtextcodec.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqtextcodecplugin.3qt b/doc/man/man3/tqtextcodecplugin.3qt index a3dfe0932..d03ad19aa 100644 --- a/doc/man/man3/tqtextcodecplugin.3qt +++ b/doc/man/man3/tqtextcodecplugin.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTextCodecPlugin 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTextCodecPlugin 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,35 +7,35 @@ .ad l .nh .SH NAME -QTextCodecPlugin \- Abstract base for custom QTextCodec plugins +TQTextCodecPlugin \- Abstract base for custom TQTextCodec plugins .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqtextcodecplugin.h>\fR +\fC#include <tqtextcodecplugin.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQTextCodecPlugin\fR ()" +.BI "\fBTQTextCodecPlugin\fR ()" .br .ti -1c -.BI "\fB~QTextCodecPlugin\fR ()" +.BI "\fB~TQTextCodecPlugin\fR ()" .br .ti -1c .BI "virtual TQStringList \fBnames\fR () const = 0" .br .ti -1c -.BI "virtual QTextCodec * \fBcreateForName\fR ( const TQString & name ) = 0" +.BI "virtual TQTextCodec * \fBcreateForName\fR ( const TQString & name ) = 0" .br .ti -1c .BI "virtual TQValueList<int> \fBmibEnums\fR () const = 0" .br .ti -1c -.BI "virtual QTextCodec * \fBcreateForMib\fR ( int mib ) = 0" +.BI "virtual TQTextCodec * \fBcreateForMib\fR ( int mib ) = 0" .br .in -1c .SH DESCRIPTION -The QTextCodecPlugin class provides an abstract base for custom QTextCodec plugins. +The TQTextCodecPlugin class provides an abstract base for custom TQTextCodec plugins. .PP The text codec plugin is a simple plugin interface that makes it easy to create custom text codecs that can be loaded dynamically into applications. .PP @@ -45,33 +45,33 @@ See the IANA character-sets encoding file for more information on mime names and .PP See also Plugins. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTextCodecPlugin::QTextCodecPlugin ()" +.SH "TQTextCodecPlugin::TQTextCodecPlugin ()" Constructs a text codec plugin. This is invoked automatically by the \fCQ_EXPORT_PLUGIN\fR macro. -.SH "QTextCodecPlugin::~QTextCodecPlugin ()" +.SH "TQTextCodecPlugin::~TQTextCodecPlugin ()" Destroys the text codec plugin. .PP You never have to call this explicitly. TQt destroys a plugin automatically when it is no longer used. -.SH "QTextCodec * QTextCodecPlugin::createForMib ( int mib )\fC [pure virtual]\fR" -Creates a QTextCodec object for the mib enum \fImib\fR. +.SH "TQTextCodec * TQTextCodecPlugin::createForMib ( int mib )\fC [pure virtual]\fR" +Creates a TQTextCodec object for the mib enum \fImib\fR. .PP (See the IANA character-sets encoding file for more information) .PP See also mibEnums(). -.SH "QTextCodec * QTextCodecPlugin::createForName ( const TQString & name )\fC [pure virtual]\fR" -Creates a QTextCodec object for the codec called \fIname\fR. +.SH "TQTextCodec * TQTextCodecPlugin::createForName ( const TQString & name )\fC [pure virtual]\fR" +Creates a TQTextCodec object for the codec called \fIname\fR. .PP See also names(). -.SH "TQValueList<int> QTextCodecPlugin::mibEnums () const\fC [pure virtual]\fR" +.SH "TQValueList<int> TQTextCodecPlugin::mibEnums () const\fC [pure virtual]\fR" Returns the list of mib enums supported by this plugin. .PP See also createForMib(). -.SH "TQStringList QTextCodecPlugin::names () const\fC [pure virtual]\fR" +.SH "TQStringList TQTextCodecPlugin::names () const\fC [pure virtual]\fR" Returns the list of mime names supported by this plugin. .PP See also createForName(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqtextcodecplugin.html +.BR http://doc.trolltech.com/tqtextcodecplugin.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqtextdecoder.3qt b/doc/man/man3/tqtextdecoder.3qt index 18aba782e..4b00f11dc 100644 --- a/doc/man/man3/tqtextdecoder.3qt +++ b/doc/man/man3/tqtextdecoder.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTextDecoder 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTextDecoder 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,31 +7,31 @@ .ad l .nh .SH NAME -QTextDecoder \- State-based decoder +TQTextDecoder \- State-based decoder .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqtextcodec.h>\fR +\fC#include <tqtextcodec.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "virtual \fB~QTextDecoder\fR ()" +.BI "virtual \fB~TQTextDecoder\fR ()" .br .ti -1c .BI "virtual TQString \fBtoUnicode\fR ( const char * chars, int len ) = 0" .br .in -1c .SH DESCRIPTION -The QTextDecoder class provides a state-based decoder. +The TQTextDecoder class provides a state-based decoder. .PP The decoder converts a text format into Unicode, remembering any state that is required between calls. .PP -See also QTextCodec::makeEncoder() and Internationalization with Qt. +See also TQTextCodec::makeEncoder() and Internationalization with Qt. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTextDecoder::~QTextDecoder ()\fC [virtual]\fR" +.SH "TQTextDecoder::~TQTextDecoder ()\fC [virtual]\fR" Destroys the decoder. -.SH "TQString QTextDecoder::toUnicode ( const char * chars, int len )\fC [pure virtual]\fR" +.SH "TQString TQTextDecoder::toUnicode ( const char * chars, int len )\fC [pure virtual]\fR" Converts the first \fIlen\fR bytes in \fIchars\fR to Unicode, returning the result. .PP If not all characters are used (e.g. if only part of a multi-byte @@ -39,7 +39,7 @@ encoding is at the end of the characters), the decoder remembers enough state to continue with the next call to this function. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qtextdecoder.html +.BR http://doc.trolltech.com/tqtextdecoder.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqtextdrag.3qt b/doc/man/man3/tqtextdrag.3qt index 481fa59ee..b4f903450 100644 --- a/doc/man/man3/tqtextdrag.3qt +++ b/doc/man/man3/tqtextdrag.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTextDrag 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTextDrag 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,7 +7,7 @@ .ad l .nh .SH NAME -QTextDrag \- Drag and drop object for transferring plain and Unicode text +TQTextDrag \- Drag and drop object for transferring plain and Unicode text .SH SYNOPSIS \fC#include <ntqdragobject.h>\fR .PP @@ -16,13 +16,13 @@ Inherits QDragObject. .SS "Public Members" .in +1c .ti -1c -.BI "\fBQTextDrag\fR ( const TQString & text, TQWidget * dragSource = 0, const char * name = 0 )" +.BI "\fBTQTextDrag\fR ( const TQString & text, TQWidget * dragSource = 0, const char * name = 0 )" .br .ti -1c -.BI "\fBQTextDrag\fR ( TQWidget * dragSource = 0, const char * name = 0 )" +.BI "\fBTQTextDrag\fR ( TQWidget * dragSource = 0, const char * name = 0 )" .br .ti -1c -.BI "\fB~QTextDrag\fR ()" +.BI "\fB~TQTextDrag\fR ()" .br .ti -1c .BI "virtual void \fBsetText\fR ( const TQString & text )" @@ -44,7 +44,7 @@ Inherits QDragObject. .br .in -1c .SH DESCRIPTION -The QTextDrag class is a drag and drop object for transferring plain and Unicode text. +The TQTextDrag class is a drag and drop object for transferring plain and Unicode text. .PP Plain text is passed in a TQString which may contain multiple lines (i.e. may contain newline characters). The drag target will receive the newlines according to the runtime environment, e.g. LF on Unix, and CRLF on Windows. .PP @@ -54,38 +54,38 @@ For more information about drag and drop, see the QDragObject class and the drag .PP See also Drag And Drop Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTextDrag::QTextDrag ( const TQString & text, TQWidget * dragSource = 0, const char * name = 0 )" +.SH "TQTextDrag::TQTextDrag ( const TQString & text, TQWidget * dragSource = 0, const char * name = 0 )" Constructs a text drag object and sets its data to \fItext\fR. \fIdragSource\fR must be the drag source; \fIname\fR is the object name. -.SH "QTextDrag::QTextDrag ( TQWidget * dragSource = 0, const char * name = 0 )" +.SH "TQTextDrag::TQTextDrag ( TQWidget * dragSource = 0, const char * name = 0 )" Constructs a default text drag object. \fIdragSource\fR must be the drag source; \fIname\fR is the object name. -.SH "QTextDrag::~QTextDrag ()" +.SH "TQTextDrag::~TQTextDrag ()" Destroys the text drag object and frees up all allocated resources. -.SH "bool QTextDrag::canDecode ( const QMimeSource * e )\fC [static]\fR" +.SH "bool TQTextDrag::canDecode ( const QMimeSource * e )\fC [static]\fR" Returns TRUE if the information in \fIe\fR can be decoded into a TQString; otherwise returns FALSE. .PP See also decode(). .PP Example: iconview/simple_dd/main.cpp. -.SH "bool QTextDrag::decode ( const QMimeSource * e, TQString & str )\fC [static]\fR" +.SH "bool TQTextDrag::decode ( const QMimeSource * e, TQString & str )\fC [static]\fR" Attempts to decode the dropped information in \fIe\fR into \fIstr\fR. Returns TRUE if successful; otherwise returns FALSE. .PP See also canDecode(). .PP Example: iconview/simple_dd/main.cpp. -.SH "bool QTextDrag::decode ( const QMimeSource * e, TQString & str, QCString & subtype )\fC [static]\fR" +.SH "bool TQTextDrag::decode ( const QMimeSource * e, TQString & str, QCString & subtype )\fC [static]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Attempts to decode the dropped information in \fIe\fR into \fIstr\fR. Returns TRUE if successful; otherwise returns FALSE. If \fIsubtype\fR is null, any text subtype is accepted; otherwise only the specified \fIsubtype\fR is accepted. .PP See also canDecode(). -.SH "void QTextDrag::setSubtype ( const QCString & st )\fC [virtual]\fR" +.SH "void TQTextDrag::setSubtype ( const QCString & st )\fC [virtual]\fR" Sets the MIME subtype of the text being dragged to \fIst\fR. The default subtype is "plain", so the default MIME type of the text is "text/plain". You might use this to declare that the text is" text/html" by calling setSubtype("html"). -.SH "void QTextDrag::setText ( const TQString & text )\fC [virtual]\fR" +.SH "void TQTextDrag::setText ( const TQString & text )\fC [virtual]\fR" Sets the text to be dragged to \fItext\fR. You will need to call this if you did not pass the text during construction. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qtextdrag.html +.BR http://doc.trolltech.com/tqtextdrag.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqtextedit.3qt b/doc/man/man3/tqtextedit.3qt index 967de1cd3..c6ffa2dff 100644 --- a/doc/man/man3/tqtextedit.3qt +++ b/doc/man/man3/tqtextedit.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTextEdit 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTextEdit 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,13 +7,13 @@ .ad l .nh .SH NAME -QTextEdit \- Powerful single-page rich text editor +TQTextEdit \- Powerful single-page rich text editor .SH SYNOPSIS -\fC#include <ntqtextedit.h>\fR +\fC#include <tqtextedit.h>\fR .PP Inherits QScrollView. .PP -Inherited by QMultiLineEdit, QTextBrowser, and QTextView. +Inherited by QMultiLineEdit, TQTextBrowser, and TQTextView. .PP .SS "Public Members" .in +1c @@ -36,10 +36,10 @@ Inherited by QMultiLineEdit, QTextBrowser, and QTextView. .BI "enum \fBVerticalAlignment\fR { AlignNormal, AlignSuperScript, AlignSubScript }" .br .ti -1c -.BI "\fBQTextEdit\fR ( const TQString & text, const TQString & context = TQString::null, TQWidget * parent = 0, const char * name = 0 )" +.BI "\fBTQTextEdit\fR ( const TQString & text, const TQString & context = TQString::null, TQWidget * parent = 0, const char * name = 0 )" .br .ti -1c -.BI "\fBQTextEdit\fR ( TQWidget * parent = 0, const char * name = 0 )" +.BI "\fBTQTextEdit\fR ( TQWidget * parent = 0, const char * name = 0 )" .br .ti -1c .BI "TQString \fBtext\fR () const" @@ -327,7 +327,7 @@ Inherited by QMultiLineEdit, QTextBrowser, and QTextView. .BI "virtual void \fBensureCursorVisible\fR ()" .br .ti -1c -.BI "virtual void \fBplaceCursor\fR ( const QPoint & pos, QTextCursor * c = 0 )" +.BI "virtual void \fBplaceCursor\fR ( const QPoint & pos, TQTextCursor * c = 0 )" .br .ti -1c .BI "virtual void \fBmoveCursor\fR ( CursorAction action, bool select )" @@ -501,7 +501,7 @@ Inherited by QMultiLineEdit, QTextBrowser, and QTextView. .BI "virtual bool \fBfocusNextPrevChild\fR ( bool n )" .br .ti -1c -.BI "QTextCursor * \fBtextCursor\fR () const" +.BI "TQTextCursor * \fBtextCursor\fR () const" .br .ti -1c .BI "virtual QPopupMenu * \fBcreatePopupMenu\fR ( const QPoint & pos )" @@ -511,26 +511,26 @@ Inherited by QMultiLineEdit, QTextBrowser, and QTextView. .br .in -1c .SH DESCRIPTION -The QTextEdit widget provides a powerful single-page rich text editor. +The TQTextEdit widget provides a powerful single-page rich text editor. .PP .TP Introduction and Concepts .TP -Using QTextEdit as a Display Widget +Using TQTextEdit as a Display Widget .TP Read-only key bindings .TP -Using QTextEdit in LogText Mode +Using TQTextEdit in LogText Mode .TP -Using QTextEdit as an Editor +Using TQTextEdit as an Editor .TP Editing key bindings .SH "Introduction and Concepts" -QTextEdit is an advanced WYSIWYG viewer/editor supporting rich text formatting using HTML-style tags. It is optimized to handle large documents and to respond quickly to user input. +TQTextEdit is an advanced WYSIWYG viewer/editor supporting rich text formatting using HTML-style tags. It is optimized to handle large documents and to respond quickly to user input. .PP -QTextEdit has four modes of operation: <center>.nf +TQTextEdit has four modes of operation: <center>.nf .TS l - l. Mode Command Notes Plain Text Editor setTextFormat(PlainText) Set text with setText(); text() returns plain text. Text attributes (e.g. colors) can be set, but plain text is always returned. Rich Text Editor setTextFormat(RichText) Set text with setText(); text() returns rich text. Rich text editing is fairly limited. You can't set margins or insert images for example (although you can read and correctly display files that have margins set and that include images). This mode is mostly useful for editing small amounts of rich text. Text Viewer setReadOnly(TRUE) Set text with setText() or append() (which has no undo history so is faster and uses less memory); text() returns plain or rich text depending on the textFormat(). This mode can correctly display a large subset of HTML tags. Log Viewer setTextFormat(LogText) .TE @@ -539,11 +539,11 @@ l - l. Mode Command Notes Plain Text Editor setTextFormat(PlainText) Set text wi .PP <sup>1.</sup><small>A more complete API that supports setting margins, images, etc., is planned for a later TQt release.</small> .PP -QTextEdit can be used as a syntax highlighting editor when used in conjunction with QSyntaxHighlighter. +TQTextEdit can be used as a syntax highlighting editor when used in conjunction with QSyntaxHighlighter. .PP We recommend that you always call setTextFormat() to set the mode you want to use. If you use AutoText then setText() and append() will try to determine whether the text they are given is plain text or rich text. If you use RichText then setText() and append() will assume that the text they are given is rich text. insert() simply inserts the text it is given. .PP -QTextEdit works on paragraphs and characters. A paragraph is a formatted string which is word-wrapped to fit into the width of the widget. By default when reading plain text, one newline signify a paragraph. A document consists of zero or more paragraphs, indexed from 0. Characters are indexed on a per-paragraph basis, also indexed from 0. The words in the paragraph are aligned in accordance with the paragraph's alignment(). Paragraphs are separated by hard line breaks. Each character within a paragraph has its own attributes, for example, font and color. +TQTextEdit works on paragraphs and characters. A paragraph is a formatted string which is word-wrapped to fit into the width of the widget. By default when reading plain text, one newline signify a paragraph. A document consists of zero or more paragraphs, indexed from 0. Characters are indexed on a per-paragraph basis, also indexed from 0. The words in the paragraph are aligned in accordance with the paragraph's alignment(). Paragraphs are separated by hard line breaks. Each character within a paragraph has its own attributes, for example, font and color. .PP The text edit documentation uses the following concepts: .TP @@ -551,15 +551,15 @@ The text edit documentation uses the following concepts: .TP \fIcurrent paragraph\fR -- the paragraph which contains the cursor. .PP -QTextEdit can display images (using QMimeSourceFactory), lists and tables. If the text is too large to view within the text edit's viewport, scrollbars will appear. The text edit can load both plain text and HTML files (a subset of HTML 3.2 and 4). The rendering style and the set of valid tags are defined by a styleSheet(). Custom tags can be created and placed in a custom style sheet. Change the style sheet with setStyleSheet(); see QStyleSheet for details. The images identified by image tags are displayed if they can be interpreted using the text edit's QMimeSourceFactory; see setMimeSourceFactory(). +TQTextEdit can display images (using QMimeSourceFactory), lists and tables. If the text is too large to view within the text edit's viewport, scrollbars will appear. The text edit can load both plain text and HTML files (a subset of HTML 3.2 and 4). The rendering style and the set of valid tags are defined by a styleSheet(). Custom tags can be created and placed in a custom style sheet. Change the style sheet with setStyleSheet(); see QStyleSheet for details. The images identified by image tags are displayed if they can be interpreted using the text edit's QMimeSourceFactory; see setMimeSourceFactory(). .PP -If you want a text browser with more navigation use QTextBrowser. If you just need to display a small piece of rich text use QLabel or QSimpleRichText. +If you want a text browser with more navigation use TQTextBrowser. If you just need to display a small piece of rich text use QLabel or QSimpleRichText. .PP -If you create a new QTextEdit, and want to allow the user to edit rich text, call setTextFormat(TQt::RichText) to ensure that the text is treated as rich text. (Rich text uses HTML tags to set text formatting attributes. See QStyleSheet for information on the HTML tags that are supported.). If you don't call setTextFormat() explicitly the text edit will guess from the text itself whether it is rich text or plain text. This means that if the text looks like HTML or XML it will probably be interpreted as rich text, so you should call setTextFormat(TQt::PlainText) to preserve such text. +If you create a new TQTextEdit, and want to allow the user to edit rich text, call setTextFormat(TQt::RichText) to ensure that the text is treated as rich text. (Rich text uses HTML tags to set text formatting attributes. See QStyleSheet for information on the HTML tags that are supported.). If you don't call setTextFormat() explicitly the text edit will guess from the text itself whether it is rich text or plain text. This means that if the text looks like HTML or XML it will probably be interpreted as rich text, so you should call setTextFormat(TQt::PlainText) to preserve such text. .PP Note that we do not intend to add a full-featured web browser widget to TQt (because that would easily double Qt's size and only a few applications would benefit from it). The rich text support in TQt is designed to provide a fast, portable and efficient way to add reasonable online help facilities to applications, and to provide a basis for rich text editors. -.SH "Using QTextEdit as a Display Widget" -QTextEdit can display a large HTML subset, including tables and images. +.SH "Using TQTextEdit as a Display Widget" +TQTextEdit can display a large HTML subset, including tables and images. .PP The text is set or replaced using setText() which deletes any existing text and replaces it with the text passed in the setText() call. If you call setText() with legacy HTML (with setTextFormat(RichText) in force), and then call text(), the text that is returned may have different markup, but will render the same. Text can be inserted with insert(), paste(), pasteSubType() and append(). Text that is appended does not go into the undo history; this makes append() faster and consumes less memory. Text can also be cut(). The entire text is deleted with clear() and the selected text is deleted with removeSelectedText(). Selected (marked) text can also be deleted with del() (which will delete the character to the right of the cursor if no text is selected). .PP @@ -571,7 +571,7 @@ Loading and saving text is achieved using setText() and text(), for example: .br if ( file.open( IO_ReadOnly ) ) { .br - QTextStream stream( &file ); + TQTextStream stream( &file ); .br textEdit->setText( stream.read() ); .br @@ -582,7 +582,7 @@ Loading and saving text is achieved using setText() and text(), for example: .br if ( file.open( IO_WriteOnly ) ) { .br - QTextStream stream( &file ); + TQTextStream stream( &file ); .br stream << textEdit->text(); .br @@ -604,11 +604,11 @@ The lines() function returns the number of lines in the text and paragraphs() re .PP You can scroll to an anchor in the text, e.g. \fC<a name="anchor">\fR with scrollToAnchor(). The find() function can be used to find and select a given string within the text. .PP -A read-only QTextEdit provides the same functionality as the (obsolete) QTextView. (QTextView is still supplied for compatibility with old code.) +A read-only TQTextEdit provides the same functionality as the (obsolete) TQTextView. (TQTextView is still supplied for compatibility with old code.) .PP <h4> Read-only key bindings </h4> .PP -When QTextEdit is used read-only the key-bindings are limited to navigation, and text may only be selected with the mouse: <center>.nf +When TQTextEdit is used read-only the key-bindings are limited to navigation, and text may only be selected with the mouse: <center>.nf .TS l - l. Keypresses Action UpArrow Move one line up DownArrow Move one line down LeftArrow Move one character left RightArrow Move one character right PageUp Move one (viewport) page up PageDown Move one (viewport) page down Home Move to the beginning of the text End Move to the end of the text Shift+Wheel Scroll the page horizontally (the Wheel is the mouse wheel) Ctrl+Wheel .TE @@ -617,9 +617,9 @@ l - l. Keypresses Action UpArrow Move one line up DownArrow Move one line down L .PP The text edit may be able to provide some meta-information. For example, the documentTitle() function will return the text from within HTML \fC<title>\fR tags. .PP -The text displayed in a text edit has a \fIcontext\fR. The context is a path which the text edit's QMimeSourceFactory uses to resolve the locations of files and images. It is passed to the mimeSourceFactory() when quering data. (See QTextEdit() and context().) +The text displayed in a text edit has a \fIcontext\fR. The context is a path which the text edit's QMimeSourceFactory uses to resolve the locations of files and images. It is passed to the mimeSourceFactory() when quering data. (See TQTextEdit() and context().) .PP -<h4> Using QTextEdit in LogText Mode </h4> +<h4> Using TQTextEdit in LogText Mode </h4> .PP Setting the text format to LogText puts the widget in a special mode which is optimized for very large texts. Editing, word wrap, and rich text support are disabled in this mode (the widget is explicitly made read-only). This allows the text to be stored in a different, more memory efficient manner. However, a certain degree of text formatting is supported through the use of formatting tags. A tag is delimited by \fC<\fR and \fC>\fR. The characters \fC<\fR, \fC>\fR and \fC&\fR are escaped by using \fC<\fR, \fC>\fR and \fC&\fR. A tag pair consists of a left and a right tag (or open/close tags). Left-tags mark the starting point for formatting, while right-tags mark the ending point. A right-tag always start with a \fC/\fR before the tag keyword. For example \fC<b>\fR and \fC</b>\fR are a tag pair. Tags can be nested, but they have to be closed in the same order as they are opened. For example, \fC<b><u></u></b>\fR is valid, while \fC<b><u></b></u>\fR will output an error message. .PP @@ -637,7 +637,7 @@ Stylesheets can also be used in LogText mode. To create and use a custom tag, yo .PP .nf .br - QTextEdit * log = new QTextEdit( this ); + TQTextEdit * log = new TQTextEdit( this ); .br log->setTextFormat( TQt::LogText ); .br @@ -661,18 +661,18 @@ There are a few things that you need to be aware of when the widget is in this m Functions that deal with rich text formatting and cursor movement will not work or return anything valid. .TP Lines are equivalent to paragraphs. -.SH "Using QTextEdit as an Editor" -All the information about using QTextEdit as a display widget also applies here. +.SH "Using TQTextEdit as an Editor" +All the information about using TQTextEdit as a display widget also applies here. .PP The current format's attributes are set with setItalic(), setBold(), setUnderline(), setFamily() (font family), setPointSize(), setColor() and setCurrentFont(). The current paragraph's alignment is set with setAlignment(). .PP -Use setSelection() to select text. The setSelectionAttributes() function is used to indicate how selected text should be displayed. Use hasSelectedText() to find out if any text is selected. The currently selected text's position is available using getSelection() and the selected text itself is returned by selectedText(). The selection can be copied to the clipboard with copy(), or cut to the clipboard with cut(). It can be deleted with removeSelectedText(). The entire text can be selected (or unselected) using selectAll(). QTextEdit supports multiple selections. Most of the selection functions operate on the default selection, selection 0. If the user presses a non-selecting key, e.g. a cursor key without also holding down Shift, all selections are cleared. +Use setSelection() to select text. The setSelectionAttributes() function is used to indicate how selected text should be displayed. Use hasSelectedText() to find out if any text is selected. The currently selected text's position is available using getSelection() and the selected text itself is returned by selectedText(). The selection can be copied to the clipboard with copy(), or cut to the clipboard with cut(). It can be deleted with removeSelectedText(). The entire text can be selected (or unselected) using selectAll(). TQTextEdit supports multiple selections. Most of the selection functions operate on the default selection, selection 0. If the user presses a non-selecting key, e.g. a cursor key without also holding down Shift, all selections are cleared. .PP Set and get the position of the cursor with setCursorPosition() and getCursorPosition() respectively. When the cursor is moved, the signals currentFontChanged(), currentColorChanged() and currentAlignmentChanged() are emitted to reflect the font, color and alignment at the new cursor position. .PP If the text changes, the textChanged() signal is emitted, and if the user inserts a new line by pressing Return or Enter, returnPressed() is emitted. The isModified() function will return TRUE if the text has been modified. .PP -QTextEdit provides command-based undo and redo. To set the depth of the command history use setUndoDepth() which defaults to 100 steps. To undo or redo the last operation call undo() or redo(). The signals undoAvailable() and redoAvailable() indicate whether the undo and redo operations can be executed. +TQTextEdit provides command-based undo and redo. To set the depth of the command history use setUndoDepth() which defaults to 100 steps. To undo or redo the last operation call undo() or redo(). The signals undoAvailable() and redoAvailable() indicate whether the undo and redo operations can be executed. .PP The indent() function is used to reindent a paragraph. It is useful for code editors, for example in TQt Designer's code editor \fICtrl+I\fR invokes the indent() function. .PP @@ -691,143 +691,143 @@ By default the text edit widget operates in insert mode so all text that the use .PP See also Basic Widgets and Text Related Classes. .SS "Member Type Documentation" -.SH "QTextEdit::AutoFormatting" +.SH "TQTextEdit::AutoFormatting" .TP -\fCQTextEdit::AutoNone\fR - Do not perform any automatic formatting +\fCTQTextEdit::AutoNone\fR - Do not perform any automatic formatting .TP -\fCQTextEdit::AutoBulletList\fR - Only automatically format bulletted lists +\fCTQTextEdit::AutoBulletList\fR - Only automatically format bulletted lists .TP -\fCQTextEdit::AutoAll\fR - Apply all available autoformatting -.SH "QTextEdit::CursorAction" +\fCTQTextEdit::AutoAll\fR - Apply all available autoformatting +.SH "TQTextEdit::CursorAction" This enum is used by moveCursor() to specify in which direction the cursor should be moved: .TP -\fCQTextEdit::MoveBackward\fR - Moves the cursor one character backward +\fCTQTextEdit::MoveBackward\fR - Moves the cursor one character backward .TP -\fCQTextEdit::MoveWordBackward\fR - Moves the cursor one word backward +\fCTQTextEdit::MoveWordBackward\fR - Moves the cursor one word backward .TP -\fCQTextEdit::MoveForward\fR - Moves the cursor one character forward +\fCTQTextEdit::MoveForward\fR - Moves the cursor one character forward .TP -\fCQTextEdit::MoveWordForward\fR - Moves the cursor one word forward +\fCTQTextEdit::MoveWordForward\fR - Moves the cursor one word forward .TP -\fCQTextEdit::MoveUp\fR - Moves the cursor up one line +\fCTQTextEdit::MoveUp\fR - Moves the cursor up one line .TP -\fCQTextEdit::MoveDown\fR - Moves the cursor down one line +\fCTQTextEdit::MoveDown\fR - Moves the cursor down one line .TP -\fCQTextEdit::MoveLineStart\fR - Moves the cursor to the beginning of the line +\fCTQTextEdit::MoveLineStart\fR - Moves the cursor to the beginning of the line .TP -\fCQTextEdit::MoveLineEnd\fR - Moves the cursor to the end of the line +\fCTQTextEdit::MoveLineEnd\fR - Moves the cursor to the end of the line .TP -\fCQTextEdit::MoveHome\fR - Moves the cursor to the beginning of the document +\fCTQTextEdit::MoveHome\fR - Moves the cursor to the beginning of the document .TP -\fCQTextEdit::MoveEnd\fR - Moves the cursor to the end of the document +\fCTQTextEdit::MoveEnd\fR - Moves the cursor to the end of the document .TP -\fCQTextEdit::MovePgUp\fR - Moves the cursor one viewport page up +\fCTQTextEdit::MovePgUp\fR - Moves the cursor one viewport page up .TP -\fCQTextEdit::MovePgDown\fR - Moves the cursor one viewport page down -.SH "QTextEdit::KeyboardAction" +\fCTQTextEdit::MovePgDown\fR - Moves the cursor one viewport page down +.SH "TQTextEdit::KeyboardAction" This enum is used by doKeyboardAction() to specify which action should be executed: .TP -\fCQTextEdit::ActionBackspace\fR - Delete the character to the left of the cursor. +\fCTQTextEdit::ActionBackspace\fR - Delete the character to the left of the cursor. .TP -\fCQTextEdit::ActionDelete\fR - Delete the character to the right of the cursor. +\fCTQTextEdit::ActionDelete\fR - Delete the character to the right of the cursor. .TP -\fCQTextEdit::ActionReturn\fR - Split the paragraph at the cursor position. +\fCTQTextEdit::ActionReturn\fR - Split the paragraph at the cursor position. .TP -\fCQTextEdit::ActionKill\fR - If the cursor is not at the end of the paragraph, delete the text from the cursor position until the end of the paragraph. If the cursor is at the end of the paragraph, delete the hard line break at the end of the paragraph: this will cause this paragraph to be joined with the following paragraph. +\fCTQTextEdit::ActionKill\fR - If the cursor is not at the end of the paragraph, delete the text from the cursor position until the end of the paragraph. If the cursor is at the end of the paragraph, delete the hard line break at the end of the paragraph: this will cause this paragraph to be joined with the following paragraph. .TP -\fCQTextEdit::ActionWordBackspace\fR - Delete the word to the left of the cursor position. +\fCTQTextEdit::ActionWordBackspace\fR - Delete the word to the left of the cursor position. .TP -\fCQTextEdit::ActionWordDelete\fR - Delete the word to the right of the cursor position -.SH "QTextEdit::VerticalAlignment" +\fCTQTextEdit::ActionWordDelete\fR - Delete the word to the right of the cursor position +.SH "TQTextEdit::VerticalAlignment" This enum is used to set the vertical alignment of the text. .TP -\fCQTextEdit::AlignNormal\fR - Normal alignment +\fCTQTextEdit::AlignNormal\fR - Normal alignment .TP -\fCQTextEdit::AlignSuperScript\fR - Superscript +\fCTQTextEdit::AlignSuperScript\fR - Superscript .TP -\fCQTextEdit::AlignSubScript\fR - Subscript -.SH "QTextEdit::WordWrap" -This enum defines the QTextEdit's word wrap modes. +\fCTQTextEdit::AlignSubScript\fR - Subscript +.SH "TQTextEdit::WordWrap" +This enum defines the TQTextEdit's word wrap modes. .TP -\fCQTextEdit::NoWrap\fR - Do not wrap the text. +\fCTQTextEdit::NoWrap\fR - Do not wrap the text. .TP -\fCQTextEdit::WidgetWidth\fR - Wrap the text at the current width of the widget (this is the default). Wrapping is at whitespace by default; this can be changed with setWrapPolicy(). +\fCTQTextEdit::WidgetWidth\fR - Wrap the text at the current width of the widget (this is the default). Wrapping is at whitespace by default; this can be changed with setWrapPolicy(). .TP -\fCQTextEdit::FixedPixelWidth\fR - Wrap the text at a fixed number of pixels from the widget's left side. The number of pixels is set with wrapColumnOrWidth(). +\fCTQTextEdit::FixedPixelWidth\fR - Wrap the text at a fixed number of pixels from the widget's left side. The number of pixels is set with wrapColumnOrWidth(). .TP -\fCQTextEdit::FixedColumnWidth\fR - Wrap the text at a fixed number of character columns from the widget's left side. The number of characters is set with wrapColumnOrWidth(). This is useful if you need formatted text that can also be displayed gracefully on devices with monospaced fonts, for example a standard VT100 terminal, where you might set wrapColumnOrWidth() to 80. +\fCTQTextEdit::FixedColumnWidth\fR - Wrap the text at a fixed number of character columns from the widget's left side. The number of characters is set with wrapColumnOrWidth(). This is useful if you need formatted text that can also be displayed gracefully on devices with monospaced fonts, for example a standard VT100 terminal, where you might set wrapColumnOrWidth() to 80. .PP See also wordWrap and wordWrap. -.SH "QTextEdit::WrapPolicy" +.SH "TQTextEdit::WrapPolicy" This enum defines where text can be wrapped in word wrap mode. .TP -\fCQTextEdit::AtWhiteSpace\fR - Don't use this deprecated value (it is a synonym for AtWordBoundary which you should use instead). +\fCTQTextEdit::AtWhiteSpace\fR - Don't use this deprecated value (it is a synonym for AtWordBoundary which you should use instead). .TP -\fCQTextEdit::Anywhere\fR - Break anywhere, including within words. +\fCTQTextEdit::Anywhere\fR - Break anywhere, including within words. .TP -\fCQTextEdit::AtWordBoundary\fR - Break lines at word boundaries, e.g. spaces or newlines +\fCTQTextEdit::AtWordBoundary\fR - Break lines at word boundaries, e.g. spaces or newlines .TP -\fCQTextEdit::AtWordOrDocumentBoundary\fR - Break lines at whitespace, e.g. spaces or newlines if possible. Break it anywhere otherwise. +\fCTQTextEdit::AtWordOrDocumentBoundary\fR - Break lines at whitespace, e.g. spaces or newlines if possible. Break it anywhere otherwise. .PP See also wrapPolicy. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTextEdit::QTextEdit ( const TQString & text, const TQString & context = TQString::null, TQWidget * parent = 0, const char * name = 0 )" -Constructs a QTextEdit called \fIname\fR, with parent \fIparent\fR. The text edit will display the text \fItext\fR using context \fIcontext\fR. +.SH "TQTextEdit::TQTextEdit ( const TQString & text, const TQString & context = TQString::null, TQWidget * parent = 0, const char * name = 0 )" +Constructs a TQTextEdit called \fIname\fR, with parent \fIparent\fR. The text edit will display the text \fItext\fR using context \fIcontext\fR. .PP The \fIcontext\fR is a path which the text edit's QMimeSourceFactory uses to resolve the locations of files and images. It is passed to the mimeSourceFactory() when quering data. .PP For example if the text contains an image tag, \fC<img src="image.png">\fR, and the context is "path/to/look/in", the QMimeSourceFactory will try to load the image from" path/to/look/in/image.png". If the tag was \fC<img src="/image.png">\fR, the context will not be used (because QMimeSourceFactory recognizes that we have used an absolute path) and will try to load "/image.png". The context is applied in exactly the same way to \fIhrefs\fR, for example, \fC<a href="target.html">Target</a>\fR, would resolve to" path/to/look/in/target.html". -.SH "QTextEdit::QTextEdit ( TQWidget * parent = 0, const char * name = 0 )" -Constructs an empty QTextEdit called \fIname\fR, with parent \fIparent\fR. -.SH "int QTextEdit::alignment () const" +.SH "TQTextEdit::TQTextEdit ( TQWidget * parent = 0, const char * name = 0 )" +Constructs an empty TQTextEdit called \fIname\fR, with parent \fIparent\fR. +.SH "int TQTextEdit::alignment () const" Returns the alignment of the current paragraph. .PP See also setAlignment(). -.SH "TQString QTextEdit::anchorAt ( const QPoint & pos, AnchorAttribute attr )" +.SH "TQString TQTextEdit::anchorAt ( const QPoint & pos, AnchorAttribute attr )" If there is an anchor at position \fIpos\fR (in contents coordinates), the text for attribute \fIattr\fR is returned, otherwise TQString::null is returned. -.SH "TQString QTextEdit::anchorAt ( const QPoint & pos )" +.SH "TQString TQTextEdit::anchorAt ( const QPoint & pos )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP If there is an anchor at position \fIpos\fR (in contents coordinates), its \fChref\fR is returned, otherwise TQString::null is returned. -.SH "void QTextEdit::append ( const TQString & text )\fC [virtual slot]\fR" +.SH "void TQTextEdit::append ( const TQString & text )\fC [virtual slot]\fR" Appends a new paragraph with \fItext\fR to the end of the text edit. Note that the undo/redo history is cleared by this function, and no undo history is kept for appends which makes them faster than insert()s. If you want to append text which is added to the undo/redo history as well, use insertParagraph(). .PP Examples: .)l network/clientserver/client/client.cpp, network/clientserver/server/server.cpp, network/httpd/httpd.cpp, and process/process.cpp. -.SH "uint QTextEdit::autoFormatting () const" +.SH "uint TQTextEdit::autoFormatting () const" Returns the enabled set of auto formatting features. See the "autoFormatting" property for details. -.SH "bool QTextEdit::bold () const" +.SH "bool TQTextEdit::bold () const" Returns TRUE if the current format is bold; otherwise returns FALSE. .PP See also setBold(). -.SH "int QTextEdit::charAt ( const QPoint & pos, int * para ) const" +.SH "int TQTextEdit::charAt ( const QPoint & pos, int * para ) const" Returns the index of the character (relative to its paragraph) at position \fIpos\fR (in contents coordinates). If \fIpara\fR is not 0, \fI*para\fR is set to the character's paragraph. -.SH "void QTextEdit::clear ()\fC [virtual slot]\fR" +.SH "void TQTextEdit::clear ()\fC [virtual slot]\fR" Deletes all the text in the text edit. .PP See also cut(), removeSelectedText(), and text. -.SH "void QTextEdit::clearParagraphBackground ( int para )\fC [virtual slot]\fR" +.SH "void TQTextEdit::clearParagraphBackground ( int para )\fC [virtual slot]\fR" Clears the background color of the paragraph \fIpara\fR, so that the default color is used again. -.SH "void QTextEdit::clicked ( int para, int pos )\fC [signal]\fR" +.SH "void TQTextEdit::clicked ( int para, int pos )\fC [signal]\fR" This signal is emitted when the mouse is clicked on the paragraph \fIpara\fR at character position \fIpos\fR. .PP See also doubleClicked(). -.SH "TQColor QTextEdit::color () const" +.SH "TQColor TQTextEdit::color () const" Returns the color of the current format. .PP See also setColor() and paper. -.SH "TQString QTextEdit::context () const" +.SH "TQString TQTextEdit::context () const" Returns the context of the text edit. The context is a path which the text edit's QMimeSourceFactory uses to resolve the locations of files and images. .PP See also text. .PP Examples: .)l action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, mdi/application.cpp, and qdir/qdir.cpp. -.SH "void QTextEdit::copy ()\fC [virtual slot]\fR" +.SH "void TQTextEdit::copy ()\fC [virtual slot]\fR" Copies any selected text (from selection 0) to the clipboard. .PP See also hasSelectedText and copyAvailable(). -.SH "void QTextEdit::copyAvailable ( bool yes )\fC [signal]\fR" +.SH "void TQTextEdit::copyAvailable ( bool yes )\fC [signal]\fR" This signal is emitted when text is selected or de-selected in the text edit. .PP When text is selected this signal will be emitted with \fIyes\fR set to TRUE. If no text has been selected or if the selected text is de-selected this signal is emitted with \fIyes\fR set to FALSE. @@ -835,11 +835,11 @@ When text is selected this signal will be emitted with \fIyes\fR set to TRUE. If If \fIyes\fR is TRUE then copy() can be used to copy the selection to the clipboard. If \fIyes\fR is FALSE then copy() does nothing. .PP See also selectionChanged(). -.SH "QPopupMenu * QTextEdit::createPopupMenu ( const QPoint & pos )\fC [virtual protected]\fR" +.SH "QPopupMenu * TQTextEdit::createPopupMenu ( const QPoint & pos )\fC [virtual protected]\fR" This function is called to create a right mouse button popup menu at the document position \fIpos\fR. If you want to create a custom popup menu, reimplement this function and return the created popup menu. Ownership of the popup menu is transferred to the caller. .PP \fBWarning:\fR The QPopupMenu ID values 0-7 are reserved, and they map to the standard operations. When inserting items into your custom popup menu, be sure to specify ID values larger than 7. -.SH "QPopupMenu * QTextEdit::createPopupMenu ()\fC [virtual protected]\fR" +.SH "QPopupMenu * TQTextEdit::createPopupMenu ()\fC [virtual protected]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. @@ -847,65 +847,65 @@ This is an overloaded member function, provided for convenience. It behaves esse This function is called to create a right mouse button popup menu. If you want to create a custom popup menu, reimplement this function and return the created popup menu. Ownership of the popup menu is transferred to the caller. .PP This function is only called if createPopupMenu( const QPoint & ) returns 0. -.SH "void QTextEdit::currentAlignmentChanged ( int a )\fC [signal]\fR" +.SH "void TQTextEdit::currentAlignmentChanged ( int a )\fC [signal]\fR" This signal is emitted if the alignment of the current paragraph has changed. .PP The new alignment is \fIa\fR. .PP See also setAlignment(). -.SH "void QTextEdit::currentColorChanged ( const TQColor & c )\fC [signal]\fR" +.SH "void TQTextEdit::currentColorChanged ( const TQColor & c )\fC [signal]\fR" This signal is emitted if the color of the current format has changed. .PP The new color is \fIc\fR. .PP See also setColor(). -.SH "QFont QTextEdit::currentFont () const" +.SH "QFont TQTextEdit::currentFont () const" Returns the font of the current format. .PP See also setCurrentFont(), setFamily(), and setPointSize(). -.SH "void QTextEdit::currentFontChanged ( const QFont & f )\fC [signal]\fR" +.SH "void TQTextEdit::currentFontChanged ( const QFont & f )\fC [signal]\fR" This signal is emitted if the font of the current format has changed. .PP The new font is \fIf\fR. .PP See also setCurrentFont(). -.SH "void QTextEdit::currentVerticalAlignmentChanged ( VerticalAlignment a )\fC [signal]\fR" +.SH "void TQTextEdit::currentVerticalAlignmentChanged ( VerticalAlignment a )\fC [signal]\fR" This signal is emitted if the vertical alignment of the current format has changed. .PP The new vertical alignment is \fIa\fR. .PP See also setVerticalAlignment(). -.SH "void QTextEdit::cursorPositionChanged ( int para, int pos )\fC [signal]\fR" +.SH "void TQTextEdit::cursorPositionChanged ( int para, int pos )\fC [signal]\fR" This signal is emitted if the position of the cursor has changed. \fIpara\fR contains the paragraph index and \fIpos\fR contains the character position within the paragraph. .PP See also setCursorPosition(). -.SH "void QTextEdit::cut ()\fC [virtual slot]\fR" +.SH "void TQTextEdit::cut ()\fC [virtual slot]\fR" Copies the selected text (from selection 0) to the clipboard and deletes it from the text edit. .PP If there is no selected text (in selection 0) nothing happens. .PP -See also QTextEdit::copy(), paste(), and pasteSubType(). -.SH "void QTextEdit::del ()\fC [virtual slot]\fR" +See also TQTextEdit::copy(), paste(), and pasteSubType(). +.SH "void TQTextEdit::del ()\fC [virtual slot]\fR" If there is some selected text (in selection 0) it is deleted. If there is no selected text (in selection 0) the character to the right of the text cursor is deleted. .PP See also removeSelectedText() and cut(). -.SH "void QTextEdit::doKeyboardAction ( KeyboardAction action )\fC [virtual slot]\fR" +.SH "void TQTextEdit::doKeyboardAction ( KeyboardAction action )\fC [virtual slot]\fR" Executes keyboard action \fIaction\fR. This is normally called by a key event handler. -.SH "TQString QTextEdit::documentTitle () const" +.SH "TQString TQTextEdit::documentTitle () const" Returns the title of the document parsed from the text. See the "documentTitle" property for details. -.SH "void QTextEdit::doubleClicked ( int para, int pos )\fC [signal]\fR" +.SH "void TQTextEdit::doubleClicked ( int para, int pos )\fC [signal]\fR" This signal is emitted when the mouse is double-clicked on the paragraph \fIpara\fR at character position \fIpos\fR. .PP See also clicked(). -.SH "void QTextEdit::ensureCursorVisible ()\fC [virtual slot]\fR" +.SH "void TQTextEdit::ensureCursorVisible ()\fC [virtual slot]\fR" Ensures that the cursor is visible by scrolling the text edit if necessary. .PP See also setCursorPosition(). -.SH "TQString QTextEdit::family () const" +.SH "TQString TQTextEdit::family () const" Returns the font family of the current format. .PP See also setFamily(), setCurrentFont(), and setPointSize(). -.SH "bool QTextEdit::find ( const TQString & expr, bool cs, bool wo, bool forward = TRUE, int * para = 0, int * index = 0 )\fC [virtual]\fR" +.SH "bool TQTextEdit::find ( const TQString & expr, bool cs, bool wo, bool forward = TRUE, int * para = 0, int * index = 0 )\fC [virtual]\fR" Finds the next occurrence of the string, \fIexpr\fR. Returns TRUE if \fIexpr\fR was found; otherwise returns FALSE. .PP If \fIpara\fR and \fIindex\fR are both 0 the search begins from the current cursor position. If \fIpara\fR and \fIindex\fR are both not 0, the search begins from the \fI*index\fR character position in the \fI*para\fR paragraph. @@ -919,9 +919,9 @@ If \fIexpr\fR is not found the function returns FALSE. If \fIindex\fR and \fIpar Please note that this function will make the next occurrence of the string (if found) the current selection, and will thus modify the cursor position. .PP Using the \fIpara\fR and \fIindex\fR parameters will not work correctly in case the document contains tables. -.SH "bool QTextEdit::focusNextPrevChild ( bool n )\fC [virtual protected]\fR" +.SH "bool TQTextEdit::focusNextPrevChild ( bool n )\fC [virtual protected]\fR" Reimplemented to allow tabbing through links. If \fIn\fR is TRUE the tab moves the focus to the next child; if \fIn\fR is FALSE the tab moves the focus to the previous child. Returns TRUE if the focus was moved; otherwise returns FALSE. -.SH "QFont QTextEdit::font () const" +.SH "QFont TQTextEdit::font () const" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Returns QScrollView::font() @@ -929,11 +929,11 @@ Returns QScrollView::font() \fBWarning:\fR In previous versions this function returned the font of the current format. This lead to confusion. Please use currentFont() instead. .PP Example: qwerty/qwerty.cpp. -.SH "void QTextEdit::getCursorPosition ( int * para, int * index ) const" +.SH "void TQTextEdit::getCursorPosition ( int * para, int * index ) const" This function sets the \fI*para\fR and \fI*index\fR parameters to the current cursor position. \fIpara\fR and \fIindex\fR must not be 0. .PP See also setCursorPosition(). -.SH "void QTextEdit::getSelection ( int * paraFrom, int * indexFrom, int * paraTo, int * indexTo, int selNum = 0 ) const" +.SH "void TQTextEdit::getSelection ( int * paraFrom, int * indexFrom, int * paraTo, int * indexTo, int selNum = 0 ) const" If there is a selection, \fI*paraFrom\fR is set to the number of the paragraph in which the selection begins and \fI*paraTo\fR is set to the number of the paragraph in which the selection ends. (They could be the same.) \fI*indexFrom\fR is set to the index at which the selection begins within \fI*paraFrom\fR, and \fI*indexTo\fR is set to the index at which the selection ends within \fI*paraTo\fR. .PP If there is no selection, \fI*paraFrom\fR, \fI*indexFrom\fR, \fI*paraTo\fR and \fI*indexTo\fR are all set to -1. @@ -943,210 +943,210 @@ If \fIparaFrom\fR, \fIindexFrom\fR, \fIparaTo\fR or \fIindexTo\fR is 0 this func The \fIselNum\fR is the number of the selection (multiple selections are supported). It defaults to 0 (the default selection). .PP See also setSelection() and selectedText. -.SH "bool QTextEdit::hasSelectedText () const" +.SH "bool TQTextEdit::hasSelectedText () const" Returns TRUE if some text is selected in selection 0; otherwise returns FALSE. See the "hasSelectedText" property for details. -.SH "int QTextEdit::heightForWidth ( int w ) const\fC [virtual]\fR" +.SH "int TQTextEdit::heightForWidth ( int w ) const\fC [virtual]\fR" Returns how many pixels high the text edit needs to be to display all the text if the text edit is \fIw\fR pixels wide. .PP Reimplemented from TQWidget. -.SH "void QTextEdit::insert ( const TQString & text, uint insertionFlags = CheckNewLines | RemoveSelected )\fC [slot]\fR" +.SH "void TQTextEdit::insert ( const TQString & text, uint insertionFlags = CheckNewLines | RemoveSelected )\fC [slot]\fR" Inserts \fItext\fR at the current cursor position. .PP -The \fIinsertionFlags\fR define how the text is inserted. If RedoIndentation is set, the paragraph is re-indented. If CheckNewLines is set, newline characters in \fItext\fR result in hard line breaks (i.e. new paragraphs). If \fCcheckNewLine\fR is not set, the behaviour of the editor is undefined if the \fItext\fR contains newlines. (It is not possible to change QTextEdit's newline handling behavior, but you can use TQString::replace() to preprocess text before inserting it.) If RemoveSelected is set, any selected text (in selection 0) is removed before the text is inserted. +The \fIinsertionFlags\fR define how the text is inserted. If RedoIndentation is set, the paragraph is re-indented. If CheckNewLines is set, newline characters in \fItext\fR result in hard line breaks (i.e. new paragraphs). If \fCcheckNewLine\fR is not set, the behaviour of the editor is undefined if the \fItext\fR contains newlines. (It is not possible to change TQTextEdit's newline handling behavior, but you can use TQString::replace() to preprocess text before inserting it.) If RemoveSelected is set, any selected text (in selection 0) is removed before the text is inserted. .PP The default flags are CheckNewLines | RemoveSelected. .PP If the widget is in LogText mode this function will do nothing. .PP See also paste() and pasteSubType(). -.SH "void QTextEdit::insert ( const TQString & text, bool indent, bool checkNewLine = TRUE, bool removeSelected = TRUE )\fC [virtual slot]\fR" +.SH "void TQTextEdit::insert ( const TQString & text, bool indent, bool checkNewLine = TRUE, bool removeSelected = TRUE )\fC [virtual slot]\fR" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. -.SH "void QTextEdit::insertAt ( const TQString & text, int para, int index )\fC [virtual slot]\fR" +.SH "void TQTextEdit::insertAt ( const TQString & text, int para, int index )\fC [virtual slot]\fR" Inserts \fItext\fR in the paragraph \fIpara\fR at position \fIindex\fR. -.SH "void QTextEdit::insertParagraph ( const TQString & text, int para )\fC [virtual slot]\fR" +.SH "void TQTextEdit::insertParagraph ( const TQString & text, int para )\fC [virtual slot]\fR" Inserts \fItext\fR as a new paragraph at position \fIpara\fR. If \fIpara\fR is -1, the text is appended. Use append() if the append operation is performance critical. -.SH "bool QTextEdit::isModified () const" +.SH "bool TQTextEdit::isModified () const" Returns TRUE if the document has been modified by the user; otherwise returns FALSE. See the "modified" property for details. -.SH "bool QTextEdit::isOverwriteMode () const" +.SH "bool TQTextEdit::isOverwriteMode () const" Returns the text edit's overwrite mode. See the "overwriteMode" property for details. -.SH "bool QTextEdit::isReadOnly () const" +.SH "bool TQTextEdit::isReadOnly () const" Returns TRUE if the text edit is read-only; otherwise returns FALSE. See the "readOnly" property for details. -.SH "bool QTextEdit::isRedoAvailable () const" +.SH "bool TQTextEdit::isRedoAvailable () const" Returns TRUE if redo is available; otherwise returns FALSE. -.SH "bool QTextEdit::isUndoAvailable () const" +.SH "bool TQTextEdit::isUndoAvailable () const" Returns TRUE if undo is available; otherwise returns FALSE. -.SH "bool QTextEdit::isUndoRedoEnabled () const" +.SH "bool TQTextEdit::isUndoRedoEnabled () const" Returns TRUE if undo/redo is enabled; otherwise returns FALSE. See the "undoRedoEnabled" property for details. -.SH "bool QTextEdit::italic () const" +.SH "bool TQTextEdit::italic () const" Returns TRUE if the current format is italic; otherwise returns FALSE. .PP See also setItalic(). -.SH "void QTextEdit::keyPressEvent ( QKeyEvent * e )\fC [virtual protected]\fR" +.SH "void TQTextEdit::keyPressEvent ( QKeyEvent * e )\fC [virtual protected]\fR" Processes the key event, \fIe\fR. By default key events are used to provide keyboard navigation and text editing. .PP Reimplemented from TQWidget. .PP -Reimplemented in QTextBrowser. -.SH "int QTextEdit::length () const" +Reimplemented in TQTextBrowser. +.SH "int TQTextEdit::length () const" Returns the number of characters in the text. See the "length" property for details. -.SH "int QTextEdit::lineOfChar ( int para, int index )" +.SH "int TQTextEdit::lineOfChar ( int para, int index )" Returns the line number of the line in paragraph \fIpara\fR in which the character at position \fIindex\fR appears. The \fIindex\fR position is relative to the beginning of the paragraph. If there is no such paragraph or no such character at the \fIindex\fR position (e.g. the index is out of range) -1 is returned. -.SH "int QTextEdit::lines () const" +.SH "int TQTextEdit::lines () const" Returns the number of lines in the text edit; this could be 0. .PP \fBWarning:\fR This function may be slow. Lines change all the time during word wrapping, so this function has to iterate over all the paragraphs and get the number of lines from each one individually. -.SH "int QTextEdit::linesOfParagraph ( int para ) const" +.SH "int TQTextEdit::linesOfParagraph ( int para ) const" Returns the number of lines in paragraph \fIpara\fR, or -1 if there is no paragraph with index \fIpara\fR. -.SH "bool QTextEdit::linkUnderline () const" +.SH "bool TQTextEdit::linkUnderline () const" Returns TRUE if hypertext links will be underlined; otherwise returns FALSE. See the "linkUnderline" property for details. -.SH "int QTextEdit::maxLogLines ()\fC [slot]\fR" -Returns the maximum number of lines QTextEdit can hold in LogText mode. By default the number of lines is unlimited, which is signified by a value of -1. -.SH "QMimeSourceFactory * QTextEdit::mimeSourceFactory () const" +.SH "int TQTextEdit::maxLogLines ()\fC [slot]\fR" +Returns the maximum number of lines TQTextEdit can hold in LogText mode. By default the number of lines is unlimited, which is signified by a value of -1. +.SH "QMimeSourceFactory * TQTextEdit::mimeSourceFactory () const" Returns the QMimeSourceFactory which is being used by this text edit. .PP See also setMimeSourceFactory(). .PP Examples: .)l action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, mdi/application.cpp, and qdir/qdir.cpp. -.SH "void QTextEdit::modificationChanged ( bool m )\fC [signal]\fR" +.SH "void TQTextEdit::modificationChanged ( bool m )\fC [signal]\fR" This signal is emitted when the modification status of the document has changed. If \fIm\fR is TRUE, the document was modified, otherwise the modification state has been reset to unmodified. .PP See also modified. -.SH "void QTextEdit::moveCursor ( CursorAction action, bool select )\fC [virtual slot]\fR" +.SH "void TQTextEdit::moveCursor ( CursorAction action, bool select )\fC [virtual slot]\fR" Moves the text cursor according to \fIaction\fR. This is normally used by some key event handler. \fIselect\fR specifies whether the text between the current cursor position and the new position should be selected. -.SH "QBrush QTextEdit::paper () const" +.SH "QBrush TQTextEdit::paper () const" Returns the background (paper) brush. See the "paper" property for details. -.SH "int QTextEdit::paragraphAt ( const QPoint & pos ) const" +.SH "int TQTextEdit::paragraphAt ( const QPoint & pos ) const" Returns the paragraph which is at position \fIpos\fR (in contents coordinates). -.SH "TQColor QTextEdit::paragraphBackgroundColor ( int para ) const" +.SH "TQColor TQTextEdit::paragraphBackgroundColor ( int para ) const" Returns the background color of the paragraph \fIpara\fR or an invalid color if \fIpara\fR is out of range or the paragraph has no background set -.SH "int QTextEdit::paragraphLength ( int para ) const" +.SH "int TQTextEdit::paragraphLength ( int para ) const" Returns the length of the paragraph \fIpara\fR (i.e. the number of characters), or -1 if there is no paragraph with index \fIpara\fR. .PP This function ignores newlines. -.SH "QRect QTextEdit::paragraphRect ( int para ) const" +.SH "QRect TQTextEdit::paragraphRect ( int para ) const" Returns the rectangle of the paragraph \fIpara\fR in contents coordinates, or an invalid rectangle if \fIpara\fR is out of range. -.SH "int QTextEdit::paragraphs () const" +.SH "int TQTextEdit::paragraphs () const" Returns the number of paragraphs in the text; an empty textedit is always considered to have one paragraph, so 1 is returned in this case. -.SH "void QTextEdit::paste ()\fC [virtual slot]\fR" +.SH "void TQTextEdit::paste ()\fC [virtual slot]\fR" Pastes the text from the clipboard into the text edit at the current cursor position. Only plain text is pasted. .PP If there is no text in the clipboard nothing happens. .PP -See also pasteSubType(), cut(), and QTextEdit::copy(). -.SH "void QTextEdit::pasteSubType ( const QCString & subtype )\fC [virtual slot]\fR" +See also pasteSubType(), cut(), and TQTextEdit::copy(). +.SH "void TQTextEdit::pasteSubType ( const QCString & subtype )\fC [virtual slot]\fR" Pastes the text with format \fIsubtype\fR from the clipboard into the text edit at the current cursor position. The \fIsubtype\fR can be" plain" or "html". .PP If there is no text with format \fIsubtype\fR in the clipboard nothing happens. .PP -See also paste(), cut(), and QTextEdit::copy(). -.SH "void QTextEdit::placeCursor ( const QPoint & pos, QTextCursor * c = 0 )\fC [virtual slot]\fR" +See also paste(), cut(), and TQTextEdit::copy(). +.SH "void TQTextEdit::placeCursor ( const QPoint & pos, TQTextCursor * c = 0 )\fC [virtual slot]\fR" Places the cursor \fIc\fR at the character which is closest to position \fIpos\fR (in contents coordinates). If \fIc\fR is 0, the default text cursor is used. .PP See also setCursorPosition(). -.SH "int QTextEdit::pointSize () const" +.SH "int TQTextEdit::pointSize () const" Returns the point size of the font of the current format. .PP See also setFamily(), setCurrentFont(), and setPointSize(). -.SH "void QTextEdit::redo ()\fC [virtual slot]\fR" +.SH "void TQTextEdit::redo ()\fC [virtual slot]\fR" Redoes the last operation. .PP If there is no operation to redo, i.e. there is no redo step in the undo/redo history, nothing happens. .PP See also redoAvailable(), undo(), and undoDepth. -.SH "void QTextEdit::redoAvailable ( bool yes )\fC [signal]\fR" +.SH "void TQTextEdit::redoAvailable ( bool yes )\fC [signal]\fR" This signal is emitted when the availability of redo changes. If \fIyes\fR is TRUE, then redo() will work until redoAvailable( FALSE ) is next emitted. .PP See also redo() and undoDepth. -.SH "void QTextEdit::removeParagraph ( int para )\fC [virtual slot]\fR" +.SH "void TQTextEdit::removeParagraph ( int para )\fC [virtual slot]\fR" Removes the paragraph \fIpara\fR. -.SH "void QTextEdit::removeSelectedText ( int selNum = 0 )\fC [virtual slot]\fR" +.SH "void TQTextEdit::removeSelectedText ( int selNum = 0 )\fC [virtual slot]\fR" Deletes the text of selection \fIselNum\fR (by default, the default selection, 0). If there is no selected text nothing happens. .PP See also selectedText and removeSelection(). -.SH "void QTextEdit::removeSelection ( int selNum = 0 )\fC [virtual slot]\fR" +.SH "void TQTextEdit::removeSelection ( int selNum = 0 )\fC [virtual slot]\fR" Removes the selection \fIselNum\fR (by default 0). This does not remove the selected text. .PP See also removeSelectedText(). -.SH "void QTextEdit::repaintChanged ()\fC [protected]\fR" +.SH "void TQTextEdit::repaintChanged ()\fC [protected]\fR" Repaints any paragraphs that have changed. .PP Although used extensively internally you shouldn't need to call this yourself. -.SH "void QTextEdit::returnPressed ()\fC [signal]\fR" +.SH "void TQTextEdit::returnPressed ()\fC [signal]\fR" This signal is emitted if the user pressed the Return or the Enter key. -.SH "void QTextEdit::scrollToAnchor ( const TQString & name )\fC [virtual slot]\fR" +.SH "void TQTextEdit::scrollToAnchor ( const TQString & name )\fC [virtual slot]\fR" Scrolls the text edit to make the text at the anchor called \fIname\fR visible, if it can be found in the document. If the anchor isn't found no scrolling will occur. An anchor is defined using the HTML anchor tag, e.g. \fC<a name="target">\fR. -.SH "void QTextEdit::scrollToBottom ()\fC [virtual slot]\fR" +.SH "void TQTextEdit::scrollToBottom ()\fC [virtual slot]\fR" Scrolls to the bottom of the document and does formatting if required. -.SH "void QTextEdit::selectAll ( bool select = TRUE )\fC [virtual slot]\fR" +.SH "void TQTextEdit::selectAll ( bool select = TRUE )\fC [virtual slot]\fR" If \fIselect\fR is TRUE (the default), all the text is selected as selection 0. If \fIselect\fR is FALSE any selected text is unselected, i.e. the default selection (selection 0) is cleared. .PP See also selectedText. -.SH "TQString QTextEdit::selectedText () const" +.SH "TQString TQTextEdit::selectedText () const" Returns the selected text (from selection 0) or an empty string if there is no currently selected text (in selection 0). See the "selectedText" property for details. -.SH "void QTextEdit::selectionChanged ()\fC [signal]\fR" +.SH "void TQTextEdit::selectionChanged ()\fC [signal]\fR" This signal is emitted whenever the selection changes. .PP See also setSelection() and copyAvailable(). -.SH "void QTextEdit::setAlignment ( int a )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setAlignment ( int a )\fC [virtual slot]\fR" Sets the alignment of the current paragraph to \fIa\fR. Valid alignments are TQt::AlignLeft, TQt::AlignRight, TQt::AlignJustify and TQt::AlignCenter (which centers horizontally). .PP Reimplemented in QMultiLineEdit. -.SH "void QTextEdit::setAutoFormatting ( uint features )" +.SH "void TQTextEdit::setAutoFormatting ( uint features )" Sets the enabled set of auto formatting features to \fIfeatures\fR. See the "autoFormatting" property for details. -.SH "void QTextEdit::setBold ( bool b )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setBold ( bool b )\fC [virtual slot]\fR" If \fIb\fR is TRUE sets the current format to bold; otherwise sets the current format to non-bold. .PP See also bold(). -.SH "void QTextEdit::setColor ( const TQColor & c )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setColor ( const TQColor & c )\fC [virtual slot]\fR" Sets the color of the current format, i.e. of the text, to \fIc\fR. .PP See also color() and paper. -.SH "void QTextEdit::setCurrentFont ( const QFont & f )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setCurrentFont ( const QFont & f )\fC [virtual slot]\fR" Sets the font of the current format to \fIf\fR. .PP If the widget is in LogText mode this function will do nothing. Use setFont() instead. .PP See also currentFont(), setPointSize(), and setFamily(). -.SH "void QTextEdit::setCursorPosition ( int para, int index )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setCursorPosition ( int para, int index )\fC [virtual slot]\fR" Sets the cursor to position \fIindex\fR in paragraph \fIpara\fR. .PP See also getCursorPosition(). -.SH "void QTextEdit::setFamily ( const TQString & fontFamily )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setFamily ( const TQString & fontFamily )\fC [virtual slot]\fR" Sets the font family of the current format to \fIfontFamily\fR. .PP See also family() and setCurrentFont(). -.SH "void QTextEdit::setItalic ( bool b )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setItalic ( bool b )\fC [virtual slot]\fR" If \fIb\fR is TRUE sets the current format to italic; otherwise sets the current format to non-italic. .PP See also italic(). -.SH "void QTextEdit::setLinkUnderline ( bool )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setLinkUnderline ( bool )\fC [virtual slot]\fR" Sets whether hypertext links will be underlined. See the "linkUnderline" property for details. -.SH "void QTextEdit::setMaxLogLines ( int limit )\fC [slot]\fR" -Sets the maximum number of lines a QTextEdit can hold in LogText mode to \fIlimit\fR. If \fIlimit\fR is -1 (the default), this signifies an unlimited number of lines. +.SH "void TQTextEdit::setMaxLogLines ( int limit )\fC [slot]\fR" +Sets the maximum number of lines a TQTextEdit can hold in LogText mode to \fIlimit\fR. If \fIlimit\fR is -1 (the default), this signifies an unlimited number of lines. .PP \fBWarning:\fR Never use formatting tags that span more than one line when the maximum log lines is set. When lines are removed from the top of the buffer it could result in an unbalanced tag pair, i.e. the left formatting tag is removed before the right one. -.SH "void QTextEdit::setMimeSourceFactory ( QMimeSourceFactory * factory )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setMimeSourceFactory ( QMimeSourceFactory * factory )\fC [virtual slot]\fR" Sets the text edit's mimesource factory to \fIfactory\fR. See QMimeSourceFactory for further details. .PP See also mimeSourceFactory(). -.SH "void QTextEdit::setModified ( bool m )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setModified ( bool m )\fC [virtual slot]\fR" Sets whether the document has been modified by the user to \fIm\fR. See the "modified" property for details. -.SH "void QTextEdit::setOverwriteMode ( bool b )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setOverwriteMode ( bool b )\fC [virtual slot]\fR" Sets the text edit's overwrite mode to \fIb\fR. See the "overwriteMode" property for details. -.SH "void QTextEdit::setPaper ( const QBrush & pap )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setPaper ( const QBrush & pap )\fC [virtual slot]\fR" Sets the background (paper) brush to \fIpap\fR. See the "paper" property for details. -.SH "void QTextEdit::setParagraphBackgroundColor ( int para, const TQColor & bg )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setParagraphBackgroundColor ( int para, const TQColor & bg )\fC [virtual slot]\fR" Sets the background color of the paragraph \fIpara\fR to \fIbg\fR. -.SH "void QTextEdit::setPointSize ( int s )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setPointSize ( int s )\fC [virtual slot]\fR" Sets the point size of the current format to \fIs\fR. .PP Note that if \fIs\fR is zero or negative, the behaviour of this function is not defined. .PP See also pointSize(), setCurrentFont(), and setFamily(). -.SH "void QTextEdit::setReadOnly ( bool b )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setReadOnly ( bool b )\fC [virtual slot]\fR" Sets whether the text edit is read-only to \fIb\fR. See the "readOnly" property for details. -.SH "void QTextEdit::setSelection ( int paraFrom, int indexFrom, int paraTo, int indexTo, int selNum = 0 )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setSelection ( int paraFrom, int indexFrom, int paraTo, int indexTo, int selNum = 0 )\fC [virtual slot]\fR" Sets a selection which starts at position \fIindexFrom\fR in paragraph \fIparaFrom\fR and ends at position \fIindexTo\fR in paragraph \fIparaTo\fR. .PP Any existing selections which have a different id (\fIselNum\fR) are left alone, but if an existing selection has the same id as \fIselNum\fR it is removed and replaced by this selection. @@ -1156,21 +1156,21 @@ Uses the selection settings of selection \fIselNum\fR. If \fIselNum\fR is 0, thi The cursor is moved to the end of the selection if \fIselNum\fR is 0, otherwise the cursor position remains unchanged. .PP See also getSelection() and selectedText. -.SH "void QTextEdit::setSelectionAttributes ( int selNum, const TQColor & back, bool invertText )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setSelectionAttributes ( int selNum, const TQColor & back, bool invertText )\fC [virtual slot]\fR" Sets the background color of selection number \fIselNum\fR to \fIback\fR and specifies whether the text of this selection should be inverted with \fIinvertText\fR. .PP This only works for \fIselNum\fR > 0. The default selection (\fIselNum\fR == 0) gets its attributes from the text edit's colorGroup(). -.SH "void QTextEdit::setStyleSheet ( QStyleSheet * styleSheet )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setStyleSheet ( QStyleSheet * styleSheet )\fC [virtual slot]\fR" Sets the stylesheet to use with this text edit to \fIstyleSheet\fR. Changes will only take effect for new text added with setText() or append(). .PP See also styleSheet(). -.SH "void QTextEdit::setTabChangesFocus ( bool b )\fC [slot]\fR" +.SH "void TQTextEdit::setTabChangesFocus ( bool b )\fC [slot]\fR" Sets whether TAB changes focus or is accepted as input to \fIb\fR. See the "tabChangesFocus" property for details. -.SH "void QTextEdit::setTabStopWidth ( int ts )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setTabStopWidth ( int ts )\fC [virtual slot]\fR" Sets the tab stop width in pixels to \fIts\fR. See the "tabStopWidth" property for details. -.SH "void QTextEdit::setText ( const TQString & txt )\fC [slot]\fR" +.SH "void TQTextEdit::setText ( const TQString & txt )\fC [slot]\fR" Sets the text edit's text to \fItxt\fR. See the "text" property for details. -.SH "void QTextEdit::setText ( const TQString & text, const TQString & context )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setText ( const TQString & text, const TQString & context )\fC [virtual slot]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Changes the text of the text edit to the string \fItext\fR and the context to \fIcontext\fR. Any previous text is removed. @@ -1179,112 +1179,112 @@ Changes the text of the text edit to the string \fItext\fR and the context to \f .PP For rich text the rendering style and available tags are defined by a styleSheet(); see QStyleSheet for details. .PP -The optional \fIcontext\fR is a path which the text edit's QMimeSourceFactory uses to resolve the locations of files and images. (See QTextEdit::QTextEdit().) It is passed to the text edit's QMimeSourceFactory when quering data. +The optional \fIcontext\fR is a path which the text edit's QMimeSourceFactory uses to resolve the locations of files and images. (See TQTextEdit::TQTextEdit().) It is passed to the text edit's QMimeSourceFactory when quering data. .PP Note that the undo/redo history is cleared by this function. .PP See also text and textFormat. -.SH "void QTextEdit::setTextFormat ( TextFormat f )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setTextFormat ( TextFormat f )\fC [virtual slot]\fR" Sets the text format: rich text, plain text, log text or auto text to \fIf\fR. See the "textFormat" property for details. -.SH "void QTextEdit::setUnderline ( bool b )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setUnderline ( bool b )\fC [virtual slot]\fR" If \fIb\fR is TRUE sets the current format to underline; otherwise sets the current format to non-underline. .PP See also underline(). -.SH "void QTextEdit::setUndoDepth ( int d )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setUndoDepth ( int d )\fC [virtual slot]\fR" Sets the depth of the undo history to \fId\fR. See the "undoDepth" property for details. -.SH "void QTextEdit::setUndoRedoEnabled ( bool b )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setUndoRedoEnabled ( bool b )\fC [virtual slot]\fR" Sets whether undo/redo is enabled to \fIb\fR. See the "undoRedoEnabled" property for details. -.SH "void QTextEdit::setVerticalAlignment ( VerticalAlignment a )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setVerticalAlignment ( VerticalAlignment a )\fC [virtual slot]\fR" Sets the vertical alignment of the current format, i.e. of the text, to \fIa\fR. .PP See also color() and paper. -.SH "void QTextEdit::setWordWrap ( WordWrap mode )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setWordWrap ( WordWrap mode )\fC [virtual slot]\fR" Sets the word wrap mode to \fImode\fR. See the "wordWrap" property for details. -.SH "void QTextEdit::setWrapColumnOrWidth ( int )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setWrapColumnOrWidth ( int )\fC [virtual slot]\fR" Sets the position (in pixels or columns depending on the wrap mode) where text will be wrapped. See the "wrapColumnOrWidth" property for details. -.SH "void QTextEdit::setWrapPolicy ( WrapPolicy policy )\fC [virtual slot]\fR" +.SH "void TQTextEdit::setWrapPolicy ( WrapPolicy policy )\fC [virtual slot]\fR" Sets the word wrap policy, at whitespace or anywhere to \fIpolicy\fR. See the "wrapPolicy" property for details. -.SH "QStyleSheet * QTextEdit::styleSheet () const" +.SH "QStyleSheet * TQTextEdit::styleSheet () const" Returns the QStyleSheet which is being used by this text edit. .PP See also setStyleSheet(). .PP Examples: .)l action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, and mdi/application.cpp. -.SH "void QTextEdit::sync ()\fC [virtual slot]\fR" -QTextEdit is optimized for large amounts text. One of its optimizations is to format only the visible text, formatting the rest on demand, e.g. as the user scrolls, so you don't usually need to call this function. +.SH "void TQTextEdit::sync ()\fC [virtual slot]\fR" +TQTextEdit is optimized for large amounts text. One of its optimizations is to format only the visible text, formatting the rest on demand, e.g. as the user scrolls, so you don't usually need to call this function. .PP In some situations you may want to force the whole text to be formatted. For example, if after calling setText(), you wanted to know the height of the document (using contentsHeight()), you would call this function first. -.SH "QSyntaxHighlighter * QTextEdit::syntaxHighlighter () const" -Returns the QSyntaxHighlighter set on this QTextEdit. 0 is returned if no syntax highlighter is set. -.SH "bool QTextEdit::tabChangesFocus () const" +.SH "QSyntaxHighlighter * TQTextEdit::syntaxHighlighter () const" +Returns the QSyntaxHighlighter set on this TQTextEdit. 0 is returned if no syntax highlighter is set. +.SH "bool TQTextEdit::tabChangesFocus () const" Returns TRUE if TAB changes focus or is accepted as input; otherwise returns FALSE. See the "tabChangesFocus" property for details. -.SH "int QTextEdit::tabStopWidth () const" +.SH "int TQTextEdit::tabStopWidth () const" Returns the tab stop width in pixels. See the "tabStopWidth" property for details. -.SH "TQString QTextEdit::text () const" +.SH "TQString TQTextEdit::text () const" Returns the text edit's text. See the "text" property for details. -.SH "TQString QTextEdit::text ( int para ) const" +.SH "TQString TQTextEdit::text ( int para ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the text of paragraph \fIpara\fR. .PP If textFormat() is RichText the text will contain HTML formatting tags. -.SH "void QTextEdit::textChanged ()\fC [signal]\fR" +.SH "void TQTextEdit::textChanged ()\fC [signal]\fR" This signal is emitted whenever the text in the text edit changes. .PP See also text and append(). .PP Examples: .)l qwerty/qwerty.cpp and rot13/rot13.cpp. -.SH "QTextCursor * QTextEdit::textCursor () const\fC [protected]\fR" +.SH "TQTextCursor * TQTextEdit::textCursor () const\fC [protected]\fR" Returns the text edit's text cursor. .PP -\fBWarning:\fR QTextCursor is not in the public API, but in special circumstances you might wish to use it. -.SH "TextFormat QTextEdit::textFormat () const" +\fBWarning:\fR TQTextCursor is not in the public API, but in special circumstances you might wish to use it. +.SH "TextFormat TQTextEdit::textFormat () const" Returns the text format: rich text, plain text, log text or auto text. See the "textFormat" property for details. -.SH "bool QTextEdit::underline () const" +.SH "bool TQTextEdit::underline () const" Returns TRUE if the current format is underlined; otherwise returns FALSE. .PP See also setUnderline(). -.SH "void QTextEdit::undo ()\fC [virtual slot]\fR" +.SH "void TQTextEdit::undo ()\fC [virtual slot]\fR" Undoes the last operation. .PP If there is no operation to undo, i.e. there is no undo step in the undo/redo history, nothing happens. .PP See also undoAvailable(), redo(), and undoDepth. -.SH "void QTextEdit::undoAvailable ( bool yes )\fC [signal]\fR" +.SH "void TQTextEdit::undoAvailable ( bool yes )\fC [signal]\fR" This signal is emitted when the availability of undo changes. If \fIyes\fR is TRUE, then undo() will work until undoAvailable( FALSE ) is next emitted. .PP See also undo() and undoDepth. -.SH "int QTextEdit::undoDepth () const" +.SH "int TQTextEdit::undoDepth () const" Returns the depth of the undo history. See the "undoDepth" property for details. -.SH "WordWrap QTextEdit::wordWrap () const" +.SH "WordWrap TQTextEdit::wordWrap () const" Returns the word wrap mode. See the "wordWrap" property for details. -.SH "int QTextEdit::wrapColumnOrWidth () const" +.SH "int TQTextEdit::wrapColumnOrWidth () const" Returns the position (in pixels or columns depending on the wrap mode) where text will be wrapped. See the "wrapColumnOrWidth" property for details. -.SH "WrapPolicy QTextEdit::wrapPolicy () const" +.SH "WrapPolicy TQTextEdit::wrapPolicy () const" Returns the word wrap policy, at whitespace or anywhere. See the "wrapPolicy" property for details. -.SH "void QTextEdit::zoomIn ( int range )\fC [virtual slot]\fR" +.SH "void TQTextEdit::zoomIn ( int range )\fC [virtual slot]\fR" Zooms in on the text by making the base font size \fIrange\fR points larger and recalculating all font sizes to be the new size. This does not change the size of any images. .PP See also zoomOut(). -.SH "void QTextEdit::zoomIn ()\fC [virtual slot]\fR" +.SH "void TQTextEdit::zoomIn ()\fC [virtual slot]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Zooms in on the text by making the base font size one point larger and recalculating all font sizes to be the new size. This does not change the size of any images. .PP See also zoomOut(). -.SH "void QTextEdit::zoomOut ( int range )\fC [virtual slot]\fR" +.SH "void TQTextEdit::zoomOut ( int range )\fC [virtual slot]\fR" Zooms out on the text by making the base font size \fIrange\fR points smaller and recalculating all font sizes to be the new size. This does not change the size of any images. .PP See also zoomIn(). -.SH "void QTextEdit::zoomOut ()\fC [virtual slot]\fR" +.SH "void TQTextEdit::zoomOut ()\fC [virtual slot]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Zooms out on the text by making the base font size one point smaller and recalculating all font sizes to be the new size. This does not change the size of any images. .PP See also zoomIn(). -.SH "void QTextEdit::zoomTo ( int size )\fC [virtual slot]\fR" +.SH "void TQTextEdit::zoomTo ( int size )\fC [virtual slot]\fR" Zooms the text by making the base font size \fIsize\fR points and recalculating all font sizes to be the new size. This does not change the size of any images. .SS "Property Documentation" .SH "AutoFormatting autoFormatting" @@ -1366,7 +1366,7 @@ On setting, any previous text is deleted. .PP The text may be interpreted either as plain text or as rich text, depending on the textFormat(). The default setting is AutoText, i.e. the text edit auto-detects the format of the text. .PP -For richtext, calling text() on an editable QTextEdit will cause the text to be regenerated from the textedit. This may mean that the TQString returned may not be exactly the same as the one that was set. +For richtext, calling text() on an editable TQTextEdit will cause the text to be regenerated from the textedit. This may mean that the TQString returned may not be exactly the same as the one that was set. .PP See also textFormat. .PP @@ -1427,7 +1427,7 @@ See also wordWrap. Set this property's value with setWrapPolicy() and get this property's value with wrapPolicy(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqtextedit.html +.BR http://doc.trolltech.com/tqtextedit.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqtextencoder.3qt b/doc/man/man3/tqtextencoder.3qt index b34653afd..a74f2b209 100644 --- a/doc/man/man3/tqtextencoder.3qt +++ b/doc/man/man3/tqtextencoder.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTextEncoder 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTextEncoder 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,31 +7,31 @@ .ad l .nh .SH NAME -QTextEncoder \- State-based encoder +TQTextEncoder \- State-based encoder .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqtextcodec.h>\fR +\fC#include <tqtextcodec.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "virtual \fB~QTextEncoder\fR ()" +.BI "virtual \fB~TQTextEncoder\fR ()" .br .ti -1c .BI "virtual QCString \fBfromUnicode\fR ( const TQString & uc, int & lenInOut ) = 0" .br .in -1c .SH DESCRIPTION -The QTextEncoder class provides a state-based encoder. +The TQTextEncoder class provides a state-based encoder. .PP The encoder converts Unicode into another format, remembering any state that is required between calls. .PP -See also QTextCodec::makeEncoder() and Internationalization with Qt. +See also TQTextCodec::makeEncoder() and Internationalization with Qt. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTextEncoder::~QTextEncoder ()\fC [virtual]\fR" +.SH "TQTextEncoder::~TQTextEncoder ()\fC [virtual]\fR" Destroys the encoder. -.SH "QCString QTextEncoder::fromUnicode ( const TQString & uc, int & lenInOut )\fC [pure virtual]\fR" +.SH "QCString TQTextEncoder::fromUnicode ( const TQString & uc, int & lenInOut )\fC [pure virtual]\fR" Converts \fIlenInOut\fR characters (not bytes) from \fIuc\fR, producing a QCString. \fIlenInOut\fR will be set to the length of the result (in bytes). .PP The encoder is free to record state to use when subsequent calls @@ -40,7 +40,7 @@ escape sequences if needed during the encoding of one string, then assume that mode applies when a subsequent call begins). .SH "SEE ALSO" -.BR http://doc.trolltech.com/qtextencoder.html +.BR http://doc.trolltech.com/tqtextencoder.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqtextistream.3qt b/doc/man/man3/tqtextistream.3qt index 70842df8d..2e26d9bad 100644 --- a/doc/man/man3/tqtextistream.3qt +++ b/doc/man/man3/tqtextistream.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTextIStream 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTextIStream 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,30 +7,30 @@ .ad l .nh .SH NAME -QTextIStream \- Convenience class for input streams +TQTextIStream \- Convenience class for input streams .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqtextstream.h>\fR +\fC#include <tqtextstream.h>\fR .PP -Inherits QTextStream. +Inherits TQTextStream. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQTextIStream\fR ( const TQString * s )" +.BI "\fBTQTextIStream\fR ( const TQString * s )" .br .ti -1c -.BI "\fBQTextIStream\fR ( QByteArray ba )" +.BI "\fBTQTextIStream\fR ( QByteArray ba )" .br .ti -1c -.BI "\fBQTextIStream\fR ( FILE * f )" +.BI "\fBTQTextIStream\fR ( FILE * f )" .br .in -1c .SH DESCRIPTION -The QTextIStream class is a convenience class for input streams. +The TQTextIStream class is a convenience class for input streams. .PP -This class provides a shorthand for creating simple input QTextStreams without having to pass a \fImode\fR argument to the constructor. +This class provides a shorthand for creating simple input TQTextStreams without having to pass a \fImode\fR argument to the constructor. .PP This class makes it easy, for example, to write things like this: .PP @@ -40,21 +40,21 @@ This class makes it easy, for example, to write things like this: .br int a, b; .br - QTextIStream(&data) >> a >> b; + TQTextIStream(&data) >> a >> b; .br .fi .PP -See also QTextOStream, Input/Output and Networking, and Text Related Classes. +See also TQTextOStream, Input/Output and Networking, and Text Related Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTextIStream::QTextIStream ( const TQString * s )" +.SH "TQTextIStream::TQTextIStream ( const TQString * s )" Constructs a stream to read from the string \fIs\fR. -.SH "QTextIStream::QTextIStream ( QByteArray ba )" +.SH "TQTextIStream::TQTextIStream ( QByteArray ba )" Constructs a stream to read from the array \fIba\fR. -.SH "QTextIStream::QTextIStream ( FILE * f )" +.SH "TQTextIStream::TQTextIStream ( FILE * f )" Constructs a stream to read from the file \fIf\fR. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qtextistream.html +.BR http://doc.trolltech.com/tqtextistream.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqtextostream.3qt b/doc/man/man3/tqtextostream.3qt index 5af7c517a..519912859 100644 --- a/doc/man/man3/tqtextostream.3qt +++ b/doc/man/man3/tqtextostream.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTextOStream 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTextOStream 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,30 +7,30 @@ .ad l .nh .SH NAME -QTextOStream \- Convenience class for output streams +TQTextOStream \- Convenience class for output streams .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqtextstream.h>\fR +\fC#include <tqtextstream.h>\fR .PP -Inherits QTextStream. +Inherits TQTextStream. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQTextOStream\fR ( TQString * s )" +.BI "\fBTQTextOStream\fR ( TQString * s )" .br .ti -1c -.BI "\fBQTextOStream\fR ( QByteArray ba )" +.BI "\fBTQTextOStream\fR ( QByteArray ba )" .br .ti -1c -.BI "\fBQTextOStream\fR ( FILE * f )" +.BI "\fBTQTextOStream\fR ( FILE * f )" .br .in -1c .SH DESCRIPTION -The QTextOStream class is a convenience class for output streams. +The TQTextOStream class is a convenience class for output streams. .PP -This class provides a shorthand for creating simple output QTextStreams without having to pass a \fImode\fR argument to the constructor. +This class provides a shorthand for creating simple output TQTextStreams without having to pass a \fImode\fR argument to the constructor. .PP This makes it easy for example, to write things like this: .PP @@ -38,21 +38,21 @@ This makes it easy for example, to write things like this: .br TQString result; .br - QTextOStream(&result) << "pi = " << 3.14; + TQTextOStream(&result) << "pi = " << 3.14; .br .fi .PP See also Input/Output and Networking and Text Related Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTextOStream::QTextOStream ( TQString * s )" +.SH "TQTextOStream::TQTextOStream ( TQString * s )" Constructs a stream to write to string \fIs\fR. -.SH "QTextOStream::QTextOStream ( QByteArray ba )" +.SH "TQTextOStream::TQTextOStream ( QByteArray ba )" Constructs a stream to write to the array \fIba\fR. -.SH "QTextOStream::QTextOStream ( FILE * f )" +.SH "TQTextOStream::TQTextOStream ( FILE * f )" Constructs a stream to write to the file \fIf\fR. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qtextostream.html +.BR http://doc.trolltech.com/tqtextostream.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqtextstream.3qt b/doc/man/man3/tqtextstream.3qt index 0b99605bf..f9373929c 100644 --- a/doc/man/man3/tqtextstream.3qt +++ b/doc/man/man3/tqtextstream.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTextStream 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTextStream 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,13 +7,13 @@ .ad l .nh .SH NAME -QTextStream \- Basic functions for reading and writing text using a TQIODevice +TQTextStream \- Basic functions for reading and writing text using a TQIODevice .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqtextstream.h>\fR +\fC#include <tqtextstream.h>\fR .PP -Inherited by QTextIStream and QTextOStream. +Inherited by TQTextIStream and TQTextOStream. .PP .SS "Public Members" .in +1c @@ -24,31 +24,31 @@ Inherited by QTextIStream and QTextOStream. .BI "void \fBsetEncoding\fR ( Encoding e )" .br .ti -1c -.BI "void \fBsetCodec\fR ( QTextCodec * codec )" +.BI "void \fBsetCodec\fR ( TQTextCodec * codec )" .br .ti -1c -.BI "QTextCodec * \fBcodec\fR ()" +.BI "TQTextCodec * \fBcodec\fR ()" .br .ti -1c -.BI "\fBQTextStream\fR ()" +.BI "\fBTQTextStream\fR ()" .br .ti -1c -.BI "\fBQTextStream\fR ( TQIODevice * iod )" +.BI "\fBTQTextStream\fR ( TQIODevice * iod )" .br .ti -1c -.BI "\fBQTextStream\fR ( TQString * str, int filemode )" +.BI "\fBTQTextStream\fR ( TQString * str, int filemode )" .br .ti -1c -.BI "QTextStream ( TQString & str, int filemode ) \fI(obsolete)\fR" +.BI "TQTextStream ( TQString & str, int filemode ) \fI(obsolete)\fR" .br .ti -1c -.BI "\fBQTextStream\fR ( QByteArray a, int mode )" +.BI "\fBTQTextStream\fR ( QByteArray a, int mode )" .br .ti -1c -.BI "\fBQTextStream\fR ( FILE * fh, int mode )" +.BI "\fBTQTextStream\fR ( FILE * fh, int mode )" .br .ti -1c -.BI "virtual \fB~QTextStream\fR ()" +.BI "virtual \fB~TQTextStream\fR ()" .br .ti -1c .BI "TQIODevice * \fBdevice\fR () const" @@ -66,91 +66,91 @@ Inherited by QTextIStream and QTextOStream. .BI "bool eof () const \fI(obsolete)\fR" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( TQChar & c )" +.BI "TQTextStream & \fBoperator>>\fR ( TQChar & c )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( char & c )" +.BI "TQTextStream & \fBoperator>>\fR ( char & c )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( signed short & i )" +.BI "TQTextStream & \fBoperator>>\fR ( signed short & i )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( unsigned short & i )" +.BI "TQTextStream & \fBoperator>>\fR ( unsigned short & i )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( signed int & i )" +.BI "TQTextStream & \fBoperator>>\fR ( signed int & i )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( unsigned int & i )" +.BI "TQTextStream & \fBoperator>>\fR ( unsigned int & i )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( signed long & i )" +.BI "TQTextStream & \fBoperator>>\fR ( signed long & i )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( unsigned long & i )" +.BI "TQTextStream & \fBoperator>>\fR ( unsigned long & i )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( float & f )" +.BI "TQTextStream & \fBoperator>>\fR ( float & f )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( double & f )" +.BI "TQTextStream & \fBoperator>>\fR ( double & f )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( char * s )" +.BI "TQTextStream & \fBoperator>>\fR ( char * s )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( TQString & str )" +.BI "TQTextStream & \fBoperator>>\fR ( TQString & str )" .br .ti -1c -.BI "QTextStream & \fBoperator>>\fR ( QCString & str )" +.BI "TQTextStream & \fBoperator>>\fR ( QCString & str )" .br .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( TQChar c )" +.BI "TQTextStream & \fBoperator<<\fR ( TQChar c )" .br .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( char c )" +.BI "TQTextStream & \fBoperator<<\fR ( char c )" .br .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( signed short i )" +.BI "TQTextStream & \fBoperator<<\fR ( signed short i )" .br .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( unsigned short i )" +.BI "TQTextStream & \fBoperator<<\fR ( unsigned short i )" .br .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( signed int i )" +.BI "TQTextStream & \fBoperator<<\fR ( signed int i )" .br .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( unsigned int i )" +.BI "TQTextStream & \fBoperator<<\fR ( unsigned int i )" .br .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( signed long i )" +.BI "TQTextStream & \fBoperator<<\fR ( signed long i )" .br .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( unsigned long i )" +.BI "TQTextStream & \fBoperator<<\fR ( unsigned long i )" .br .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( float f )" +.BI "TQTextStream & \fBoperator<<\fR ( float f )" .br .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( double f )" +.BI "TQTextStream & \fBoperator<<\fR ( double f )" .br .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( const char * s )" +.BI "TQTextStream & \fBoperator<<\fR ( const char * s )" .br .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( const TQString & s )" +.BI "TQTextStream & \fBoperator<<\fR ( const TQString & s )" .br .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( const QCString & s )" +.BI "TQTextStream & \fBoperator<<\fR ( const QCString & s )" .br .ti -1c -.BI "QTextStream & \fBoperator<<\fR ( void * ptr )" +.BI "TQTextStream & \fBoperator<<\fR ( void * ptr )" .br .ti -1c -.BI "QTextStream & \fBreadRawBytes\fR ( char * s, uint len )" +.BI "TQTextStream & \fBreadRawBytes\fR ( char * s, uint len )" .br .ti -1c -.BI "QTextStream & \fBwriteRawBytes\fR ( const char * s, uint len )" +.BI "TQTextStream & \fBwriteRawBytes\fR ( const char * s, uint len )" .br .ti -1c .BI "TQString \fBreadLine\fR ()" @@ -199,50 +199,50 @@ Inherited by QTextIStream and QTextOStream. .br .in -1c .SH DESCRIPTION -The QTextStream class provides basic functions for reading and writing text using a TQIODevice. +The TQTextStream class provides basic functions for reading and writing text using a TQIODevice. .PP The text stream class has a functional interface that is very similar to that of the standard C++ iostream class. .PP Qt provides several global functions similar to the ones in iostream: <center>.nf .TS -l - l. Function Meaning bin sets the QTextStream to read/write binary numbers oct sets the QTextStream to read/write octal numbers dec sets the QTextStream to read/write decimal numbers hex sets the QTextStream to read/write hexadecimal numbers endl forces a line break flush forces the TQIODevice to flush any buffered data ws eats any available whitespace (on input) reset resets the QTextStream to its default mode (see reset()) qSetW(int) sets the field width to the given argument qSetFill(int) sets the fill character to the given argument qSetPrecision(int) +l - l. Function Meaning bin sets the TQTextStream to read/write binary numbers oct sets the TQTextStream to read/write octal numbers dec sets the TQTextStream to read/write decimal numbers hex sets the TQTextStream to read/write hexadecimal numbers endl forces a line break flush forces the TQIODevice to flush any buffered data ws eats any available whitespace (on input) reset resets the TQTextStream to its default mode (see reset()) qSetW(int) sets the field width to the given argument qSetFill(int) sets the fill character to the given argument qSetPrecision(int) .TE .fi </center> .PP -\fBWarning:\fR By default QTextStream will automatically detect whether integers in the stream are in decimal, octal, hexadecimal or binary format when reading from the stream. In particular, a leading '0' signifies octal, i.e. the sequence "0100" will be interpreted as 64. +\fBWarning:\fR By default TQTextStream will automatically detect whether integers in the stream are in decimal, octal, hexadecimal or binary format when reading from the stream. In particular, a leading '0' signifies octal, i.e. the sequence "0100" will be interpreted as 64. .PP -The QTextStream class reads and writes text; it is not appropriate for dealing with binary data (but QDataStream is). +The TQTextStream class reads and writes text; it is not appropriate for dealing with binary data (but QDataStream is). .PP -By default, output of Unicode text (i.e. TQString) is done using the local 8-bit encoding. This can be changed using the setEncoding() method. For input, the QTextStream will auto-detect standard Unicode "byte order marked" text files; otherwise the local 8-bit encoding is used. +By default, output of Unicode text (i.e. TQString) is done using the local 8-bit encoding. This can be changed using the setEncoding() method. For input, the TQTextStream will auto-detect standard Unicode "byte order marked" text files; otherwise the local 8-bit encoding is used. .PP The TQIODevice is set in the constructor, or later using setDevice(). If the end of the input is reached atEnd() returns TRUE. Data can be read into variables of the appropriate type using the operator>>() overloads, or read in its entirety into a single string using read(), or read a line at a time using readLine(). Whitespace can be skipped over using skipWhiteSpace(). You can set flags for the stream using flags() or setf(). The stream also supports width(), precision() and fill(); use reset() to reset the defaults. .PP See also QDataStream, Input/Output and Networking, and Text Related Classes. .SS "Member Type Documentation" -.SH "QTextStream::Encoding" +.SH "TQTextStream::Encoding" .TP -\fCQTextStream::Locale\fR +\fCTQTextStream::Locale\fR .TP -\fCQTextStream::Latin1\fR +\fCTQTextStream::Latin1\fR .TP -\fCQTextStream::Unicode\fR +\fCTQTextStream::Unicode\fR .TP -\fCQTextStream::UnicodeNetworkOrder\fR +\fCTQTextStream::UnicodeNetworkOrder\fR .TP -\fCQTextStream::UnicodeReverse\fR +\fCTQTextStream::UnicodeReverse\fR .TP -\fCQTextStream::RawUnicode\fR +\fCTQTextStream::RawUnicode\fR .TP -\fCQTextStream::UnicodeUTF8\fR +\fCTQTextStream::UnicodeUTF8\fR .PP See setEncoding() for an explanation of the encodings. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTextStream::QTextStream ()" +.SH "TQTextStream::TQTextStream ()" Constructs a data stream that has no IO device. -.SH "QTextStream::QTextStream ( TQIODevice * iod )" +.SH "TQTextStream::TQTextStream ( TQIODevice * iod )" Constructs a text stream that uses the IO device \fIiod\fR. -.SH "QTextStream::QTextStream ( TQString * str, int filemode )" +.SH "TQTextStream::TQTextStream ( TQString * str, int filemode )" Constructs a text stream that operates on the Unicode TQString, \fIstr\fR, through an internal device. The \fIfilemode\fR argument is passed to the device's open() function; see TQIODevice::mode(). .PP If you set an encoding or codec with setEncoding() or setCodec(), this setting is ignored for text streams that operate on TQString. @@ -253,7 +253,7 @@ Example: .br TQString str; .br - QTextStream ts( &str, IO_WriteOnly ); + TQTextStream ts( &str, IO_WriteOnly ); .br ts << "pi = " << 3.14; // str == "pi = 3.14" .br @@ -265,18 +265,18 @@ Writing data to the text stream will modify the contents of the string. The stri .br TQString str = "pi = 3.14"; .br - QTextStream ts( &str, IO_WriteOnly ); + TQTextStream ts( &str, IO_WriteOnly ); .br ts << "2+2 = " << 2+2; // str == "2+2 = 414" .br .fi .PP Note that because TQString is Unicode, you should not use readRawBytes() or writeRawBytes() on such a stream. -.SH "QTextStream::QTextStream ( TQString & str, int filemode )" +.SH "TQTextStream::TQTextStream ( TQString & str, int filemode )" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP This constructor is equivalent to the constructor taking a TQString* parameter. -.SH "QTextStream::QTextStream ( QByteArray a, int mode )" +.SH "TQTextStream::TQTextStream ( QByteArray a, int mode )" Constructs a text stream that operates on the byte array, \fIa\fR, through an internal QBuffer device. The \fImode\fR argument is passed to the device's open() function; see TQIODevice::mode(). .PP Example: @@ -285,7 +285,7 @@ Example: .br QByteArray array; .br - QTextStream ts( array, IO_WriteOnly ); + TQTextStream ts( array, IO_WriteOnly ); .br ts << "pi = " << 3.14 << '\\0'; // array == "pi = 3.14" .br @@ -303,39 +303,39 @@ Same example, using a QBuffer: .br buf.open( IO_WriteOnly ); .br - QTextStream ts( &buf ); + TQTextStream ts( &buf ); .br ts << "pi = " << 3.14 << '\\0'; // array == "pi = 3.14" .br buf.close(); .br .fi -.SH "QTextStream::QTextStream ( FILE * fh, int mode )" +.SH "TQTextStream::TQTextStream ( FILE * fh, int mode )" Constructs a text stream that operates on an existing file handle \fIfh\fR through an internal QFile device. The \fImode\fR argument is passed to the device's open() function; see TQIODevice::mode(). .PP -Note that if you create a QTextStream \fCcout\fR or another name that is also used for another variable of a different type, some linkers may confuse the two variables, which will often cause crashes. -.SH "QTextStream::~QTextStream ()\fC [virtual]\fR" +Note that if you create a TQTextStream \fCcout\fR or another name that is also used for another variable of a different type, some linkers may confuse the two variables, which will often cause crashes. +.SH "TQTextStream::~TQTextStream ()\fC [virtual]\fR" Destroys the text stream. .PP The destructor does not affect the current IO device. -.SH "bool QTextStream::atEnd () const" +.SH "bool TQTextStream::atEnd () const" Returns TRUE if the IO device has reached the end position (end of the stream or file) or if there is no IO device set; otherwise returns FALSE. .PP See also TQIODevice::atEnd(). .PP Examples: .)l addressbook/centralwidget.cpp and grapher/grapher.cpp. -.SH "QTextCodec * QTextStream::codec ()" +.SH "TQTextCodec * TQTextStream::codec ()" Returns the codec actually used for this stream. .PP If Unicode is automatically detected in input, a codec with name() "ISO-10646-UCS-2" is returned. .PP See also setCodec(). -.SH "TQIODevice * QTextStream::device () const" +.SH "TQIODevice * TQTextStream::device () const" Returns the IO device currently set. .PP See also setDevice() and unsetDevice(). -.SH "bool QTextStream::eof () const" +.SH "bool TQTextStream::eof () const" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP This function has been renamed to atEnd(). @@ -343,13 +343,13 @@ This function has been renamed to atEnd(). See also TQIODevice::atEnd(). .PP Example: chart/chartform_files.cpp. -.SH "int QTextStream::fill () const" +.SH "int TQTextStream::fill () const" Returns the fill character. The default value is ' ' (space). -.SH "int QTextStream::fill ( int f )" +.SH "int TQTextStream::fill ( int f )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the fill character to \fIf\fR. Returns the previous fill character. -.SH "int QTextStream::flags () const" +.SH "int TQTextStream::flags () const" Returns the current stream flags. The default value is 0. .PP <center>.nf @@ -379,144 +379,144 @@ Flag Meaning Note that unless \fCbin\fR, \fCoct\fR, \fCdec\fR, or \fChex\fR is set, the input base is octal if the value starts with 0, hexadecimal if it starts with 0x, binary if it starts with 0b, and decimal otherwise. .PP See also setf() and unsetf(). -.SH "int QTextStream::flags ( int f )" +.SH "int TQTextStream::flags ( int f )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the stream flags to \fIf\fR. Returns the previous stream flags. .PP See also setf() and unsetf(). -.SH "QTextStream & QTextStream::operator<< ( TQChar c )" +.SH "TQTextStream & TQTextStream::operator<< ( TQChar c )" Writes character \fCchar\fR to the stream and returns a reference to the stream. .PP -The character \fIc\fR is assumed to be Latin1 encoded independent of the Encoding set for the QTextStream. -.SH "QTextStream & QTextStream::operator<< ( char c )" +The character \fIc\fR is assumed to be Latin1 encoded independent of the Encoding set for the TQTextStream. +.SH "TQTextStream & TQTextStream::operator<< ( char c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes character \fIc\fR to the stream and returns a reference to the stream. -.SH "QTextStream & QTextStream::operator<< ( signed short i )" +.SH "TQTextStream & TQTextStream::operator<< ( signed short i )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes a \fCshort\fR integer \fIi\fR to the stream and returns a reference to the stream. -.SH "QTextStream & QTextStream::operator<< ( unsigned short i )" +.SH "TQTextStream & TQTextStream::operator<< ( unsigned short i )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes an \fCunsigned\fR \fCshort\fR integer \fIi\fR to the stream and returns a reference to the stream. -.SH "QTextStream & QTextStream::operator<< ( signed int i )" +.SH "TQTextStream & TQTextStream::operator<< ( signed int i )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes an \fCint\fR \fIi\fR to the stream and returns a reference to the stream. -.SH "QTextStream & QTextStream::operator<< ( unsigned int i )" +.SH "TQTextStream & TQTextStream::operator<< ( unsigned int i )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes an \fCunsigned\fR \fCint\fR \fIi\fR to the stream and returns a reference to the stream. -.SH "QTextStream & QTextStream::operator<< ( signed long i )" +.SH "TQTextStream & TQTextStream::operator<< ( signed long i )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes a \fClong\fR \fCint\fR \fIi\fR to the stream and returns a reference to the stream. -.SH "QTextStream & QTextStream::operator<< ( unsigned long i )" +.SH "TQTextStream & TQTextStream::operator<< ( unsigned long i )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes an \fCunsigned\fR \fClong\fR \fCint\fR \fIi\fR to the stream and returns a reference to the stream. -.SH "QTextStream & QTextStream::operator<< ( float f )" +.SH "TQTextStream & TQTextStream::operator<< ( float f )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes a \fCfloat\fR \fIf\fR to the stream and returns a reference to the stream. -.SH "QTextStream & QTextStream::operator<< ( double f )" +.SH "TQTextStream & TQTextStream::operator<< ( double f )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes a \fCdouble\fR \fIf\fR to the stream and returns a reference to the stream. -.SH "QTextStream & QTextStream::operator<< ( const char * s )" +.SH "TQTextStream & TQTextStream::operator<< ( const char * s )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes a string to the stream and returns a reference to the stream. .PP -The string \fIs\fR is assumed to be Latin1 encoded independent of the Encoding set for the QTextStream. -.SH "QTextStream & QTextStream::operator<< ( const TQString & s )" +The string \fIs\fR is assumed to be Latin1 encoded independent of the Encoding set for the TQTextStream. +.SH "TQTextStream & TQTextStream::operator<< ( const TQString & s )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes \fIs\fR to the stream and returns a reference to the stream. -.SH "QTextStream & QTextStream::operator<< ( const QCString & s )" +.SH "TQTextStream & TQTextStream::operator<< ( const QCString & s )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes \fIs\fR to the stream and returns a reference to the stream. .PP -The string \fIs\fR is assumed to be Latin1 encoded independent of the Encoding set for the QTextStream. -.SH "QTextStream & QTextStream::operator<< ( void * ptr )" +The string \fIs\fR is assumed to be Latin1 encoded independent of the Encoding set for the TQTextStream. +.SH "TQTextStream & TQTextStream::operator<< ( void * ptr )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes a pointer to the stream and returns a reference to the stream. .PP The \fIptr\fR is output as an unsigned long hexadecimal integer. -.SH "QTextStream & QTextStream::operator>> ( TQChar & c )" +.SH "TQTextStream & TQTextStream::operator>> ( TQChar & c )" Reads a char \fIc\fR from the stream and returns a reference to the stream. Note that whitespace is \fInot\fR skipped. -.SH "QTextStream & QTextStream::operator>> ( char & c )" +.SH "TQTextStream & TQTextStream::operator>> ( char & c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Reads a char \fIc\fR from the stream and returns a reference to the stream. Note that whitespace is skipped. -.SH "QTextStream & QTextStream::operator>> ( signed short & i )" +.SH "TQTextStream & TQTextStream::operator>> ( signed short & i )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Reads a signed \fCshort\fR integer \fIi\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format. -.SH "QTextStream & QTextStream::operator>> ( unsigned short & i )" +.SH "TQTextStream & TQTextStream::operator>> ( unsigned short & i )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Reads an unsigned \fCshort\fR integer \fIi\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format. -.SH "QTextStream & QTextStream::operator>> ( signed int & i )" +.SH "TQTextStream & TQTextStream::operator>> ( signed int & i )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Reads a signed \fCint\fR \fIi\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format. -.SH "QTextStream & QTextStream::operator>> ( unsigned int & i )" +.SH "TQTextStream & TQTextStream::operator>> ( unsigned int & i )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Reads an unsigned \fCint\fR \fIi\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format. -.SH "QTextStream & QTextStream::operator>> ( signed long & i )" +.SH "TQTextStream & TQTextStream::operator>> ( signed long & i )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Reads a signed \fClong\fR int \fIi\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format. -.SH "QTextStream & QTextStream::operator>> ( unsigned long & i )" +.SH "TQTextStream & TQTextStream::operator>> ( unsigned long & i )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Reads an unsigned \fClong\fR int \fIi\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format. -.SH "QTextStream & QTextStream::operator>> ( float & f )" +.SH "TQTextStream & TQTextStream::operator>> ( float & f )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Reads a \fCfloat\fR \fIf\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format. -.SH "QTextStream & QTextStream::operator>> ( double & f )" +.SH "TQTextStream & TQTextStream::operator>> ( double & f )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Reads a \fCdouble\fR \fIf\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format. -.SH "QTextStream & QTextStream::operator>> ( char * s )" +.SH "TQTextStream & TQTextStream::operator>> ( char * s )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Reads a "word" from the stream into \fIs\fR and returns a reference to the stream. .PP A word consists of characters for which isspace() returns FALSE. -.SH "QTextStream & QTextStream::operator>> ( TQString & str )" +.SH "TQTextStream & TQTextStream::operator>> ( TQString & str )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Reads a "word" from the stream into \fIstr\fR and returns a reference to the stream. .PP A word consists of characters for which isspace() returns FALSE. -.SH "QTextStream & QTextStream::operator>> ( QCString & str )" +.SH "TQTextStream & TQTextStream::operator>> ( QCString & str )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Reads a "word" from the stream into \fIstr\fR and returns a reference to the stream. .PP A word consists of characters for which isspace() returns FALSE. -.SH "int QTextStream::precision () const" +.SH "int TQTextStream::precision () const" Returns the precision. The default value is 6. -.SH "int QTextStream::precision ( int p )" +.SH "int TQTextStream::precision ( int p )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the precision to \fIp\fR. Returns the previous precision setting. -.SH "TQString QTextStream::read ()" +.SH "TQString TQTextStream::read ()" Reads the entire stream from the current position, and returns a string containing the text. .PP See also TQIODevice::readLine(). .PP Examples: .)l action/application.cpp, application/application.cpp, mdi/application.cpp, qdir/qdir.cpp, and qwerty/qwerty.cpp. -.SH "TQString QTextStream::readLine ()" +.SH "TQString TQTextStream::readLine ()" Reads a line from the stream and returns a string containing the text. .PP The returned string does not contain any trailing newline or carriage return. Note that this is different from TQIODevice::readLine(), which does not strip the newline at the end of the line. @@ -527,7 +527,7 @@ See also TQIODevice::readLine(). .PP Examples: .)l addressbook/centralwidget.cpp, chart/element.cpp, and network/clientserver/server/server.cpp. -.SH "QTextStream & QTextStream::readRawBytes ( char * s, uint len )" +.SH "TQTextStream & TQTextStream::readRawBytes ( char * s, uint len )" Reads \fIlen\fR bytes from the stream into \fIs\fR and returns a reference to the stream. .PP The buffer \fIs\fR must be preallocated. @@ -537,7 +537,7 @@ Note that no encoding is done by this function. \fBWarning:\fR The behavior of this function is undefined unless the stream's encoding is set to Unicode or Latin1. .PP See also TQIODevice::readBlock(). -.SH "void QTextStream::reset ()" +.SH "void TQTextStream::reset ()" Resets the text stream. .TP All flags are set to 0. @@ -549,7 +549,7 @@ The fill character is set to ' ' (Space). The precision is set to 6. .PP See also setf(), width(), fill(), and precision(). -.SH "void QTextStream::setCodec ( QTextCodec * codec )" +.SH "void TQTextStream::setCodec ( TQTextCodec * codec )" Sets the codec for this stream to \fIcodec\fR. Will not try to autodetect Unicode. .PP Note that this function should be called before any data is read to/written from the stream. @@ -557,11 +557,11 @@ Note that this function should be called before any data is read to/written from See also setEncoding() and codec(). .PP Example: qwerty/qwerty.cpp. -.SH "void QTextStream::setDevice ( TQIODevice * iod )" +.SH "void TQTextStream::setDevice ( TQIODevice * iod )" Sets the IO device to \fIiod\fR. .PP See also device() and unsetDevice(). -.SH "void QTextStream::setEncoding ( Encoding e )" +.SH "void TQTextStream::setEncoding ( Encoding e )" Sets the encoding of this stream to \fIe\fR, where \fIe\fR is one of the following values: <center>.nf .TS l - l. Encoding Meaning Locale Uses local file format (Latin1 if locale is not set), but autodetecting Unicode(utf16) on input. Unicode Uses Unicode(utf16) for input and output. Output will be written in the order most efficient for the current platform (i.e. the order used internally in TQString). UnicodeUTF8 Using Unicode(utf8) for input and output. If you use it for input it will autodetect utf16 and use it instead of utf8. Latin1 ISO-8859-1. Will not autodetect utf16. UnicodeNetworkOrder Uses network order Unicode(utf16) for input and output. Useful when reading Unicode data that does not start with the byte order marker. UnicodeReverse Uses reverse network order Unicode(utf16) for input and output. Useful when reading Unicode data that does not start with the byte order marker or when writing data that should be read by buggy Windows applications. RawUnicode @@ -577,13 +577,13 @@ See also setCodec(). .PP Examples: .)l addressbook/centralwidget.cpp, network/httpd/httpd.cpp, and qwerty/qwerty.cpp. -.SH "int QTextStream::setf ( int bits )" +.SH "int TQTextStream::setf ( int bits )" Sets the stream flag bits \fIbits\fR. Returns the previous stream flags. .PP Equivalent to \fCflags( flags() | bits )\fR. .PP See also unsetf(). -.SH "int QTextStream::setf ( int bits, int mask )" +.SH "int TQTextStream::setf ( int bits, int mask )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the stream flag bits \fIbits\fR with a bit mask \fImask\fR. Returns the previous stream flags. @@ -591,25 +591,25 @@ Sets the stream flag bits \fIbits\fR with a bit mask \fImask\fR. Returns the pre Equivalent to \fCflags( (flags() & ~mask) | (bits & mask) )\fR. .PP See also unsetf(). -.SH "void QTextStream::skipWhiteSpace ()" +.SH "void TQTextStream::skipWhiteSpace ()" Positions the read pointer at the first non-whitespace character. -.SH "void QTextStream::unsetDevice ()" +.SH "void TQTextStream::unsetDevice ()" Unsets the IO device. Equivalent to setDevice( 0 ). .PP See also device() and setDevice(). -.SH "int QTextStream::unsetf ( int bits )" +.SH "int TQTextStream::unsetf ( int bits )" Clears the stream flag bits \fIbits\fR. Returns the previous stream flags. .PP Equivalent to \fCflags( flags() & ~mask )\fR. .PP See also setf(). -.SH "int QTextStream::width () const" +.SH "int TQTextStream::width () const" Returns the field width. The default value is 0. -.SH "int QTextStream::width ( int w )" +.SH "int TQTextStream::width ( int w )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the field width to \fIw\fR. Returns the previous field width. -.SH "QTextStream & QTextStream::writeRawBytes ( const char * s, uint len )" +.SH "TQTextStream & TQTextStream::writeRawBytes ( const char * s, uint len )" Writes the \fIlen\fR bytes from \fIs\fR to the stream and returns a reference to the stream. .PP Note that no encoding is done by this function. @@ -617,7 +617,7 @@ Note that no encoding is done by this function. See also TQIODevice::writeBlock(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqtextstream.html +.BR http://doc.trolltech.com/tqtextstream.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqtsciicodec.3qt b/doc/man/man3/tqtsciicodec.3qt index 919deda2c..ba46ea0dd 100644 --- a/doc/man/man3/tqtsciicodec.3qt +++ b/doc/man/man3/tqtsciicodec.3qt @@ -13,7 +13,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .PP \fC#include <ntqtsciicodec.h>\fR .PP -Inherits QTextCodec. +Inherits TQTextCodec. .PP .SH DESCRIPTION The QTsciiCodec class provides conversion to and from the Tamil TSCII encoding. diff --git a/doc/man/man3/tqwidget.3qt b/doc/man/man3/tqwidget.3qt index 08eeaae11..00242f28e 100644 --- a/doc/man/man3/tqwidget.3qt +++ b/doc/man/man3/tqwidget.3qt @@ -1298,7 +1298,7 @@ This event handler is called when a drag is in progress and the mouse enters thi .PP See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application. .PP -See also QTextDrag, TQImageDrag, and QDragEnterEvent. +See also TQTextDrag, TQImageDrag, and QDragEnterEvent. .PP Example: iconview/simple_dd/main.cpp. .SH "void TQWidget::dragLeaveEvent ( QDragLeaveEvent * )\fC [virtual protected]\fR" @@ -1306,13 +1306,13 @@ This event handler is called when a drag is in progress and the mouse leaves thi .PP See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application. .PP -See also QTextDrag, TQImageDrag, and QDragLeaveEvent. +See also TQTextDrag, TQImageDrag, and QDragLeaveEvent. .SH "void TQWidget::dragMoveEvent ( QDragMoveEvent * )\fC [virtual protected]\fR" This event handler is called when a drag is in progress and the mouse enters this widget, and whenever it moves within the widget. .PP See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application. .PP -See also QTextDrag, TQImageDrag, and QDragMoveEvent. +See also TQTextDrag, TQImageDrag, and QDragMoveEvent. .SH "void TQWidget::drawText ( int x, int y, const TQString & str )" Draws the string \fIstr\fR at position \fI(x, y)\fR. .PP @@ -1330,7 +1330,7 @@ This event handler is called when the drag is dropped on this widget. .PP See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application. .PP -See also QTextDrag, TQImageDrag, and QDropEvent. +See also TQTextDrag, TQImageDrag, and QDropEvent. .PP Example: iconview/simple_dd/main.cpp. .SH "void TQWidget::enabledChange ( bool oldEnabled )\fC [virtual protected]\fR" @@ -1517,7 +1517,7 @@ Returns the preferred height for this widget, given the width \fIw\fR. The defau .PP \fBWarning:\fR Does not look at the widget's layout. .PP -Reimplemented in QMenuBar and QTextEdit. +Reimplemented in QMenuBar and TQTextEdit. .SH "void TQWidget::hide ()\fC [virtual slot]\fR" Hides the widget. .PP @@ -1632,7 +1632,7 @@ See also keyReleaseEvent(), QKeyEvent::ignore(), focusPolicy, focusInEvent(), fo .PP Example: picture/picture.cpp. .PP -Reimplemented in QLineEdit and QTextEdit. +Reimplemented in QLineEdit and TQTextEdit. .SH "void TQWidget::keyReleaseEvent ( QKeyEvent * e )\fC [virtual protected]\fR" This event handler, for event \fIe\fR, can be reimplemented in a subclass to receive key release events for the widget. .PP @@ -2112,7 +2112,7 @@ Sets enables or disables the use of input methods for this widget to \fIb\fR. Se .SH "void TQWidget::setKeyCompression ( bool compress )\fC [virtual protected]\fR" Enables key event compression, if \fIcompress\fR is TRUE, and disables it if \fIcompress\fR is FALSE. .PP -Key compression is off by default (except for QLineEdit and QTextEdit), so widgets receive one key press event for each key press (or more, since autorepeat is usually on). If you turn it on and your program doesn't keep up with key input, TQt may try to compress key events so that more than one character can be processed in each event. +Key compression is off by default (except for QLineEdit and TQTextEdit), so widgets receive one key press event for each key press (or more, since autorepeat is usually on). If you turn it on and your program doesn't keep up with key input, TQt may try to compress key events so that more than one character can be processed in each event. .PP For example, a word processor widget might receive 2, 3 or more characters in each QKeyEvent::text(), if the layout recalculation takes too long for the CPU. .PP diff --git a/doc/man/man3/tqwindowsmime.3qt b/doc/man/man3/tqwindowsmime.3qt index c2a03470f..a8d6181a6 100644 --- a/doc/man/man3/tqwindowsmime.3qt +++ b/doc/man/man3/tqwindowsmime.3qt @@ -68,9 +68,9 @@ By instantiating subclasses of QWindowsMime that provide conversions between Win .PP Qt has predefined support for the following Windows Clipboard formats: .TP -CF_UNICODETEXT - converted to "text/plain;charset=ISO-10646-UCS-2" and supported by QTextDrag. +CF_UNICODETEXT - converted to "text/plain;charset=ISO-10646-UCS-2" and supported by TQTextDrag. .TP -CF_TEXT - converted to "text/plain;charset=system" or "text/plain" and supported by QTextDrag. +CF_TEXT - converted to "text/plain;charset=system" or "text/plain" and supported by TQTextDrag. .TP CF_DIB - converted to "image/*", where * is a TQt image format, and supported by TQImageDrag. .TP diff --git a/doc/man/man3/tqxmlinputsource.3qt b/doc/man/man3/tqxmlinputsource.3qt index 5801fb582..365655708 100644 --- a/doc/man/man3/tqxmlinputsource.3qt +++ b/doc/man/man3/tqxmlinputsource.3qt @@ -25,7 +25,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "TQXmlInputSource ( QFile & file ) \fI(obsolete)\fR" .br .ti -1c -.BI "TQXmlInputSource ( QTextStream & stream ) \fI(obsolete)\fR" +.BI "TQXmlInputSource ( TQTextStream & stream ) \fI(obsolete)\fR" .br .ti -1c .BI "virtual \fB~TQXmlInputSource\fR ()" @@ -84,7 +84,7 @@ See also setData(), fetchData(), and TQIODevice. \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Constructs an input source and gets the data from the file \fIfile\fR. If the file cannot be read the input source is empty. -.SH "TQXmlInputSource::TQXmlInputSource ( QTextStream & stream )" +.SH "TQXmlInputSource::TQXmlInputSource ( TQTextStream & stream )" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Constructs an input source and gets the data from the text stream \fIstream\fR. |