From 0cf411b09cf5d8970b873a338a69eae98d5ce5d8 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 8 Jun 2024 12:56:43 +0900 Subject: Rename text nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/addressbook-example.html | 14 +- doc/html/advanced.html | 2 +- doc/html/annotated.html | 20 +- doc/html/basic.html | 2 +- doc/html/canvas-chart-example.html | 4 +- doc/html/chart-chartform_files-cpp.html | 6 +- doc/html/chart-element-cpp.html | 8 +- doc/html/chart-element-h.html | 4 +- doc/html/classchart.html | 10 +- doc/html/classes.html | 20 +- doc/html/clientserver-example.html | 40 +- doc/html/customlayout-example.html | 2 +- doc/html/designer-manual-16.html | 2 +- doc/html/designer-manual-3.html | 10 +- doc/html/dnd.html | 24 +- doc/html/draganddrop.html | 2 +- doc/html/emb-features.html | 4 +- doc/html/functions.html | 380 +++---- doc/html/grapher-nsplugin-example.html | 8 +- doc/html/headerfilesynonyms | 10 +- doc/html/headers.html | 12 +- doc/html/helpsystem.html | 2 +- doc/html/helpviewer-example.html | 60 +- doc/html/hierarchy.html | 22 +- doc/html/httpd-example.html | 18 +- doc/html/i18n-example.html | 4 +- doc/html/i18n.html | 30 +- doc/html/iconview-simple_dd-main-cpp.html | 12 +- doc/html/index | 506 ++++----- doc/html/io.html | 6 +- doc/html/keyfeatures30.html | 4 +- doc/html/layout-example.html | 2 +- doc/html/linguist-manual-2.html | 4 +- doc/html/linguist-manual-4.html | 2 +- doc/html/mail-example.html | 6 +- doc/html/mainclasses.html | 6 +- doc/html/mdi-example.html | 28 +- doc/html/motif-walkthrough-10.html | 2 +- doc/html/motif-walkthrough-8.html | 8 +- doc/html/ntqapplication.html | 12 +- doc/html/ntqbig5codec.html | 2 +- doc/html/ntqbuffer.html | 8 +- doc/html/ntqdatastream.html | 4 +- doc/html/ntqdockarea.html | 6 +- doc/html/ntqdragobject.html | 2 +- doc/html/ntqdropsite.html | 2 +- doc/html/ntqeucjpcodec.html | 8 +- doc/html/ntqeuckrcodec.html | 6 +- doc/html/ntqfile.html | 18 +- doc/html/ntqgb18030codec.html | 2 +- doc/html/ntqiconview.html | 6 +- doc/html/ntqiodevice.html | 6 +- doc/html/ntqjiscodec.html | 6 +- doc/html/ntqlabel.html | 4 +- doc/html/ntqlineedit.html | 4 +- doc/html/ntqmainwindow.html | 12 +- doc/html/ntqmultilineedit.html | 18 +- doc/html/ntqprocess.html | 4 +- doc/html/ntqscrollview.html | 2 +- doc/html/ntqsimplerichtext.html | 2 +- doc/html/ntqsjiscodec.html | 6 +- doc/html/ntqsplitter.html | 8 +- doc/html/ntqstylesheet.html | 10 +- doc/html/ntqsyntaxhighlighter.html | 8 +- doc/html/ntqt.html | 2 +- doc/html/ntqtextbrowser.html | 265 ----- doc/html/ntqtextcodec.html | 611 ----------- doc/html/ntqtextcodecplugin.html | 114 -- doc/html/ntqtextedit.html | 1626 ----------------------------- doc/html/ntqtextstream.html | 667 ------------ doc/html/ntqtextview.html | 81 -- doc/html/ntqtsciicodec.html | 2 +- doc/html/pictures.html | 8 +- doc/html/plugins-howto.html | 2 +- doc/html/plugins.html | 2 +- doc/html/porting.html | 8 +- doc/html/process-example.html | 8 +- doc/html/propertydocs | 168 +-- doc/html/propertyindex | 40 +- doc/html/qaction-application-example.html | 30 +- doc/html/qaxbase.html | 2 +- doc/html/qbig5codec-h.html | 2 +- doc/html/qbig5codec-members.html | 50 +- doc/html/qbig5hkscscodec-members.html | 50 +- doc/html/qbig5hkscscodec.html | 2 +- doc/html/qdir-example.html | 26 +- doc/html/qdockarea-h.html | 2 +- doc/html/qdropevent.html | 2 +- doc/html/qeucjpcodec-h.html | 2 +- doc/html/qeucjpcodec-members.html | 46 +- doc/html/qeuckrcodec-h.html | 2 +- doc/html/qeuckrcodec-members.html | 48 +- doc/html/qfontmanager_qws-h.html | 2 +- doc/html/qgb18030codec-h.html | 2 +- doc/html/qgb18030codec-members.html | 50 +- doc/html/qgb2312codec-members.html | 50 +- doc/html/qgbkcodec-members.html | 50 +- doc/html/qgfx_qws-h.html | 2 +- doc/html/qhebrewcodec-members.html | 46 +- doc/html/qhebrewcodec.html | 6 +- doc/html/qjiscodec-h.html | 2 +- doc/html/qjiscodec-members.html | 48 +- doc/html/qmacmime.html | 2 +- doc/html/qmacstyle.html | 2 +- doc/html/qmainwindow-h.html | 2 +- doc/html/qmimesource.html | 2 +- doc/html/qmimesourcefactory.html | 10 +- doc/html/qmultilineedit-h.html | 2 +- doc/html/qmultilineedit-members.html | 244 ++--- doc/html/qnamespace-h.html | 2 +- doc/html/qnpstream.html | 2 +- doc/html/qrtlcodec-h.html | 2 +- doc/html/qsjiscodec-h.html | 2 +- doc/html/qsjiscodec-members.html | 48 +- doc/html/qt-template-lib.html | 4 +- doc/html/qt.dcf | 588 +++++------ doc/html/qtextbrowser-h.html | 152 --- doc/html/qtextbrowser-m.png | Bin 21643 -> 0 bytes doc/html/qtextbrowser-members.html | 556 ---------- doc/html/qtextbrowser-w.png | Bin 21690 -> 0 bytes doc/html/qtextcodec-h.html | 179 ---- doc/html/qtextcodec-members.html | 73 -- doc/html/qtextcodecplugin-h.html | 115 -- doc/html/qtextcodecplugin-members.html | 52 - doc/html/qtextdecoder-members.html | 48 - doc/html/qtextdecoder.html | 78 -- doc/html/qtextdrag-members.html | 107 -- doc/html/qtextdrag.html | 129 --- doc/html/qtextedit-h.html | 655 ------------ doc/html/qtextedit-members.html | 544 ---------- doc/html/qtextencoder-members.html | 48 - doc/html/qtextencoder.html | 79 -- doc/html/qtextistream-members.html | 69 -- doc/html/qtextistream.html | 91 -- doc/html/qtextostream-members.html | 69 -- doc/html/qtextostream.html | 90 -- doc/html/qtextstream-h.html | 383 ------- doc/html/qtextstream-members.html | 70 -- doc/html/qtextview-h.html | 119 --- doc/html/qtextview-members.html | 543 ---------- doc/html/qtsciicodec-h.html | 2 +- doc/html/qtsciicodec-members.html | 50 +- doc/html/qwerty-example.html | 52 +- doc/html/qwindowsmime.html | 2 +- doc/html/richtext-example.html | 18 +- doc/html/rot-example.html | 8 +- doc/html/scrollview-example.html | 6 +- doc/html/simple-application-example.html | 30 +- doc/html/simple-application.html | 30 +- doc/html/simple-font-demo-example.html | 14 +- doc/html/simple_dd-example.html | 12 +- doc/html/text.html | 10 +- doc/html/titleindex | 56 +- doc/html/tqdomnode.html | 4 +- doc/html/tqobject.html | 4 +- doc/html/tqsqlpropertymap.html | 4 +- doc/html/tqstring.html | 22 +- doc/html/tqtextbrowser-h.html | 152 +++ doc/html/tqtextbrowser-m.png | Bin 0 -> 21643 bytes doc/html/tqtextbrowser-members.html | 556 ++++++++++ doc/html/tqtextbrowser-w.png | Bin 0 -> 21690 bytes doc/html/tqtextbrowser.html | 265 +++++ doc/html/tqtextcodec-h.html | 179 ++++ doc/html/tqtextcodec-members.html | 73 ++ doc/html/tqtextcodec.html | 611 +++++++++++ doc/html/tqtextcodecplugin-h.html | 115 ++ doc/html/tqtextcodecplugin-members.html | 52 + doc/html/tqtextcodecplugin.html | 114 ++ doc/html/tqtextdecoder-members.html | 48 + doc/html/tqtextdecoder.html | 78 ++ doc/html/tqtextdrag-members.html | 107 ++ doc/html/tqtextdrag.html | 129 +++ doc/html/tqtextedit-h.html | 655 ++++++++++++ doc/html/tqtextedit-members.html | 544 ++++++++++ doc/html/tqtextedit.html | 1626 +++++++++++++++++++++++++++++ doc/html/tqtextencoder-members.html | 48 + doc/html/tqtextencoder.html | 79 ++ doc/html/tqtextistream-members.html | 69 ++ doc/html/tqtextistream.html | 91 ++ doc/html/tqtextostream-members.html | 69 ++ doc/html/tqtextostream.html | 90 ++ doc/html/tqtextstream-h.html | 383 +++++++ doc/html/tqtextstream-members.html | 70 ++ doc/html/tqtextstream.html | 667 ++++++++++++ doc/html/tqtextview-h.html | 119 +++ doc/html/tqtextview-members.html | 543 ++++++++++ doc/html/tqtextview.html | 81 ++ doc/html/tqwidget.html | 14 +- doc/html/tqxml-h.html | 2 +- doc/html/tqxmlinputsource.html | 2 +- doc/html/tutorial2-03.html | 14 +- doc/html/tutorial2-07.html | 6 +- doc/html/unicode.html | 6 +- doc/html/whatsthis | 22 +- 194 files changed, 9381 insertions(+), 9381 deletions(-) delete mode 100644 doc/html/ntqtextbrowser.html delete mode 100644 doc/html/ntqtextcodec.html delete mode 100644 doc/html/ntqtextcodecplugin.html delete mode 100644 doc/html/ntqtextedit.html delete mode 100644 doc/html/ntqtextstream.html delete mode 100644 doc/html/ntqtextview.html delete mode 100644 doc/html/qtextbrowser-h.html delete mode 100644 doc/html/qtextbrowser-m.png delete mode 100644 doc/html/qtextbrowser-members.html delete mode 100644 doc/html/qtextbrowser-w.png delete mode 100644 doc/html/qtextcodec-h.html delete mode 100644 doc/html/qtextcodec-members.html delete mode 100644 doc/html/qtextcodecplugin-h.html delete mode 100644 doc/html/qtextcodecplugin-members.html delete mode 100644 doc/html/qtextdecoder-members.html delete mode 100644 doc/html/qtextdecoder.html delete mode 100644 doc/html/qtextdrag-members.html delete mode 100644 doc/html/qtextdrag.html delete mode 100644 doc/html/qtextedit-h.html delete mode 100644 doc/html/qtextedit-members.html delete mode 100644 doc/html/qtextencoder-members.html delete mode 100644 doc/html/qtextencoder.html delete mode 100644 doc/html/qtextistream-members.html delete mode 100644 doc/html/qtextistream.html delete mode 100644 doc/html/qtextostream-members.html delete mode 100644 doc/html/qtextostream.html delete mode 100644 doc/html/qtextstream-h.html delete mode 100644 doc/html/qtextstream-members.html delete mode 100644 doc/html/qtextview-h.html delete mode 100644 doc/html/qtextview-members.html create mode 100644 doc/html/tqtextbrowser-h.html create mode 100644 doc/html/tqtextbrowser-m.png create mode 100644 doc/html/tqtextbrowser-members.html create mode 100644 doc/html/tqtextbrowser-w.png create mode 100644 doc/html/tqtextbrowser.html create mode 100644 doc/html/tqtextcodec-h.html create mode 100644 doc/html/tqtextcodec-members.html create mode 100644 doc/html/tqtextcodec.html create mode 100644 doc/html/tqtextcodecplugin-h.html create mode 100644 doc/html/tqtextcodecplugin-members.html create mode 100644 doc/html/tqtextcodecplugin.html create mode 100644 doc/html/tqtextdecoder-members.html create mode 100644 doc/html/tqtextdecoder.html create mode 100644 doc/html/tqtextdrag-members.html create mode 100644 doc/html/tqtextdrag.html create mode 100644 doc/html/tqtextedit-h.html create mode 100644 doc/html/tqtextedit-members.html create mode 100644 doc/html/tqtextedit.html create mode 100644 doc/html/tqtextencoder-members.html create mode 100644 doc/html/tqtextencoder.html create mode 100644 doc/html/tqtextistream-members.html create mode 100644 doc/html/tqtextistream.html create mode 100644 doc/html/tqtextostream-members.html create mode 100644 doc/html/tqtextostream.html create mode 100644 doc/html/tqtextstream-h.html create mode 100644 doc/html/tqtextstream-members.html create mode 100644 doc/html/tqtextstream.html create mode 100644 doc/html/tqtextview-h.html create mode 100644 doc/html/tqtextview-members.html create mode 100644 doc/html/tqtextview.html (limited to 'doc/html') diff --git a/doc/html/addressbook-example.html b/doc/html/addressbook-example.html index 957cc0105..c61e3fb32 100644 --- a/doc/html/addressbook-example.html +++ b/doc/html/addressbook-example.html @@ -290,7 +290,7 @@ protected: #include <ntqlabel.h> #include <ntqcheckbox.h> #include <ntqfile.h> -#include <ntqtextstream.h> +#include <tqtextstream.h> ABCentralWidget::ABCentralWidget( TQWidget *parent, const char *name ) : TQWidget( parent, name ) @@ -313,8 +313,8 @@ void ABCentralWidget::save( const TQS if ( !f.open( IO_WriteOnly ) ) return; - TQTextStream t( &f ); - t.setEncoding(TQTextStream::UnicodeUTF8); + TQTextStream t( &f ); + t.setEncoding(TQTextStream::UnicodeUTF8); TQListViewItemIterator it( listView ); @@ -333,13 +333,13 @@ void ABCentralWidget::load( const TQS if ( !f.open( IO_ReadOnly ) ) return; - TQTextStream t( &f ); - t.setEncoding(TQTextStream::UnicodeUTF8); + TQTextStream t( &f ); + t.setEncoding(TQTextStream::UnicodeUTF8); - while ( !t.atEnd() ) { + while ( !t.atEnd() ) { TQListViewItem *item = new TQListViewItem( listView ); for ( unsigned int i = 0; i < 4; i++ ) - item->setText( i, t.readLine() ); + item->setText( i, t.readLine() ); } f.close(); diff --git a/doc/html/advanced.html b/doc/html/advanced.html index be9629a8a..56b63c6bb 100644 --- a/doc/html/advanced.html +++ b/doc/html/advanced.html @@ -59,7 +59,7 @@ body { background: #ffffff; color: black; } TQTableItemThe cell content for TQTable cells TQTableSelectionAccess to a selected area in a TQTable TQTabWidgetStack of tabbed widgets -TQTextBrowserRich text browser with hypertext navigation +TQTextBrowserRich text browser with hypertext navigation TQTimeEditTime editor TQToolBoxColumn of tabbed widget items diff --git a/doc/html/annotated.html b/doc/html/annotated.html index 4372d8b3d..3a362ca59 100644 --- a/doc/html/annotated.html +++ b/doc/html/annotated.html @@ -377,16 +377,16 @@ body { background: #ffffff; color: black; } TQTableItemThe cell content for TQTable cells TQTableSelectionAccess to a selected area in a TQTable TQTabletEventParameters that describe a Tablet event -TQTextBrowserRich text browser with hypertext navigation -TQTextCodecConversion between text encodings -TQTextCodecPluginAbstract base for custom TQTextCodec plugins -TQTextDecoderState-based decoder -TQTextDragDrag and drop object for transferring plain and Unicode text -TQTextEditPowerful single-page rich text editor -TQTextEncoderState-based encoder -TQTextIStreamConvenience class for input streams -TQTextOStreamConvenience class for output streams -TQTextStreamBasic functions for reading and writing text using a TQIODevice +TQTextBrowserRich text browser with hypertext navigation +TQTextCodecConversion between text encodings +TQTextCodecPluginAbstract base for custom TQTextCodec plugins +TQTextDecoderState-based decoder +TQTextDragDrag and drop object for transferring plain and Unicode text +TQTextEditPowerful single-page rich text editor +TQTextEncoderState-based encoder +TQTextIStreamConvenience class for input streams +TQTextOStreamConvenience class for output streams +TQTextStreamBasic functions for reading and writing text using a TQIODevice TQThreadPlatform-independent threads TQThreadStoragePer-thread data storage TQTimeClock time functions diff --git a/doc/html/basic.html b/doc/html/basic.html index e0f96b445..3d09d177a 100644 --- a/doc/html/basic.html +++ b/doc/html/basic.html @@ -54,7 +54,7 @@ widgets. TQSliderVertical or horizontal slider TQSpinBoxSpin box widget (spin button) TQSyntaxHighlighterBase class for implementing TQTextEdit syntax highlighters -TQTextEditPowerful single-page rich text editor +TQTextEditPowerful single-page rich text editor TQToolButtonQuick-access button to commands or options, usually used inside a TQToolBar diff --git a/doc/html/canvas-chart-example.html b/doc/html/canvas-chart-example.html index d2a404977..40379d951 100644 --- a/doc/html/canvas-chart-example.html +++ b/doc/html/canvas-chart-example.html @@ -144,8 +144,8 @@ private: }; -TQTextStream &operator<<( TQTextStream&, const Element& ); -TQTextStream &operator>>( TQTextStream&, Element& ); +TQTextStream &operator<<( TQTextStream&, const Element& ); +TQTextStream &operator>>( TQTextStream&, Element& ); #endif diff --git a/doc/html/chart-chartform_files-cpp.html b/doc/html/chart-chartform_files-cpp.html index 48705ab2d..bbcb75b87 100644 --- a/doc/html/chart-chartform_files-cpp.html +++ b/doc/html/chart-chartform_files-cpp.html @@ -53,11 +53,11 @@ void ChartForm::load( const TQString< init(); // Make sure we have colours m_filename = filename; - TQTextStream ts( &file ); + TQTextStream ts( &file ); Element element; int errors = 0; int i = 0; - while ( !ts.eof() ) { + while ( !ts.eof() ) { ts >> element; if ( element.isValid() ) m_elements[i++] = element; @@ -103,7 +103,7 @@ void ChartForm::fileSave() arg( m_filename ), 2000 ); return; } - TQTextStream ts( &file ); + TQTextStream ts( &file ); for ( int i = 0; i < MAX_ELEMENTS; ++i ) if ( m_elements[i].isValid() ) ts << m_elements[i]; diff --git a/doc/html/chart-element-cpp.html b/doc/html/chart-element-cpp.html index 8851ba0be..3ee388b98 100644 --- a/doc/html/chart-element-cpp.html +++ b/doc/html/chart-element-cpp.html @@ -35,7 +35,7 @@ body { background: #ffffff; color: black; }
#include "element.h"
 
 #include <tqstringlist.h>
-#include <ntqtextstream.h>
+#include <tqtextstream.h>
 
 const char FIELD_SEP = ':';
 const char PROPOINT_SEP = ';';
@@ -91,7 +91,7 @@ void Element::setProY( int index, double value )
 }
 
 
-TQTextStream &operator<<( TQTextStream &s, const Element &element )
+TQTextStream &operator<<( TQTextStream &s, const Element &element )
 {
     s << element.value() << FIELD_SEP
       << element.valueColor().name() << FIELD_SEP
@@ -109,9 +109,9 @@ TQTextStream &operator<<( TQTextStreamTQTextStream &s, Element &element )
+TQTextStream &operator>>( TQTextStream &s, Element &element )
 {
-    TQString data = s.readLine();
+    TQString data = s.readLine();
     element.setValue( Element::INVALID );
 
     int errors = 0;
diff --git a/doc/html/chart-element-h.html b/doc/html/chart-element-h.html
index b6959af64..70497a784 100644
--- a/doc/html/chart-element-h.html
+++ b/doc/html/chart-element-h.html
@@ -112,8 +112,8 @@ private:
 };
 
 
-TQTextStream &operator<<( TQTextStream&, const Element& );
-TQTextStream &operator>>( TQTextStream&, Element& );
+TQTextStream &operator<<( TQTextStream&, const Element& );
+TQTextStream &operator>>( TQTextStream&, Element& );
 
 #endif
 
diff --git a/doc/html/classchart.html b/doc/html/classchart.html index 364cc66de..e56ad71a1 100644 --- a/doc/html/classchart.html +++ b/doc/html/classchart.html @@ -158,8 +158,8 @@ body { background: #ffffff; color: black; } - - + + @@ -290,9 +290,9 @@ body { background: #ffffff; color: black; } - - - + + + diff --git a/doc/html/classes.html b/doc/html/classes.html index 7ccd9b735..498697793 100644 --- a/doc/html/classes.html +++ b/doc/html/classes.html @@ -123,7 +123,7 @@ classes, see TQt's Main Classes. TQProcess -TQTextBrowser +TQTextBrowser TQAsciiCacheIterator @@ -134,7 +134,7 @@ classes, see TQt's Main Classes. TQProgressBar -TQTextCodec +TQTextCodec TQAsciiDict @@ -145,7 +145,7 @@ classes, see TQt's Main Classes. TQProgressDialog -TQTextCodecPlugin +TQTextCodecPlugin TQAsciiDictIterator @@ -156,7 +156,7 @@ classes, see TQt's Main Classes. TQPtrCollection -TQTextDecoder +TQTextDecoder TQAssistantClient @@ -167,7 +167,7 @@ classes, see TQt's Main Classes. TQPtrDict -TQTextDrag +TQTextDrag TQAxAggregated @@ -178,7 +178,7 @@ classes, see TQt's Main Classes. TQPtrDictIterator -TQTextEdit +TQTextEdit TQAxBase @@ -189,7 +189,7 @@ classes, see TQt's Main Classes. TQPtrList -TQTextEncoder +TQTextEncoder TQAxBindable @@ -200,7 +200,7 @@ classes, see TQt's Main Classes. TQPtrListIterator -TQTextIStream +TQTextIStream TQAxFactory @@ -211,7 +211,7 @@ classes, see TQt's Main Classes. TQPtrQueue -TQTextOStream +TQTextOStream TQAxObject @@ -222,7 +222,7 @@ classes, see TQt's Main Classes. TQPtrStack -TQTextStream +TQTextStream TQAxScript diff --git a/doc/html/clientserver-example.html b/doc/html/clientserver-example.html index b66a1f1e4..d44930b68 100644 --- a/doc/html/clientserver-example.html +++ b/doc/html/clientserver-example.html @@ -59,10 +59,10 @@ specified. You can send single lines to the server. #include <ntqserversocket.h> #include <ntqapplication.h> #include <ntqvbox.h> -#include <ntqtextview.h> +#include <tqtextview.h> #include <ntqlabel.h> #include <ntqpushbutton.h> -#include <ntqtextstream.h> +#include <tqtextstream.h> #include <stdlib.h> @@ -97,9 +97,9 @@ signals: private slots: void readClient() { - TQTextStream ts( this ); + TQTextStream ts( this ); while ( canReadLine() ) { - TQString str = ts.readLine(); + TQString str = ts.readLine(); emit logText( tr("Read: '%1'\n").arg(str) ); ts << line << ": " << str << endl; @@ -165,7 +165,7 @@ public: ); TQLabel *lb = new TQLabel( itext, this ); lb->setAlignment( AlignHCenter ); - infoText = new TQTextView( this ); + infoText = new TQTextView( this ); TQPushButton *quit = new TQPushButton( tr("Quit") , this ); connect( server, TQ_SIGNAL(newConnect(ClientSocket*)), @@ -181,20 +181,20 @@ public: private slots: void newConnect( ClientSocket *s ) { - infoText->append( tr("New connection\n") ); + infoText->append( tr("New connection\n") ); connect( s, TQ_SIGNAL(logText(const TQString&)), - infoText, TQ_SLOT(append(const TQString&)) ); + infoText, TQ_SLOT(append(const TQString&)) ); connect( s, TQ_SIGNAL(connectionClosed()), TQ_SLOT(connectionClosed()) ); } void connectionClosed() { - infoText->append( tr("Client closed connection\n") ); + infoText->append( tr("Client closed connection\n") ); } private: - TQTextView *infoText; + TQTextView *infoText; }; @@ -226,11 +226,11 @@ int main( int argc, char** argv ) #include <ntqapplication.h> #include <ntqvbox.h> #include <ntqhbox.h> -#include <ntqtextview.h> +#include <tqtextview.h> #include <ntqlineedit.h> #include <ntqlabel.h> #include <ntqpushbutton.h> -#include <ntqtextstream.h> +#include <tqtextstream.h> class Client : public TQVBox @@ -240,7 +240,7 @@ public: Client( const TQString &host, TQ_UINT16 port ) { // GUI layout - infoText = new TQTextView( this ); + infoText = new TQTextView( this ); TQHBox *hb = new TQHBox( this ); inputText = new TQLineEdit( hb ); TQPushButton *send = new TQPushButton( tr("Send") , hb ); @@ -263,7 +263,7 @@ public: TQ_SLOT(socketError(int)) ); // connect to the server - infoText->append( tr("Trying to connect to the server\n") ); + infoText->append( tr("Trying to connect to the server\n") ); socket->connectToHost( host, port ); } @@ -288,7 +288,7 @@ private slots: void sendToServer() { // write to the server - TQTextStream os(socket); + TQTextStream os(socket); os << inputText->text() << "\n"; inputText->setText( "" ); } @@ -297,33 +297,33 @@ private slots: { // read from the server while ( socket->canReadLine() ) { - infoText->append( socket->readLine() ); + infoText->append( socket->readLine() ); } } void socketConnected() { - infoText->append( tr("Connected to server\n") ); + infoText->append( tr("Connected to server\n") ); } void socketConnectionClosed() { - infoText->append( tr("Connection closed by the server\n") ); + infoText->append( tr("Connection closed by the server\n") ); } void socketClosed() { - infoText->append( tr("Connection closed\n") ); + infoText->append( tr("Connection closed\n") ); } void socketError( int e ) { - infoText->append( tr("Error number %1 occurred\n").arg(e) ); + infoText->append( tr("Error number %1 occurred\n").arg(e) ); } private: TQSocket *socket; - TQTextView *infoText; + TQTextView *infoText; TQLineEdit *inputText; }; diff --git a/doc/html/customlayout-example.html b/doc/html/customlayout-example.html index b8fb8bf68..6fa6ec4cb 100644 --- a/doc/html/customlayout-example.html +++ b/doc/html/customlayout-example.html @@ -788,7 +788,7 @@ int main( int argc, char **argv ) large->addWidget( new TQPushButton( "North", wid ), BorderLayout::North ); large->addWidget( new TQPushButton( "West", wid ), BorderLayout::West ); TQMultiLineEdit* m = new TQMultiLineEdit( wid ); - m->setText( "Central\nWidget" ); + m->setText( "Central\nWidget" ); large->addWidget( m, BorderLayout::Center ); TQWidget *east1 = new TQPushButton( "East", wid ); large->addWidget( east1, BorderLayout::East ); diff --git a/doc/html/designer-manual-16.html b/doc/html/designer-manual-16.html index 884083ec8..b59d75c14 100644 --- a/doc/html/designer-manual-16.html +++ b/doc/html/designer-manual-16.html @@ -371,7 +371,7 @@ body { background: #ffffff; color: black; }

widget

Widgets are used at multiple levels within a .ui file. The whole form itself is a widget, and it contains other widgets, usually within the context of layouts such as hboxes, vboxes and grids.

-

Below is an example of a complete .ui file. The form itself is a TQWidget with various non-default properties set. This widget contains a single hbox, which also has some non-default properties, and which contains a single TQTextBrowser widget.

+

Below is an example of a complete .ui file. The form itself is a TQWidget with various non-default properties set. This widget contains a single hbox, which also has some non-default properties, and which contains a single TQTextBrowser widget.

 <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
 <class>WinIntroPage</class>
diff --git a/doc/html/designer-manual-3.html b/doc/html/designer-manual-3.html
index b21cc226f..a4da7992a 100644
--- a/doc/html/designer-manual-3.html
+++ b/doc/html/designer-manual-3.html
@@ -205,7 +205,7 @@ body { background: #ffffff; color: black; }
 

Click the viewActionGroup action group in the Action Editor, and drag it to the View menu; drop it on this menu (when the horizontal red line appears beneath the View menu). Because we dragged the action group, all its actions (in our case the viewTableAction and viewIconsAction) are added to the relevant menu. We'll also make the view actions available on the toolbar. Click the viewActionGroup once again, and drag it to the toolbar; drop it the right of the separator at the far right of the toolbar, and drop it on the toolbar's edge. (Again, a vertical red line will indicate the position.)

Don't forget that you can preview to see things in action with Ctrl+T, and to click File|Save (or press Ctrl+S) regularly! If you preview now you will find that if you click the view toolbar buttons and menu options that both the toolbar buttons and the menu items automatically stay in sync.

Creating the Main Widget

-

Most main-window style applications consist of a menu bar, a toolbar, a status bar and a central widget. We've already created a menu bar and toolbar, and since we've created a TQMainWindow (via the main window wizard), we also have a status bar. Widgets commonly used as an application's main widget are TQListView (which provides a tree view), TQTable and TQTextEdit. Since we want to provide our users with two different views of the same data, we'll use a TQWidgetStack as our main widget. The TQWidgetStack has no visual representation of its own; you place one or more widgets on each TQWidgetStack "page", as if each page was a form in its own right, and then provide the user with some mechanism for switching between pages. (This is similar in principle to using a TQTabWidget.) We want to provide our users with two views: a tabular view that lists colors and their names, and an icon-based view that shows color swatches. In our example we only place a single widget on each TQWidgetStack page; but this merely reflects the application's design -- we could have placed any number of widgets on each page.

+

Most main-window style applications consist of a menu bar, a toolbar, a status bar and a central widget. We've already created a menu bar and toolbar, and since we've created a TQMainWindow (via the main window wizard), we also have a status bar. Widgets commonly used as an application's main widget are TQListView (which provides a tree view), TQTable and TQTextEdit. Since we want to provide our users with two different views of the same data, we'll use a TQWidgetStack as our main widget. The TQWidgetStack has no visual representation of its own; you place one or more widgets on each TQWidgetStack "page", as if each page was a form in its own right, and then provide the user with some mechanism for switching between pages. (This is similar in principle to using a TQTabWidget.) We want to provide our users with two views: a tabular view that lists colors and their names, and an icon-based view that shows color swatches. In our example we only place a single widget on each TQWidgetStack page; but this merely reflects the application's design -- we could have placed any number of widgets on each page.

Click the Toolbox's Containers button, then click WidgetStack. Click approximately in the middle of the form to place the widget stack. Change the widget stack's name property to "colorWidgetStack".

@@ -632,10 +632,10 @@ body { background: #ffffff; color: black; } if ( file.open( IO_ReadOnly ) ) { statusBar()->message( TQString( "Loading '%1'..." ). arg( filename ) ); - TQTextStream stream( &file ); + TQTextStream stream( &file ); TQString line; - while ( ! stream.eof() ) { - line = stream.readLine(); + while ( ! stream.eof() ) { + line = stream.readLine(); if ( regex.search( line ) == -1 ) m_comments += line; else @@ -724,7 +724,7 @@ Captures: cap(1) cap(2) cap(3) cap(4) TQFile file( m_filename ); if ( file.open( IO_WriteOnly ) ) { - TQTextStream stream( &file ); + TQTextStream stream( &file ); if ( ! m_comments.isEmpty() ) stream << m_comments.join( "\n" ) << "\n"; TQMap<TQString,TQColor>::ConstIterator it; diff --git a/doc/html/dnd.html b/doc/html/dnd.html index 0fb3d2950..08e41e137 100644 --- a/doc/html/dnd.html +++ b/doc/html/dnd.html @@ -59,18 +59,18 @@ mechanism.

For drag and drop examples see (in increasing order of sophistication): qt/examples/iconview/simple_dd, qt/examples/dragdrop and qt/examples/fileiconview. See also the -TQTextEdit widget source code. +TQTextEdit widget source code.

Dragging

To start a drag, for example in a mouse motion event, create an object of the TQDragObject -subclass appropriate for your media, such as TQTextDrag for text and +subclass appropriate for your media, such as TQTextDrag for text and TQImageDrag for images. Then call the drag() method. This is all you need for simple dragging of existing types.

For example, to start dragging some text from a widget:

 void MyWidget::startDrag()
 {
-    TQDragObject *d = new TQTextDrag( myHighlightedText(), this );
+    TQDragObject *d = new TQTextDrag( myHighlightedText(), this );
     d->dragCopy();
     // do NOT delete d.
 }
@@ -107,7 +107,7 @@ MyWidget::MyWidget(...) :
 void MyWidget::dragEnterEvent(TQDragEnterEvent* event)
 {
     event->accept(
-        TQTextDrag::canDecode(event) ||
+        TQTextDrag::canDecode(event) ||
         TQImageDrag::canDecode(event)
     );
 }
@@ -119,7 +119,7 @@ void MyWidget::dropEvent(TQDropEvent* event)
 
     if ( TQImageDrag::decode(event, image) ) {
         insertImageAt(image, event->pos());
-    } else if ( TQTextDrag::decode(event, text) ) {
+    } else if ( TQTextDrag::decode(event, text) ) {
         insertTextAt(text, event->pos());
     }
 }
@@ -143,13 +143,13 @@ information on the clipboard:
 void MyWidget::copy()
 {
     TQApplication::clipboard()->setData(
-        new TQTextDrag(myHighlightedText()) );
+        new TQTextDrag(myHighlightedText()) );
 }
 
 void MyWidget::paste()
 {
     TQString text;
-    if ( TQTextDrag::decode(TQApplication::clipboard()->data(), text) )
+    if ( TQTextDrag::decode(TQApplication::clipboard()->data(), text) )
         insertText( text );
 }
 
@@ -210,7 +210,7 @@ indicate to each other which data formats they can accept and which they can produce. This is achieved using MIME types: the drag source provides a list of MIME types that it can produce (ordered from most appropriate to least appropriate), and the drop target chooses -which of those it can accept. For example, TQTextDrag provides support +which of those it can accept. For example, TQTextDrag provides support for the "text/plain" MIME type (ordinary unformatted text), and the Unicode formats "text/utf16" and "text/utf8"; TQImageDrag provides for "image/*", where * is any image format that @@ -259,7 +259,7 @@ the drag start point and the drop event might look like this:

 void MyEditor::startDrag()
 {
-    TQDragObject *d = new TQTextDrag(myHighlightedText(), this);
+    TQDragObject *d = new TQTextDrag(myHighlightedText(), this);
     if ( d->drag() && d->target() != this )
         cutMyHighlightedText();
 }
@@ -268,7 +268,7 @@ void MyEditor::dropEvent(TQDropEvent* event)
 {
     TQString text;
 
-    if ( TQTextDrag::decode(event, text) ) {
+    if ( TQTextDrag::decode(event, text) ) {
         if ( event->source() == this && event->action() == TQDropEvent::Move ) {
             // Careful not to tread on my own feet
             event->acceptAction();
@@ -288,7 +288,7 @@ an area is given for which the drag is accepted or ignored:
 
 void MyWidget::dragMoveEvent(TQDragMoveEvent* event)
 {
-    if ( TQTextDrag::canDecode(event) ) {
+    if ( TQTextDrag::canDecode(event) ) {
         MyCadItem* item = findMyItemAt(event->pos());
         if ( item )
             event->accept();
@@ -302,7 +302,7 @@ you promise the acceptance persists:
 
 void MyWidget::dragMoveEvent(TQDragMoveEvent* event)
 {
-    if ( TQTextDrag::canDecode(event) ) {
+    if ( TQTextDrag::canDecode(event) ) {
         MyCadItem* item = findMyItemAt(event->pos());
         if ( item ) {
             TQRect r = item->areaRelativeToMeClippedByAnythingInTheWay();
diff --git a/doc/html/draganddrop.html b/doc/html/draganddrop.html
index abc15b817..eacda92b9 100644
--- a/doc/html/draganddrop.html
+++ b/doc/html/draganddrop.html
@@ -49,7 +49,7 @@ TQt.
 TQMacMimeMaps open-standard MIME to Mac flavors
 TQMimeSourceAbstraction of objects which provide formatted data of a certain MIME type
 TQStoredDragSimple stored-value drag object for arbitrary MIME data
-TQTextDragDrag and drop object for transferring plain and Unicode text
+TQTextDragDrag and drop object for transferring plain and Unicode text
 TQUriDragDrag object for a list of URI references
 TQWindowsMimeMaps open-standard MIME to Window Clipboard formats
 
diff --git a/doc/html/emb-features.html b/doc/html/emb-features.html
index 035040abf..a35244be3 100644
--- a/doc/html/emb-features.html
+++ b/doc/html/emb-features.html
@@ -175,10 +175,10 @@ translation (TQWMatrix)
 Disabling this disables all widgets except TQWidget.
  
  TQT_NO_TEXTVIEW
-HTML document viewing (TQTextView)
+HTML document viewing (TQTextView)
 TQT_NO_WIDGETS, TQT_NO_RICHTEXT
  TQT_NO_TEXTBROWSER
-HTML document browsing (TQTextBrowser)
+HTML document browsing (TQTextBrowser)
 TQT_NO_TEXTVIEW
  TQT_NO_ICONVIEW
 Labelled icons (TQIconView)
diff --git a/doc/html/functions.html b/doc/html/functions.html
index df4f3ff5d..9dac6979e 100644
--- a/doc/html/functions.html
+++ b/doc/html/functions.html
@@ -132,7 +132,7 @@ abort:
  TQMessageBox TQSimpleRichText TQWidget
  • advance: TQCanvas TQCanvasItem TQCanvasSprite
  • afterSeek: TQSqlQuery
  • alignment: - TQGroupBox TQLabel TQLayoutItem TQLineEdit TQMultiLineEdit TQStyleSheetItem TQTableItem TQTextEdit
  • alignmentRect: + TQGroupBox TQLabel TQLayoutItem TQLineEdit TQMultiLineEdit TQStyleSheetItem TQTableItem TQTextEdit
  • alignmentRect: TQLayout
  • all: TQMacMime TQWindowsMime
  • allColumnsShowFocus: TQListView
  • allGray: @@ -145,8 +145,8 @@ abort: TQSessionManager
  • allowsInteraction: TQSessionManager
  • alpha: TQGLFormat
  • anchorAt: - TQSimpleRichText TQTextEdit
  • anchorClicked: - TQTextBrowser
  • anchorCol: + TQSimpleRichText TQTextEdit
  • anchorClicked: + TQTextBrowser
  • anchorCol: TQTableSelection
  • anchorRow: TQTableSelection
  • angleLength: TQCanvasEllipse
  • angleStart: @@ -155,7 +155,7 @@ abort: TQCanvasItem
  • answerRect: TQDragMoveEvent
  • appID: TQAxFactory
  • append: - TQCString TQIconDrag TQPtrList TQSqlCursor TQSqlIndex TQSqlRecord TQString TQTextEdit TQValueList TQValueVector TQXmlAttributes
  • appendChild: + TQCString TQIconDrag TQPtrList TQSqlCursor TQSqlIndex TQSqlRecord TQString TQTextEdit TQValueList TQValueVector TQXmlAttributes
  • appendChild: TQDomNode
  • appendData: TQDomCharacterData
  • applicationContext: TQMotif
  • applicationDirPath: @@ -216,7 +216,7 @@ abort: TQAssistantClient
  • at: TQBitArray TQIODevice TQMemArray TQPtrList TQPtrVector TQSocket TQSqlQuery TQSqlResult TQString TQValueList TQValueVector
  • atBeginning: TQMultiLineEdit
  • atEnd: - TQDataStream TQFile TQIODevice TQMultiLineEdit TQSocket TQTextStream
  • atFirst: + TQDataStream TQFile TQIODevice TQMultiLineEdit TQSocket TQTextStream
  • atFirst: TQAsciiCacheIterator TQCacheIterator TQIntCacheIterator TQPtrListIterator
  • atLast: TQAsciiCacheIterator TQCacheIterator TQIntCacheIterator TQPtrListIterator
  • attribute: TQDomElement
  • attributeDecl: @@ -234,7 +234,7 @@ abort: TQPushButton
  • autoDelete: TQAsciiDict TQCache TQDataTable TQDict TQIconFactory TQIntDict TQNetworkProtocol TQPtrCollection TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector
  • autoEdit: TQDataBrowser TQDataTable
  • autoFormatting: - TQTextEdit
  • autoMask: + TQTextEdit
  • autoMask: TQWidget
  • autoRaise: TQToolButton
  • autoRepeat: TQButton TQCheckBox TQPushButton TQRadioButton
  • autoReset: @@ -253,8 +253,8 @@ back: TQWidget
  • backgroundPixmap: TQCanvas
  • backspace: TQLineEdit TQMultiLineEdit
  • backward: - TQTextBrowser
  • backwardAvailable: - TQTextBrowser
  • base: + TQTextBrowser
  • backwardAvailable: + TQTextBrowser
  • base: TQColorGroup TQScreen
  • baseName: TQFileInfo
  • baseSize: TQWidget
  • beep: @@ -279,7 +279,7 @@ back: TQObject
  • blocking: TQSocketDevice
  • blue: TQColor
  • bold: - TQFont TQFontDatabase TQFontInfo TQTextEdit
  • bottom: + TQFont TQFontDatabase TQFontInfo TQTextEdit
  • bottom: TQDoubleValidator TQIntValidator TQRect
  • bottomDock: TQMainWindow
  • bottomEdge: TQCanvasSprite
  • bottomLeft: @@ -321,9 +321,9 @@ c: TQAxScript TQAxScriptManager
  • canCast: TQVariant
  • canConvert: TQMacMime TQWindowsMime
  • canDecode: - TQColorDrag TQIconDrag TQImageDrag TQTextDrag TQUriDrag
  • canDelete: + TQColorDrag TQIconDrag TQImageDrag TQTextDrag TQUriDrag
  • canDelete: TQSqlCursor
  • canEncode: - TQTextCodec
  • canInsert: + TQTextCodec
  • canInsert: TQSqlCursor
  • canReadLine: TQSocket
  • canReadLineStderr: TQProcess
  • canReadLineStdout: @@ -366,7 +366,7 @@ c: TQTabDialog TQTabWidget
  • changed: TQImageConsumer
  • channel: TQCopChannel
  • charAt: - TQTextEdit
  • charWidth: + TQTextEdit
  • charWidth: TQFontMetrics
  • characters: TQXmlContentHandler
  • checkConnectArgs: TQObject
  • checkConnection: @@ -396,7 +396,7 @@ c: TQDir
  • cleanText: TQSpinBox
  • cleanup: TQColor TQCursor TQFontManager
  • clear: - TQAccel TQAsciiCache TQAsciiDict TQAxBase TQCache TQClipboard TQComboBox TQDict TQDomNode TQIconView TQIntCache TQIntDict TQLabel TQLineEdit TQListBox TQListView TQMap TQMenuBar TQMenuData TQObjectCleanupHandler TQPixmapCache TQPopupMenu TQPtrCollection TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQSplashScreen TQSqlCursor TQSqlField TQSqlForm TQSqlRecord TQStatusBar TQTextEdit TQToolBar TQToolTip TQTranslator TQValueList TQValueVector TQVariant TQXmlAttributes
  • clearArguments: + TQAccel TQAsciiCache TQAsciiDict TQAxBase TQCache TQClipboard TQComboBox TQDict TQDomNode TQIconView TQIntCache TQIntDict TQLabel TQLineEdit TQListBox TQListView TQMap TQMenuBar TQMenuData TQObjectCleanupHandler TQPixmapCache TQPopupMenu TQPtrCollection TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQSplashScreen TQSqlCursor TQSqlField TQSqlForm TQSqlRecord TQStatusBar TQTextEdit TQToolBar TQToolTip TQTranslator TQValueList TQValueVector TQVariant TQXmlAttributes
  • clearArguments: TQProcess
  • clearBit: TQBitArray
  • clearCalibration: TQWSMouseHandler
  • clearCell: @@ -409,7 +409,7 @@ c: TQWidget
  • clearModified: TQLineEdit
  • clearOperationQueue: TQNetworkProtocol
  • clearParagraphBackground: - TQTextEdit
  • clearPendingCommands: + TQTextEdit
  • clearPendingCommands: TQFtp
  • clearPendingData: TQSocket
  • clearPendingRequests: TQHttp
  • clearSelection: @@ -417,7 +417,7 @@ c: TQComboBox TQLineEdit
  • clearValues: TQDataBrowser TQDataView TQSqlForm TQSqlRecord
  • clearWFlags: TQWidget
  • clicked: - TQButton TQButtonGroup TQCheckBox TQHeader TQIconView TQListBox TQListView TQPushButton TQRadioButton TQTable TQTextEdit TQWhatsThis
  • client: + TQButton TQButtonGroup TQCheckBox TQHeader TQIconView TQListBox TQListView TQPushButton TQRadioButton TQTable TQTextEdit TQWhatsThis
  • client: TQWSWindow
  • clientSite: TQAxBindable
  • clientWindows: TQWSServer
  • clipRegion: @@ -439,14 +439,14 @@ c: TQApplication
  • clut: TQScreen
  • cmd: TQPaintDevice
  • codec: - TQTextStream
  • codecForCStrings: - TQTextCodec
  • codecForContent: - TQTextCodec
  • codecForIndex: - TQTextCodec
  • codecForLocale: - TQTextCodec
  • codecForMib: - TQTextCodec
  • codecForName: - TQTextCodec
  • codecForTr: - TQTextCodec
  • col: + TQTextStream
  • codecForCStrings: + TQTextCodec
  • codecForContent: + TQTextCodec
  • codecForIndex: + TQTextCodec
  • codecForLocale: + TQTextCodec
  • codecForMib: + TQTextCodec
  • codecForName: + TQTextCodec
  • codecForTr: + TQTextCodec
  • col: TQTableItem
  • colSpacing: TQGridLayout
  • colSpan: TQTableItem
  • colStretch: @@ -454,7 +454,7 @@ c: TQListView
  • collidesWith: TQCanvasItem
  • collisions: TQCanvas TQCanvasItem
  • color: - TQBrush TQCanvasText TQColorGroup TQImage TQPalette TQPen TQStyleOption TQStyleSheetItem TQTextEdit
  • colorGroup: + TQBrush TQCanvasText TQColorGroup TQImage TQPalette TQPen TQStyleOption TQStyleSheetItem TQTextEdit
  • colorGroup: TQWidget
  • colorMode: TQPrinter
  • colorNames: TQColor
  • colorSpec: @@ -532,7 +532,7 @@ c: TQScrollView
  • contentsX: TQScrollView
  • contentsY: TQScrollView
  • context: - TQGLWidget TQSimpleRichText TQTextEdit TQTranslatorMessage
  • contextMenuEvent: + TQGLWidget TQSimpleRichText TQTextEdit TQTranslatorMessage
  • contextMenuEvent: TQWidget
  • contextMenuRequested: TQIconView TQListBox TQListView TQTable
  • contexts: TQStyleSheetItem
  • control: @@ -554,8 +554,8 @@ c: TQMacMime TQWindowsMime
  • convertorName: TQMacMime TQWindowsMime
  • coords: TQRect
  • copy: - TQBitArray TQCString TQImage TQLineEdit TQMemArray TQPalette TQPicture TQPointArray TQTextEdit TQUrlOperator
  • copyAvailable: - TQTextEdit
  • copyBlt: + TQBitArray TQCString TQImage TQLineEdit TQMemArray TQPalette TQPicture TQPointArray TQTextEdit TQUrlOperator
  • copyAvailable: + TQTextEdit
  • copyBlt: TQPixmap
  • cornerWidget: TQScrollView TQTabWidget
  • count: TQAccel TQAsciiCache TQAsciiCacheIterator TQAsciiDict TQAsciiDictIterator TQButtonGroup TQCache TQCacheIterator TQCanvasPixmapArray TQComboBox TQComboTableItem TQDict TQDictIterator TQDir TQDockArea TQDomNamedNodeMap TQDomNodeList TQFocusData TQHeader TQIconView TQIntCache TQIntCacheIterator TQIntDict TQIntDictIterator TQKeyEvent TQKeySequence TQListBox TQMap TQMemArray TQMenuData TQPtrCollection TQPtrDict TQPtrDictIterator TQPtrList TQPtrListIterator TQPtrQueue TQPtrStack TQPtrVector TQSqlForm TQSqlRecord TQTabBar TQTabWidget TQToolBox TQValueList TQValueVector TQXmlAttributes
  • countCf: @@ -578,15 +578,15 @@ c: TQDomDocument
  • createElementNS: TQDomDocument
  • createEntityReference: TQDomDocument
  • createForMib: - TQTextCodecPlugin
  • createForName: - TQTextCodecPlugin
  • createGfx: + TQTextCodecPlugin
  • createForName: + TQTextCodecPlugin
  • createGfx: TQScreen
  • createHeuristicMask: TQImage TQPixmap
  • createHostWindow: TQAxWidget
  • createObject: TQAxFactory
  • createObjectWrapper: TQAxFactory
  • createPixmap: TQIconFactory
  • createPopupMenu: - TQLineEdit TQTextEdit
  • createProcessingInstruction: + TQLineEdit TQTextEdit
  • createProcessingInstruction: TQDomDocument
  • createQuery: TQSqlDriver
  • createTextNode: TQDomDocument
  • createUuid: @@ -600,10 +600,10 @@ c: TQTable
  • currEditRow: TQTable
  • current: TQAsciiCacheIterator TQAsciiDictIterator TQCacheIterator TQDictIterator TQDir TQGLayoutIterator TQIntCacheIterator TQIntDictIterator TQLayoutIterator TQListViewItemIterator TQPtrDictIterator TQPtrList TQPtrListIterator TQPtrQueue TQPtrStack
  • currentAlignmentChanged: - TQTextEdit
  • currentAllocContext: + TQTextEdit
  • currentAllocContext: TQColor
  • currentChanged: TQDataBrowser TQDataTable TQIconView TQListBox TQListView TQTabDialog TQTabWidget TQTable TQToolBox
  • currentColorChanged: - TQTextEdit
  • currentColumn: + TQTextEdit
  • currentColumn: TQTable
  • currentCommand: TQFtp
  • currentContext: TQGLContext
  • currentDate: @@ -613,8 +613,8 @@ c: TQFtp
  • currentDirPath: TQDir
  • currentEdited: TQDataBrowser
  • currentFont: - TQTextEdit
  • currentFontChanged: - TQTextEdit
  • currentId: + TQTextEdit
  • currentFontChanged: + TQTextEdit
  • currentId: TQFtp TQHttp
  • currentIndex: TQToolBox
  • currentItem: TQComboBox TQComboTableItem TQIconView TQListBox TQListView TQToolBox
  • currentKey: @@ -633,7 +633,7 @@ c: TQThread
  • currentTime: TQTime
  • currentValueText: TQSpinBox
  • currentVerticalAlignmentChanged: - TQTextEdit
  • cursor: + TQTextEdit
  • cursor: TQWidget
  • cursorBackward: TQLineEdit
  • cursorChanged: TQDataBrowser TQDataTable
  • cursorDown: @@ -645,7 +645,7 @@ c: TQMultiLineEdit
  • cursorPos: TQIMEvent
  • cursorPosition: TQLineEdit
  • cursorPositionChanged: - TQTextEdit
  • cursorRight: + TQTextEdit
  • cursorRight: TQMultiLineEdit
  • cursorUp: TQMultiLineEdit
  • cursorWordBackward: TQLineEdit TQMultiLineEdit
  • cursorWordForward: @@ -655,7 +655,7 @@ c: TQObject
  • customWhatsThis: TQWidget
  • customize: TQMainWindow
  • cut: - TQLineEdit TQTextEdit
  • + TQLineEdit TQTextEdit
  • dark: TQColor TQColorGroup
  • data: TQClipboard TQCustomEvent TQDomCharacterData TQDomProcessingInstruction TQIconDragItem TQMapConstIterator TQMapIterator TQMemArray TQMimeSourceFactory TQNetworkProtocol TQPicture TQPtrVector TQSqlResult TQUrlOperator TQXmlInputSource
  • dataChanged: @@ -679,7 +679,7 @@ dark: TQFont
  • decimals: TQDoubleValidator
  • declHandler: TQXmlReader
  • decode: - TQColorDrag TQImageDecoder TQImageDrag TQImageFormat TQTextDrag TQUriDrag TQUrl
  • decodeLocalFiles: + TQColorDrag TQImageDecoder TQImageDrag TQImageFormat TQTextDrag TQUriDrag TQUrl
  • decodeLocalFiles: TQUriDrag
  • decodeName: TQFile
  • decodeToUnicodeUris: TQUriDrag
  • decoderFor: @@ -701,10 +701,10 @@ dark: TQStyleSheetItem
  • definesFontStrikeOut: TQStyleSheetItem
  • definesFontUnderline: TQStyleSheetItem
  • del: - TQDataBrowser TQLineEdit TQSqlCursor TQTextEdit
  • delay: + TQDataBrowser TQLineEdit TQSqlCursor TQTextEdit
  • delay: TQToolTipGroup
  • delayedCloseFinished: TQSocket
  • deleteAllCodecs: - TQTextCodec
  • deleteAllItems: + TQTextCodec
  • deleteAllItems: TQLayout
  • deleteCurrent: TQDataBrowser TQDataTable TQLayoutIterator
  • deleteData: TQDomCharacterData
  • deleteItem: @@ -725,7 +725,7 @@ dark: TQObject
  • det: TQWMatrix
  • detach: TQBitArray TQGLColormap TQIconSet TQImage TQMap TQMemArray TQPicture TQPixmap
  • device: - TQDataStream TQGLContext TQPainter TQTabletEvent TQTextStream
  • deviceHeight: + TQDataStream TQGLContext TQPainter TQTabletEvent TQTextStream
  • deviceHeight: TQScreen
  • deviceIsPixmap: TQGLContext
  • deviceWidth: TQScreen
  • dialMoved: @@ -759,7 +759,7 @@ dark: TQLineEdit
  • doAutoScroll: TQIconView TQListView
  • doDefaultAction: TQAccessibleInterface
  • doKeyboardAction: - TQTextEdit
  • doLayout: + TQTextEdit
  • doLayout: TQListBox
  • docName: TQPrinter
  • dock: TQDockWindow
  • dockWindowList: @@ -769,14 +769,14 @@ dark: TQMainWindow
  • doctype: TQDomDocument
  • documentElement: TQDomDocument
  • documentTitle: - TQTextEdit
  • done: + TQTextEdit
  • done: TQDialog TQFtp TQHttp
  • doneCurrent: TQGLContext TQGLWidget
  • dotsPerMeterX: TQImage
  • dotsPerMeterY: TQImage
  • doubleBuffer: TQGLFormat TQGLWidget
  • doubleClickInterval: TQApplication
  • doubleClicked: - TQIconView TQListBox TQListView TQTable TQTextEdit
  • downRect: + TQIconView TQListBox TQListView TQTable TQTextEdit
  • downRect: TQSpinBox
  • drag: TQDragObject
  • dragAutoScroll: TQScrollView
  • dragCopy: @@ -883,7 +883,7 @@ echoMode: TQPtrQueue
  • ensureCellVisible: TQGridView TQTable
  • ensureCurrentVisible: TQListBox
  • ensureCursorVisible: - TQTextEdit
  • ensureItemVisible: + TQTextEdit
  • ensureItemVisible: TQIconView TQListView
  • ensureVisible: TQScrollView
  • enterAllocContext: TQColor
  • enterEvent: @@ -935,7 +935,7 @@ echoMode: falseText: TQDataTable
  • families: TQFontDatabase
  • family: - TQFont TQFontInfo TQTextEdit
  • fatalError: + TQFont TQFontInfo TQTextEdit
  • fatalError: TQXmlErrorHandler
  • feature: TQXmlReader
  • featureList: TQAxFactory
  • fetch: @@ -954,11 +954,11 @@ falseText: TQDir TQFileInfo TQMimeSourceFactory
  • fileSelected: TQFileDialog
  • filesSelected: TQFileDialog
  • fill: - TQBitArray TQCString TQImage TQMemArray TQPixmap TQPtrVector TQString TQTextStream
  • fillRect: + TQBitArray TQCString TQImage TQMemArray TQPixmap TQPtrVector TQString TQTextStream
  • fillRect: TQPainter
  • filter: TQDataBrowser TQDataTable TQDir TQSqlCursor TQWSInputMethod
  • filterSelected: TQFileDialog
  • find: - TQAsciiCache TQAsciiDict TQButtonGroup TQCString TQCache TQDataTable TQDict TQGLColormap TQIntCache TQIntDict TQMap TQMemArray TQPixmapCache TQPtrDict TQPtrList TQPtrVector TQSqlRecordInfo TQString TQTextEdit TQValueList TQWidget
  • findFirstVisibleItem: + TQAsciiCache TQAsciiDict TQButtonGroup TQCString TQCache TQDataTable TQDict TQGLColormap TQIntCache TQIntDict TQMap TQMemArray TQPixmapCache TQPtrDict TQPtrList TQPtrVector TQSqlRecordInfo TQString TQTextEdit TQValueList TQWidget
  • findFirstVisibleItem: TQIconView
  • findIndex: TQValueList
  • findItem: TQIconView TQListBox TQListView TQMenuData
  • findKey: @@ -983,7 +983,7 @@ falseText: TQDockWindow
  • fixedPitch: TQFont TQFontInfo
  • fixup: TQValidator
  • flags: - TQIODevice TQTextStream
  • flavor: + TQIODevice TQTextStream
  • flavor: TQMacMime
  • flavorFor: TQMacMime
  • flavorToMime: TQMacMime
  • flush: @@ -991,7 +991,7 @@ falseText: TQApplication
  • focusData: TQWidget
  • focusInEvent: TQWidget
  • focusNextPrevChild: - TQTextEdit TQWidget
  • focusOutEvent: + TQTextEdit TQWidget
  • focusOutEvent: TQWidget
  • focusPolicy: TQWidget
  • focusProxy: TQWidget
  • focusRectPolicy: @@ -1015,8 +1015,8 @@ falseText: TQDropEvent TQGLContext TQGLWidget TQImageDecoder TQImageIO TQMimeSource
  • formatName: TQImageDecoder TQImageFormatType
  • formatValue: TQSqlDriver
  • forward: - TQTextBrowser
  • forwardAvailable: - TQTextBrowser
  • frame: + TQTextBrowser
  • forwardAvailable: + TQTextBrowser
  • frame: TQCanvasSprite TQLineEdit
  • frameBuffer: TQDirectPainter
  • frameChanged: TQFrame
  • frameCount: @@ -1044,7 +1044,7 @@ falseText: TQDate TQDateTime TQFont TQTime
  • fromStringList: TQSqlIndex
  • fromUcs2: TQString
  • fromUnicode: - TQHebrewCodec TQTextCodec TQTextEncoder
  • fromUtf8: + TQHebrewCodec TQTextCodec TQTextEncoder
  • fromUtf8: TQString
  • front: TQValueList TQValueVector
  • fullPage: TQPrinter
  • fullSpan: @@ -1057,7 +1057,7 @@ gamma: TQLayoutItem TQWidget
  • get: TQFontManager TQFtp TQHttp TQUrlOperator
  • getColor: TQColorDialog
  • getCursorPosition: - TQTextEdit
  • getDouble: + TQTextEdit
  • getDouble: TQInputDialog
  • getExistingDirectory: TQFileDialog
  • getFirst: TQPtrList
  • getFont: @@ -1081,7 +1081,7 @@ gamma: TQColor
  • getRgba: TQColorDialog
  • getSaveFileName: TQFileDialog
  • getSelection: - TQTextEdit
  • getText: + TQTextEdit
  • getText: TQInputDialog
  • getURL: TQNPInstance
  • getURLNotify: TQNPInstance
  • getValidRect: @@ -1158,7 +1158,7 @@ hScrollBarMode: TQXmlReader
  • hasRef: TQUrl
  • hasScaledContents: TQLabel
  • hasSelectedText: - TQLineEdit TQTextEdit
  • hasStaticBackground: + TQLineEdit TQTextEdit
  • hasStaticBackground: TQScrollView
  • hasStockEvents: TQAxFactory
  • hasUser: TQUrl
  • hasViewXForm: @@ -1170,14 +1170,14 @@ hScrollBarMode: TQStyleOption
  • headerWidth: TQHeader
  • height: TQCanvas TQCanvasEllipse TQCanvasRectangle TQCanvasSprite TQDirectPainter TQFontMetrics TQIconViewItem TQImage TQListBoxItem TQListBoxPixmap TQListBoxText TQListViewItem TQPaintDeviceMetrics TQPixmap TQRect TQScreen TQSimpleRichText TQSize TQWidget
  • heightForWidth: - TQBoxLayout TQGridLayout TQLayoutItem TQMenuBar TQTextEdit TQWidget
  • heightMM: + TQBoxLayout TQGridLayout TQLayoutItem TQMenuBar TQTextEdit TQWidget
  • heightMM: TQPaintDeviceMetrics
  • help: TQWizard
  • helpButton: TQWizard
  • helpButtonPressed: TQTabDialog
  • helpClicked: TQWizard
  • heuristicContentMatch: - TQTextCodec
  • heuristicNameMatch: - TQTextCodec
  • hide: + TQTextCodec
  • heuristicNameMatch: + TQTextCodec
  • hide: TQCanvasItem TQMenuBar TQToolTip TQWSWindow TQWidget
  • hideColumn: TQListView TQTable
  • hideEvent: TQScrollBar TQWidget
  • hideOrShow: @@ -1186,10 +1186,10 @@ hScrollBarMode: TQObject
  • highlight: TQColorGroup
  • highlightParagraph: TQSyntaxHighlighter
  • highlighted: - TQComboBox TQListBox TQMenuBar TQPopupMenu TQTextBrowser
  • highlightedText: + TQComboBox TQListBox TQMenuBar TQPopupMenu TQTextBrowser
  • highlightedText: TQColorGroup
  • hitButton: TQButton
  • home: - TQDir TQFocusData TQLineEdit TQMultiLineEdit TQTextBrowser
  • homeDirPath: + TQDir TQFocusData TQLineEdit TQMultiLineEdit TQTextBrowser
  • homeDirPath: TQDir
  • horData: TQSizePolicy
  • horStretch: TQSizePolicy
  • horizontalAlignment: @@ -1253,10 +1253,10 @@ icon: TQImage
  • inputFormats: TQImage TQImageDecoder TQImageIO
  • inputMask: TQLineEdit
  • insert: - TQAsciiCache TQAsciiDict TQButtonGroup TQCString TQCache TQDataBrowser TQDict TQIntCache TQIntDict TQLineEdit TQMap TQPixmapCache TQPtrDict TQPtrList TQPtrVector TQSqlCursor TQSqlForm TQSqlPropertyMap TQSqlRecord TQString TQTextEdit TQTranslator TQValueList TQValueVector
  • insertAfter: + TQAsciiCache TQAsciiDict TQButtonGroup TQCString TQCache TQDataBrowser TQDict TQIntCache TQIntDict TQLineEdit TQMap TQPixmapCache TQPtrDict TQPtrList TQPtrVector TQSqlCursor TQSqlForm TQSqlPropertyMap TQSqlRecord TQString TQTextEdit TQTranslator TQValueList TQValueVector
  • insertAfter: TQDomNode
  • insertAndMark: TQMultiLineEdit
  • insertAt: - TQMultiLineEdit TQTextEdit
  • insertBefore: + TQMultiLineEdit TQTextEdit
  • insertBefore: TQDomNode
  • insertChild: TQObject
  • insertColumns: TQTable
  • insertCurrent: @@ -1267,7 +1267,7 @@ icon: TQBoxLayout
  • insertLine: TQMultiLineEdit
  • insertPage: TQWizard
  • insertParagraph: - TQTextEdit
  • insertRows: + TQTextEdit
  • insertRows: TQTable
  • insertSearchPath: TQSettings
  • insertSeparator: TQMenuBar TQMenuData TQPopupMenu
  • insertSpacing: @@ -1404,7 +1404,7 @@ icon: TQWidget
  • isMinimized: TQWidget
  • isModal: TQDialog TQWidget
  • isModified: - TQLineEdit TQTextEdit
  • isMovingEnabled: + TQLineEdit TQTextEdit
  • isMovingEnabled: TQDockWindow TQHeader
  • isNotation: TQDomNode TQDomNotation
  • isNull: TQAxBase TQCString TQChar TQDate TQDateTime TQDomImplementation TQDomNode TQGuardedPtr TQHostAddress TQIconSet TQImage TQMemArray TQMovie TQPicture TQPixmap TQPoint TQPtrVector TQRect TQRegion TQSize TQSqlCursor TQSqlField TQSqlQuery TQSqlRecord TQSqlResult TQString TQTime TQUuid TQVariant
  • isNumber: @@ -1413,7 +1413,7 @@ icon: TQAssistantClient TQIODevice TQListView TQListViewItem TQSqlDatabase TQSqlDriver
  • isOpenError: TQSqlDatabase TQSqlDriver
  • isOptionEnabled: TQPrinter
  • isOverwriteMode: - TQTextEdit
  • isPartiallyObscured: + TQTextEdit
  • isPartiallyObscured: TQWSWindow
  • isPhase2: TQSessionManager
  • isPopup: TQWidget
  • isPrint: @@ -1424,10 +1424,10 @@ icon: TQPixmap
  • isRadioButtonExclusive: TQButtonGroup
  • isRaw: TQIODevice
  • isReadOnly: - TQDataBrowser TQLineEdit TQSqlCursor TQSqlField TQTable TQTextEdit
  • isReadWrite: + TQDataBrowser TQLineEdit TQSqlCursor TQSqlField TQTable TQTextEdit
  • isReadWrite: TQIODevice
  • isReadable: TQDir TQFileInfo TQIODevice TQUrlInfo
  • isRedoAvailable: - TQLineEdit TQTextEdit
  • isRegistered: + TQLineEdit TQTextEdit
  • isRegistered: TQCopChannel
  • isRelative: TQDir TQFileInfo
  • isRelativePath: TQDir
  • isRelativeUrl: @@ -1474,8 +1474,8 @@ icon: TQSqlFieldInfo
  • isTrimmed: TQSqlCursor
  • isTristate: TQCheckBox TQCheckListItem
  • isUndoAvailable: - TQLineEdit TQTextEdit
  • isUndoRedoEnabled: - TQTextEdit
  • isUpdatesEnabled: + TQLineEdit TQTextEdit
  • isUndoRedoEnabled: + TQTextEdit
  • isUpdatesEnabled: TQWidget
  • isValid: TQAccessibleInterface TQAxScriptEngine TQCanvasPixmapArray TQCanvasPolygonalItem TQColor TQDate TQDateTime TQGLContext TQGLWidget TQHttpHeader TQRect TQRegExp TQSize TQSocketDevice TQSqlQuery TQSqlResult TQTime TQUrl TQUrlInfo TQVariant
  • isVerticalSliderPressed: TQScrollView
  • isVerticallyStretchable: @@ -1486,7 +1486,7 @@ icon: TQObject
  • isWorking: TQDns
  • isWritable: TQFileInfo TQIODevice TQUrlInfo
  • italic: - TQFont TQFontDatabase TQFontInfo TQTextEdit
  • item: + TQFont TQFontDatabase TQFontInfo TQTextEdit
  • item: TQDomNamedNodeMap TQDomNodeList TQListBox TQStyleSheet TQTable TQToolBox
  • itemAbove: TQListViewItem
  • itemAt: TQListBox TQListView
  • itemBelow: @@ -1516,7 +1516,7 @@ join: key: TQAccel TQFont TQIconViewItem TQKeyEvent TQListViewItem TQMapConstIterator TQMapIterator TQTableItem
  • keyMap: TQWSServer
  • keyPressEvent: - TQLineEdit TQTextBrowser TQTextEdit TQWidget
  • keyReleaseEvent: + TQLineEdit TQTextBrowser TQTextEdit TQWidget
  • keyReleaseEvent: TQWidget
  • keyToValue: TQMetaProperty
  • keyboardFocusTab: TQTabBar
  • keyboardGrabber: @@ -1566,7 +1566,7 @@ label: TQCanvasSprite
  • leftJustify: TQCString TQString
  • leftMargin: TQScrollView
  • length: - TQCString TQDomCharacterData TQDomNamedNodeMap TQDomNodeList TQSqlFieldInfo TQString TQTextEdit TQXmlAttributes
  • lessThan: + TQCString TQDomCharacterData TQDomNamedNodeMap TQDomNodeList TQSqlFieldInfo TQString TQTextEdit TQXmlAttributes
  • lessThan: TQUrlInfo
  • lexicalHandler: TQXmlReader
  • library: TQLibrary
  • libraryPaths: @@ -1576,18 +1576,18 @@ label: TQComboBox
  • lineLength: TQMultiLineEdit
  • lineNumber: TQXmlLocator TQXmlParseException
  • lineOfChar: - TQTextEdit
  • lineSpacing: + TQTextEdit
  • lineSpacing: TQFontMetrics
  • lineStep: TQDial TQDirectPainter TQRangeControl TQScrollBar TQSlider TQSpinBox
  • lineUp: TQDockArea
  • lineUpDockWindows: TQMainWindow
  • lineWidth: TQFontMetrics TQFrame TQStyleOption
  • lines: - TQTextEdit
  • linesOfParagraph: - TQTextEdit
  • linestep: + TQTextEdit
  • linesOfParagraph: + TQTextEdit
  • linestep: TQScreen
  • link: TQColorGroup
  • linkClicked: - TQTextBrowser
  • linkUnderline: - TQTextEdit
  • linkVisited: + TQTextBrowser
  • linkUnderline: + TQTextEdit
  • linkVisited: TQColorGroup
  • list: TQFtp
  • listBox: TQComboBox TQListBoxItem
  • listChildren: @@ -1598,15 +1598,15 @@ label: TQStyleOption
  • listen: TQSocketDevice
  • load: TQAxScript TQAxScriptManager TQImage TQLibrary TQPicture TQPixmap TQTranslator
  • loadCharmap: - TQTextCodec
  • loadCharmapFile: - TQTextCodec
  • loadFromData: + TQTextCodec
  • loadCharmapFile: + TQTextCodec
  • loadFromData: TQImage TQPixmap
  • loadImages: TQWidgetFactory
  • local8Bit: TQString
  • localData: TQThreadStorage
  • localFileToUri: TQUriDrag
  • localName: TQDomNode TQXmlAttributes
  • locale: - TQTextCodec
  • localeAwareCompare: + TQTextCodec
  • localeAwareCompare: TQString
  • lock: TQApplication TQMutex
  • locked: TQApplication TQMutex
  • logicalDpiX: @@ -1636,9 +1636,9 @@ m11: TQMimeSourceFactory
  • makeArc: TQPointArray
  • makeCurrent: TQGLContext TQGLWidget
  • makeDecoder: - TQTextCodec
  • makeEllipse: + TQTextCodec
  • makeEllipse: TQPointArray
  • makeEncoder: - TQTextCodec
  • makeOverlayCurrent: + TQTextCodec
  • makeOverlayCurrent: TQGLWidget
  • makeRowLayout: TQIconView
  • manager: TQWSServer
  • manhattanLength: @@ -1675,7 +1675,7 @@ m11: TQIconView
  • maxItemWidth: TQIconView TQListBox
  • maxLength: TQLineEdit
  • maxLogLines: - TQTextEdit
  • maxPage: + TQTextEdit
  • maxPage: TQPrinter
  • maxValue: TQDateEdit TQDial TQRangeControl TQScrollBar TQSlider TQSpinBox TQTimeEdit
  • maxWidth: TQFontMetrics
  • maximize: @@ -1704,16 +1704,16 @@ m11: TQAxFactory TQObject
  • method: TQHttpRequestHeader
  • metric: TQPicture TQPixmap TQWidget
  • mibEnum: - TQEucJpCodec TQTextCodec
  • mibEnums: - TQTextCodecPlugin
  • microFocusHint: + TQEucJpCodec TQTextCodec
  • mibEnums: + TQTextCodecPlugin
  • microFocusHint: TQWidget
  • mid: TQCString TQColorGroup TQString
  • midLineWidth: TQFrame TQStyleOption
  • midlight: TQColorGroup
  • mightBeRichText: TQStyleSheet
  • mimeFor: TQMacMime TQWindowsMime
  • mimeName: - TQEucJpCodec TQEucKrCodec TQHebrewCodec TQJisCodec TQSjisCodec TQTextCodec
  • mimeSourceFactory: - TQTextEdit
  • minLeftBearing: + TQEucJpCodec TQEucKrCodec TQHebrewCodec TQJisCodec TQSjisCodec TQTextCodec
  • mimeSourceFactory: + TQTextEdit
  • minLeftBearing: TQFontMetrics
  • minPage: TQPrinter
  • minRightBearing: TQFontMetrics
  • minValue: @@ -1733,7 +1733,7 @@ m11: TQPlatinumStyle
  • mkdir: TQDir TQFtp TQUrlOperator
  • mode: TQFileDialog TQIODevice TQLCDNumber TQNPInstance TQSqlCursor
  • modificationChanged: - TQTextEdit
  • month: + TQTextEdit
  • month: TQDate
  • motifWidget: TQMotifWidget
  • mouseButtonClicked: TQIconView TQListBox TQListView
  • mouseButtonPressed: @@ -1752,7 +1752,7 @@ m11: TQCanvasItem TQIconViewItem TQRect
  • moveCenter: TQRect
  • moveChild: TQScrollView
  • moveCursor: - TQTextEdit
  • moveDockWindow: + TQTextEdit
  • moveDockWindow: TQDockArea TQMainWindow
  • moveEvent: TQWidget
  • moveFocus: TQButtonGroup
  • moveItem: @@ -1774,12 +1774,12 @@ m11: TQListViewItem
  • mutex: TQMutexLocker
  • name: - TQColor TQDomAttr TQDomDocumentType TQFile TQLocale TQMetaProperty TQObject TQSqlCursor TQSqlField TQSqlFieldInfo TQSqlIndex TQStyleSheetItem TQTextCodec TQUrlInfo TQWSWindow
  • nameFilter: + TQColor TQDomAttr TQDomDocumentType TQFile TQLocale TQMetaProperty TQObject TQSqlCursor TQSqlField TQSqlFieldInfo TQSqlIndex TQStyleSheetItem TQTextCodec TQUrlInfo TQWSWindow
  • nameFilter: TQDir TQUrlOperator
  • nameToType: TQVariant
  • namedItem: TQDomNamedNodeMap TQDomNode
  • namedItemNS: TQDomNamedNodeMap
  • names: - TQTextCodecPlugin
  • namespaceURI: + TQTextCodecPlugin
  • namespaceURI: TQDomNode
  • navigate: TQAccessibleInterface
  • newChannel: TQWSServer
  • newChild: @@ -1893,13 +1893,13 @@ object: TQPoint TQSize
  • operator/=: TQPoint TQSize
  • operator<: TQCString TQChar TQDate TQDateTime TQString TQTime TQTranslatorMessage TQUuid
  • operator<<: - TQBitArray TQBrush TQCString TQColor TQColorGroup TQCursor TQDataStream TQDate TQDateTime TQDockArea TQDomNode TQFont TQImage TQKeySequence TQMainWindow TQMap TQMemArray TQPalette TQPen TQPicture TQPixmap TQPoint TQPointArray TQRect TQRegion TQSize TQSplitter TQString TQTextStream TQTime TQUuid TQValueList TQWMatrix
  • operator<=: + TQBitArray TQBrush TQCString TQColor TQColorGroup TQCursor TQDataStream TQDate TQDateTime TQDockArea TQDomNode TQFont TQImage TQKeySequence TQMainWindow TQMap TQMemArray TQPalette TQPen TQPicture TQPixmap TQPoint TQPointArray TQRect TQRegion TQSize TQSplitter TQString TQTextStream TQTime TQUuid TQValueList TQWMatrix
  • operator<=: TQCString TQChar TQDate TQDateTime TQString TQTime TQTranslatorMessage
  • operator=: TQAsciiCacheIterator TQAsciiDict TQBitArray TQBitVal TQBitmap TQBrush TQCString TQCacheIterator TQColor TQColorGroup TQCursor TQDeepCopy TQDict TQDir TQDomAttr TQDomCDATASection TQDomCharacterData TQDomComment TQDomDocument TQDomDocumentFragment TQDomDocumentType TQDomElement TQDomEntity TQDomEntityReference TQDomImplementation TQDomNamedNodeMap TQDomNode TQDomNodeList TQDomNotation TQDomProcessingInstruction TQDomText TQFileInfo TQFont TQFontInfo TQFontMetrics TQGLColormap TQGuardedPtr TQHostAddress TQHttpHeader TQIconSet TQImage TQIntCacheIterator TQIntDict fnord TQKeySequence TQLayoutIterator TQListViewItemIterator TQLocale TQMap TQMemArray TQMovie TQObjectList TQObjectListIterator TQPair TQPalette TQPen TQPicture TQPixmap TQPointArray TQPtrDict TQPtrList TQPtrListIterator TQPtrQueue TQPtrStack TQPtrVector TQRegExp TQRegion TQSqlCursor TQSqlError TQSqlField TQSqlFieldInfo TQSqlIndex TQSqlQuery TQSqlRecord TQStrList TQString TQStyleSheetItem TQTranslatorMessage TQUrl TQUrlInfo TQUuid TQValueList TQValueVector TQVariant
  • operator==: TQBrush TQCString TQChar TQColor TQColorGroup TQDate TQDateTime TQDir TQDomImplementation TQDomNamedNodeMap TQDomNode TQDomNodeList TQFont TQGuardedPtr TQHostAddress TQImage TQKeySequence TQMapConstIterator TQMapIterator TQMemArray TQPalette TQPen TQPoint TQPtrList TQPtrVector TQRect TQRegExp TQRegion TQSize TQSizePolicy TQSqlField TQSqlFieldInfo TQString TQTableSelection TQTime TQTranslatorMessage TQUrl TQUrlInfo TQUuid TQValueList TQValueListConstIterator TQValueListIterator TQValueVector TQVariant TQWMatrix
  • operator>: TQCString TQChar TQDate TQDateTime TQString TQTime TQTranslatorMessage TQUuid
  • operator>=: TQCString TQChar TQDate TQDateTime TQString TQTime TQTranslatorMessage
  • operator>>: - TQBitArray TQBrush TQCString TQColor TQCursor TQDataStream TQDate TQDateTime TQDockArea TQFont TQImage TQKeySequence TQMainWindow TQMap TQMemArray TQPalette TQPen TQPicture TQPixmap TQPoint TQPointArray TQRect TQRegion TQSize TQSplitter TQString TQTextStream TQTime TQUuid TQValueList TQWMatrix
  • operator[]: + TQBitArray TQBrush TQCString TQColor TQCursor TQDataStream TQDate TQDateTime TQDockArea TQFont TQImage TQKeySequence TQMainWindow TQMap TQMemArray TQPalette TQPen TQPicture TQPixmap TQPoint TQPointArray TQRect TQRegion TQSize TQSplitter TQString TQTextStream TQTime TQUuid TQValueList TQWMatrix
  • operator[]: TQAsciiCache TQAsciiDict TQBitArray TQCache TQDict TQDir TQIntCache TQIntDict TQKeySequence TQMap TQMemArray TQPtrDict TQPtrVector TQString TQValueList TQValueVector
  • operator^: TQBitArray TQRegion
  • operator^=: TQBitArray TQRegion
  • operator|: @@ -1959,13 +1959,13 @@ packImage: TQWidget
  • paletteChange: TQWidget
  • paletteForegroundColor: TQWidget
  • paper: - TQTextEdit
  • paperSource: + TQTextEdit
  • paperSource: TQPrinter
  • paragraphAt: - TQTextEdit
  • paragraphBackgroundColor: - TQTextEdit
  • paragraphLength: - TQTextEdit
  • paragraphRect: - TQTextEdit
  • paragraphs: - TQTextEdit
  • parameters: + TQTextEdit
  • paragraphBackgroundColor: + TQTextEdit
  • paragraphLength: + TQTextEdit
  • paragraphRect: + TQTextEdit
  • paragraphs: + TQTextEdit
  • parameters: TQImageIO
  • parent: TQListViewItem TQObject
  • parentNode: TQDomNode
  • parentWidget: @@ -1973,8 +1973,8 @@ packImage: TQUrl TQXmlReader TQXmlSimpleReader
  • parseContinue: TQXmlSimpleReader
  • password: TQSqlDatabase TQUrl
  • paste: - TQLineEdit TQTextEdit
  • pasteSubType: - TQTextEdit
  • path: + TQLineEdit TQTextEdit
  • pasteSubType: + TQTextEdit
  • path: TQDir TQHttpRequestHeader TQUrl
  • pattern: TQRegExp
  • pause: TQMovie
  • paused: @@ -2001,11 +2001,11 @@ packImage: TQMainWindow
  • place: TQDockWindow
  • placeChanged: TQDockWindow
  • placeCursor: - TQTextEdit
  • plane: + TQTextEdit
  • plane: TQGLFormat
  • play: TQPicture TQSound
  • point: TQPointArray
  • pointSize: - TQFont TQFontInfo TQTextEdit
  • pointSizeFloat: + TQFont TQFontInfo TQTextEdit
  • pointSizeFloat: TQFont
  • pointSizes: TQFontDatabase
  • points: TQCanvasPolygon
  • polish: @@ -2024,7 +2024,7 @@ packImage: TQHttp
  • postEvent: TQApplication
  • postURL: TQNPInstance
  • precision: - TQSqlFieldInfo TQTextStream
  • prefix: + TQSqlFieldInfo TQTextStream
  • prefix: TQDomNode TQSpinBox TQXmlNamespaceSupport
  • prefixes: TQXmlNamespaceSupport
  • prepare: TQSqlQuery
  • prepend: @@ -2151,7 +2151,7 @@ rBottom: TQFtp
  • rawMode: TQFont TQFontInfo
  • rawName: TQFont
  • read: - TQAsciiDict TQDict TQImageIO TQIntDict TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQTextStream
  • readAll: + TQAsciiDict TQDict TQImageIO TQIntDict TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQTextStream
  • readAll: TQFile TQFtp TQHttp TQIODevice
  • readBlock: TQFtp TQHttp TQIODevice TQSocket TQSocketDevice
  • readBoolEntry: TQSettings
  • readBufferSize: @@ -2162,14 +2162,14 @@ rBottom: TQSettings
  • readField: TQSqlForm
  • readFields: TQDataBrowser TQDataView TQSqlForm
  • readLine: - TQFile TQIODevice TQSocket TQTextStream
  • readLineStderr: + TQFile TQIODevice TQSocket TQTextStream
  • readLineStderr: TQProcess
  • readLineStdout: TQProcess
  • readLink: TQFileInfo
  • readListEntry: TQSettings
  • readNumEntry: TQSettings
  • readPixmaps: TQCanvasPixmapArray
  • readRawBytes: - TQDataStream TQTextStream
  • readStderr: + TQDataStream TQTextStream
  • readStderr: TQProcess
  • readStdout: TQProcess
  • ready: TQAsyncIO
  • readyRead: @@ -2190,8 +2190,8 @@ rBottom: TQRegion
  • red: TQColor
  • redirect: TQPainter
  • redo: - TQLineEdit TQTextEdit
  • redoAvailable: - TQTextEdit
  • ref: + TQLineEdit TQTextEdit
  • redoAvailable: + TQTextEdit
  • ref: TQString TQUrl
  • reformat: TQStatusBar
  • refresh: TQDataBrowser TQDataTable TQDataView TQDir TQFileInfo TQSplitter TQWSServer
  • regExp: @@ -2210,7 +2210,7 @@ rBottom: TQWidget
  • releaseMouse: TQWidget
  • released: TQButton TQButtonGroup TQCheckBox TQHeader TQPushButton TQRadioButton
  • reload: - TQTextBrowser
  • remove: + TQTextBrowser
  • remove: TQAsciiCache TQAsciiDict TQButtonGroup TQCString TQCache TQDict TQDir TQFile TQFtp TQIntCache TQIntDict TQLayout TQMap TQObjectCleanupHandler TQPixmapCache TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQSqlCursor TQSqlForm TQSqlPropertyMap TQSqlRecord TQString TQToolTip TQTranslator TQUrlOperator TQValueList TQWhatsThis
  • removeAttribute: TQDomElement
  • removeAttributeNS: TQDomElement
  • removeAttributeNode: @@ -2236,15 +2236,15 @@ rBottom: TQDomNamedNodeMap
  • removeNode: TQPtrList
  • removePage: TQTabDialog TQTabWidget TQWizard
  • removeParagraph: - TQTextEdit
  • removePostedEvents: + TQTextEdit
  • removePostedEvents: TQApplication
  • removeRef: TQPtrList
  • removeRenameBox: TQIconViewItem
  • removeRow: TQTable
  • removeRows: TQTable
  • removeSearchPath: TQSettings
  • removeSelectedText: - TQTextEdit
  • removeSelection: - TQTable TQTextEdit
  • removeSubstitution: + TQTextEdit
  • removeSelection: + TQTable TQTextEdit
  • removeSubstitution: TQFont
  • removeTab: TQTabBar
  • removeTabToolTip: TQTabWidget
  • removeTip: @@ -2261,7 +2261,7 @@ rBottom: TQGLWidget
  • repaint: TQIconViewItem TQListViewItem TQSplashScreen TQWidget
  • repaintCell: TQGridView
  • repaintChanged: - TQTextEdit
  • repaintContents: + TQTextEdit
  • repaintContents: TQScrollView
  • repaintItem: TQIconView TQListView
  • repaintScreen: TQDial
  • repaintSelectedItems: @@ -2282,7 +2282,7 @@ rBottom: TQGLContext
  • rereadDir: TQFileDialog
  • reserve: TQString TQValueVector
  • reset: - TQDataTable TQGLContext TQIODevice TQIconSet TQImage TQMetaProperty TQProgressBar TQProgressDialog TQSqlResult TQTextStream TQUrl TQWMatrix TQWSInputMethod TQXmlInputSource TQXmlNamespaceSupport
  • resetGroup: + TQDataTable TQGLContext TQIODevice TQIconSet TQImage TQMetaProperty TQProgressBar TQProgressDialog TQSqlResult TQTextStream TQUrl TQWMatrix TQWSInputMethod TQXmlInputSource TQXmlNamespaceSupport
  • resetGroup: TQSettings
  • resetInputContext: TQWidget
  • resetRawData: TQMemArray
  • resetReason: @@ -2312,7 +2312,7 @@ rBottom: TQDialog TQSqlQuery
  • resultsReady: TQDns
  • retune: TQCanvas
  • returnPressed: - TQIconView TQLineEdit TQListBox TQListView TQTextEdit
  • reverseLayout: + TQIconView TQLineEdit TQListBox TQListView TQTextEdit
  • reverseLayout: TQApplication
  • rewind: TQDataSource TQIODeviceSource
  • rewindable: TQDataSource TQIODeviceSource
  • rgb: @@ -2381,8 +2381,8 @@ sRect: TQWidget
  • scrollBarsEnabled: TQWorkspace
  • scrollBy: TQScrollView
  • scrollToAnchor: - TQTextEdit
  • scrollToBottom: - TQTextEdit
  • search: + TQTextEdit
  • scrollToBottom: + TQTextEdit
  • search: TQRegExp
  • searchRev: TQRegExp
  • second: TQTime
  • secsTo: @@ -2398,7 +2398,7 @@ sRect: TQNPStream
  • segmentStyle: TQLCDNumber
  • select: TQSqlCursor
  • selectAll: - TQFileDialog TQIconView TQLineEdit TQListBox TQListView TQSpinBox TQTextEdit
  • selectCells: + TQFileDialog TQIconView TQLineEdit TQListBox TQListView TQSpinBox TQTextEdit
  • selectCells: TQTable
  • selectColumn: TQTable
  • selectRow: TQTable
  • selectTab: @@ -2409,9 +2409,9 @@ sRect: TQFileDialog
  • selectedId: TQButtonGroup
  • selectedItem: TQListBox TQListView
  • selectedText: - TQLineEdit TQTextEdit
  • selection: + TQLineEdit TQTextEdit
  • selection: TQAccessibleInterface TQTable
  • selectionChanged: - TQClipboard TQIconView TQLineEdit TQListBox TQListView TQTable TQTextEdit
  • selectionLength: + TQClipboard TQIconView TQLineEdit TQListBox TQListView TQTable TQTextEdit
  • selectionLength: TQIMEvent
  • selectionMode: TQIconView TQListBox TQListView TQTable
  • selectionStart: TQLineEdit
  • selfMask: @@ -2444,7 +2444,7 @@ sRect: TQHostAddress
  • setAddressReusable: TQSocketDevice
  • setAdvancePeriod: TQCanvas
  • setAlignment: - TQGroupBox TQLabel TQLayoutItem TQLineEdit TQMultiLineEdit TQStyleSheetItem TQTextEdit
  • setAllChanged: + TQGroupBox TQLabel TQLayoutItem TQLineEdit TQMultiLineEdit TQStyleSheetItem TQTextEdit
  • setAllChanged: TQCanvas
  • setAllColumnsShowFocus: TQListView
  • setAlpha: TQGLFormat
  • setAlphaBuffer: @@ -2473,7 +2473,7 @@ sRect: TQPushButton
  • setAutoDelete: TQAsciiDict TQCache TQDataTable TQDict TQIconFactory TQIntDict TQNetworkProtocol TQPtrCollection TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector
  • setAutoEdit: TQDataBrowser TQDataTable
  • setAutoFormatting: - TQTextEdit
  • setAutoMask: + TQTextEdit
  • setAutoMask: TQWidget
  • setAutoRaise: TQToolButton
  • setAutoRepeat: TQButton TQCheckBox TQPushButton TQRadioButton
  • setAutoReset: @@ -2489,7 +2489,7 @@ sRect: TQLCDNumber
  • setBit: TQBitArray
  • setBlocking: TQSocketDevice
  • setBold: - TQFont TQTextEdit
  • setBottom: + TQFont TQTextEdit
  • setBottom: TQDoubleValidator TQIntValidator TQRect
  • setBottomItem: TQListBox
  • setBottomLeft: TQRect
  • setBottomRight: @@ -2529,15 +2529,15 @@ sRect: TQPainter
  • setClipping: TQPainter
  • setCloseMode: TQDockWindow
  • setCodec: - TQTextStream
  • setCodecForCStrings: - TQTextCodec
  • setCodecForLocale: - TQTextCodec
  • setCodecForTr: - TQTextCodec
  • setCol: + TQTextStream
  • setCodecForCStrings: + TQTextCodec
  • setCodecForLocale: + TQTextCodec
  • setCodecForTr: + TQTextCodec
  • setCol: TQTableItem
  • setColSpacing: TQGridLayout
  • setColStretch: TQGridLayout
  • setCollapsible: TQSplitter
  • setColor: - TQBrush TQCanvasText TQColorDrag TQColorGroup TQImage TQPalette TQPen TQStyleSheetItem TQTextEdit
  • setColorMode: + TQBrush TQCanvasText TQColorDrag TQColorGroup TQImage TQPalette TQPen TQStyleSheetItem TQTextEdit
  • setColorMode: TQPrinter
  • setColorSpec: TQApplication
  • setColormap: TQGLWidget
  • setColumn: @@ -2576,7 +2576,7 @@ sRect: TQPrinter
  • setCurrent: TQDir
  • setCurrentCell: TQTable
  • setCurrentFont: - TQTextEdit
  • setCurrentIndex: + TQTextEdit
  • setCurrentIndex: TQToolBox
  • setCurrentItem: TQComboBox TQComboTableItem TQIconView TQListBox TQListView TQToolBox
  • setCurrentPage: TQTabWidget
  • setCurrentTab: @@ -2585,7 +2585,7 @@ sRect: TQWidget
  • setCursorFlashTime: TQApplication
  • setCursorName: TQSqlIndex
  • setCursorPosition: - TQLineEdit TQMultiLineEdit TQTextEdit
  • setCursorVisible: + TQLineEdit TQMultiLineEdit TQTextEdit
  • setCursorVisible: TQWSServer
  • setCustomColor: TQColorDialog
  • setCustomHighlighting: TQListBoxItem
  • setDTDHandler: @@ -2619,7 +2619,7 @@ sRect: TQImageIO
  • setDesktopBackground: TQWSServer
  • setDesktopSettingsAware: TQApplication
  • setDevice: - TQDataStream TQTextStream
  • setDir: + TQDataStream TQTextStream
  • setDir: TQFileDialog TQUrlInfo
  • setDirectRendering: TQGLFormat
  • setDirection: TQBoxLayout
  • setDirty: @@ -2653,7 +2653,7 @@ sRect: TQAccel TQAction TQCanvasItem TQLayout TQListViewItem TQSocketNotifier TQTab TQTableItem TQToolTipGroup TQWidget
  • setEncodedData: TQStoredDrag
  • setEncodedPathAndQuery: TQUrl
  • setEncoding: - TQTextStream
  • setEncodingFunction: + TQTextStream
  • setEncodingFunction: TQFile
  • setEntityResolver: TQXmlReader
  • setEntries: TQGLColormap
  • setEntry: @@ -2670,7 +2670,7 @@ sRect: TQDialog
  • setExtensionType: TQMimeSourceFactory
  • setFalseText: TQDataTable
  • setFamily: - TQFont TQTextEdit
  • setFeature: + TQFont TQTextEdit
  • setFeature: TQXmlReader TQXmlSimpleReader
  • setFile: TQFileInfo TQUrlInfo
  • setFileName: TQImageIO TQUrl
  • setFileNames: @@ -2759,7 +2759,7 @@ sRect: TQComboBox
  • setInsideMargin: TQGroupBox
  • setInsideSpacing: TQGroupBox
  • setItalic: - TQFont TQTextEdit
  • setItem: + TQFont TQTextEdit
  • setItem: TQTable
  • setItemChecked: TQMenuData TQPopupMenu
  • setItemEnabled: TQAccel TQMenuBar TQMenuData TQPopupMenu TQToolBox
  • setItemIconSet: @@ -2791,7 +2791,7 @@ sRect: TQComboBox
  • setLineStep: TQDial TQScrollBar TQSlider TQSpinBox
  • setLineWidth: TQFrame
  • setLinkUnderline: - TQTextEdit
  • setListBox: + TQTextEdit
  • setListBox: TQComboBox
  • setListStyle: TQStyleSheetItem
  • setLocalData: TQThreadStorage
  • setLogicalFontSize: @@ -2812,7 +2812,7 @@ sRect: TQIconView
  • setMaxItemWidth: TQIconView
  • setMaxLength: TQLineEdit
  • setMaxLogLines: - TQTextEdit
  • setMaxValue: + TQTextEdit
  • setMaxValue: TQDateEdit TQDial TQRangeControl TQScrollBar TQSlider TQSpinBox TQTimeEdit
  • setMaxWindowRect: TQWSServer
  • setMaximumHeight: TQWidget
  • setMaximumSize: @@ -2823,7 +2823,7 @@ sRect: TQWSInputMethod
  • setMicroFocusHint: TQWidget
  • setMidLineWidth: TQFrame
  • setMimeSourceFactory: - TQTextEdit
  • setMinMax: + TQTextEdit
  • setMinMax: TQPrinter
  • setMinValue: TQDateEdit TQDial TQRangeControl TQScrollBar TQSlider TQSpinBox TQTimeEdit
  • setMinimal: TQRegExp
  • setMinimumDuration: @@ -2834,7 +2834,7 @@ sRect: TQTimeEdit
  • setModal: TQDialog
  • setMode: TQFileDialog TQIODevice TQLCDNumber TQScreen TQSqlCursor
  • setModified: - TQTextEdit
  • setMonth: + TQTextEdit
  • setMonth: TQDateEdit
  • setMouseTracking: TQWidget
  • setMovie: TQLabel
  • setMovingEnabled: @@ -2880,7 +2880,7 @@ sRect: TQFont
  • setOverrideCursor: TQApplication
  • setOverrideKeys: TQWSServer
  • setOverwriteMode: - TQTextEdit
  • setOwner: + TQTextEdit
  • setOwner: TQUrlInfo
  • setPageOrder: TQPrinter
  • setPageSize: TQPrinter
  • setPageStep: @@ -2889,9 +2889,9 @@ sRect: TQWidget
  • setPaletteBackgroundPixmap: TQWidget
  • setPaletteForegroundColor: TQWidget
  • setPaper: - TQTextEdit
  • setPaperSource: + TQTextEdit
  • setPaperSource: TQPrinter
  • setParagraphBackgroundColor: - TQTextEdit
  • setParameters: + TQTextEdit
  • setParameters: TQImageIO
  • setPassword: TQSqlDatabase TQUrl
  • setPath: TQDir TQSettings TQUrl
  • setPattern: @@ -2907,7 +2907,7 @@ sRect: TQIconViewItem
  • setPlane: TQGLFormat
  • setPoint: TQDropEvent TQPointArray
  • setPointSize: - TQFont TQTextEdit
  • setPointSizeFloat: + TQFont TQTextEdit
  • setPointSizeFloat: TQFont
  • setPoints: TQCanvasLine TQCanvasPolygon
  • setPopup: TQPushButton TQToolButton
  • setPopupDelay: @@ -2938,7 +2938,7 @@ sRect: TQFont
  • setRawName: TQFont
  • setReadBufferSize: TQSocket
  • setReadOnly: - TQDataBrowser TQLineEdit TQSqlField TQTable TQTextEdit
  • setReadable: + TQDataBrowser TQLineEdit TQSqlField TQTable TQTextEdit
  • setReadable: TQUrlInfo
  • setReason: TQFocusEvent
  • setReceiveBufferSize: TQSocketDevice
  • setRecord: @@ -2982,9 +2982,9 @@ sRect: TQIconViewItem TQListBoxItem TQListViewItem
  • setSelected: TQAccessibleInterface TQCanvasItem TQIconView TQIconViewItem TQListBox TQListView TQListViewItem
  • setSelectedFilter: TQFileDialog
  • setSelection: - TQFileDialog TQLineEdit TQTextEdit
  • setSelectionAnchor: + TQFileDialog TQLineEdit TQTextEdit
  • setSelectionAnchor: TQListView
  • setSelectionAttributes: - TQTextEdit
  • setSelectionMode: + TQTextEdit
  • setSelectionMode: TQIconView TQListBox TQListView TQTable
  • setSelfNesting: TQStyleSheetItem
  • setSendBufferSize: TQSocketDevice
  • setSeparator: @@ -3011,7 +3011,7 @@ sRect: TQHeader
  • setSortOrder: TQListView
  • setSorting: TQDir TQIconView TQListView TQTable
  • setSource: - TQTextBrowser
  • setSpacing: + TQTextBrowser
  • setSpacing: TQGrid TQHBox TQIconView TQLayout
  • setSpan: TQTableItem
  • setSpecialValueText: TQSpinBox
  • setSpeed: @@ -3036,28 +3036,28 @@ sRect: TQComboTableItem
  • setStyle: TQApplication TQBrush TQPen TQWidget
  • setStyleHint: TQFont
  • setStyleSheet: - TQTextEdit
  • setStyleStrategy: + TQTextEdit
  • setStyleStrategy: TQFont
  • setSubtype: - TQTextDrag
  • setSuffix: + TQTextDrag
  • setSuffix: TQSpinBox
  • setSupportsMargin: TQLayout
  • setSymLink: TQUrlInfo
  • setTabArray: TQPainter
  • setTabBar: TQTabDialog TQTabWidget
  • setTabChangesFocus: - TQTextEdit
  • setTabEnabled: + TQTextEdit
  • setTabEnabled: TQTabBar TQTabDialog TQTabWidget
  • setTabIconSet: TQTabWidget
  • setTabLabel: TQTabWidget
  • setTabOrder: TQWidget
  • setTabPosition: TQTabWidget
  • setTabShape: TQTabWidget
  • setTabStopWidth: - TQTextEdit
  • setTabStops: + TQTextEdit
  • setTabStops: TQPainter
  • setTabToolTip: TQTabWidget
  • setTagName: TQDomElement
  • setText: - TQAccessibleInterface TQAction TQButton TQCanvasText TQCheckBox TQClipboard TQIconViewItem TQImage TQLabel TQLineEdit TQListBoxItem TQListViewItem TQMessageBox TQMimeSourceFactory TQPushButton TQRadioButton TQTab TQTable TQTableItem TQTextDrag TQTextEdit
  • setTextFlags: + TQAccessibleInterface TQAction TQButton TQCanvasText TQCheckBox TQClipboard TQIconViewItem TQImage TQLabel TQLineEdit TQListBoxItem TQListViewItem TQMessageBox TQMimeSourceFactory TQPushButton TQRadioButton TQTab TQTable TQTableItem TQTextDrag TQTextEdit
  • setTextFlags: TQCanvasText
  • setTextFormat: - TQLabel TQMessageBox TQTextEdit
  • setTextLabel: + TQLabel TQMessageBox TQTextEdit
  • setTextLabel: TQToolButton
  • setTextPosition: TQToolButton
  • setTextRect: TQIconViewItem
  • setTickInterval: @@ -3089,9 +3089,9 @@ sRect: TQDataTable
  • setType: TQIODevice TQSqlError
  • setUnchanged: TQCanvas
  • setUnderline: - TQFont TQTextEdit
  • setUndoDepth: - TQTextEdit
  • setUndoRedoEnabled: - TQTextEdit
  • setUnicode: + TQFont TQTextEdit
  • setUndoDepth: + TQTextEdit
  • setUndoRedoEnabled: + TQTextEdit
  • setUnicode: TQString
  • setUnicodeCodes: TQString
  • setUnicodeUris: TQUriDrag
  • setUpLayout: @@ -3117,7 +3117,7 @@ sRect: TQSizePolicy
  • setVerStretch: TQSizePolicy
  • setVersion: TQDataStream
  • setVerticalAlignment: - TQStyleSheetItem TQTextEdit
  • setVerticallyStretchable: + TQStyleSheetItem TQTextEdit
  • setVerticallyStretchable: TQDockWindow
  • setViewMode: TQFileDialog
  • setViewXForm: TQPainter
  • setViewport: @@ -3139,13 +3139,13 @@ sRect: TQGLContext
  • setWindowOpacity: TQWidget
  • setWindowState: TQWidget
  • setWordWrap: - TQTableItem TQTextEdit
  • setWordWrapIconText: + TQTableItem TQTextEdit
  • setWordWrapIconText: TQIconView
  • setWorkingDirectory: TQProcess
  • setWorldMatrix: TQCanvasView TQPainter
  • setWorldXForm: TQPainter
  • setWrapColumnOrWidth: - TQTextEdit
  • setWrapPolicy: - TQTextEdit
  • setWrapping: + TQTextEdit
  • setWrapPolicy: + TQTextEdit
  • setWrapping: TQDial TQSpinBox
  • setWritable: TQUrlInfo
  • setX: TQCanvasItem TQPoint TQRect
  • setXVelocity: @@ -3155,7 +3155,7 @@ sRect: TQCanvasItem
  • setYear: TQDateEdit
  • setZ: TQCanvasItem
  • setf: - TQTextStream
  • setup: + TQTextStream
  • setup: TQListViewItem TQPrinter
  • shadow: TQColorGroup
  • shape: TQCursor TQTabBar
  • shear: @@ -3184,7 +3184,7 @@ sRect: TQAxBase
  • signalNames: TQMetaObject
  • signalsBlocked: TQObject
  • simpleHeuristicNameMatch: - TQTextCodec
  • simplifyWhiteSpace: + TQTextCodec
  • simplifyWhiteSpace: TQCString TQString
  • singleShot: TQTimer
  • size: TQAsciiCache TQAsciiDict TQBitArray TQCache TQCanvas TQCanvasRectangle TQDict TQDirectPainter TQFile TQFileInfo TQFontMetrics TQGLColormap TQIODevice TQIconViewItem TQImage TQIntCache TQIntDict TQMap TQMemArray TQPicture TQPixmap TQPtrDict TQPtrVector TQRect TQResizeEvent TQSocket TQSqlQuery TQSqlResult TQUrlInfo TQValueList TQValueVector TQWidget
  • sizeChange: @@ -3195,7 +3195,7 @@ sRect: TQComboBox
  • sizePolicy: TQWidget
  • sizes: TQSplitter
  • skipWhiteSpace: - TQTextStream
  • skippedEntity: + TQTextStream
  • skippedEntity: TQXmlContentHandler
  • sleep: TQThread
  • sliderMoved: TQScrollBar TQSlider
  • sliderPressed: @@ -3220,8 +3220,8 @@ sRect: TQHeader
  • sortOrder: TQListView
  • sorting: TQDir TQIconView TQTable
  • source: - TQDragObject TQDropEvent TQTextBrowser
  • sourceChanged: - TQTextBrowser
  • sourceText: + TQDragObject TQDropEvent TQTextBrowser
  • sourceChanged: + TQTextBrowser
  • sourceText: TQTranslatorMessage
  • spacePressed: TQListView
  • spacerItem: TQLayoutItem
  • spacing: @@ -3287,7 +3287,7 @@ sRect: TQWidget
  • styleHint: TQFont TQFontInfo TQStyle
  • stylePixmap: TQStyle
  • styleSheet: - TQStyleSheetItem TQTextEdit
  • styleStrategy: + TQStyleSheetItem TQTextEdit
  • styleStrategy: TQFont
  • styleString: TQFontDatabase
  • styles: TQFontDatabase
  • subRect: @@ -3314,9 +3314,9 @@ sRect: TQTable
  • swapRGB: TQImage
  • swapRows: TQTable
  • sync: - TQTextEdit
  • syncX: + TQTextEdit
  • syncX: TQApplication
  • syntaxHighlighter: - TQTextEdit
  • system: + TQTextEdit
  • system: TQLocale
  • systemBitOrder: TQImage
  • systemByteOrder: TQImage
  • systemId: @@ -3326,13 +3326,13 @@ tab: TQPainter
  • tabAt: TQTabBar
  • tabBar: TQTabDialog TQTabWidget
  • tabChangesFocus: - TQTextEdit
  • tabIconSet: + TQTextEdit
  • tabIconSet: TQTabWidget
  • tabLabel: TQTabDialog TQTabWidget
  • tabList: TQTabBar
  • tabPosition: TQTabWidget
  • tabShape: TQTabWidget
  • tabStopWidth: - TQTextEdit
  • tabStops: + TQTextEdit
  • tabStops: TQPainter
  • tabToolTip: TQTabWidget
  • tabWidth: TQStyleOption
  • table: @@ -3351,13 +3351,13 @@ tab: TQBitArray
  • testOption: TQGLFormat
  • testWFlags: TQWidget
  • text: - TQAccessibleInterface TQAction TQButton TQCanvasText TQCheckBox TQCheckListItem TQClipboard TQColorGroup TQComboBox TQComboTableItem TQDataTable TQDomElement TQIMEvent TQIconViewItem TQImage TQKeyEvent TQLabel TQLineEdit TQListBox TQListBoxItem TQListViewItem TQMenuData TQMessageBox TQPopupMenu TQPushButton TQRadioButton TQSpinBox TQSqlError TQTab TQTable TQTableItem TQTextEdit TQWhatsThis
  • textChanged: - TQComboBox TQLineEdit TQSpinBox TQTextEdit
  • textCursor: - TQTextEdit
  • textEdit: + TQAccessibleInterface TQAction TQButton TQCanvasText TQCheckBox TQCheckListItem TQClipboard TQColorGroup TQComboBox TQComboTableItem TQDataTable TQDomElement TQIMEvent TQIconViewItem TQImage TQKeyEvent TQLabel TQLineEdit TQListBox TQListBoxItem TQListViewItem TQMenuData TQMessageBox TQPopupMenu TQPushButton TQRadioButton TQSpinBox TQSqlError TQTab TQTable TQTableItem TQTextEdit TQWhatsThis
  • textChanged: + TQComboBox TQLineEdit TQSpinBox TQTextEdit
  • textCursor: + TQTextEdit
  • textEdit: TQSyntaxHighlighter
  • textFlags: TQCanvasText
  • textFor: TQToolTip TQWhatsThis
  • textFormat: - TQLabel TQMessageBox TQTextEdit
  • textKeys: + TQLabel TQMessageBox TQTextEdit
  • textKeys: TQImage
  • textLabel: TQToolButton
  • textLanguages: TQImage
  • textLine: @@ -3442,7 +3442,7 @@ tab: TQCString TQLocale TQString
  • toULongLong: TQLocale TQString TQVariant
  • toUShort: TQCString TQLocale TQString
  • toUnicode: - TQTextCodec TQTextDecoder
  • toVector: + TQTextCodec TQTextDecoder
  • toVector: TQPtrList
  • toggle: TQAction TQButton TQCheckBox TQPushButton TQRadioButton TQToolButton
  • toggleBit: TQBitArray
  • toggleCurrentItem: @@ -3495,11 +3495,11 @@ ucs2: TQString
  • unPolish: TQStyle
  • uncache: TQScreen
  • underline: - TQFont TQTextEdit
  • underlinePos: + TQFont TQTextEdit
  • underlinePos: TQFontMetrics
  • undo: - TQLineEdit TQTextEdit
  • undoAvailable: - TQTextEdit
  • undoDepth: - TQTextEdit
  • undock: + TQLineEdit TQTextEdit
  • undoAvailable: + TQTextEdit
  • undoDepth: + TQTextEdit
  • undock: TQDockWindow
  • ungetch: TQFile TQIODevice TQSocket
  • unicode: TQChar TQString
  • unicodeUriToUri: @@ -3514,10 +3514,10 @@ ucs2: TQImageDecoder
  • unregisterSocketNotifier: TQEventLoop
  • unsetCursor: TQWidget
  • unsetDevice: - TQDataStream TQTextStream
  • unsetFont: + TQDataStream TQTextStream
  • unsetFont: TQWidget
  • unsetPalette: TQWidget
  • unsetf: - TQTextStream
  • unsqueeze: + TQTextStream
  • unsqueeze: TQTranslator
  • unuseJavaClass: TQNPlugin
  • upRect: TQSpinBox
  • update: @@ -3610,7 +3610,7 @@ wait: TQMacStyle
  • widgetToField: TQSqlForm
  • widgets: TQWidgetFactory
  • width: - TQCanvas TQCanvasEllipse TQCanvasRectangle TQCanvasSprite TQDirectPainter TQFontMetrics TQIconViewItem TQImage TQListBoxItem TQListBoxPixmap TQListBoxText TQListViewItem TQPaintDeviceMetrics TQPen TQPixmap TQRect TQScreen TQSimpleRichText TQSize TQTextStream TQWidget
  • widthChanged: + TQCanvas TQCanvasEllipse TQCanvasRectangle TQCanvasSprite TQDirectPainter TQFontMetrics TQIconViewItem TQImage TQListBoxItem TQListBoxPixmap TQListBoxText TQListViewItem TQPaintDeviceMetrics TQPen TQPixmap TQRect TQScreen TQSimpleRichText TQSize TQTextStream TQWidget
  • widthChanged: TQListViewItem
  • widthMM: TQPaintDeviceMetrics
  • widthUsed: TQSimpleRichText
  • wildcard: @@ -3630,12 +3630,12 @@ wait: TQWorkspace
  • windowOpacity: TQWidget
  • windowState: TQWidget
  • wordWrap: - TQTableItem TQTextEdit
  • wordWrapIconText: + TQTableItem TQTextEdit
  • wordWrapIconText: TQIconView
  • workingDirectory: TQProcess
  • worldMatrix: TQCanvasView TQPainter
  • wrapColumnOrWidth: - TQTextEdit
  • wrapPolicy: - TQTextEdit
  • wrapping: + TQTextEdit
  • wrapPolicy: + TQTextEdit
  • wrapping: TQDial TQSpinBox
  • writable: TQMetaProperty
  • write: TQAsciiDict TQDict TQImageIO TQIntDict TQNPInstance TQNPStream TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQTranslatorMessage
  • writeBlock: @@ -3644,7 +3644,7 @@ wait: TQSettings
  • writeField: TQSqlForm
  • writeFields: TQDataBrowser TQDataView TQSqlForm
  • writeRawBytes: - TQDataStream TQTextStream
  • writeReady: + TQDataStream TQTextStream
  • writeReady: TQNPInstance
  • writeToStdin: TQProcess
  • wroteToStdin: TQProcess
  • @@ -3688,9 +3688,9 @@ y: TQDate
  • z: TQCanvasItem
  • zoomIn: - TQTextEdit
  • zoomOut: - TQTextEdit
  • zoomTo: - TQTextEdit + TQTextEdit
  • zoomOut: + TQTextEdit
  • zoomTo: + TQTextEdit diff --git a/doc/html/grapher-nsplugin-example.html b/doc/html/grapher-nsplugin-example.html index 3c8011ed3..b4aec2ac8 100644 --- a/doc/html/grapher-nsplugin-example.html +++ b/doc/html/grapher-nsplugin-example.html @@ -76,7 +76,7 @@ Implementation: // Include other TQt classes. #include <ntqpainter.h> -#include <ntqtextstream.h> +#include <tqtextstream.h> #include <ntqbuffer.h> #include <ntqpixmap.h> #include <ntqmenubar.h> @@ -543,7 +543,7 @@ void Grapher::consumeLine() line.close(); line.open(IO_ReadOnly); - TQTextStream ts( &line ); + TQTextStream ts( &line ); if (ncols == 0 ) { ncols=0; @@ -559,7 +559,7 @@ void Grapher::consumeLine() t = new ColType(Label); } if (t) typelist.append(t); - } while (!ts.atEnd()); + } while (!ts.atEnd()); coltype = new ColType[ncols]; for (ColType* t = typelist.first(); t; t = typelist.next()) { coltype[ncols++] = *t; @@ -567,7 +567,7 @@ void Grapher::consumeLine() } else { int col=0; Datum *rowdata = new Datum[ncols]; - while ( col < ncols && !ts.atEnd() ) { + while ( col < ncols && !ts.atEnd() ) { switch (coltype[col]) { case Numeric: { double value; diff --git a/doc/html/headerfilesynonyms b/doc/html/headerfilesynonyms index 70be07483..6e5145936 100644 --- a/doc/html/headerfilesynonyms +++ b/doc/html/headerfilesynonyms @@ -51,7 +51,7 @@ tqdomentity.h tqdom.h tqdomentityreference.h tqdom.h tqdomprocessinginstruction.h tqdom.h qstoreddrag.h ntqdragobject.h -qtextdrag.h ntqdragobject.h +tqtextdrag.h ntqdragobject.h tqimagedrag.h ntqdragobject.h quridrag.h ntqdragobject.h qcolordrag.h ntqdragobject.h @@ -143,10 +143,10 @@ qtableselection.h ntqtable.h qtableitem.h ntqtable.h qcombotableitem.h ntqtable.h qchecktableitem.h ntqtable.h -qtextencoder.h ntqtextcodec.h -qtextdecoder.h ntqtextcodec.h -qtextistream.h ntqtextstream.h -qtextostream.h ntqtextstream.h +tqtextencoder.h tqtextcodec.h +tqtextdecoder.h tqtextcodec.h +tqtextistream.h tqtextstream.h +tqtextostream.h tqtextstream.h qtooltipgroup.h ntqtooltip.h qtranslatormessage.h ntqtranslator.h qintvalidator.h ntqvalidator.h diff --git a/doc/html/headers.html b/doc/html/headers.html index 77436b33f..524c78dd9 100644 --- a/doc/html/headers.html +++ b/doc/html/headers.html @@ -253,12 +253,12 @@ body { background: #ffffff; color: black; }
  • ntqtabdialog.h
  • ntqtable.h
  • ntqtabwidget.h -
  • ntqtextbrowser.h -
  • ntqtextcodec.h -
  • ntqtextcodecplugin.h -
  • ntqtextedit.h -
  • ntqtextstream.h -
  • ntqtextview.h +
  • tqtextbrowser.h +
  • tqtextcodec.h +
  • tqtextcodecplugin.h +
  • tqtextedit.h +
  • tqtextstream.h +
  • tqtextview.h
  • ntqthread.h
  • ntqthreadstorage.h
  • ntqtimer.h diff --git a/doc/html/helpsystem.html b/doc/html/helpsystem.html index 56f6f4c89..c9dcc58d3 100644 --- a/doc/html/helpsystem.html +++ b/doc/html/helpsystem.html @@ -50,7 +50,7 @@ help is a digression from their real task.

    @@ -232,7 +232,7 @@ classes), see TQt's Classes. @@ -243,7 +243,7 @@ classes), see TQt's Classes. diff --git a/doc/html/mdi-example.html b/doc/html/mdi-example.html index 118552fd1..f74c89a9f 100644 --- a/doc/html/mdi-example.html +++ b/doc/html/mdi-example.html @@ -79,7 +79,7 @@ signals: void message(const TQString&, int ); private: - TQTextEdit* medit; + TQTextEdit* medit; TQMovie * mmovie; TQString filename; }; @@ -151,8 +151,8 @@ private: #include <ntqapplication.h> #include <ntqpushbutton.h> #include <ntqaccel.h> -#include <ntqtextstream.h> -#include <ntqtextedit.h> +#include <tqtextstream.h> +#include <tqtextedit.h> #include <ntqpainter.h> #include <ntqpaintdevicemetrics.h> #include <ntqwhatsthis.h> @@ -412,7 +412,7 @@ void ApplicationWindow::tileHorizontal() : TQMainWindow( parent, name, wflags ) { mmovie = 0; - medit = new TQTextEdit( this ); + medit = new TQTextEdit( this ); setFocusProxy( medit ); setCentralWidget( medit ); } @@ -424,7 +424,7 @@ MDIWindow::~MDIWindow() void MDIWindow::closeEvent( TQCloseEvent *e ) { - if ( medit->isModified() ) { + if ( medit->isModified() ) { switch( TQMessageBox::warning( this, "Save Changes", tr("Save changes to %1?").arg( caption() ), tr("Yes"), tr("No"), tr("Cancel") ) ) { @@ -472,9 +472,9 @@ void MDIWindow::load( const TQString< } else { mmovie = 0; - TQTextStream t(&f); -TQString s = t.read(); - medit->setText( s ); + TQTextStream t(&f); +TQString s = t.read(); + medit->setText( s ); f.close(); @@ -490,7 +490,7 @@ void MDIWindow::save() return; } -TQString text = medit->text(); +TQString text = medit->text(); TQFile f( filename ); if ( !f.open( IO_WriteOnly ) ) { emit message( TQString("Could not write to %1").arg(filename), @@ -498,7 +498,7 @@ void MDIWindow::save() return; } - TQTextStream t( &f ); + TQTextStream t( &f ); t << text; f.close(); @@ -533,11 +533,11 @@ void MDIWindow::print( TQPrinter int dpiy = metrics.logicalDpiY(); int margin = (int) ( (2/2.54)*dpiy ); // 2 cm margins TQRect view( margin, margin, metrics.width() - 2*margin, metrics.height() - 2*margin ); -TQSimpleRichText richText( TQStyleSheet::convertFromPlainText(medit->text()), +TQSimpleRichText richText( TQStyleSheet::convertFromPlainText(medit->text()), TQFont(), - medit->context(), - medit->styleSheet(), - medit->mimeSourceFactory(), + medit->context(), + medit->styleSheet(), + medit->mimeSourceFactory(), view.height() ); richText.setWidth( &p, view.width() ); int page = 1; diff --git a/doc/html/motif-walkthrough-10.html b/doc/html/motif-walkthrough-10.html index 2938da6d7..c92bf6eec 100644 --- a/doc/html/motif-walkthrough-10.html +++ b/doc/html/motif-walkthrough-10.html @@ -75,7 +75,7 @@ very similar to those shown above.

    TQt provides many input and output classes. We can use these in MainWindow::readDB() and MainWindow::saveDB(). Currently, these functions use functions only found on UNIX machines. -Using TQFile and TQTextStream removes this dependency on UNIX, and we can +Using TQFile and TQTextStream removes this dependency on UNIX, and we can begin building and testing our application on Microsoft Windows and Apple Mac OS X.

    The platform-independent versions of the MainWindow::readDB() and diff --git a/doc/html/motif-walkthrough-8.html b/doc/html/motif-walkthrough-8.html index fbb387fad..687c519e6 100644 --- a/doc/html/motif-walkthrough-8.html +++ b/doc/html/motif-walkthrough-8.html @@ -69,7 +69,7 @@ application on all platforms supported by TQt.

    We will use the first approach to complete the migration of the -example project used in this walkthrough, using TQTextEdit, TQLabel and +example project used in this walkthrough, using TQTextEdit, TQLabel and TQSpinBox to provide a similar look. The only difference is that we will not have tabs.

    We use TQt Designer to add the @@ -125,7 +125,7 @@ number (with an indication that the page is invalid).

    The PageChange() function is moved from todo.cpp to the MainWindow::pageChange() function in mainwindow.ui.h. As with the MainWindow::setPae() function, we need to modify the code to use the new widgets in our Main Window widget. -

    Note: TQTextEdit::text() returns a TQString, which needs to be converted +

    Note: TQTextEdit::text() returns a TQString, which needs to be converted into a normal char* array. To do this we create a copy of the string in the local encoding. We need to make the copy using tqstrdup() because the data contained in the TQCString returned by TQString::local8Bit() is deallocated when the TQCString is destroyed. @@ -141,7 +141,7 @@ renamed to MainWindow::readDB() and MainWindow::saveDB(), respectively. We need to modify the code in order to make the code work properly.

    First, We add #include statements for the MainWindow, TQSpinBox -and TQTextEdit classes. +and TQTextEdit classes.

    
    @@ -160,7 +160,7 @@ values.
     
     

    In the MainWindow::saveDB() function, we need to store the text -currently displayed, so we use TQTextEdit::text() instead of XmTextGetString(). Note: TQTextEdit::text() returns a TQString, which +currently displayed, so we use TQTextEdit::text() instead of XmTextGetString(). Note: TQTextEdit::text() returns a TQString, which needs to be converted into a normal char* array. To do this we create a copy of the string in the local encoding. We need to make the copy using tqstrdup() because the data contained in the TQCString diff --git a/doc/html/ntqapplication.html b/doc/html/ntqapplication.html index 3097b45c1..8f5325282 100644 --- a/doc/html/ntqapplication.html +++ b/doc/html/ntqapplication.html @@ -374,7 +374,7 @@ colors arguments to translate():

    See also TQObject::tr(), TQObject::trUtf8(), and TQString::fromUtf8(). @@ -752,9 +752,9 @@ control panel value is used. time by the user changing the global desktop settings.

    See also setCursorFlashTime(). -

    TQTextCodec * TQApplication::defaultCodec () const +

    TQTextCodec * TQApplication::defaultCodec () const

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

    Returns TQTextCodec::codecForTr(). +

    Returns TQTextCodec::codecForTr().

    TQDesktopWidget * TQApplication::desktop () [static]

    @@ -1355,9 +1355,9 @@ milliseconds, but this may vary. cursor flash time for all windows.

    See also cursorFlashTime(). -

    void TQApplication::setDefaultCodec ( TQTextCodec * codec ) +

    void TQApplication::setDefaultCodec ( TQTextCodec * codec )

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

    This is the same as TQTextCodec::setCodecForTr(). +

    This is the same as TQTextCodec::setCodecForTr().

    void TQApplication::setDesktopSettingsAware ( bool on ) [static]

    @@ -1612,7 +1612,7 @@ like this: 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). -

    TQt also uses this delay internally, e.g. in TQTextEdit and TQLineEdit, +

    TQt also uses this delay internally, e.g. in TQTextEdit and TQLineEdit, for starting a drag.

    The default value is 500 ms.

    See also setStartDragTime() and startDragDistance(). diff --git a/doc/html/ntqbig5codec.html b/doc/html/ntqbig5codec.html index 4739a369e..d4a8797bc 100644 --- a/doc/html/ntqbig5codec.html +++ b/doc/html/ntqbig5codec.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }

    The TQBig5Codec class provides conversion to and from the Big5 encoding. More...

    #include <ntqbig5codec.h> -

    Inherits TQTextCodec. +

    Inherits TQTextCodec.

    List of all member functions.


    Detailed Description

    diff --git a/doc/html/ntqbuffer.html b/doc/html/ntqbuffer.html index b18b2fbe5..0472498a6 100644 --- a/doc/html/ntqbuffer.html +++ b/doc/html/ntqbuffer.html @@ -55,7 +55,7 @@ The TQBuffer class is an I/O device that operates on a

    TQBuffer is used to read and write to a memory buffer. It is -normally used with a TQTextStream or a TQDataStream. TQBuffer has an +normally used with a TQTextStream or a TQDataStream. TQBuffer has an associated TQByteArray which holds the buffer data. The size() of the buffer is automatically adjusted as data is written.

    The constructor TQBuffer(TQByteArray) creates a TQBuffer using an @@ -66,16 +66,16 @@ array because TQByteArray is explicitly

    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(). -

    A common way to use TQBuffer is through TQDataStream or TQTextStream, which have constructors that take a TQBuffer +

    A common way to use TQBuffer is through TQDataStream or TQTextStream, which have constructors that take a TQBuffer parameter. For convenience, there are also TQDataStream and -TQTextStream constructors that take a TQByteArray parameter. These +TQTextStream constructors that take a TQByteArray parameter. These constructors create and open an internal TQBuffer.

    Note that TQTextStream can also operate on a TQString (a Unicode string); a TQBuffer cannot.

    You can also use TQBuffer directly through the standard TQIODevice functions readBlock(), writeBlock() readLine(), at(), getch(), putch() and ungetch(). -

    See also TQFile, TQDataStream, TQTextStream, TQByteArray, Shared Classes, Collection Classes, and Input/Output and Networking. +

    See also TQFile, TQDataStream, TQTextStream, TQByteArray, Shared Classes, Collection Classes, and Input/Output and Networking.


    Member Function Documentation

    TQBuffer::TQBuffer () diff --git a/doc/html/ntqdatastream.html b/doc/html/ntqdatastream.html index 5808241b5..a5d439f3d 100644 --- a/doc/html/ntqdatastream.html +++ b/doc/html/ntqdatastream.html @@ -99,7 +99,7 @@ byte order. For example, a data stream that is written by a PC under Windows can be read by a Sun SPARC running Solaris.

    You can also use a data stream to read/write raw unencoded binary data. If you want a "parsing" input -stream, see TQTextStream. +stream, see TQTextStream.

    The TQDataStream class implements the serialization of C++'s basic data types, like char, short, int, char*, etc. Serialization of more complex data is accomplished by breaking up @@ -217,7 +217,7 @@ 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. -

    See also TQTextStream, TQVariant, and Input/Output and Networking. +

    See also TQTextStream, TQVariant, and Input/Output and Networking.


    Member Type Documentation

    TQDataStream::ByteOrder

    diff --git a/doc/html/ntqdockarea.html b/doc/html/ntqdockarea.html index 83db618fe..d657ff476 100644 --- a/doc/html/ntqdockarea.html +++ b/doc/html/ntqdockarea.html @@ -114,7 +114,7 @@ see if a dock area contains a particular dock window use hasDockWindow(); to see how many dock windows a dock area contains use count().

    The streaming operators can write the positions of the dock -windows in the dock area to a TQTextStream. The positions can be +windows in the dock area to a TQTextStream. The positions can be read back later to restore the saved positions.

    Save the positions to a TQTextStream:

    @@ -250,14 +250,14 @@ constructor.
     
     

    Get this property's value with orientation().


    Related Functions

    -

    TQTextStream & operator<< ( TQTextStream & ts, const TQDockArea & dockArea ) +

    TQTextStream & operator<< ( TQTextStream & ts, const TQDockArea & dockArea )

    Writes the layout of the dock windows in dock area dockArea to the text stream ts.

    See also operator>>(). -

    TQTextStream & operator>> ( TQTextStream & ts, TQDockArea & dockArea ) +

    TQTextStream & operator>> ( TQTextStream & ts, TQDockArea & dockArea )

    Reads the layout description of the dock windows in dock area dockArea from the text stream ts and restores it. The layout diff --git a/doc/html/ntqdragobject.html b/doc/html/ntqdragobject.html index 4c2268641..cbe68dd9c 100644 --- a/doc/html/ntqdragobject.html +++ b/doc/html/ntqdragobject.html @@ -36,7 +36,7 @@ transfer. More...

    #include <ntqdragobject.h>

    Inherits TQObject and TQMimeSource. -

    Inherited by TQStoredDrag, TQTextDrag, TQImageDrag, and TQIconDrag. +

    Inherited by TQStoredDrag, TQTextDrag, TQImageDrag, and TQIconDrag.

    List of all member functions.

    Public Members

      diff --git a/doc/html/ntqdropsite.html b/doc/html/ntqdropsite.html index 84244c7eb..cd49ff78e 100644 --- a/doc/html/ntqdropsite.html +++ b/doc/html/ntqdropsite.html @@ -49,7 +49,7 @@ The TQDropSite class provides nothing and does nothing.

      It was used in TQt 1.x to do some drag and drop; that has since been folded into TQWidget.

      For detailed information about drag-and-drop, see the TQDragObject class. -

      See also TQDragObject, TQTextDrag, and TQImageDrag. +

      See also TQDragObject, TQTextDrag, and TQImageDrag.


      Member Function Documentation

      TQDropSite::TQDropSite ( TQWidget * self ) diff --git a/doc/html/ntqeucjpcodec.html b/doc/html/ntqeucjpcodec.html index 1b04559da..dc3a80c61 100644 --- a/doc/html/ntqeucjpcodec.html +++ b/doc/html/ntqeucjpcodec.html @@ -35,7 +35,7 @@ body { background: #ffffff; color: black; } More...

      All the functions in this class are reentrant when TQt is built with thread support.

      #include <ntqeucjpcodec.h> -

      Inherits TQTextCodec. +

      Inherits TQTextCodec.

      List of all member functions.

      Public Members

        @@ -49,7 +49,7 @@ body { background: #ffffff; color: black; }

        The TQEucJpCodec class provides conversion to and from EUC-JP character sets. -

        More precisely, the TQEucJpCodec class subclasses TQTextCodec to +

        More precisely, the TQEucJpCodec class subclasses TQTextCodec to provide support for EUC-JP, the main legacy encoding for Unix machines in Japan.

        The environment variable UNICODEMAP_JP can be used to fine-tune @@ -97,12 +97,12 @@ Destroys the codec. Returns 18. -

        Reimplemented from TQTextCodec. +

        Reimplemented from TQTextCodec.

        const char * TQEucJpCodec::mimeName () const [virtual]

        Returns the codec's mime name. -

        Reimplemented from TQTextCodec. +

        Reimplemented from TQTextCodec.


        This file is part of the TQt toolkit. diff --git a/doc/html/ntqeuckrcodec.html b/doc/html/ntqeuckrcodec.html index 8ebb6cb91..315b2297c 100644 --- a/doc/html/ntqeuckrcodec.html +++ b/doc/html/ntqeuckrcodec.html @@ -35,7 +35,7 @@ body { background: #ffffff; color: black; } More...

        All the functions in this class are reentrant when TQt is built with thread support.

        #include <ntqeuckrcodec.h> -

        Inherits TQTextCodec. +

        Inherits TQTextCodec.

        List of all member functions.

        Public Members

          @@ -46,7 +46,7 @@ body { background: #ffffff; color: black; }

          The TQEucKrCodec class provides conversion to and from EUC-KR character sets. -

          The TQEucKrCodec class subclasses TQTextCodec to provide support for +

          The TQEucKrCodec class subclasses TQTextCodec to provide support for EUC-KR, the main legacy encoding for UNIX machines in Korea.

          It was largely written by Mizi Research Inc. Here is the copyright statement for the code as it was at the point of contribution. @@ -81,7 +81,7 @@ SUCH DAMAGE. Returns the codec's mime name. -

          Reimplemented from TQTextCodec. +

          Reimplemented from TQTextCodec.


          This file is part of the TQt toolkit. diff --git a/doc/html/ntqfile.html b/doc/html/ntqfile.html index 10393da13..94f45369d 100644 --- a/doc/html/ntqfile.html +++ b/doc/html/ntqfile.html @@ -89,7 +89,7 @@ The TQFile class is an I/O device that operates on files.

          TQFile is an I/O device for reading and writing binary and text files. A TQFile may be used by itself or more conveniently with a -TQDataStream or TQTextStream. +TQDataStream or TQTextStream.

          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(). @@ -102,17 +102,17 @@ and write with writeBlock(). TQFile al 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(). -

          Here is a code fragment that uses TQTextStream to read a text file +

          Here is a code fragment that uses TQTextStream to read a text file line by line. It prints each line with a line number.

               TQStringList lines;
               TQFile file( "file.txt" );
               if ( file.open( IO_ReadOnly ) ) {
          -        TQTextStream stream( &file );
          +        TQTextStream stream( &file );
                   TQString line;
                   int i = 1;
          -        while ( !stream.atEnd() ) {
          -            line = stream.readLine(); // line of text excluding '\n'
          +        while ( !stream.atEnd() ) {
          +            line = stream.readLine(); // line of text excluding '\n'
                       printf( "%3d: %s\n", i++, line.latin1() );
                       lines += line;
                   }
          @@ -126,7 +126,7 @@ example:
           
               TQFile file( "file.txt" );
               if ( file.open( IO_WriteOnly ) ) {
          -        TQTextStream stream( &file );
          +        TQTextStream stream( &file );
                   for ( TQStringList::Iterator it = lines.begin(); it != lines.end(); ++it )
                       stream << *it << "\n";
                   file.close();
          @@ -140,7 +140,7 @@ as access permissions, file dates and file types.
           systems you may want to use encodeName() (and decodeName()) to
           convert the file name into the local encoding.
           

          -

          See also TQDataStream, TQTextStream, and Input/Output and Networking. +

          See also TQDataStream, TQTextStream, and Input/Output and Networking.


          Member Type Documentation

          TQFile::DecoderFn

          @@ -401,7 +401,7 @@ terminating newline is not stripped.

          This function is only efficient for buffered files. Avoid readLine() for files that have been opened with the IO_Raw flag. -

          See also readBlock() and TQTextStream::readLine(). +

          See also readBlock() and TQTextStream::readLine().

          Reimplemented from TQIODevice.

          TQ_LONG TQFile::readLine ( TQString & s, TQ_ULONG maxlen ) @@ -416,7 +416,7 @@ file. Any terminating newline is not stripped. readLine() for files that have been opened with the IO_Raw flag.

          Note that the string is read as plain Latin1 bytes, not Unicode. -

          See also readBlock() and TQTextStream::readLine(). +

          See also readBlock() and TQTextStream::readLine().

          bool TQFile::remove ()

          diff --git a/doc/html/ntqgb18030codec.html b/doc/html/ntqgb18030codec.html index 09a545e2b..e1f13c315 100644 --- a/doc/html/ntqgb18030codec.html +++ b/doc/html/ntqgb18030codec.html @@ -36,7 +36,7 @@ GB18030/GBK/GB2312 encoding. More...

          All the functions in this class are reentrant when TQt is built with thread support.

          #include <ntqgb18030codec.h> -

          Inherits TQTextCodec. +

          Inherits TQTextCodec.

          Inherited by TQGbkCodec and TQGb2312Codec.

          List of all member functions.


          Detailed Description

          diff --git a/doc/html/ntqiconview.html b/doc/html/ntqiconview.html index 3b5263882..6639bdf65 100644 --- a/doc/html/ntqiconview.html +++ b/doc/html/ntqiconview.html @@ -268,11 +268,11 @@ subclass TQIconView and reimplement TQIconView::dragObject

               TQDragObject *MyIconView::dragObject()
               {
          -        return new TQTextDrag( currentItem()->text(), this );
          +        return new TQTextDrag( currentItem()->text(), this );
               }
               
          -

          In this example we create a TQTextDrag object, (derived from +

          In this example we create a TQTextDrag object, (derived from TQDragObject), 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. @@ -294,7 +294,7 @@ reimplement TQIconViewItem::acceptDropTQDropEvent *evt, const TQValueList<TQIconDragItem>& ) { TQString label; - if ( TQTextDrag::decode( evt, label ) ) + if ( TQTextDrag::decode( evt, label ) ) setText( label ); }

          diff --git a/doc/html/ntqiodevice.html b/doc/html/ntqiodevice.html index 8452d22c0..3dc5cab64 100644 --- a/doc/html/ntqiodevice.html +++ b/doc/html/ntqiodevice.html @@ -97,7 +97,7 @@ superclass of all such devices; classes such as TQFileTQSocket inherit TQIODevice and implement virtual functions such as write() appropriately.

          Although applications sometimes use TQIODevice directly, it is -usually better to use TQTextStream and TQDataStream, which provide +usually better to use TQTextStream and TQDataStream, which provide stream operations on any TQIODevice subclass. TQTextStream provides text-oriented stream functionality (for human-readable ASCII files, for example), whereas TQDataStream deals with binary data in @@ -193,7 +193,7 @@ probably need:

          The three non-pure virtual functions need not be reimplemented for sequential devices. -

          See also TQDataStream, TQTextStream, and Input/Output and Networking. +

          See also TQDataStream, TQTextStream, and Input/Output and Networking.


          Member Type Documentation

          TQIODevice::Offset

          @@ -436,7 +436,7 @@ newline at the end if the line, it is not stripped. or -1 if an error occurred.

          This virtual function can be reimplemented much more efficiently by the most subclasses. -

          See also readBlock() and TQTextStream::readLine(). +

          See also readBlock() and TQTextStream::readLine().

          Reimplemented in TQFile.

          bool TQIODevice::reset () diff --git a/doc/html/ntqjiscodec.html b/doc/html/ntqjiscodec.html index 9cd38c4e7..51940a115 100644 --- a/doc/html/ntqjiscodec.html +++ b/doc/html/ntqjiscodec.html @@ -35,7 +35,7 @@ body { background: #ffffff; color: black; } More...

          All the functions in this class are reentrant when TQt is built with thread support.

          #include <ntqjiscodec.h> -

          Inherits TQTextCodec. +

          Inherits TQTextCodec.

          List of all member functions.

          Public Members

            @@ -46,7 +46,7 @@ body { background: #ffffff; color: black; }

            The TQJisCodec class provides conversion to and from JIS character sets. -

            More precisely, the TQJisCodec class subclasses TQTextCodec to +

            More precisely, the TQJisCodec class subclasses TQTextCodec to provide support for JIS X 0201 Latin, JIS X 0201 Kana, JIS X 0208 and JIS X 0212.

            The environment variable UNICODEMAP_JP can be used to fine-tune @@ -118,7 +118,7 @@ SUCH DAMAGE. Returns the codec's mime name. -

            Reimplemented from TQTextCodec. +

            Reimplemented from TQTextCodec.


            This file is part of the TQt toolkit. diff --git a/doc/html/ntqlabel.html b/doc/html/ntqlabel.html index 7d7ddd03c..136d8e327 100644 --- a/doc/html/ntqlabel.html +++ b/doc/html/ntqlabel.html @@ -142,7 +142,7 @@ the other widget (called the TQLabel's "buddy"). For example: buddy (the TQLineEdit) when the user presses Alt+P. You can also use the setBuddy() function to accomplish the same thing.

            -

            See also TQLineEdit, TQTextEdit, TQPixmap, TQMovie, GUI Design Handbook: Label, Basic Widgets, and Text Related Classes. +

            See also TQLineEdit, TQTextEdit, TQPixmap, TQMovie, GUI Design Handbook: Label, Basic Widgets, and Text Related Classes.


            Member Function Documentation

            TQLabel::TQLabel ( TQWidget * parent, const char * name = 0, WFlags f = 0 ) @@ -393,7 +393,7 @@ set, the buddy accelerator key is updated from the new text.

            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 +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.

            See also textFormat, setBuddy(), and alignment. diff --git a/doc/html/ntqlineedit.html b/doc/html/ntqlineedit.html index c79bc71f1..ea215dd22 100644 --- a/doc/html/ntqlineedit.html +++ b/doc/html/ntqlineedit.html @@ -148,7 +148,7 @@ a "write-only" field, for inputs such as passwords.

            The length of the text can be constrained to maxLength(). The text can be arbitrarily constrained using a validator() or an inputMask(), or both. -

            A related class is TQTextEdit which allows multi-line, rich-text +

            A related class is TQTextEdit which allows multi-line, rich-text editing.

            You can change the text with setText() or insert(). The text is retrieved with text(); the displayed text (which may be different, @@ -199,7 +199,7 @@ that presents some of these editing options.

            Any other key sequence that represents a valid character, will cause the character to be inserted into the line edit.

            -

            See also TQTextEdit, TQLabel, TQComboBox, GUI Design Handbook: Field, Entry, and Basic Widgets. +

            See also TQTextEdit, TQLabel, TQComboBox, GUI Design Handbook: Field, Entry, and Basic Widgets.


            Member Type Documentation

            TQLineEdit::EchoMode

            diff --git a/doc/html/ntqmainwindow.html b/doc/html/ntqmainwindow.html index 1aea36e28..400662836 100644 --- a/doc/html/ntqmainwindow.html +++ b/doc/html/ntqmainwindow.html @@ -150,7 +150,7 @@ toolbar buttons then describe the facilities of TQMainWindow itself.

                 TQMainWindow *mw = new TQMainWindow;
            -    TQTextEdit *edit = new TQTextEdit( mw, "editor" );
            +    TQTextEdit *edit = new TQTextEdit( mw, "editor" );
                 edit->setFocus();
                 mw->setCaption( "Main Window" );
                 mw->setCentralWidget( edit );
            @@ -205,7 +205,7 @@ clicked. Any dock window can be added to a dock area either using
             as the parent.
             

            -

                    e = new TQTextEdit( this, "editor" );
            +
                    e = new TQTextEdit( this, "editor" );
                     e->setFocus();
                     setCentralWidget( e );
                     statusBar()->message( "Ready", 2000 );
            @@ -355,7 +355,7 @@ for TQMainWindow.
             

                 TQFile file( filename );
                 if ( file.open( IO_WriteOnly ) ) {
            -        TQTextStream stream( &file );
            +        TQTextStream stream( &file );
                     stream << *mainWindow;
                     file.close();
                 }
            @@ -366,7 +366,7 @@ application is next started), do following:
             

                 TQFile file( filename );
                 if ( file.open( IO_ReadOnly ) ) {
            -        TQTextStream stream( &file );
            +        TQTextStream stream( &file );
                     stream >> *mainWindow;
                     file.close();
                 }
            @@ -921,7 +921,7 @@ and for connecting to the main window's widget's
             
             

            Set this property's value with setUsesTextLabel() and get this property's value with usesTextLabel().


            Related Functions

            -

            TQTextStream & operator<< ( TQTextStream & ts, const TQMainWindow & mainWindow ) +

            TQTextStream & operator<< ( TQTextStream & ts, const TQMainWindow & mainWindow )

            Writes the layout (sizes and positions) of the dock windows in the @@ -930,7 +930,7 @@ dock areas of the TQMainWindow mainWindow, including operator>>() and closeEvent(). -

            TQTextStream & operator>> ( TQTextStream & ts, TQMainWindow & mainWindow ) +

            TQTextStream & operator>> ( TQTextStream & ts, TQMainWindow & mainWindow )

            Reads the layout (sizes and positions) of the dock windows in the diff --git a/doc/html/ntqmultilineedit.html b/doc/html/ntqmultilineedit.html index 81fdce9c2..f1632bc51 100644 --- a/doc/html/ntqmultilineedit.html +++ b/doc/html/ntqmultilineedit.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }

            The TQMultiLineEdit widget is a simple editor for inputting text. More...

            #include <ntqmultilineedit.h> -

            Inherits TQTextEdit. +

            Inherits TQTextEdit.

            List of all member functions.

            Public Members

              @@ -101,10 +101,10 @@ body { background: #ffffff; color: black; }

              The TQMultiLineEdit was a simple editor widget in former TQt versions. TQt 3.0 includes a new richtext engine which obsoletes TQMultiLineEdit. It is still included for compatibility reasons. It is now a subclass of -TQTextEdit, and provides enough of the old TQMultiLineEdit API to keep old +TQTextEdit, and provides enough of the old TQMultiLineEdit API to keep old applications working.

              If you implement something new with TQMultiLineEdit, we suggest using -TQTextEdit instead and call TQTextEdit::setTextFormat(TQt::PlainText). +TQTextEdit instead and call TQTextEdit::setTextFormat(TQt::PlainText).

              Although most of the old TQMultiLineEdit API is still available, there is a few difference. The old TQMultiLineEdit operated on lines, not on paragraphs. As lines change all the time during wordwrap, the new @@ -114,9 +114,9 @@ operate on paragraphs. Further, getString() has been removed completely. It revealed too much of the internal data structure.

              Applications which made normal and reasonable use of TQMultiLineEdit should still work without problems. Some odd usage will require some -porting. In these cases, it may be better to use TQTextEdit now. +porting. In these cases, it may be better to use TQTextEdit now.

              -

              See also TQTextEdit and Advanced Widgets. +

              See also TQTextEdit and Advanced Widgets.


              Member Function Documentation

              TQMultiLineEdit::TQMultiLineEdit ( TQWidget * parent = 0, const char * name = 0 ) @@ -143,7 +143,7 @@ See the "atEnd" property for deta moves the cursor one position to the left. If a text has been selected by the user (e.g. by clicking and dragging) the cursor is put at the beginning of the selected text and the selected text is removed. -del() +del()

              void TQMultiLineEdit::cursorDown ( bool mark = FALSE ) [virtual protected]

              @@ -269,7 +269,7 @@ nothing is deleted.

              void TQMultiLineEdit::setAlignment ( int flags ) [virtual]

              Sets the editor's paragraph alignment to flags. See the "alignment" property for details. -

              Reimplemented from TQTextEdit. +

              Reimplemented from TQTextEdit.

              void TQMultiLineEdit::setAutoUpdate ( bool ) [virtual]

              @@ -321,8 +321,8 @@ string), or a null string if line

              See also atBeginning.

              bool edited

              This property holds whether the document has been edited by the user. -

              This is the same as TQTextEdit's "modifed" property. -

              See also TQTextEdit::modified. +

              This is the same as TQTextEdit's "modifed" property. +

              See also TQTextEdit::modified.

              Set this property's value with setEdited() and get this property's value with edited().

              int numLines

              This property holds the number of paragraphs in the editor. diff --git a/doc/html/ntqprocess.html b/doc/html/ntqprocess.html index a8d076a05..5cddf398d 100644 --- a/doc/html/ntqprocess.html +++ b/doc/html/ntqprocess.html @@ -445,7 +445,7 @@ newline or carriage return characters and returns it. Returns TQString::null if canReadLineStderr() returns FALSE.

              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(). +TQTextCodec::setCodecForCStrings().

              See also canReadLineStderr(), readyReadStderr(), readStderr(), and readLineStdout().

              TQString TQProcess::readLineStdout () [virtual] @@ -455,7 +455,7 @@ newline or carriage return characters, and returns it. Returns TQString::null if canReadLineStdout() returns FALSE.

              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(). +TQTextCodec::setCodecForCStrings().

              See also canReadLineStdout(), readyReadStdout(), readStdout(), and readLineStderr().

              TQByteArray TQProcess::readStderr () [virtual] diff --git a/doc/html/ntqscrollview.html b/doc/html/ntqscrollview.html index ac4199414..b5d1d5e40 100644 --- a/doc/html/ntqscrollview.html +++ b/doc/html/ntqscrollview.html @@ -35,7 +35,7 @@ body { background: #ffffff; color: black; } More...

              #include <ntqscrollview.h>

              Inherits TQFrame. -

              Inherited by TQCanvasView, TQTable, TQGridView, TQIconView, TQListBox, TQListView, and TQTextEdit. +

              Inherited by TQCanvasView, TQTable, TQGridView, TQIconView, TQListBox, TQListView, and TQTextEdit.

              List of all member functions.

              Public Members

                diff --git a/doc/html/ntqsimplerichtext.html b/doc/html/ntqsimplerichtext.html index 1fc0f0bb7..2bc8af8b7 100644 --- a/doc/html/ntqsimplerichtext.html +++ b/doc/html/ntqsimplerichtext.html @@ -75,7 +75,7 @@ editable drawing canvases.

                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. -

                For large documents use TQTextEdit or TQTextBrowser. For very small +

                For large documents use TQTextEdit or TQTextBrowser. For very small items of rich text you can use a TQLabel.

                If you are using TQSimpleRichText to print in high resolution you should call setWidth(TQPainter, int) so that the content will be diff --git a/doc/html/ntqsjiscodec.html b/doc/html/ntqsjiscodec.html index b050245fa..9168839af 100644 --- a/doc/html/ntqsjiscodec.html +++ b/doc/html/ntqsjiscodec.html @@ -35,7 +35,7 @@ body { background: #ffffff; color: black; } More...

                All the functions in this class are reentrant when TQt is built with thread support.

                #include <ntqsjiscodec.h> -

                Inherits TQTextCodec. +

                Inherits TQTextCodec.

                List of all member functions.

                Public Members

                  @@ -48,7 +48,7 @@ body { background: #ffffff; color: black; } The TQSjisCodec class provides conversion to and from Shift-JIS. -

                  More precisely, the TQSjisCodec class subclasses TQTextCodec to +

                  More precisely, the TQSjisCodec class subclasses TQTextCodec to provide support for Shift-JIS, an encoding of JIS X 0201 Latin, JIS X 0201 Kana or JIS X 0208.

                  The environment variable UNICODEMAP_JP can be used to fine-tune @@ -99,7 +99,7 @@ Destroys the Shift-JIS codec. Returns the codec's mime name. -

                  Reimplemented from TQTextCodec. +

                  Reimplemented from TQTextCodec.


                  This file is part of the TQt toolkit. diff --git a/doc/html/ntqsplitter.html b/doc/html/ntqsplitter.html index 88f10e783..46eabb1ad 100644 --- a/doc/html/ntqsplitter.html +++ b/doc/html/ntqsplitter.html @@ -89,12 +89,12 @@ The TQSplitter class implements a splitter widget.

                  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. -

                  To show a TQListBox, a TQListView and a TQTextEdit side by side: +

                  To show a TQListBox, a TQListView and a TQTextEdit side by side:

                           TQSplitter *split = new TQSplitter( parent );
                           TQListBox *lb = new TQListBox( split );
                           TQListView *lv = new TQListView( split );
                  -        TQTextEdit *ed = new TQTextEdit( split );
                  +        TQTextEdit *ed = new TQTextEdit( split );
                       

                  TQSplitter lays out its children horizontally (side by side); you @@ -309,14 +309,14 @@ side). The possible orientations are Horizo

                  Set this property's value with setOrientation() and get this property's value with orientation().


                  Related Functions

                  -

                  TQTextStream & operator<< ( TQTextStream & ts, const TQSplitter & splitter ) +

                  TQTextStream & operator<< ( TQTextStream & ts, const TQSplitter & splitter )

                  Writes the sizes and the hidden state of the widgets in the splitter splitter to the text stream ts.

                  See also operator>>(), sizes(), and TQWidget::hidden. -

                  TQTextStream & operator>> ( TQTextStream & ts, TQSplitter & splitter ) +

                  TQTextStream & operator>> ( TQTextStream & ts, TQSplitter & splitter )

                  Reads the sizes and the hidden state of the widgets in the diff --git a/doc/html/ntqstylesheet.html b/doc/html/ntqstylesheet.html index c28691718..d3ce655e8 100644 --- a/doc/html/ntqstylesheet.html +++ b/doc/html/ntqstylesheet.html @@ -67,7 +67,7 @@ rendering and a generator of tags. 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, TQLabel, +visualized in a TQTextEdit or a TQTextBrowser. However, TQLabel, TQWhatsThis and TQMessageBox also support it, and other classes are likely to follow. With TQSimpleRichText it is possible to use the rich text renderer for custom widgets as well. @@ -84,11 +84,11 @@ HTML tables. attributes:

                  • title -- The caption of the document. This attribute is -easily accessible with TQTextEdit::documentTitle(). +easily accessible with TQTextEdit::documentTitle().
                  • type -- The type of the document. The default type is page. It indicates that the document is displayed in a page of its own. Another style is detail, which can be used to explain certain expressions in more detail in a -few sentences. For detail, TQTextBrowser will then keep +few sentences. For detail, TQTextBrowser will then keep the current page and display the new document in a small popup similar to TQWhatsThis. Note that links will not work in documents with <qt type="detail">...</qt>. @@ -298,8 +298,8 @@ Returns the application-wide default style sheet. This style sheet is used by rich text rendering classes such as TQSimpleRichText, TQWhatsThis and TQMessageBox 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. +initial style sheet for the more complex render widgets, TQTextEdit +and TQTextBrowser.

                    See also setDefaultSheet().

                    void TQStyleSheet::error ( const TQString & msg ) const [virtual] diff --git a/doc/html/ntqsyntaxhighlighter.html b/doc/html/ntqsyntaxhighlighter.html index e85b97928..05834e3b2 100644 --- a/doc/html/ntqsyntaxhighlighter.html +++ b/doc/html/ntqsyntaxhighlighter.html @@ -53,7 +53,7 @@ implementing TQTextEdit syntax highlighters. The TQSyntaxHighlighter class is a base class for -implementing TQTextEdit syntax highlighters. +implementing TQTextEdit syntax highlighters.

                    A syntax highligher automatically highlights parts of the text in @@ -71,7 +71,7 @@ the font and color) to the text that is passed to it.

                    See also Basic Widgets and Text Related Classes.


                    Member Function Documentation

                    -

                    TQSyntaxHighlighter::TQSyntaxHighlighter ( TQTextEdit * textEdit ) +

                    TQSyntaxHighlighter::TQSyntaxHighlighter ( TQTextEdit * textEdit )

                    Constructs the TQSyntaxHighlighter and installs it on textEdit.

                    It is the caller's responsibility to delete the @@ -139,10 +139,10 @@ nothing is done.)

                    void TQSyntaxHighlighter::setFormat ( int start, int count, const TQFont & font )

                    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

                    TQTextEdit * TQSyntaxHighlighter::textEdit () const +

                    TQTextEdit * TQSyntaxHighlighter::textEdit () const

                    -

                    Returns the TQTextEdit on which this syntax highlighter is +

                    Returns the TQTextEdit on which this syntax highlighter is installed diff --git a/doc/html/ntqt.html b/doc/html/ntqt.html index b059c708b..0ca190511 100644 --- a/doc/html/ntqt.html +++ b/doc/html/ntqt.html @@ -808,7 +808,7 @@ string using the current TQStyleSheet: if TQStyleSheet::mightBeRichText() returns TRUE, otherwise as PlainText.

                  • TQt::LogText - A special, limited text format which is only used -by TQTextEdit in an optimized mode. +by TQTextEdit in an optimized mode.

                  TQt::TimeSpec

                  diff --git a/doc/html/ntqtextbrowser.html b/doc/html/ntqtextbrowser.html deleted file mode 100644 index 525cc4ddb..000000000 --- a/doc/html/ntqtextbrowser.html +++ /dev/null @@ -1,265 +0,0 @@ - - - - - -TQTextBrowser Class - - - - -
    TQStatusBarHorizontal bar suitable for presenting status information
    TQStyleSheetCollection of styles for rich text rendering and a generator of tags -
    TQTextBrowserRich text browser with hypertext navigation +
    TQTextBrowserRich text browser with hypertext navigation
    TQToolTipTool tips (balloon help) for any widget or rectangular part of a widget
    TQToolTipGroupCollects tool tips into related groups
    TQWhatsThisSimple description of any widget, i.e. answering the question "What's this?" diff --git a/doc/html/helpviewer-example.html b/doc/html/helpviewer-example.html index b4b0068fe..52281f18a 100644 --- a/doc/html/helpviewer-example.html +++ b/doc/html/helpviewer-example.html @@ -51,7 +51,7 @@ TQt's richtext capabilities. #define HELPWINDOW_H #include <ntqmainwindow.h> -#include <ntqtextbrowser.h> +#include <tqtextbrowser.h> #include <tqstringlist.h> #include <tqmap.h> #include <ntqdir.h> @@ -86,7 +86,7 @@ private: void readHistory(); void readBookmarks(); - TQTextBrowser* browser; + TQTextBrowser* browser; TQComboBox *pathCombo; int backwardId, forwardId; TQStringList history, bookmarks; @@ -124,7 +124,7 @@ private: #include <ntqtoolbutton.h> #include <ntqiconset.h> #include <ntqfile.h> -#include <ntqtextstream.h> +#include <tqtextstream.h> #include <ntqstylesheet.h> #include <ntqmessagebox.h> #include <ntqfiledialog.h> @@ -151,19 +151,19 @@ private: readHistory(); readBookmarks(); - browser = new TQTextBrowser( this ); + browser = new TQTextBrowser( this ); - browser->mimeSourceFactory()->setFilePath( _path ); + browser->mimeSourceFactory()->setFilePath( _path ); browser->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); - connect( browser, TQ_SIGNAL( sourceChanged(const TQString& ) ), + connect( browser, TQ_SIGNAL( sourceChanged(const TQString& ) ), this, TQ_SLOT( sourceChanged( const TQString&) ) ); setCentralWidget( browser ); if ( !home_.isEmpty() ) - browser->setSource( home_ ); + browser->setSource( home_ ); - connect( browser, TQ_SIGNAL( highlighted( const TQString&) ), + connect( browser, TQ_SIGNAL( highlighted( const TQString&) ), statusBar(), TQ_SLOT( message( const TQString&)) ); resize( 640,700 ); @@ -183,12 +183,12 @@ private: TQPopupMenu* go = new TQPopupMenu( this ); backwardId = go->insertItem( icon_back, - tr("&Backward"), browser, TQ_SLOT( backward() ), + tr("&Backward"), browser, TQ_SLOT( backward() ), CTRL+Key_Left ); forwardId = go->insertItem( icon_forward, - tr("&Forward"), browser, TQ_SLOT( forward() ), + tr("&Forward"), browser, TQ_SLOT( forward() ), CTRL+Key_Right ); - go->insertItem( icon_home, tr("&Home"), browser, TQ_SLOT( home() ) ); + go->insertItem( icon_home, tr("&Home"), browser, TQ_SLOT( home() ) ); TQPopupMenu* help = new TQPopupMenu( this ); help->insertItem( tr("&About"), this, TQ_SLOT( about() ) ); @@ -220,9 +220,9 @@ private: menuBar()->setItemEnabled( forwardId, FALSE); menuBar()->setItemEnabled( backwardId, FALSE); - connect( browser, TQ_SIGNAL( backwardAvailable( bool ) ), + connect( browser, TQ_SIGNAL( backwardAvailable( bool ) ), this, TQ_SLOT( setBackwardAvailable( bool ) ) ); - connect( browser, TQ_SIGNAL( forwardAvailable( bool ) ), + connect( browser, TQ_SIGNAL( forwardAvailable( bool ) ), this, TQ_SLOT( setForwardAvailable( bool ) ) ); @@ -230,13 +230,13 @@ private: addToolBar( toolbar, "Toolbar"); TQToolButton* button; - button = new TQToolButton( icon_back, tr("Backward"), "", browser, TQ_SLOT(backward()), toolbar ); - connect( browser, TQ_SIGNAL( backwardAvailable(bool) ), button, TQ_SLOT( setEnabled(bool) ) ); + button = new TQToolButton( icon_back, tr("Backward"), "", browser, TQ_SLOT(backward()), toolbar ); + connect( browser, TQ_SIGNAL( backwardAvailable(bool) ), button, TQ_SLOT( setEnabled(bool) ) ); button->setEnabled( FALSE ); - button = new TQToolButton( icon_forward, tr("Forward"), "", browser, TQ_SLOT(forward()), toolbar ); - connect( browser, TQ_SIGNAL( forwardAvailable(bool) ), button, TQ_SLOT( setEnabled(bool) ) ); + button = new TQToolButton( icon_forward, tr("Forward"), "", browser, TQ_SLOT(forward()), toolbar ); + connect( browser, TQ_SIGNAL( forwardAvailable(bool) ), button, TQ_SLOT( setEnabled(bool) ) ); button->setEnabled( FALSE ); - button = new TQToolButton( icon_home, tr("Home"), "", browser, TQ_SLOT(home()), toolbar ); + button = new TQToolButton( icon_home, tr("Home"), "", browser, TQ_SLOT(home()), toolbar ); toolbar->addSeparator(); @@ -267,10 +267,10 @@ void HelpWindow::setForwardAvailable( bool b) void HelpWindow::sourceChanged( const TQString& url ) { - if ( browser->documentTitle().isNull() ) + if ( browser->documentTitle().isNull() ) setCaption( "TQt Example - Helpviewer - " + url ); else - setCaption( "TQt Example - Helpviewer - " + browser->documentTitle() ) ; + setCaption( "TQt Example - Helpviewer - " + browser->documentTitle() ) ; if ( !url.isEmpty() && pathCombo ) { bool exists = FALSE; @@ -329,13 +329,13 @@ void HelpWindow::openFile() #ifndef TQT_NO_FILEDIALOG TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null, this ); if ( !fn.isEmpty() ) - browser->setSource( fn ); + browser->setSource( fn ); #endif } void HelpWindow::newWindow() { - ( new HelpWindow(browser->source(), "qbrowser") )->show(); + ( new HelpWindow(browser->source(), "qbrowser") )->show(); } void HelpWindow::print() @@ -351,11 +351,11 @@ void HelpWindow::print() int dpiy = metrics.logicalDpiY(); int margin = (int) ( (2/2.54)*dpiy ); // 2 cm margins TQRect view( margin, margin, metrics.width() - 2*margin, metrics.height() - 2*margin ); - TQSimpleRichText richText( browser->text(), + TQSimpleRichText richText( browser->text(), TQFont(), - browser->context(), - browser->styleSheet(), - browser->mimeSourceFactory(), + browser->context(), + browser->styleSheet(), + browser->mimeSourceFactory(), view.height() ); richText.setWidth( &p, view.width() ); int page = 1; @@ -376,7 +376,7 @@ void HelpWindow::print() void HelpWindow::pathSelected( const TQString &_path ) { - browser->setSource( _path ); + browser->setSource( _path ); if ( mHistory.values().contains(_path) ) mHistory[ hist->insertItem( _path ) ] = _path; } @@ -408,18 +408,18 @@ void HelpWindow::readBookmarks() void HelpWindow::histChosen( int i ) { if ( mHistory.contains( i ) ) - browser->setSource( mHistory[ i ] ); + browser->setSource( mHistory[ i ] ); } void HelpWindow::bookmChosen( int i ) { if ( mBookmarks.contains( i ) ) - browser->setSource( mBookmarks[ i ] ); + browser->setSource( mBookmarks[ i ] ); } void HelpWindow::addBookmark() { - mBookmarks[ bookm->insertItem( caption() ) ] = browser->context(); + mBookmarks[ bookm->insertItem( caption() ) ] = browser->context(); } diff --git a/doc/html/hierarchy.html b/doc/html/hierarchy.html index 42389913e..eda73d451 100644 --- a/doc/html/hierarchy.html +++ b/doc/html/hierarchy.html @@ -334,7 +334,7 @@ classes in the TQt API.
  • TQColorDrag
  • TQUriDrag -
  • TQTextDrag +
  • TQTextDrag
  • TQEditorFactory
  • TQSplitter @@ -522,7 +522,7 @@ classes in the TQt API.
  • TQWhatsThis
  • TQTableSelection -
  • TQTextCodec +
  • TQTextCodec -
  • TQTextCodecPlugin -
  • TQTextDecoder -
  • TQTextEncoder -
  • TQTextStream +
  • TQTextCodecPlugin +
  • TQTextDecoder +
  • TQTextEncoder +
  • TQTextStream
  • TQThreadStorage
  • TQTime diff --git a/doc/html/httpd-example.html b/doc/html/httpd-example.html index 32b502475..124439989 100644 --- a/doc/html/httpd-example.html +++ b/doc/html/httpd-example.html @@ -54,10 +54,10 @@ sending the page, it closes the connection. #include <ntqserversocket.h> #include <ntqapplication.h> #include <ntqmainwindow.h> -#include <ntqtextstream.h> +#include <tqtextstream.h> #include <ntqvbox.h> #include <ntqlabel.h> -#include <ntqtextview.h> +#include <tqtextview.h> #include <ntqpushbutton.h> // HttpDaemon is the the class that implements the simple HTTP server. @@ -102,8 +102,8 @@ private slots: if ( socket->canReadLine() ) { TQStringList tokens = TQStringList::split( TQRegExp("[ \r\n][ \r\n]*"), socket->readLine() ); if ( tokens[0] == "GET" ) { - TQTextStream os( socket ); - os.setEncoding( TQTextStream::UnicodeUTF8 ); + TQTextStream os( socket ); + os.setEncoding( TQTextStream::UnicodeUTF8 ); os << "HTTP/1.0 200 Ok\r\n" "Content-Type: text/html; charset=\"utf-8\"\r\n" "\r\n" @@ -139,7 +139,7 @@ public: ).arg( httpd->port() ); TQLabel *lb = new TQLabel( itext, this ); lb->setAlignment( AlignHCenter ); - infoText = new TQTextView( this ); + infoText = new TQTextView( this ); TQPushButton *quit = new TQPushButton( "quit" , this ); connect( httpd, TQ_SIGNAL(newConnect()), TQ_SLOT(newConnect()) ); @@ -155,19 +155,19 @@ public: private slots: void newConnect() { - infoText->append( "New connection" ); + infoText->append( "New connection" ); } void endConnect() { - infoText->append( "Connection closed\n\n" ); + infoText->append( "Connection closed\n\n" ); } void wroteToClient() { - infoText->append( "Wrote to client" ); + infoText->append( "Wrote to client" ); } private: - TQTextView *infoText; + TQTextView *infoText; }; diff --git a/doc/html/i18n-example.html b/doc/html/i18n-example.html index 884cd6aa5..5f976c919 100644 --- a/doc/html/i18n-example.html +++ b/doc/html/i18n-example.html @@ -175,7 +175,7 @@ void MyWidget::initChoices(TQWidget* parent) #include <ntqbuttongroup.h> #include <ntqpushbutton.h> #include <ntqsignalmapper.h> -#include <ntqtextcodec.h> +#include <tqtextcodec.h> #include <stdlib.h> #if defined(Q_OS_UNIX) @@ -275,7 +275,7 @@ int main( int argc, char** argv ) r = 2; } else { TQButtonGroup *bg = new TQButtonGroup(4,TQt::Vertical,"Choose Locales",&dlg); - TQString loc = TQTextCodec::locale(); + TQString loc = TQTextCodec::locale(); for ( int i=0; qm[i]; i++ ) { qmb[i] = new TQCheckBox((const char*)qm[i],bg); qmb[i]->setChecked( loc == qm[i] ); diff --git a/doc/html/i18n.html b/doc/html/i18n.html index 6c09191bf..e606ce293 100644 --- a/doc/html/i18n.html +++ b/doc/html/i18n.html @@ -133,7 +133,7 @@ the fl and fi ligatures used in typesetting US and European books.

    TQt tries to take care of all the special features listed above. You usually don't have to worry about these features so long as you use -TQt's input widgets (e.g. TQLineEdit, TQTextEdit, and derived classes) +TQt's input widgets (e.g. TQLineEdit, TQTextEdit, and derived classes) and TQt's display widgets (e.g. TQLabel).

    Support for these writing systems is transparent to the programmer and completely encapsulated in TQt's text engine. This means that you @@ -151,7 +151,7 @@ string. In some languages (e.g. Arabic or languages from the Indian subcontinent), the width and shape of a glyph changes depending on the surrounding characters. Writing input controls usually requires a certain knowledge of the scripts it is going to be used in. Usually -the easiest way is to subclass TQLineEdit or TQTextEdit. +the easiest way is to subclass TQLineEdit or TQTextEdit.

    The following sections give some information on the status of the internationalization (i18n) support in TQt. @@ -389,7 +389,7 @@ useful.)

    Support for Encodings

    -

    The TQTextCodec class and the facilities in TQTextStream make it easy to +

    The TQTextCodec class and the facilities in TQTextStream make it easy to support many input and output encodings for your users' data. When an application starts, the locale of the machine will determine the 8-bit encoding used when dealing with 8-bit data: such as for font @@ -402,8 +402,8 @@ would be:

         TQString string = ...; // some Unicode text
     
    -    TQTextCodec* codec = TQTextCodec::codecForName( "ISO 8859-5" );
    -    TQCString encoded_string = codec->fromUnicode( string );
    +    TQTextCodec* codec = TQTextCodec::codecForName( "ISO 8859-5" );
    +    TQCString encoded_string = codec->fromUnicode( string );
     
         ...; // use encoded_string in 8-bit operations
     
    @@ -421,8 +421,8 @@ conversion:

         TQCString encoded_string = ...; // Some ISO 8859-5 encoded text.
     
    -    TQTextCodec* codec = TQTextCodec::codecForName("ISO 8859-5");
    -    TQString string = codec->toUnicode(encoded_string);
    +    TQTextCodec* codec = TQTextCodec::codecForName("ISO 8859-5");
    +    TQString string = codec->toUnicode(encoded_string);
     
         ...; // Use string in all of TQt's TQString operations.
     
    @@ -434,18 +434,18 @@ need to process existing documents. In general, Unicode (UTF-16 or UTF-8) is best for information transferred between arbitrary people, while within a language or national group, a local standard is often more appropriate. The most important encoding to support is the one -returned by TQTextCodec::codecForLocale(), as this is the one the user +returned by TQTextCodec::codecForLocale(), as this is the one the user is most likely to need for communicating with other people and applications (this is the codec used by local8Bit()).

    TQt supports most of the more frequently used encodings natively. For a -complete list of supported encodings see the TQTextCodec +complete list of supported encodings see the TQTextCodec documentation.

    In some cases and for less frequently used encodings it may be -necessary to write your own TQTextCodec subclass. Depending on the +necessary to write your own TQTextCodec subclass. Depending on the urgency, it may be useful to contact Trolltech technical support or ask on the qt-interest mailing list to see if someone else is already working on supporting the encoding. A useful interim measure -can be to use the TQTextCodec::loadCharmapFile() function to build a +can be to use the TQTextCodec::loadCharmapFile() function to build a data-driven codec, although this approach has a memory and speed penalty, especially with dynamically loaded libraries. For details of writing your own TQTextCodec, see the main TQTextCodec class @@ -517,7 +517,7 @@ this is the Unix convention (see TQFile::setEncodingFunction() to explore alternative encodings).

  • File I/O defaults to the local 8-bit encoding, -with Unicode options in TQTextStream. +with Unicode options in TQTextStream.

    Windows

    @@ -553,9 +553,9 @@ results, use complete locales from your system vendor.
  • TQHebrewCodecConversion to and from visually ordered Hebrew
    TQJisCodecConversion to and from JIS character sets
    TQSjisCodecConversion to and from Shift-JIS -
    TQTextCodecConversion between text encodings -
    TQTextDecoderState-based decoder -
    TQTextEncoderState-based encoder +
    TQTextCodecConversion between text encodings +
    TQTextDecoderState-based decoder +
    TQTextEncoderState-based encoder
    TQTranslatorInternationalization support for text output
    TQTranslatorMessageTranslator message and its properties
    TQTsciiCodecConversion to and from the Tamil TSCII encoding diff --git a/doc/html/iconview-simple_dd-main-cpp.html b/doc/html/iconview-simple_dd-main-cpp.html index 8a36a84b2..05393a55a 100644 --- a/doc/html/iconview-simple_dd-main-cpp.html +++ b/doc/html/iconview-simple_dd-main-cpp.html @@ -120,7 +120,7 @@ const char* green_icon[]={ void DDListBox::dragEnterEvent( TQDragEnterEvent *evt ) { - if ( TQTextDrag::canDecode( evt ) ) + if ( TQTextDrag::canDecode( evt ) ) evt->accept(); } @@ -129,7 +129,7 @@ const char* green_icon[]={ { TQString text; - if ( TQTextDrag::decode( evt, text ) ) + if ( TQTextDrag::decode( evt, text ) ) insertItem( text ); } @@ -144,7 +144,7 @@ const char* green_icon[]={ void DDListBox::mouseMoveEvent( TQMouseEvent * ) { if ( dragging ) { - TQDragObject *d = new TQTextDrag( currentText(), this ); + TQDragObject *d = new TQTextDrag( currentText(), this ); d->dragCopy(); // do NOT delete d. dragging = FALSE; } @@ -166,7 +166,7 @@ const char* green_icon[]={ { TQString label; - if ( TQTextDrag::decode( evt, label ) ) + if ( TQTextDrag::decode( evt, label ) ) setText( label ); } @@ -175,14 +175,14 @@ const char* green_icon[]={ TQDragObject *DDIconView::dragObject() { - return new TQTextDrag( currentItem()->text(), this ); + return new TQTextDrag( currentItem()->text(), this ); } void DDIconView::slotNewItem( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ) { TQString label; - if ( TQTextDrag::decode( evt, label ) ) { + if ( TQTextDrag::decode( evt, label ) ) { DDIconViewItem *item = new DDIconViewItem( this, label ); item->setRenameEnabled( TRUE ); } diff --git a/doc/html/index b/doc/html/index index 8999a0cb0..ddca9f1ee 100644 --- a/doc/html/index +++ b/doc/html/index @@ -6662,259 +6662,259 @@ "QTabletEvent::xTilt" qtabletevent.html#xTilt "QTabletEvent::y" qtabletevent.html#y "QTabletEvent::yTilt" qtabletevent.html#yTilt -"QTextBrowser" ntqtextbrowser.html -"QTextBrowser::anchorClicked" ntqtextbrowser.html#anchorClicked -"QTextBrowser::backward" ntqtextbrowser.html#backward -"QTextBrowser::backwardAvailable" ntqtextbrowser.html#backwardAvailable -"QTextBrowser::forward" ntqtextbrowser.html#forward -"QTextBrowser::forwardAvailable" ntqtextbrowser.html#forwardAvailable -"QTextBrowser::highlighted" ntqtextbrowser.html#highlighted -"QTextBrowser::home" ntqtextbrowser.html#home -"QTextBrowser::keyPressEvent" ntqtextbrowser.html#keyPressEvent -"QTextBrowser::linkClicked" ntqtextbrowser.html#linkClicked -"QTextBrowser::modified" ntqtextbrowser.html#modified-prop -"QTextBrowser::overwriteMode" ntqtextbrowser.html#overwriteMode-prop -"QTextBrowser::readOnly" ntqtextbrowser.html#readOnly-prop -"QTextBrowser::reload" ntqtextbrowser.html#reload -"QTextBrowser::setSource" ntqtextbrowser.html#setSource -"QTextBrowser::setText" ntqtextbrowser.html#setText -"QTextBrowser::source" ntqtextbrowser.html#source -"QTextBrowser::source" ntqtextbrowser.html#source-prop -"QTextBrowser::sourceChanged" ntqtextbrowser.html#sourceChanged -"QTextBrowser::undoDepth" ntqtextbrowser.html#undoDepth-prop -"QTextBrowser::undoRedoEnabled" ntqtextbrowser.html#undoRedoEnabled-prop -"QTextCodec" ntqtextcodec.html -"QTextCodec::canEncode" ntqtextcodec.html#canEncode -"QTextCodec::codecForCStrings" ntqtextcodec.html#codecForCStrings -"QTextCodec::codecForContent" ntqtextcodec.html#codecForContent -"QTextCodec::codecForIndex" ntqtextcodec.html#codecForIndex -"QTextCodec::codecForLocale" ntqtextcodec.html#codecForLocale -"QTextCodec::codecForMib" ntqtextcodec.html#codecForMib -"QTextCodec::codecForName" ntqtextcodec.html#codecForName -"QTextCodec::codecForTr" ntqtextcodec.html#codecForTr -"QTextCodec::deleteAllCodecs" ntqtextcodec.html#deleteAllCodecs -"QTextCodec::fromUnicode" ntqtextcodec.html#fromUnicode -"QTextCodec::heuristicContentMatch" ntqtextcodec.html#heuristicContentMatch -"QTextCodec::heuristicNameMatch" ntqtextcodec.html#heuristicNameMatch -"QTextCodec::loadCharmap" ntqtextcodec.html#loadCharmap -"QTextCodec::loadCharmapFile" ntqtextcodec.html#loadCharmapFile -"QTextCodec::locale" ntqtextcodec.html#locale -"QTextCodec::makeDecoder" ntqtextcodec.html#makeDecoder -"QTextCodec::makeEncoder" ntqtextcodec.html#makeEncoder -"QTextCodec::mibEnum" ntqtextcodec.html#mibEnum -"QTextCodec::mimeName" ntqtextcodec.html#mimeName -"QTextCodec::name" ntqtextcodec.html#name -"QTextCodec::setCodecForCStrings" ntqtextcodec.html#setCodecForCStrings -"QTextCodec::setCodecForLocale" ntqtextcodec.html#setCodecForLocale -"QTextCodec::setCodecForTr" ntqtextcodec.html#setCodecForTr -"QTextCodec::simpleHeuristicNameMatch" ntqtextcodec.html#simpleHeuristicNameMatch -"QTextCodec::toUnicode" ntqtextcodec.html#toUnicode -"QTextCodec::~QTextCodec" ntqtextcodec.html#~QTextCodec -"QTextCodecPlugin" ntqtextcodecplugin.html -"QTextCodecPlugin::createForMib" ntqtextcodecplugin.html#createForMib -"QTextCodecPlugin::createForName" ntqtextcodecplugin.html#createForName -"QTextCodecPlugin::mibEnums" ntqtextcodecplugin.html#mibEnums -"QTextCodecPlugin::names" ntqtextcodecplugin.html#names -"QTextCodecPlugin::~QTextCodecPlugin" ntqtextcodecplugin.html#~QTextCodecPlugin -"QTextDecoder" qtextdecoder.html -"QTextDecoder::toUnicode" qtextdecoder.html#toUnicode -"QTextDecoder::~QTextDecoder" qtextdecoder.html#~QTextDecoder -"QTextDrag" qtextdrag.html -"QTextDrag::canDecode" qtextdrag.html#canDecode -"QTextDrag::decode" qtextdrag.html#decode -"QTextDrag::setSubtype" qtextdrag.html#setSubtype -"QTextDrag::setText" qtextdrag.html#setText -"QTextDrag::~QTextDrag" qtextdrag.html#~QTextDrag -"QTextEdit" ntqtextedit.html -"QTextEdit::AutoFormatting" ntqtextedit.html#AutoFormatting -"QTextEdit::CursorAction" ntqtextedit.html#CursorAction -"QTextEdit::KeyboardAction" ntqtextedit.html#KeyboardAction -"QTextEdit::VerticalAlignment" ntqtextedit.html#VerticalAlignment -"QTextEdit::WordWrap" ntqtextedit.html#WordWrap -"QTextEdit::WrapPolicy" ntqtextedit.html#WrapPolicy -"QTextEdit::alignment" ntqtextedit.html#alignment -"QTextEdit::anchorAt" ntqtextedit.html#anchorAt -"QTextEdit::append" ntqtextedit.html#append -"QTextEdit::autoFormatting" ntqtextedit.html#autoFormatting -"QTextEdit::autoFormatting" ntqtextedit.html#autoFormatting-prop -"QTextEdit::bold" ntqtextedit.html#bold -"QTextEdit::charAt" ntqtextedit.html#charAt -"QTextEdit::clear" ntqtextedit.html#clear -"QTextEdit::clearParagraphBackground" ntqtextedit.html#clearParagraphBackground -"QTextEdit::clicked" ntqtextedit.html#clicked -"QTextEdit::color" ntqtextedit.html#color -"QTextEdit::context" ntqtextedit.html#context -"QTextEdit::copy" ntqtextedit.html#copy -"QTextEdit::copyAvailable" ntqtextedit.html#copyAvailable -"QTextEdit::createPopupMenu" ntqtextedit.html#createPopupMenu -"QTextEdit::currentAlignmentChanged" ntqtextedit.html#currentAlignmentChanged -"QTextEdit::currentColorChanged" ntqtextedit.html#currentColorChanged -"QTextEdit::currentFont" ntqtextedit.html#currentFont -"QTextEdit::currentFontChanged" ntqtextedit.html#currentFontChanged -"QTextEdit::currentVerticalAlignmentChanged" ntqtextedit.html#currentVerticalAlignmentChanged -"QTextEdit::cursorPositionChanged" ntqtextedit.html#cursorPositionChanged -"QTextEdit::cut" ntqtextedit.html#cut -"QTextEdit::del" ntqtextedit.html#del -"QTextEdit::doKeyboardAction" ntqtextedit.html#doKeyboardAction -"QTextEdit::documentTitle" ntqtextedit.html#documentTitle -"QTextEdit::documentTitle" ntqtextedit.html#documentTitle-prop -"QTextEdit::doubleClicked" ntqtextedit.html#doubleClicked -"QTextEdit::ensureCursorVisible" ntqtextedit.html#ensureCursorVisible -"QTextEdit::family" ntqtextedit.html#family -"QTextEdit::find" ntqtextedit.html#find -"QTextEdit::focusNextPrevChild" ntqtextedit.html#focusNextPrevChild -"QTextEdit::getCursorPosition" ntqtextedit.html#getCursorPosition -"QTextEdit::getSelection" ntqtextedit.html#getSelection -"QTextEdit::hasSelectedText" ntqtextedit.html#hasSelectedText -"QTextEdit::hasSelectedText" ntqtextedit.html#hasSelectedText-prop -"QTextEdit::heightForWidth" ntqtextedit.html#heightForWidth -"QTextEdit::insert" ntqtextedit.html#insert -"QTextEdit::insertAt" ntqtextedit.html#insertAt -"QTextEdit::insertParagraph" ntqtextedit.html#insertParagraph -"QTextEdit::isModified" ntqtextedit.html#isModified -"QTextEdit::isOverwriteMode" ntqtextedit.html#isOverwriteMode -"QTextEdit::isReadOnly" ntqtextedit.html#isReadOnly -"QTextEdit::isRedoAvailable" ntqtextedit.html#isRedoAvailable -"QTextEdit::isUndoAvailable" ntqtextedit.html#isUndoAvailable -"QTextEdit::isUndoRedoEnabled" ntqtextedit.html#isUndoRedoEnabled -"QTextEdit::italic" ntqtextedit.html#italic -"QTextEdit::keyPressEvent" ntqtextedit.html#keyPressEvent -"QTextEdit::length" ntqtextedit.html#length -"QTextEdit::length" ntqtextedit.html#length-prop -"QTextEdit::lineOfChar" ntqtextedit.html#lineOfChar -"QTextEdit::lines" ntqtextedit.html#lines -"QTextEdit::linesOfParagraph" ntqtextedit.html#linesOfParagraph -"QTextEdit::linkUnderline" ntqtextedit.html#linkUnderline -"QTextEdit::linkUnderline" ntqtextedit.html#linkUnderline-prop -"QTextEdit::maxLogLines" ntqtextedit.html#maxLogLines -"QTextEdit::mimeSourceFactory" ntqtextedit.html#mimeSourceFactory -"QTextEdit::modificationChanged" ntqtextedit.html#modificationChanged -"QTextEdit::modified" ntqtextedit.html#modified-prop -"QTextEdit::moveCursor" ntqtextedit.html#moveCursor -"QTextEdit::optimCheckLimit" ntqtextedit.html#optimCheckLimit -"QTextEdit::overwriteMode" ntqtextedit.html#overwriteMode-prop -"QTextEdit::paper" ntqtextedit.html#paper -"QTextEdit::paper" ntqtextedit.html#paper-prop -"QTextEdit::paragraphAt" ntqtextedit.html#paragraphAt -"QTextEdit::paragraphBackgroundColor" ntqtextedit.html#paragraphBackgroundColor -"QTextEdit::paragraphLength" ntqtextedit.html#paragraphLength -"QTextEdit::paragraphRect" ntqtextedit.html#paragraphRect -"QTextEdit::paragraphs" ntqtextedit.html#paragraphs -"QTextEdit::paste" ntqtextedit.html#paste -"QTextEdit::pasteSpecial" ntqtextedit.html#pasteSpecial -"QTextEdit::pasteSubType" ntqtextedit.html#pasteSubType -"QTextEdit::placeCursor" ntqtextedit.html#placeCursor -"QTextEdit::pointSize" ntqtextedit.html#pointSize -"QTextEdit::readOnly" ntqtextedit.html#readOnly-prop -"QTextEdit::redo" ntqtextedit.html#redo -"QTextEdit::redoAvailable" ntqtextedit.html#redoAvailable -"QTextEdit::removeParagraph" ntqtextedit.html#removeParagraph -"QTextEdit::removeSelectedText" ntqtextedit.html#removeSelectedText -"QTextEdit::removeSelection" ntqtextedit.html#removeSelection -"QTextEdit::repaintChanged" ntqtextedit.html#repaintChanged -"QTextEdit::returnPressed" ntqtextedit.html#returnPressed -"QTextEdit::scrollToAnchor" ntqtextedit.html#scrollToAnchor -"QTextEdit::scrollToBottom" ntqtextedit.html#scrollToBottom -"QTextEdit::selectAll" ntqtextedit.html#selectAll -"QTextEdit::selectedText" ntqtextedit.html#selectedText -"QTextEdit::selectedText" ntqtextedit.html#selectedText-prop -"QTextEdit::selectionChanged" ntqtextedit.html#selectionChanged -"QTextEdit::setAlignment" ntqtextedit.html#setAlignment -"QTextEdit::setAutoFormatting" ntqtextedit.html#setAutoFormatting -"QTextEdit::setBold" ntqtextedit.html#setBold -"QTextEdit::setColor" ntqtextedit.html#setColor -"QTextEdit::setCurrentFont" ntqtextedit.html#setCurrentFont -"QTextEdit::setCursorPosition" ntqtextedit.html#setCursorPosition -"QTextEdit::setFamily" ntqtextedit.html#setFamily -"QTextEdit::setItalic" ntqtextedit.html#setItalic -"QTextEdit::setLinkUnderline" ntqtextedit.html#setLinkUnderline -"QTextEdit::setMaxLogLines" ntqtextedit.html#setMaxLogLines -"QTextEdit::setMimeSourceFactory" ntqtextedit.html#setMimeSourceFactory -"QTextEdit::setModified" ntqtextedit.html#setModified -"QTextEdit::setOverwriteMode" ntqtextedit.html#setOverwriteMode -"QTextEdit::setPaper" ntqtextedit.html#setPaper -"QTextEdit::setParagraphBackgroundColor" ntqtextedit.html#setParagraphBackgroundColor -"QTextEdit::setPointSize" ntqtextedit.html#setPointSize -"QTextEdit::setReadOnly" ntqtextedit.html#setReadOnly -"QTextEdit::setSelection" ntqtextedit.html#setSelection -"QTextEdit::setSelectionAttributes" ntqtextedit.html#setSelectionAttributes -"QTextEdit::setStyleSheet" ntqtextedit.html#setStyleSheet -"QTextEdit::setTabChangesFocus" ntqtextedit.html#setTabChangesFocus -"QTextEdit::setTabStopWidth" ntqtextedit.html#setTabStopWidth -"QTextEdit::setText" ntqtextedit.html#setText -"QTextEdit::setTextFormat" ntqtextedit.html#setTextFormat -"QTextEdit::setUnderline" ntqtextedit.html#setUnderline -"QTextEdit::setUndoDepth" ntqtextedit.html#setUndoDepth -"QTextEdit::setUndoRedoEnabled" ntqtextedit.html#setUndoRedoEnabled -"QTextEdit::setVerticalAlignment" ntqtextedit.html#setVerticalAlignment -"QTextEdit::setWordWrap" ntqtextedit.html#setWordWrap -"QTextEdit::setWrapColumnOrWidth" ntqtextedit.html#setWrapColumnOrWidth -"QTextEdit::setWrapPolicy" ntqtextedit.html#setWrapPolicy -"QTextEdit::styleSheet" ntqtextedit.html#styleSheet -"QTextEdit::sync" ntqtextedit.html#sync -"QTextEdit::syntaxHighlighter" ntqtextedit.html#syntaxHighlighter -"QTextEdit::tabChangesFocus" ntqtextedit.html#tabChangesFocus -"QTextEdit::tabChangesFocus" ntqtextedit.html#tabChangesFocus-prop -"QTextEdit::tabStopWidth" ntqtextedit.html#tabStopWidth -"QTextEdit::tabStopWidth" ntqtextedit.html#tabStopWidth-prop -"QTextEdit::text" ntqtextedit.html#text -"QTextEdit::text" ntqtextedit.html#text-prop -"QTextEdit::textChanged" ntqtextedit.html#textChanged -"QTextEdit::textCursor" ntqtextedit.html#textCursor -"QTextEdit::textFormat" ntqtextedit.html#textFormat -"QTextEdit::textFormat" ntqtextedit.html#textFormat-prop -"QTextEdit::underline" ntqtextedit.html#underline -"QTextEdit::undo" ntqtextedit.html#undo -"QTextEdit::undoAvailable" ntqtextedit.html#undoAvailable -"QTextEdit::undoDepth" ntqtextedit.html#undoDepth -"QTextEdit::undoDepth" ntqtextedit.html#undoDepth-prop -"QTextEdit::undoRedoEnabled" ntqtextedit.html#undoRedoEnabled-prop -"QTextEdit::wordWrap" ntqtextedit.html#wordWrap -"QTextEdit::wordWrap" ntqtextedit.html#wordWrap-prop -"QTextEdit::wrapColumnOrWidth" ntqtextedit.html#wrapColumnOrWidth -"QTextEdit::wrapColumnOrWidth" ntqtextedit.html#wrapColumnOrWidth-prop -"QTextEdit::wrapPolicy" ntqtextedit.html#wrapPolicy -"QTextEdit::wrapPolicy" ntqtextedit.html#wrapPolicy-prop -"QTextEdit::zoomIn" ntqtextedit.html#zoomIn -"QTextEdit::zoomOut" ntqtextedit.html#zoomOut -"QTextEdit::zoomTo" ntqtextedit.html#zoomTo -"QTextEncoder" qtextencoder.html -"QTextEncoder::fromUnicode" qtextencoder.html#fromUnicode -"QTextEncoder::~QTextEncoder" qtextencoder.html#~QTextEncoder -"QTextIStream" qtextistream.html -"QTextOStream" qtextostream.html -"QTextStream" ntqtextstream.html -"QTextStream::Encoding" ntqtextstream.html#Encoding -"QTextStream::atEnd" ntqtextstream.html#atEnd -"QTextStream::codec" ntqtextstream.html#codec -"QTextStream::device" ntqtextstream.html#device -"QTextStream::fill" ntqtextstream.html#fill -"QTextStream::flags" ntqtextstream.html#flags -"QTextStream::operator<<" ntqtextstream.html#operator-lt-lt -"QTextStream::operator>>" ntqtextstream.html#operator-gt-gt -"QTextStream::precision" ntqtextstream.html#precision -"QTextStream::read" ntqtextstream.html#read -"QTextStream::readLine" ntqtextstream.html#readLine -"QTextStream::readRawBytes" ntqtextstream.html#readRawBytes -"QTextStream::reset" ntqtextstream.html#reset -"QTextStream::setCodec" ntqtextstream.html#setCodec -"QTextStream::setDevice" ntqtextstream.html#setDevice -"QTextStream::setEncoding" ntqtextstream.html#setEncoding -"QTextStream::setf" ntqtextstream.html#setf -"QTextStream::skipWhiteSpace" ntqtextstream.html#skipWhiteSpace -"QTextStream::ts_getbuf" ntqtextstream.html#ts_getbuf -"QTextStream::ts_getline" ntqtextstream.html#ts_getline -"QTextStream::ts_putc" ntqtextstream.html#ts_putc -"QTextStream::unsetDevice" ntqtextstream.html#unsetDevice -"QTextStream::unsetf" ntqtextstream.html#unsetf -"QTextStream::width" ntqtextstream.html#width -"QTextStream::writeRawBytes" ntqtextstream.html#writeRawBytes -"QTextStream::~QTextStream" ntqtextstream.html#~QTextStream -"QTextView::modified" ntqtextview.html#modified-prop -"QTextView::overwriteMode" ntqtextview.html#overwriteMode-prop -"QTextView::readOnly" ntqtextview.html#readOnly-prop -"QTextView::undoDepth" ntqtextview.html#undoDepth-prop -"QTextView::undoRedoEnabled" ntqtextview.html#undoRedoEnabled-prop +"TQTextBrowser" tqtextbrowser.html +"TQTextBrowser::anchorClicked" tqtextbrowser.html#anchorClicked +"TQTextBrowser::backward" tqtextbrowser.html#backward +"TQTextBrowser::backwardAvailable" tqtextbrowser.html#backwardAvailable +"TQTextBrowser::forward" tqtextbrowser.html#forward +"TQTextBrowser::forwardAvailable" tqtextbrowser.html#forwardAvailable +"TQTextBrowser::highlighted" tqtextbrowser.html#highlighted +"TQTextBrowser::home" tqtextbrowser.html#home +"TQTextBrowser::keyPressEvent" tqtextbrowser.html#keyPressEvent +"TQTextBrowser::linkClicked" tqtextbrowser.html#linkClicked +"TQTextBrowser::modified" tqtextbrowser.html#modified-prop +"TQTextBrowser::overwriteMode" tqtextbrowser.html#overwriteMode-prop +"TQTextBrowser::readOnly" tqtextbrowser.html#readOnly-prop +"TQTextBrowser::reload" tqtextbrowser.html#reload +"TQTextBrowser::setSource" tqtextbrowser.html#setSource +"TQTextBrowser::setText" tqtextbrowser.html#setText +"TQTextBrowser::source" tqtextbrowser.html#source +"TQTextBrowser::source" tqtextbrowser.html#source-prop +"TQTextBrowser::sourceChanged" tqtextbrowser.html#sourceChanged +"TQTextBrowser::undoDepth" tqtextbrowser.html#undoDepth-prop +"TQTextBrowser::undoRedoEnabled" tqtextbrowser.html#undoRedoEnabled-prop +"TQTextCodec" tqtextcodec.html +"TQTextCodec::canEncode" tqtextcodec.html#canEncode +"TQTextCodec::codecForCStrings" tqtextcodec.html#codecForCStrings +"TQTextCodec::codecForContent" tqtextcodec.html#codecForContent +"TQTextCodec::codecForIndex" tqtextcodec.html#codecForIndex +"TQTextCodec::codecForLocale" tqtextcodec.html#codecForLocale +"TQTextCodec::codecForMib" tqtextcodec.html#codecForMib +"TQTextCodec::codecForName" tqtextcodec.html#codecForName +"TQTextCodec::codecForTr" tqtextcodec.html#codecForTr +"TQTextCodec::deleteAllCodecs" tqtextcodec.html#deleteAllCodecs +"TQTextCodec::fromUnicode" tqtextcodec.html#fromUnicode +"TQTextCodec::heuristicContentMatch" tqtextcodec.html#heuristicContentMatch +"TQTextCodec::heuristicNameMatch" tqtextcodec.html#heuristicNameMatch +"TQTextCodec::loadCharmap" tqtextcodec.html#loadCharmap +"TQTextCodec::loadCharmapFile" tqtextcodec.html#loadCharmapFile +"TQTextCodec::locale" tqtextcodec.html#locale +"TQTextCodec::makeDecoder" tqtextcodec.html#makeDecoder +"TQTextCodec::makeEncoder" tqtextcodec.html#makeEncoder +"TQTextCodec::mibEnum" tqtextcodec.html#mibEnum +"TQTextCodec::mimeName" tqtextcodec.html#mimeName +"TQTextCodec::name" tqtextcodec.html#name +"TQTextCodec::setCodecForCStrings" tqtextcodec.html#setCodecForCStrings +"TQTextCodec::setCodecForLocale" tqtextcodec.html#setCodecForLocale +"TQTextCodec::setCodecForTr" tqtextcodec.html#setCodecForTr +"TQTextCodec::simpleHeuristicNameMatch" tqtextcodec.html#simpleHeuristicNameMatch +"TQTextCodec::toUnicode" tqtextcodec.html#toUnicode +"TQTextCodec::~TQTextCodec" tqtextcodec.html#~TQTextCodec +"TQTextCodecPlugin" tqtextcodecplugin.html +"TQTextCodecPlugin::createForMib" tqtextcodecplugin.html#createForMib +"TQTextCodecPlugin::createForName" tqtextcodecplugin.html#createForName +"TQTextCodecPlugin::mibEnums" tqtextcodecplugin.html#mibEnums +"TQTextCodecPlugin::names" tqtextcodecplugin.html#names +"TQTextCodecPlugin::~TQTextCodecPlugin" tqtextcodecplugin.html#~TQTextCodecPlugin +"TQTextDecoder" tqtextdecoder.html +"TQTextDecoder::toUnicode" tqtextdecoder.html#toUnicode +"TQTextDecoder::~TQTextDecoder" tqtextdecoder.html#~TQTextDecoder +"TQTextDrag" tqtextdrag.html +"TQTextDrag::canDecode" tqtextdrag.html#canDecode +"TQTextDrag::decode" tqtextdrag.html#decode +"TQTextDrag::setSubtype" tqtextdrag.html#setSubtype +"TQTextDrag::setText" tqtextdrag.html#setText +"TQTextDrag::~TQTextDrag" tqtextdrag.html#~TQTextDrag +"TQTextEdit" tqtextedit.html +"TQTextEdit::AutoFormatting" tqtextedit.html#AutoFormatting +"TQTextEdit::CursorAction" tqtextedit.html#CursorAction +"TQTextEdit::KeyboardAction" tqtextedit.html#KeyboardAction +"TQTextEdit::VerticalAlignment" tqtextedit.html#VerticalAlignment +"TQTextEdit::WordWrap" tqtextedit.html#WordWrap +"TQTextEdit::WrapPolicy" tqtextedit.html#WrapPolicy +"TQTextEdit::alignment" tqtextedit.html#alignment +"TQTextEdit::anchorAt" tqtextedit.html#anchorAt +"TQTextEdit::append" tqtextedit.html#append +"TQTextEdit::autoFormatting" tqtextedit.html#autoFormatting +"TQTextEdit::autoFormatting" tqtextedit.html#autoFormatting-prop +"TQTextEdit::bold" tqtextedit.html#bold +"TQTextEdit::charAt" tqtextedit.html#charAt +"TQTextEdit::clear" tqtextedit.html#clear +"TQTextEdit::clearParagraphBackground" tqtextedit.html#clearParagraphBackground +"TQTextEdit::clicked" tqtextedit.html#clicked +"TQTextEdit::color" tqtextedit.html#color +"TQTextEdit::context" tqtextedit.html#context +"TQTextEdit::copy" tqtextedit.html#copy +"TQTextEdit::copyAvailable" tqtextedit.html#copyAvailable +"TQTextEdit::createPopupMenu" tqtextedit.html#createPopupMenu +"TQTextEdit::currentAlignmentChanged" tqtextedit.html#currentAlignmentChanged +"TQTextEdit::currentColorChanged" tqtextedit.html#currentColorChanged +"TQTextEdit::currentFont" tqtextedit.html#currentFont +"TQTextEdit::currentFontChanged" tqtextedit.html#currentFontChanged +"TQTextEdit::currentVerticalAlignmentChanged" tqtextedit.html#currentVerticalAlignmentChanged +"TQTextEdit::cursorPositionChanged" tqtextedit.html#cursorPositionChanged +"TQTextEdit::cut" tqtextedit.html#cut +"TQTextEdit::del" tqtextedit.html#del +"TQTextEdit::doKeyboardAction" tqtextedit.html#doKeyboardAction +"TQTextEdit::documentTitle" tqtextedit.html#documentTitle +"TQTextEdit::documentTitle" tqtextedit.html#documentTitle-prop +"TQTextEdit::doubleClicked" tqtextedit.html#doubleClicked +"TQTextEdit::ensureCursorVisible" tqtextedit.html#ensureCursorVisible +"TQTextEdit::family" tqtextedit.html#family +"TQTextEdit::find" tqtextedit.html#find +"TQTextEdit::focusNextPrevChild" tqtextedit.html#focusNextPrevChild +"TQTextEdit::getCursorPosition" tqtextedit.html#getCursorPosition +"TQTextEdit::getSelection" tqtextedit.html#getSelection +"TQTextEdit::hasSelectedText" tqtextedit.html#hasSelectedText +"TQTextEdit::hasSelectedText" tqtextedit.html#hasSelectedText-prop +"TQTextEdit::heightForWidth" tqtextedit.html#heightForWidth +"TQTextEdit::insert" tqtextedit.html#insert +"TQTextEdit::insertAt" tqtextedit.html#insertAt +"TQTextEdit::insertParagraph" tqtextedit.html#insertParagraph +"TQTextEdit::isModified" tqtextedit.html#isModified +"TQTextEdit::isOverwriteMode" tqtextedit.html#isOverwriteMode +"TQTextEdit::isReadOnly" tqtextedit.html#isReadOnly +"TQTextEdit::isRedoAvailable" tqtextedit.html#isRedoAvailable +"TQTextEdit::isUndoAvailable" tqtextedit.html#isUndoAvailable +"TQTextEdit::isUndoRedoEnabled" tqtextedit.html#isUndoRedoEnabled +"TQTextEdit::italic" tqtextedit.html#italic +"TQTextEdit::keyPressEvent" tqtextedit.html#keyPressEvent +"TQTextEdit::length" tqtextedit.html#length +"TQTextEdit::length" tqtextedit.html#length-prop +"TQTextEdit::lineOfChar" tqtextedit.html#lineOfChar +"TQTextEdit::lines" tqtextedit.html#lines +"TQTextEdit::linesOfParagraph" tqtextedit.html#linesOfParagraph +"TQTextEdit::linkUnderline" tqtextedit.html#linkUnderline +"TQTextEdit::linkUnderline" tqtextedit.html#linkUnderline-prop +"TQTextEdit::maxLogLines" tqtextedit.html#maxLogLines +"TQTextEdit::mimeSourceFactory" tqtextedit.html#mimeSourceFactory +"TQTextEdit::modificationChanged" tqtextedit.html#modificationChanged +"TQTextEdit::modified" tqtextedit.html#modified-prop +"TQTextEdit::moveCursor" tqtextedit.html#moveCursor +"TQTextEdit::optimCheckLimit" tqtextedit.html#optimCheckLimit +"TQTextEdit::overwriteMode" tqtextedit.html#overwriteMode-prop +"TQTextEdit::paper" tqtextedit.html#paper +"TQTextEdit::paper" tqtextedit.html#paper-prop +"TQTextEdit::paragraphAt" tqtextedit.html#paragraphAt +"TQTextEdit::paragraphBackgroundColor" tqtextedit.html#paragraphBackgroundColor +"TQTextEdit::paragraphLength" tqtextedit.html#paragraphLength +"TQTextEdit::paragraphRect" tqtextedit.html#paragraphRect +"TQTextEdit::paragraphs" tqtextedit.html#paragraphs +"TQTextEdit::paste" tqtextedit.html#paste +"TQTextEdit::pasteSpecial" tqtextedit.html#pasteSpecial +"TQTextEdit::pasteSubType" tqtextedit.html#pasteSubType +"TQTextEdit::placeCursor" tqtextedit.html#placeCursor +"TQTextEdit::pointSize" tqtextedit.html#pointSize +"TQTextEdit::readOnly" tqtextedit.html#readOnly-prop +"TQTextEdit::redo" tqtextedit.html#redo +"TQTextEdit::redoAvailable" tqtextedit.html#redoAvailable +"TQTextEdit::removeParagraph" tqtextedit.html#removeParagraph +"TQTextEdit::removeSelectedText" tqtextedit.html#removeSelectedText +"TQTextEdit::removeSelection" tqtextedit.html#removeSelection +"TQTextEdit::repaintChanged" tqtextedit.html#repaintChanged +"TQTextEdit::returnPressed" tqtextedit.html#returnPressed +"TQTextEdit::scrollToAnchor" tqtextedit.html#scrollToAnchor +"TQTextEdit::scrollToBottom" tqtextedit.html#scrollToBottom +"TQTextEdit::selectAll" tqtextedit.html#selectAll +"TQTextEdit::selectedText" tqtextedit.html#selectedText +"TQTextEdit::selectedText" tqtextedit.html#selectedText-prop +"TQTextEdit::selectionChanged" tqtextedit.html#selectionChanged +"TQTextEdit::setAlignment" tqtextedit.html#setAlignment +"TQTextEdit::setAutoFormatting" tqtextedit.html#setAutoFormatting +"TQTextEdit::setBold" tqtextedit.html#setBold +"TQTextEdit::setColor" tqtextedit.html#setColor +"TQTextEdit::setCurrentFont" tqtextedit.html#setCurrentFont +"TQTextEdit::setCursorPosition" tqtextedit.html#setCursorPosition +"TQTextEdit::setFamily" tqtextedit.html#setFamily +"TQTextEdit::setItalic" tqtextedit.html#setItalic +"TQTextEdit::setLinkUnderline" tqtextedit.html#setLinkUnderline +"TQTextEdit::setMaxLogLines" tqtextedit.html#setMaxLogLines +"TQTextEdit::setMimeSourceFactory" tqtextedit.html#setMimeSourceFactory +"TQTextEdit::setModified" tqtextedit.html#setModified +"TQTextEdit::setOverwriteMode" tqtextedit.html#setOverwriteMode +"TQTextEdit::setPaper" tqtextedit.html#setPaper +"TQTextEdit::setParagraphBackgroundColor" tqtextedit.html#setParagraphBackgroundColor +"TQTextEdit::setPointSize" tqtextedit.html#setPointSize +"TQTextEdit::setReadOnly" tqtextedit.html#setReadOnly +"TQTextEdit::setSelection" tqtextedit.html#setSelection +"TQTextEdit::setSelectionAttributes" tqtextedit.html#setSelectionAttributes +"TQTextEdit::setStyleSheet" tqtextedit.html#setStyleSheet +"TQTextEdit::setTabChangesFocus" tqtextedit.html#setTabChangesFocus +"TQTextEdit::setTabStopWidth" tqtextedit.html#setTabStopWidth +"TQTextEdit::setText" tqtextedit.html#setText +"TQTextEdit::setTextFormat" tqtextedit.html#setTextFormat +"TQTextEdit::setUnderline" tqtextedit.html#setUnderline +"TQTextEdit::setUndoDepth" tqtextedit.html#setUndoDepth +"TQTextEdit::setUndoRedoEnabled" tqtextedit.html#setUndoRedoEnabled +"TQTextEdit::setVerticalAlignment" tqtextedit.html#setVerticalAlignment +"TQTextEdit::setWordWrap" tqtextedit.html#setWordWrap +"TQTextEdit::setWrapColumnOrWidth" tqtextedit.html#setWrapColumnOrWidth +"TQTextEdit::setWrapPolicy" tqtextedit.html#setWrapPolicy +"TQTextEdit::styleSheet" tqtextedit.html#styleSheet +"TQTextEdit::sync" tqtextedit.html#sync +"TQTextEdit::syntaxHighlighter" tqtextedit.html#syntaxHighlighter +"TQTextEdit::tabChangesFocus" tqtextedit.html#tabChangesFocus +"TQTextEdit::tabChangesFocus" tqtextedit.html#tabChangesFocus-prop +"TQTextEdit::tabStopWidth" tqtextedit.html#tabStopWidth +"TQTextEdit::tabStopWidth" tqtextedit.html#tabStopWidth-prop +"TQTextEdit::text" tqtextedit.html#text +"TQTextEdit::text" tqtextedit.html#text-prop +"TQTextEdit::textChanged" tqtextedit.html#textChanged +"TQTextEdit::textCursor" tqtextedit.html#textCursor +"TQTextEdit::textFormat" tqtextedit.html#textFormat +"TQTextEdit::textFormat" tqtextedit.html#textFormat-prop +"TQTextEdit::underline" tqtextedit.html#underline +"TQTextEdit::undo" tqtextedit.html#undo +"TQTextEdit::undoAvailable" tqtextedit.html#undoAvailable +"TQTextEdit::undoDepth" tqtextedit.html#undoDepth +"TQTextEdit::undoDepth" tqtextedit.html#undoDepth-prop +"TQTextEdit::undoRedoEnabled" tqtextedit.html#undoRedoEnabled-prop +"TQTextEdit::wordWrap" tqtextedit.html#wordWrap +"TQTextEdit::wordWrap" tqtextedit.html#wordWrap-prop +"TQTextEdit::wrapColumnOrWidth" tqtextedit.html#wrapColumnOrWidth +"TQTextEdit::wrapColumnOrWidth" tqtextedit.html#wrapColumnOrWidth-prop +"TQTextEdit::wrapPolicy" tqtextedit.html#wrapPolicy +"TQTextEdit::wrapPolicy" tqtextedit.html#wrapPolicy-prop +"TQTextEdit::zoomIn" tqtextedit.html#zoomIn +"TQTextEdit::zoomOut" tqtextedit.html#zoomOut +"TQTextEdit::zoomTo" tqtextedit.html#zoomTo +"TQTextEncoder" tqtextencoder.html +"TQTextEncoder::fromUnicode" tqtextencoder.html#fromUnicode +"TQTextEncoder::~TQTextEncoder" tqtextencoder.html#~TQTextEncoder +"TQTextIStream" tqtextistream.html +"TQTextOStream" tqtextostream.html +"TQTextStream" tqtextstream.html +"TQTextStream::Encoding" tqtextstream.html#Encoding +"TQTextStream::atEnd" tqtextstream.html#atEnd +"TQTextStream::codec" tqtextstream.html#codec +"TQTextStream::device" tqtextstream.html#device +"TQTextStream::fill" tqtextstream.html#fill +"TQTextStream::flags" tqtextstream.html#flags +"TQTextStream::operator<<" tqtextstream.html#operator-lt-lt +"TQTextStream::operator>>" tqtextstream.html#operator-gt-gt +"TQTextStream::precision" tqtextstream.html#precision +"TQTextStream::read" tqtextstream.html#read +"TQTextStream::readLine" tqtextstream.html#readLine +"TQTextStream::readRawBytes" tqtextstream.html#readRawBytes +"TQTextStream::reset" tqtextstream.html#reset +"TQTextStream::setCodec" tqtextstream.html#setCodec +"TQTextStream::setDevice" tqtextstream.html#setDevice +"TQTextStream::setEncoding" tqtextstream.html#setEncoding +"TQTextStream::setf" tqtextstream.html#setf +"TQTextStream::skipWhiteSpace" tqtextstream.html#skipWhiteSpace +"TQTextStream::ts_getbuf" tqtextstream.html#ts_getbuf +"TQTextStream::ts_getline" tqtextstream.html#ts_getline +"TQTextStream::ts_putc" tqtextstream.html#ts_putc +"TQTextStream::unsetDevice" tqtextstream.html#unsetDevice +"TQTextStream::unsetf" tqtextstream.html#unsetf +"TQTextStream::width" tqtextstream.html#width +"TQTextStream::writeRawBytes" tqtextstream.html#writeRawBytes +"TQTextStream::~TQTextStream" tqtextstream.html#~TQTextStream +"TQTextView::modified" tqtextview.html#modified-prop +"TQTextView::overwriteMode" tqtextview.html#overwriteMode-prop +"TQTextView::readOnly" tqtextview.html#readOnly-prop +"TQTextView::undoDepth" tqtextview.html#undoDepth-prop +"TQTextView::undoRedoEnabled" tqtextview.html#undoRedoEnabled-prop "QThread" ntqthread.html "QThread::Priority" ntqthread.html#Priority "QThread::currentThread" ntqthread.html#currentThread diff --git a/doc/html/io.html b/doc/html/io.html index 758080efa..367b03c84 100644 --- a/doc/html/io.html +++ b/doc/html/io.html @@ -65,9 +65,9 @@ devices, processes, files etc. as well as manipulating files and directories.
    TQSocketBuffered TCP connection
    TQSocketDevicePlatform-independent low-level socket API
    TQSocketNotifierSupport for socket callbacks -
    TQTextIStreamConvenience class for input streams -
    TQTextOStreamConvenience class for output streams -
    TQTextStreamBasic functions for reading and writing text using a TQIODevice +
    TQTextIStreamConvenience class for input streams +
    TQTextOStreamConvenience class for output streams +
    TQTextStreamBasic functions for reading and writing text using a TQIODevice
    TQUrlURL parser and simplifies working with URLs
    TQUrlInfoStores information about URLs
    TQUrlOperatorCommon operations on URLs diff --git a/doc/html/keyfeatures30.html b/doc/html/keyfeatures30.html index 7583e2a5e..52b0b8ba5 100644 --- a/doc/html/keyfeatures30.html +++ b/doc/html/keyfeatures30.html @@ -54,7 +54,7 @@ languages.

    Many new classes have been added to the TQt Library. Amongst them are classes that provide a docking architecture (TQDockArea/TQDockWindow), a powerful rich text editor -(TQTextEdit), a class to store and access application settings +(TQTextEdit), a class to store and access application settings (TQSettings) and a class to create and communicate with processes (TQProcess).

    Apart from the changes in the library itself a lot has been done to @@ -115,7 +115,7 @@ optimized and extended to support editing. It allows editing formatted text with different fonts, colors, paragraph styles, tables and images. The editor supports different word wrap modes, command-based undo/redo, multiple selections, drag and drop, and many other -features. The new TQTextEdit engine is highly optimized for proccesing +features. The new TQTextEdit engine is highly optimized for proccesing and displaying large documents quickly and efficiently.

    Unicode

    diff --git a/doc/html/layout-example.html b/doc/html/layout-example.html index c178ef5f0..4a2ab99d5 100644 --- a/doc/html/layout-example.html +++ b/doc/html/layout-example.html @@ -116,7 +116,7 @@ public: // Make a big widget that will grab all space in the middle. TQMultiLineEdit *bigWidget = new TQMultiLineEdit( this ); - bigWidget->setText( "This widget will get all the remaining space" ); + bigWidget->setText( "This widget will get all the remaining space" ); bigWidget->setFrameStyle( TQFrame::Panel | TQFrame::Plain ); // Set vertical stretch factor to 10 to let the bigWidget stretch diff --git a/doc/html/linguist-manual-2.html b/doc/html/linguist-manual-2.html index 19db9a40c..468f38a4a 100644 --- a/doc/html/linguist-manual-2.html +++ b/doc/html/linguist-manual-2.html @@ -52,8 +52,8 @@ body { background: #ffffff; color: black; } superapp_no.ts \ superapp_se.ts -

    TQTextCodec::setCodecForTr() makes it possible to choose a 8-bit encoding for literal strings that appear within tr() calls. This is useful for applications whose source language is, for example, Chinese or Japanese. If no encoding is set, tr() uses Latin-1.

    -

    If you do use the TQTextCodec::codecForTr() mechanism in your application, TQt Linguist needs you to set the DEFAULTCODEC entry in the .pro file as well. For example:

    +

    TQTextCodec::setCodecForTr() makes it possible to choose a 8-bit encoding for literal strings that appear within tr() calls. This is useful for applications whose source language is, for example, Chinese or Japanese. If no encoding is set, tr() uses Latin-1.

    +

    If you do use the TQTextCodec::codecForTr() mechanism in your application, TQt Linguist needs you to set the DEFAULTCODEC entry in the .pro file as well. For example:

         DEFAULTCODEC    = ISO-8859-5
     
    diff --git a/doc/html/linguist-manual-4.html b/doc/html/linguist-manual-4.html index d1cb45ed0..f50dbe179 100644 --- a/doc/html/linguist-manual-4.html +++ b/doc/html/linguist-manual-4.html @@ -345,7 +345,7 @@ TRANSLATIONS = tt2_fr.ts \ translator.load( TQString("tt2_") + TQTextCodec::locale(), "." ); app.installTranslator( &translator ); -

    We choose which translation to use according to the current locale. TQTextCodec::locale() can be influenced by setting the LANG environment variable, for example. Notice that the use of a naming convention that incorporates the locale for .qm message files, (and .ts files), makes it easy to implement choosing the translation file according to locale.

    +

    We choose which translation to use according to the current locale. TQTextCodec::locale() can be influenced by setting the LANG environment variable, for example. Notice that the use of a naming convention that incorporates the locale for .qm message files, (and .ts files), makes it easy to implement choosing the translation file according to locale.

    If there is no .qm message file for the locale chosen the original source text will be used and no error raised.

    Translating to French and Dutch

    We'll begin by translating the example application into French. Start TQt Linguist with tt2_fr.ts. You should get the seven source texts ("&Up", "&Left", etc.) grouped in two contexts ("ArrowPad" and "MainWindow").

    diff --git a/doc/html/mail-example.html b/doc/html/mail-example.html index acd2640e5..0ac4f8d9b 100644 --- a/doc/html/mail-example.html +++ b/doc/html/mail-example.html @@ -90,7 +90,7 @@ private: TQString from; TQString rcpt; TQSocket *socket; - TQTextStream * t; + TQTextStream * t; int state; TQString response; TQDns * mxLookup; @@ -113,7 +113,7 @@ private: #include "smtp.h" -#include <ntqtextstream.h> +#include <tqtextstream.h> #include <ntqsocket.h> #include <ntqdns.h> #include <ntqtimer.h> @@ -171,7 +171,7 @@ void Smtp::dnsLookupHelper() emit status( tr( "Connecting to %1" ).arg( s.first().name ) ); socket->connectToHost( s.first().name, 25 ); - t = new TQTextStream( socket ); + t = new TQTextStream( socket ); } diff --git a/doc/html/mainclasses.html b/doc/html/mainclasses.html index 17fcb4a80..0102955b9 100644 --- a/doc/html/mainclasses.html +++ b/doc/html/mainclasses.html @@ -221,7 +221,7 @@ classes), see TQt's Classes.
    TQRect -TQTextBrowser +TQTextBrowser TQWidgetStack
    TQRegExp -TQTextEdit +TQTextEdit TQWizard
    S TQScrollView -TQTextStream +TQTextStream TQWorkspace
    - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQTextBrowser Class Reference

    - -

    The TQTextBrowser class provides a rich text browser with hypertext navigation. -More... -

    #include <ntqtextbrowser.h> -

    Inherits TQTextEdit. -

    List of all member functions. -

    Public Members

    -
      -
    • TQTextBrowser ( TQWidget * parent = 0, const char * name = 0 )
    • -
    • TQString source () const
    • -
    -

    Public Slots

    - -

    Signals

    - -

    Properties

    -
      -
    • bool modified - whether the contents have been modified  (read only)
    • -
    • bool overwriteMode - this text browser's overwrite mode  (read only)
    • -
    • bool readOnly - whether the contents are read only  (read only)
    • -
    • TQString source - the name of the displayed document
    • -
    • int undoDepth - this text browser's undo depth  (read only)
    • -
    • bool undoRedoEnabled - whether undo and redo are enabled  (read only)
    • -
    -

    Protected Members

    - -

    Detailed Description

    - - -The TQTextBrowser class provides a rich text browser with hypertext navigation. -

    - - - -

    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, "#anchor"), 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 href -value as argument. You can track the current source by connetion -to the sourceChanged() signal. -

    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. -

    By using TQTextEdit::setMimeSourceFactory() you can provide your -own subclass of TQMimeSourceFactory. This makes it possible to -access data from anywhere, for example from a network or from a -database. See TQMimeSourceFactory::data() for details. -

    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: -

    -    mimeSourceFactory()->setExtensionType("qml", "text/utf8");
    -    
    - -This is to ensure that the factory is able to resolve the document -names. -

    TQTextBrowser interprets the tags it processes in accordance with -the default style sheet. Change the style sheet with -setStyleSheet(); see TQStyleSheet for details. -

    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 TQSimpleRichText or TQLabel. -

    -

    See also Advanced Widgets, Help System, and Text Related Classes. - -


    Member Function Documentation

    -

    TQTextBrowser::TQTextBrowser ( TQWidget * parent = 0, const char * name = 0 ) -

    -Constructs an empty TQTextBrowser called name, with parent parent. - -

    void TQTextBrowser::anchorClicked ( const TQString & name, const TQString & link ) [signal] -

    - -

    This signal is emitted when the user clicks an anchor. The link is -the value of the href i.e. the name of the target document. The name -is the name of the anchor. -

    See also linkClicked(). - -

    void TQTextBrowser::backward () [virtual slot] -

    -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. -

    See also forward() and backwardAvailable(). - -

    Example: helpviewer/helpwindow.cpp. -

    void TQTextBrowser::backwardAvailable ( bool available ) [signal] -

    - -

    This signal is emitted when the availability of backward() -changes. available is FALSE when the user is at home(); -otherwise it is TRUE. - -

    Example: helpviewer/helpwindow.cpp. -

    void TQTextBrowser::forward () [virtual slot] -

    -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. -

    See also backward() and forwardAvailable(). - -

    Example: helpviewer/helpwindow.cpp. -

    void TQTextBrowser::forwardAvailable ( bool available ) [signal] -

    - -

    This signal is emitted when the availability of forward() changes. -available is TRUE after the user navigates backward() and FALSE -when the user navigates or goes forward(). - -

    Example: helpviewer/helpwindow.cpp. -

    void TQTextBrowser::highlighted ( const TQString & link ) [signal] -

    -

    This signal is emitted when the user has selected but not -activated a link in the document. link is the value of the href i.e. the name of the target document. - -

    Example: helpviewer/helpwindow.cpp. -

    void TQTextBrowser::home () [virtual slot] -

    -Changes the document displayed to be the first document the -browser displayed. - -

    Example: helpviewer/helpwindow.cpp. -

    void TQTextBrowser::keyPressEvent ( TQKeyEvent * e ) [virtual protected] -

    -The event e is used to provide the following keyboard shortcuts: -
    -
    Keypress Action -
    Alt+Left Arrow backward() -
    Alt+Right Arrow forward() -
    Alt+Up Arrow home() -
    - -

    Reimplemented from TQTextEdit. -

    void TQTextBrowser::linkClicked ( const TQString & link ) [signal] -

    - -

    This signal is emitted when the user clicks a link. The link is -the value of the href i.e. the name of the target document. -

    The link 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. -

    See also anchorClicked() and context(). - -

    void TQTextBrowser::reload () [virtual slot] -

    -Reloads the current set source. - -

    void TQTextBrowser::setSource ( const TQString & name ) [virtual slot] -

    Sets the name of the displayed document to name. -See the "source" property for details. -

    TQString TQTextBrowser::source () const -

    Returns the name of the displayed document. -See the "source" property for details. -

    void TQTextBrowser::sourceChanged ( const TQString & src ) [signal] -

    - -

    This signal is emitted when the mime source has changed, src -being the new source. -

    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. - -

    Example: helpviewer/helpwindow.cpp. -


    Property Documentation

    -

    bool modified

    -

    This property holds whether the contents have been modified. -

    -

    bool overwriteMode

    -

    This property holds this text browser's overwrite mode. -

    -

    bool readOnly

    -

    This property holds whether the contents are read only. -

    -

    TQString source

    -

    This property holds the name of the displayed document. -

    This is a TQString::null if no document is displayed or if the -source is unknown. -

    Setting this property uses the mimeSourceFactory() to lookup the -named document. It also checks for optional anchors and scrolls -the document accordingly. -

    If the first tag in the document is <qt type=detail>, the -document is displayed as a popup rather than as new document in -the browser window itself. Otherwise, the document is displayed -normally in the text browser with the text set to the contents of -the named document with setText(). -

    If you are using the filesystem access capabilities of the mime -source factory, you must ensure that the factory knows about the -encoding of specified files; otherwise no data will be available. -The default factory handles a couple of common file extensions -such as *.html and *.txt with reasonable defaults. See -TQMimeSourceFactory::data() for details. - -

    Set this property's value with setSource() and get this property's value with source(). -

    int undoDepth

    -

    This property holds this text browser's undo depth. -

    -

    bool undoRedoEnabled

    -

    This property holds whether undo and redo are enabled. -

    -

    -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/ntqtextcodec.html b/doc/html/ntqtextcodec.html deleted file mode 100644 index 0cec4ec27..000000000 --- a/doc/html/ntqtextcodec.html +++ /dev/null @@ -1,611 +0,0 @@ - - - - - -TQTextCodec Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQTextCodec Class Reference

    - -

    The TQTextCodec class provides conversion between text encodings. -More... -

    Almost all the functions in this class are reentrant when TQt is built with thread support. The exceptions are ~TQTextCodec(), setCodecForTr(), setCodecForCStrings(), and TQTextCodec(). -

    #include <ntqtextcodec.h> -

    Inherited by TQBig5Codec, TQBig5hkscsCodec, TQEucJpCodec, TQEucKrCodec, TQGb18030Codec, TQJisCodec, TQHebrewCodec, TQSjisCodec, and TQTsciiCodec. -

    List of all member functions. -

    Public Members

    -
      -
    • virtual ~TQTextCodec ()
    • -
    • virtual const char * name () const = 0
    • -
    • virtual const char * mimeName () const
    • -
    • virtual int mibEnum () const = 0
    • -
    • virtual TQTextDecoder * makeDecoder () const
    • -
    • virtual TQTextEncoder * makeEncoder () const
    • -
    • virtual TQString toUnicode ( const char * chars, int len ) const
    • -
    • virtual TQCString fromUnicode ( const TQString & uc, int & lenInOut ) const
    • -
    • TQCString fromUnicode ( const TQString & uc ) const
    • -
    • TQString toUnicode ( const TQByteArray & a, int len ) const
    • -
    • TQString toUnicode ( const TQByteArray & a ) const
    • -
    • TQString toUnicode ( const TQCString & a, int len ) const
    • -
    • TQString toUnicode ( const TQCString & a ) const
    • -
    • TQString toUnicode ( const char * chars ) const
    • -
    • virtual bool canEncode ( TQChar ch ) const
    • -
    • virtual bool canEncode ( const TQString & s ) const
    • -
    • virtual int heuristicContentMatch ( const char * chars, int len ) const = 0
    • -
    • virtual int heuristicNameMatch ( const char * hint ) const
    • -
    -

    Static Public Members

    - -

    Protected Members

    - -

    Static Protected Members

    - -

    Detailed Description

    - - -The TQTextCodec class provides conversion between text encodings. - - -

    TQt 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. -

    TQt 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). -

    The supported encodings are: -

      -
    • Latin1 -
    • Big5 -- Chinese -
    • Big5-HKSCS -- Chinese -
    • eucJP -- Japanese -
    • eucKR -- Korean -
    • GB2312 -- Chinese -
    • GBK -- Chinese -
    • GB18030 -- Chinese -
    • JIS7 -- Japanese -
    • Shift-JIS -- Japanese -
    • TSCII -- Tamil -
    • utf8 -- Unicode, 8-bit -
    • utf16 -- Unicode -
    • KOI8-R -- Russian -
    • KOI8-U -- Ukrainian -
    • ISO8859-1 -- Western -
    • ISO8859-2 -- Central European -
    • ISO8859-3 -- Central European -
    • ISO8859-4 -- Baltic -
    • ISO8859-5 -- Cyrillic -
    • ISO8859-6 -- Arabic -
    • ISO8859-7 -- Greek -
    • ISO8859-8 -- Hebrew, visually ordered -
    • ISO8859-8-i -- Hebrew, logically ordered -
    • ISO8859-9 -- Turkish -
    • ISO8859-10 -
    • ISO8859-13 -
    • ISO8859-14 -
    • ISO8859-15 -- Western -
    • IBM 850 -
    • IBM 866 -
    • CP874 -
    • CP1250 -- Central European -
    • CP1251 -- Cyrillic -
    • CP1252 -- Western -
    • CP1253 -- Greek -
    • CP1254 -- Turkish -
    • CP1255 -- Hebrew -
    • CP1256 -- Arabic -
    • CP1257 -- Baltic -
    • CP1258 -
    • Apple Roman -
    • TIS-620 -- Thai -
    -

    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: -

    -    TQCString locallyEncoded = "..."; // text to convert
    -    TQTextCodec *codec = TQTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R
    -    TQString unicodeString = codec->toUnicode( locallyEncoded );
    -    
    - -

    After this, unicodeString holds the text converted to Unicode. -Converting a string from Unicode to the local encoding is just as -easy: -

    -    TQString unicodeString = "..."; // any Unicode text
    -    TQTextCodec *codec = TQTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R
    -    TQCString locallyEncoded = codec->fromUnicode( unicodeString );
    -    
    - -

    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. -

    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: -

    -    TQTextCodec *codec = TQTextCodec::codecForName( "Shift-JIS" );
    -    TQTextDecoder *decoder = codec->makeDecoder();
    -
    -    TQString unicodeString;
    -    while( receiving_data ) {
    -        TQByteArray chunk = new_data;
    -        unicodeString += decoder->toUnicode( chunk.data(), chunk.length() );
    -    }
    -    
    - -

    The TQTextDecoder object maintains state between chunks and therefore -works correctly even if a multi-byte character is split between -chunks. -

    -

    Creating your own Codec class -

    -

    Support for new text encodings can be added to TQt by creating -TQTextCodec subclasses. -

    Built-in codecs can be overridden by custom codecs since more -recently created TQTextCodec objects take precedence over earlier -ones. -

    You may find it more convenient to make your codec class available -as a plugin; see the plugin - documentation for more details. -

    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. -

    To add support for another 8-bit encoding to TQt, make a subclass -of TQTextCodec and implement at least the following methods: -

    -    const char* name() const
    -    
    - -Return the official name for the encoding. -

    -    int mibEnum() const
    -    
    - -Return the MIB enum for the encoding if it is listed in the -IANA character-sets encoding file. -

    If the encoding is multi-byte then it will have "state"; that is, -the interpretation of some bytes will be dependent on some preceding -bytes. For such encodings, you must implement: -

    -    TQTextDecoder* makeDecoder() const
    -    
    - -Return a TQTextDecoder that remembers incomplete multi-byte sequence -prefixes or other required state. -

    If the encoding does not require state, you should implement: -

    -    TQString toUnicode(const char* chars, int len) const
    -    
    - -Converts len characters from chars to Unicode. -

    The base TQTextCodec class has default implementations of the above -two functions, but they are mutually recursive, so you must -re-implement at least one of them, or both for improved efficiency. -

    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: -

    -    TQTextEncoder* makeEncoder() const
    -    
    - -Return a TQTextEncoder. -

    -    TQCString fromUnicode(const TQString& uc, int& lenInOut ) const
    -    
    - -Converts lenInOut characters (of type TQChar) from the start of -the string uc, returning a TQCString result, and also returning -the length of the result in -lenInOut. -

    Again, these are mutually recursive so only one needs to be implemented, -or both if greater efficiency is possible. -

    Finally, you must implement: -

    -    int heuristicContentMatch(const char* chars, int len) const
    -    
    - -Gives a value indicating how likely it is that len characters -from chars are in the encoding. -

    A good model for this function is the -TQWindowsLocalCodec::heuristicContentMatch function found in the TQt -sources. -

    A TQTextCodec subclass might have improved performance if you also -re-implement: -

    -    bool canEncode( TQChar ) const
    -    
    - -Test if a Unicode character can be encoded. -

    -    bool canEncode( const TQString& ) const
    -    
    - -Test if a string of Unicode characters can be encoded. -

    -    int heuristicNameMatch(const char* hint) const
    -    
    - -Test if a possibly non-standard name is referring to the codec. -

    Codecs can also be created as plugins. -

    See also Internationalization with TQt. - -


    Member Function Documentation

    -

    TQTextCodec::TQTextCodec () [protected] -

    Warning: This function is not reentrant.

    - - -

    Constructs a TQTextCodec, and gives it the highest precedence. The -TQTextCodec should always be constructed on the heap (i.e. with new). TQt takes ownership and will delete it when the application -terminates. - -

    TQTextCodec::~TQTextCodec () [virtual] -

    Warning: This function is not reentrant.

    - - -

    Destroys the TQTextCodec. Note that you should not delete codecs -yourself: once created they become TQt's responsibility. - -

    bool TQTextCodec::canEncode ( TQChar ch ) const [virtual] -

    -Returns TRUE if the Unicode character ch can be fully encoded -with this codec; otherwise returns FALSE. The default -implementation tests if the result of toUnicode(fromUnicode(ch)) -is the original ch. Subclasses may be able to improve the -efficiency. - -

    bool TQTextCodec::canEncode ( const TQString & s ) const [virtual] -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    s contains the string being tested for encode-ability. - -

    TQTextCodec * TQTextCodec::codecForCStrings () [static] -

    - -

    Returns the codec used by TQString to convert to and from const -char* and TQCStrings. If this function returns 0 (the default), -TQString assumes Latin-1. -

    See also setCodecForCStrings(). - -

    TQTextCodec * TQTextCodec::codecForContent ( const char * chars, int len ) [static] -

    -Searches all installed TQTextCodec objects, returning the one which -most recognizes the given content. May return 0. -

    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. -

    chars contains the string to check, and len contains the -number of characters in the string to use. -

    See also heuristicContentMatch(). - -

    Example: qwerty/qwerty.cpp. -

    TQTextCodec * TQTextCodec::codecForIndex ( int i ) [static] -

    -Returns the TQTextCodec i positions from the most recently -inserted codec, or 0 if there is no such TQTextCodec. Thus, -codecForIndex(0) returns the most recently created TQTextCodec. - -

    Example: qwerty/qwerty.cpp. -

    TQTextCodec * TQTextCodec::codecForLocale () [static] -

    Returns a pointer to the codec most suitable for this locale. -

    Example: qwerty/qwerty.cpp. -

    TQTextCodec * TQTextCodec::codecForMib ( int mib ) [static] -

    -Returns the TQTextCodec which matches the MIBenum mib. - -

    TQTextCodec * TQTextCodec::codecForName ( const char * name, int accuracy = 0 ) [static] -

    -Searches all installed TQTextCodec objects and returns the one -which best matches name; the match is case-insensitive. Returns -0 if no codec's heuristicNameMatch() reports a match better than -accuracy, or if name is a null string. -

    See also heuristicNameMatch(). - -

    TQTextCodec * TQTextCodec::codecForTr () [static] -

    - -

    Returns the codec used by TQObject::tr() on its argument. If this -function returns 0 (the default), tr() assumes Latin-1. -

    See also setCodecForTr(). - -

    void TQTextCodec::deleteAllCodecs () [static] -

    -Deletes all the created codecs. -

    Warning: Do not call this function. -

    TQApplication 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. -

    If you are using the utility classes (like TQString) but not using -TQApplication, calling this function at the very end of your -application may be helpful for chasing down memory leaks by -eliminating any TQTextCodec objects. - -

    TQCString TQTextCodec::fromUnicode ( const TQString & uc, int & lenInOut ) const [virtual] -

    -TQTextCodec subclasses must reimplement either this function or -makeEncoder(). It converts the first lenInOut characters of uc from Unicode to the encoding of the subclass. If lenInOut is -negative or too large, the length of uc is used instead. -

    Converts lenInOut characters (not bytes) from uc, producing -a TQCString. lenInOut will be set to the length of the result (in bytes). -

    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 must reimplement one function or the other to -avoid infinite recursion. - -

    Reimplemented in TQHebrewCodec. -

    TQCString TQTextCodec::fromUnicode ( const TQString & uc ) const -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    uc is the unicode source string. - -

    int TQTextCodec::heuristicContentMatch ( const char * chars, int len ) const [pure virtual] -

    - -

    TQTextCodec subclasses must reimplement this function. It examines -the first len bytes of chars 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 len. Thus, most decoders will return -1, 0, -or -len. -

    The characters are not null terminated. -

    See also codecForContent(). - -

    int TQTextCodec::heuristicNameMatch ( const char * hint ) const [virtual] -

    -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 hint. -

    A good match returns a positive number around the length of the -string. A bad match is negative. -

    The default implementation calls simpleHeuristicNameMatch() with -the name of the codec. - -

    TQTextCodec * TQTextCodec::loadCharmap ( TQIODevice * iod ) [static] -

    -Reads a POSIX2 charmap definition from iod. -The parser recognizes the following lines: -

    -  <code_set_name> name
    -  <escape_char> character
    -  % alias alias
    -  CHARMAP
    -  <token> /xhexbyte <Uunicode> ...
    -  <token> /ddecbyte <Uunicode> ...
    -  <token> /octbyte <Uunicode> ...
    -  <token> /any/any... <Uunicode> ...
    -  END CHARMAP
    -
    -

    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. -

    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. -

    See also loadCharmapFile(). - -

    Example: qwerty/qwerty.cpp. -

    TQTextCodec * TQTextCodec::loadCharmapFile ( TQString filename ) [static] -

    -A convenience function for loadCharmap() that loads the charmap -definition from the file filename. - -

    const char * TQTextCodec::locale () [static] -

    -Returns a string representing the current language and -sublanguage, e.g. "pt" for Portuguese, or "pt_br" for Portuguese/Brazil. - -

    Example: i18n/main.cpp. -

    TQTextDecoder * TQTextCodec::makeDecoder () const [virtual] -

    -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. -

    The caller is responsible for deleting the returned object. - -

    TQTextEncoder * TQTextCodec::makeEncoder () const [virtual] -

    -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. -

    The caller is responsible for deleting the returned object. - -

    int TQTextCodec::mibEnum () const [pure virtual] -

    - -

    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. - -

    Reimplemented in TQEucJpCodec. -

    const char * TQTextCodec::mimeName () const [virtual] -

    -Returns the preferred mime name of the encoding as defined in the -IANA character-sets encoding file. - -

    Reimplemented in TQEucJpCodec, TQEucKrCodec, TQJisCodec, TQHebrewCodec, and TQSjisCodec. -

    const char * TQTextCodec::name () const [pure virtual] -

    - -

    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: -

      -
    • 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 hint, such as "iso8859-1" for Latin-1 fonts, -"koi8-r" for Russian KOI8 fonts. -The default algorithm of heuristicNameMatch() uses name(). -
    • Some applications may use this function to present -encodings to the end user. -
    - -

    Example: qwerty/qwerty.cpp. -

    void TQTextCodec::setCodecForCStrings ( TQTextCodec * c ) [static] -

    Warning: This function is not reentrant.

    - - - -

    Sets the codec used by TQString to convert to and from const char* -and TQCStrings. If c is 0 (the default), TQString assumes Latin-1. -

    Warning: 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. -

    See also codecForCStrings() and setCodecForTr(). - -

    void TQTextCodec::setCodecForLocale ( TQTextCodec * c ) [static] -

    -Set the codec to c; this will be returned by codecForLocale(). -This might be needed for some applications that want to use their -own mechanism for setting the locale. -

    See also codecForLocale(). - -

    void TQTextCodec::setCodecForTr ( TQTextCodec * c ) [static] -

    Warning: This function is not reentrant.

    - - - -

    Sets the codec used by TQObject::tr() on its argument to c. If -c is 0 (the default), tr() assumes Latin-1. -

    If the literal quoted text in the program is not in the Latin-1 -encoding, this function can be used to set the appropriate -encoding. For example, software developed by Korean programmers -might use eucKR for all the text in the program, in which case the -main() function might look like this: -

    -    int main(int argc, char** argv)
    -    {
    -        TQApplication app(argc, argv);
    -        ... install any additional codecs ...
    -        TQTextCodec::setCodecForTr( TQTextCodec::codecForName("eucKR") );
    -        ...
    -    }
    -    
    - -

    Note that this is not the way to select the encoding that the user 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. -

    See also codecForTr() and setCodecForCStrings(). - -

    int TQTextCodec::simpleHeuristicNameMatch ( const char * name, const char * hint ) [static protected] -

    -A simple utility function for heuristicNameMatch(): it does some -very minor character-skipping so that almost-exact matches score -high. name is the text we're matching and hint is used for -the comparison. - -

    TQString TQTextCodec::toUnicode ( const char * chars, int len ) const [virtual] -

    -TQTextCodec subclasses must reimplement this function or -makeDecoder(). It converts the first len characters of chars -to Unicode. -

    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 must reimplement one function or -the other to avoid infinite recursion. - -

    TQString TQTextCodec::toUnicode ( const TQByteArray & a, int len ) const -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    a contains the source characters; len contains the number of -characters in a to use. - -

    TQString TQTextCodec::toUnicode ( const TQByteArray & a ) const -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    a contains the source characters. - -

    TQString TQTextCodec::toUnicode ( const TQCString & a, int len ) const -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    a contains the source characters; len contains the number of -characters in a to use. - -

    TQString TQTextCodec::toUnicode ( const TQCString & a ) const -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    a contains the source characters. - -

    TQString TQTextCodec::toUnicode ( const char * chars ) const -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    chars contains the source characters. - - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/ntqtextcodecplugin.html b/doc/html/ntqtextcodecplugin.html deleted file mode 100644 index 4dbb9d31c..000000000 --- a/doc/html/ntqtextcodecplugin.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - -TQTextCodecPlugin Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQTextCodecPlugin Class Reference

    - -

    The TQTextCodecPlugin class provides an abstract base for custom TQTextCodec plugins. -More... -

    All the functions in this class are reentrant when TQt is built with thread support.

    -

    #include <ntqtextcodecplugin.h> -

    List of all member functions. -

    Public Members

    - -

    Detailed Description

    - - -The TQTextCodecPlugin class provides an abstract base for custom TQTextCodec plugins. - - -

    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. -

    Writing a text codec plugin is achieved by subclassing this base -class, reimplementing the pure virtual functions names(), -createForName(), mibEnums() and createForMib(), and exporting the -class with the TQ_EXPORT_PLUGIN macro. See the TQt Plugins documentation for details. -

    See the IANA - character-sets encoding file for more information on mime -names and mib enums. -

    See also Plugins. - -


    Member Function Documentation

    -

    TQTextCodecPlugin::TQTextCodecPlugin () -

    -Constructs a text codec plugin. This is invoked automatically by -the TQ_EXPORT_PLUGIN macro. - -

    TQTextCodecPlugin::~TQTextCodecPlugin () -

    -Destroys the text codec plugin. -

    You never have to call this explicitly. TQt destroys a plugin -automatically when it is no longer used. - -

    TQTextCodec * TQTextCodecPlugin::createForMib ( int mib ) [pure virtual] -

    - -

    Creates a TQTextCodec object for the mib enum mib. -

    (See the - IANA character-sets encoding file for more information) -

    See also mibEnums(). - -

    TQTextCodec * TQTextCodecPlugin::createForName ( const TQString & name ) [pure virtual] -

    - -

    Creates a TQTextCodec object for the codec called name. -

    See also names(). - -

    TQValueList<int> TQTextCodecPlugin::mibEnums () const [pure virtual] -

    - -

    Returns the list of mib enums supported by this plugin. -

    See also createForMib(). - -

    TQStringList TQTextCodecPlugin::names () const [pure virtual] -

    - -

    Returns the list of mime names supported by this plugin. -

    See also createForName(). - - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/ntqtextedit.html b/doc/html/ntqtextedit.html deleted file mode 100644 index 01610e7af..000000000 --- a/doc/html/ntqtextedit.html +++ /dev/null @@ -1,1626 +0,0 @@ - - - - - -TQTextEdit Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQTextEdit Class Reference

    - -

    The TQTextEdit widget provides a powerful single-page rich text editor. -More... -

    #include <ntqtextedit.h> -

    Inherits TQScrollView. -

    Inherited by TQMultiLineEdit, TQTextBrowser, and TQTextView. -

    List of all member functions. -

    Public Members

    - -

    Public Slots

    - -

    Signals

    - -

    Properties

    -
      -
    • AutoFormatting autoFormatting - the enabled set of auto formatting features
    • -
    • TQString documentTitle - the title of the document parsed from the text  (read only)
    • -
    • bool hasSelectedText - whether some text is selected in selection 0  (read only)
    • -
    • int length - the number of characters in the text  (read only)
    • -
    • bool linkUnderline - whether hypertext links will be underlined
    • -
    • bool modified - whether the document has been modified by the user
    • -
    • bool overwriteMode - the text edit's overwrite mode
    • -
    • TQBrush paper - the background (paper) brush
    • -
    • bool readOnly - whether the text edit is read-only
    • -
    • TQString selectedText - the selected text (from selection 0) or an empty string if there is no currently selected text (in selection 0)  (read only)
    • -
    • bool tabChangesFocus - whether TAB changes focus or is accepted as input
    • -
    • int tabStopWidth - the tab stop width in pixels
    • -
    • TQString text - the text edit's text
    • -
    • TextFormat textFormat - the text format: rich text, plain text, log text or auto text
    • -
    • int undoDepth - the depth of the undo history
    • -
    • bool undoRedoEnabled - whether undo/redo is enabled
    • -
    • WordWrap wordWrap - the word wrap mode
    • -
    • int wrapColumnOrWidth - the position (in pixels or columns depending on the wrap mode) where text will be wrapped
    • -
    • WrapPolicy wrapPolicy - the word wrap policy, at whitespace or anywhere
    • -
    -

    Protected Members

    - -

    Detailed Description

    - - -The TQTextEdit widget provides a powerful single-page rich text editor. -

    - - -

    -

    - - -

    Introduction and Concepts -

    -

    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. -

    TQTextEdit has four modes of operation: -

    -
    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. 1. -
    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) -Append text using append(). The widget is set to be read -only and rich text support is disabled although a few HTML -tags (for color, bold, italic and underline) may be used. -(See LogText mode for details.) -
    -

    1.A more complete API that supports setting -margins, images, etc., is planned for a later TQt release. -

    TQTextEdit can be used as a syntax highlighting editor when used in -conjunction with TQSyntaxHighlighter. -

    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. -

    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. -

    The text edit documentation uses the following concepts: -

      -
    • current format -- -this is the format at the current cursor position, and it -is the format of the selected text if any. -
    • current paragraph -- the paragraph which contains the -cursor. -
    -

    TQTextEdit can display images (using TQMimeSourceFactory), 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 -TQStyleSheet for details. The images identified by image tags are -displayed if they can be interpreted using the text edit's -TQMimeSourceFactory; see setMimeSourceFactory(). -

    If you want a text browser with more navigation use TQTextBrowser. -If you just need to display a small piece of rich text use TQLabel -or TQSimpleRichText. -

    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 TQStyleSheet 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. -

    Note that we do not intend to add a full-featured web browser -widget to TQt (because that would easily double TQt'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. -

    Using TQTextEdit as a Display Widget -

    -

    TQTextEdit can display a large HTML subset, including tables and -images. -

    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). -

    Loading and saving text is achieved using setText() and text(), -for example: -

    -    TQFile file( fileName ); // Read the text from a file
    -    if ( file.open( IO_ReadOnly ) ) {
    -        TQTextStream stream( &file );
    -        textEdit->setText( stream.read() );
    -    }
    -
    -    TQFile file( fileName ); // Write the text to a file
    -    if ( file.open( IO_WriteOnly ) ) {
    -        TQTextStream stream( &file );
    -        stream << textEdit->text();
    -        textEdit->setModified( FALSE );
    -    }
    -    
    - -

    By default the text edit wraps words at whitespace to fit within -the text edit widget. The setWordWrap() function is used to -specify the kind of word wrap you want, or NoWrap if you don't -want any wrapping. Call setWordWrap() to set a fixed pixel width -FixedPixelWidth, or character column (e.g. 80 column) FixedColumnWidth with the pixels or columns specified with -setWrapColumnOrWidth(). If you use word wrap to the widget's width -WidgetWidth, you can specify whether to break on whitespace or -anywhere with setWrapPolicy(). -

    The background color is set differently than other widgets, using -setPaper(). You specify a brush style which could be a plain color -or a complex pixmap. -

    Hypertext links are automatically underlined; this can be changed -with setLinkUnderline(). The tab stop width is set with -setTabStopWidth(). -

    The zoomIn() and zoomOut() functions can be used to resize the -text by increasing (decreasing for zoomOut()) the point size used. -Images are not affected by the zoom functions. -

    The lines() function returns the number of lines in the text and -paragraphs() returns the number of paragraphs. The number of lines -within a particular paragraph is returned by linesOfParagraph(). -The length of the entire text in characters is returned by -length(). -

    You can scroll to an anchor in the text, e.g. -<a name="anchor"> with scrollToAnchor(). The find() function -can be used to find and select a given string within the text. -

    A read-only TQTextEdit provides the same functionality as the -(obsolete) TQTextView. (TQTextView is still supplied for -compatibility with old code.) -

    Read-only key bindings -

    -

    When TQTextEdit is used read-only the key-bindings are limited to -navigation, and text may only be selected with the mouse: -

    -
    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 Zoom the text -
    -

    The text edit may be able to provide some meta-information. For -example, the documentTitle() function will return the text from -within HTML <title> tags. -

    The text displayed in a text edit has a context. The context is -a path which the text edit's TQMimeSourceFactory uses to resolve -the locations of files and images. It is passed to the -mimeSourceFactory() when quering data. (See TQTextEdit() and -context().) -

    -

    Using TQTextEdit in LogText Mode -

    -

    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 < and >. The characters <, > -and & are escaped by using &lt;, &gt; and &amp;. -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 / before -the tag keyword. For example <b> and </b> are a tag pair. -Tags can be nested, but they have to be closed in the same order as -they are opened. For example, <b><u></u></b> is valid, while <b><u></b></u> will output an error message. -

    By using tags it is possible to change the color, bold, italic and -underline settings for a piece of text. A color can be specified -by using the HTML font tag <font color=colorname>. The color -name can be one of the color names from the X11 color database, or -a RGB hex value (e.g #00ff00). Example of valid color tags: -<font color=red>, <font color="light blue">, <font color="#223344">. Bold, italic and underline settings can be -specified by the tags <b>, <i> and <u>. Note that a -tag does not necessarily have to be closed. A valid example: -

    -    This is <font color=red>red</font> while <b>this</b> is <font color=blue>blue</font>.
    -    <font color=green><font color=yellow>Yellow,</font> and <u>green</u>.
    -    
    - -

    Stylesheets can also be used in LogText mode. To create and use a -custom tag, you could do the following: -

    -    TQTextEdit * log = new TQTextEdit( this );
    -    log->setTextFormat( TQt::LogText );
    -    TQStyleSheetItem * item = new TQStyleSheetItem( log->styleSheet(), "mytag" );
    -    item->setColor( "red" );
    -    item->setFontWeight( TQFont::Bold );
    -    item->setFontUnderline( TRUE );
    -    log->append( "This is a <mytag>custom tag</mytag>!" );
    -    
    - -Note that only the color, bold, underline and italic attributes of -a TQStyleSheetItem is used in LogText mode. -

    Note that you can use setMaxLogLines() to limit the number of -lines the widget can hold in LogText mode. -

    There are a few things that you need to be aware of when the -widget is in this mode: -

      -
    • Functions that deal with rich text formatting and cursor -movement will not work or return anything valid. -
    • Lines are equivalent to paragraphs. -
    -

    Using TQTextEdit as an Editor -

    -

    All the information about using TQTextEdit as a display widget also -applies here. -

    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(). -

    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. -

    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. -

    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. -

    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. -

    The indent() function is used to reindent a paragraph. It is -useful for code editors, for example in TQt Designer's code editor Ctrl+I invokes the indent() -function. -

    Editing key bindings -

    -

    The list of key-bindings which are implemented for editing: -

    -
    Keypresses Action -
    Backspace Delete the character to the left of the cursor -
    Delete Delete the character to the right of the cursor -
    Ctrl+A Move the cursor to the beginning of the line -
    Ctrl+B Move the cursor one character left -
    Ctrl+C Copy the marked text to the clipboard (also -Ctrl+Insert under Windows) -
    Ctrl+D Delete the character to the right of the cursor -
    Ctrl+E Move the cursor to the end of the line -
    Ctrl+F Move the cursor one character right -
    Ctrl+H Delete the character to the left of the cursor -
    Ctrl+K Delete to end of line -
    Ctrl+N Move the cursor one line down -
    Ctrl+P Move the cursor one line up -
    Ctrl+V Paste the clipboard text into line edit -(also Shift+Insert under Windows) -
    Ctrl+X Cut the marked text, copy to clipboard -(also Shift+Delete under Windows) -
    Ctrl+Z Undo the last operation -
    Ctrl+Y Redo the last operation -
    LeftArrow Move the cursor one character left -
    Ctrl+LeftArrow Move the cursor one word left -
    RightArrow Move the cursor one character right -
    Ctrl+RightArrow Move the cursor one word right -
    UpArrow Move the cursor one line up -
    Ctrl+UpArrow Move the cursor one word up -
    DownArrow Move the cursor one line down -
    Ctrl+Down Arrow Move the cursor one word down -
    PageUp Move the cursor one page up -
    PageDown Move the cursor one page down -
    Home Move the cursor to the beginning of the line -
    Ctrl+Home Move the cursor to the beginning of the text -
    End Move the cursor to the end of the line -
    Ctrl+End Move the cursor to the end of the text -
    Shift+Wheel Scroll the page horizontally -(the Wheel is the mouse wheel) -
    Ctrl+Wheel Zoom the text -
    -

    To select (mark) text hold down the Shift key whilst pressing one -of the movement keystrokes, for example, Shift+Right Arrow -will select the character to the right, and Shift+Ctrl+Right Arrow will select the word to the right, etc. -

    By default the text edit widget operates in insert mode so all -text that the user enters is inserted into the text edit and any -text to the right of the cursor is moved out of the way. The mode -can be changed to overwrite, where new text overwrites any text to -the right of the cursor, using setOverwriteMode(). -

    See also Basic Widgets and Text Related Classes. - -


    Member Type Documentation

    -

    TQTextEdit::AutoFormatting

    - -
      -
    • TQTextEdit::AutoNone - Do not perform any automatic formatting -
    • TQTextEdit::AutoBulletList - Only automatically format bulletted lists -
    • TQTextEdit::AutoAll - Apply all available autoformatting -
    -

    TQTextEdit::CursorAction

    - -

    This enum is used by moveCursor() to specify in which direction -the cursor should be moved: -

      -
    • TQTextEdit::MoveBackward - Moves the cursor one character backward -
    • TQTextEdit::MoveWordBackward - Moves the cursor one word backward -
    • TQTextEdit::MoveForward - Moves the cursor one character forward -
    • TQTextEdit::MoveWordForward - Moves the cursor one word forward -
    • TQTextEdit::MoveUp - Moves the cursor up one line -
    • TQTextEdit::MoveDown - Moves the cursor down one line -
    • TQTextEdit::MoveLineStart - Moves the cursor to the beginning of the line -
    • TQTextEdit::MoveLineEnd - Moves the cursor to the end of the line -
    • TQTextEdit::MoveHome - Moves the cursor to the beginning of the document -
    • TQTextEdit::MoveEnd - Moves the cursor to the end of the document -
    • TQTextEdit::MovePgUp - Moves the cursor one viewport page up -
    • TQTextEdit::MovePgDown - Moves the cursor one viewport page down -
    -

    TQTextEdit::KeyboardAction

    - -

    This enum is used by doKeyboardAction() to specify which action -should be executed: -

      -
    • TQTextEdit::ActionBackspace - Delete the character to the left of the -cursor. -
    • TQTextEdit::ActionDelete - Delete the character to the right of the -cursor. -
    • TQTextEdit::ActionReturn - Split the paragraph at the cursor position. -
    • TQTextEdit::ActionKill - 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. -
    • TQTextEdit::ActionWordBackspace - Delete the word to the left of the -cursor position. -
    • TQTextEdit::ActionWordDelete - Delete the word to the right of the -cursor position -

    -

    TQTextEdit::VerticalAlignment

    - -

    This enum is used to set the vertical alignment of the text. -

      -
    • TQTextEdit::AlignNormal - Normal alignment -
    • TQTextEdit::AlignSuperScript - Superscript -
    • TQTextEdit::AlignSubScript - Subscript -
    -

    TQTextEdit::WordWrap

    - -

    This enum defines the TQTextEdit's word wrap modes. -

      -
    • TQTextEdit::NoWrap - Do not wrap the text. -
    • TQTextEdit::WidgetWidth - 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(). -
    • TQTextEdit::FixedPixelWidth - Wrap the text at a fixed number of pixels -from the widget's left side. The number of pixels is set with -wrapColumnOrWidth(). -
    • TQTextEdit::FixedColumnWidth - 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. -

    See also wordWrap and wordWrap. - -

    TQTextEdit::WrapPolicy

    - -

    This enum defines where text can be wrapped in word wrap mode. -

      -
    • TQTextEdit::AtWhiteSpace - Don't use this deprecated value (it is a -synonym for AtWordBoundary which you should use instead). -
    • TQTextEdit::Anywhere - Break anywhere, including within words. -
    • TQTextEdit::AtWordBoundary - Break lines at word boundaries, e.g. spaces or -newlines -
    • TQTextEdit::AtWordOrDocumentBoundary - Break lines at whitespace, e.g. -spaces or newlines if possible. Break it anywhere otherwise. -

    See also wrapPolicy. - -


    Member Function Documentation

    -

    TQTextEdit::TQTextEdit ( const TQString & text, const TQString & context = TQString::null, TQWidget * parent = 0, const char * name = 0 ) -

    -Constructs a TQTextEdit called name, with parent parent. The -text edit will display the text text using context context. -

    The context is a path which the text edit's TQMimeSourceFactory -uses to resolve the locations of files and images. It is passed to -the mimeSourceFactory() when quering data. -

    For example if the text contains an image tag, -<img src="image.png">, and the context is "path/to/look/in", the -TQMimeSourceFactory will try to load the image from -"path/to/look/in/image.png". If the tag was -<img src="/image.png">, the context will not be used (because -TQMimeSourceFactory 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 hrefs, for example, -<a href="target.html">Target</a>, would resolve to -"path/to/look/in/target.html". - -

    TQTextEdit::TQTextEdit ( TQWidget * parent = 0, const char * name = 0 ) -

    -Constructs an empty TQTextEdit called name, with parent parent. - -

    int TQTextEdit::alignment () const -

    -Returns the alignment of the current paragraph. -

    See also setAlignment(). - -

    TQString TQTextEdit::anchorAt ( const TQPoint & pos, AnchorAttribute attr ) -

    -If there is an anchor at position pos (in contents -coordinates), the text for attribute attr is returned, -otherwise TQString::null is returned. - -

    TQString TQTextEdit::anchorAt ( const TQPoint & pos ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    If there is an anchor at position pos (in contents -coordinates), its href is returned, otherwise TQString::null is -returned. - -

    void TQTextEdit::append ( const TQString & text ) [virtual slot] -

    -Appends a new paragraph with text 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(). - -

    Examples: network/clientserver/client/client.cpp, network/clientserver/server/server.cpp, network/httpd/httpd.cpp, and process/process.cpp. -

    uint TQTextEdit::autoFormatting () const -

    Returns the enabled set of auto formatting features. -See the "autoFormatting" property for details. -

    bool TQTextEdit::bold () const -

    -Returns TRUE if the current format is bold; otherwise returns FALSE. -

    See also setBold(). - -

    int TQTextEdit::charAt ( const TQPoint & pos, int * para ) const -

    -Returns the index of the character (relative to its paragraph) at -position pos (in contents coordinates). If para is not 0, -*para is set to the character's paragraph. - -

    void TQTextEdit::clear () [virtual slot] -

    -Deletes all the text in the text edit. -

    See also cut(), removeSelectedText(), and text. - -

    void TQTextEdit::clearParagraphBackground ( int para ) [virtual slot] -

    -Clears the background color of the paragraph para, so that the -default color is used again. - -

    void TQTextEdit::clicked ( int para, int pos ) [signal] -

    - -

    This signal is emitted when the mouse is clicked on the paragraph -para at character position pos. -

    See also doubleClicked(). - -

    TQColor TQTextEdit::color () const -

    -Returns the color of the current format. -

    See also setColor() and paper. - -

    TQString TQTextEdit::context () const -

    -Returns the context of the text edit. The context is a path which -the text edit's TQMimeSourceFactory uses to resolve the locations -of files and images. -

    See also text. - -

    Examples: action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, mdi/application.cpp, and qdir/qdir.cpp. -

    void TQTextEdit::copy () [virtual slot] -

    -Copies any selected text (from selection 0) to the clipboard. -

    See also hasSelectedText and copyAvailable(). - -

    void TQTextEdit::copyAvailable ( bool yes ) [signal] -

    - -

    This signal is emitted when text is selected or de-selected in the -text edit. -

    When text is selected this signal will be emitted with yes set -to TRUE. If no text has been selected or if the selected text is -de-selected this signal is emitted with yes set to FALSE. -

    If yes is TRUE then copy() can be used to copy the selection to -the clipboard. If yes is FALSE then copy() does nothing. -

    See also selectionChanged(). - -

    TQPopupMenu * TQTextEdit::createPopupMenu ( const TQPoint & pos ) [virtual protected] -

    -This function is called to create a right mouse button popup menu -at the document position pos. 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. -

    Warning: The TQPopupMenu 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. - -

    TQPopupMenu * TQTextEdit::createPopupMenu () [virtual protected] -

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

    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. -

    This function is only called if createPopupMenu( const TQPoint & ) -returns 0. - -

    void TQTextEdit::currentAlignmentChanged ( int a ) [signal] -

    - -

    This signal is emitted if the alignment of the current paragraph -has changed. -

    The new alignment is a. -

    See also setAlignment(). - -

    void TQTextEdit::currentColorChanged ( const TQColor & c ) [signal] -

    - -

    This signal is emitted if the color of the current format has -changed. -

    The new color is c. -

    See also setColor(). - -

    TQFont TQTextEdit::currentFont () const -

    -Returns the font of the current format. -

    See also setCurrentFont(), setFamily(), and setPointSize(). - -

    void TQTextEdit::currentFontChanged ( const TQFont & f ) [signal] -

    - -

    This signal is emitted if the font of the current format has -changed. -

    The new font is f. -

    See also setCurrentFont(). - -

    void TQTextEdit::currentVerticalAlignmentChanged ( VerticalAlignment a ) [signal] -

    - -

    This signal is emitted if the vertical alignment of the current -format has changed. -

    The new vertical alignment is a. -

    See also setVerticalAlignment(). - -

    void TQTextEdit::cursorPositionChanged ( int para, int pos ) [signal] -

    - -

    This signal is emitted if the position of the cursor has changed. -para contains the paragraph index and pos contains the -character position within the paragraph. -

    See also setCursorPosition(). - -

    void TQTextEdit::cut () [virtual slot] -

    -Copies the selected text (from selection 0) to the clipboard and -deletes it from the text edit. -

    If there is no selected text (in selection 0) nothing happens. -

    See also TQTextEdit::copy(), paste(), and pasteSubType(). - -

    void TQTextEdit::del () [virtual slot] -

    -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. -

    See also removeSelectedText() and cut(). - -

    void TQTextEdit::doKeyboardAction ( KeyboardAction action ) [virtual slot] -

    -Executes keyboard action action. This is normally called by a -key event handler. - -

    TQString TQTextEdit::documentTitle () const -

    Returns the title of the document parsed from the text. -See the "documentTitle" property for details. -

    void TQTextEdit::doubleClicked ( int para, int pos ) [signal] -

    -

    This signal is emitted when the mouse is double-clicked on the -paragraph para at character position pos. -

    See also clicked(). - -

    void TQTextEdit::ensureCursorVisible () [virtual slot] -

    -Ensures that the cursor is visible by scrolling the text edit if -necessary. -

    See also setCursorPosition(). - -

    TQString TQTextEdit::family () const -

    -Returns the font family of the current format. -

    See also setFamily(), setCurrentFont(), and setPointSize(). - -

    bool TQTextEdit::find ( const TQString & expr, bool cs, bool wo, bool forward = TRUE, int * para = 0, int * index = 0 ) [virtual] -

    -Finds the next occurrence of the string, expr. Returns TRUE if -expr was found; otherwise returns FALSE. -

    If para and index are both 0 the search begins from the -current cursor position. If para and index are both not 0, -the search begins from the *index character position in the -*para paragraph. -

    If cs is TRUE the search is case sensitive, otherwise it is -case insensitive. If wo is TRUE the search looks for whole word -matches only; otherwise it searches for any matching text. If forward is TRUE (the default) the search works forward from the -starting position to the end of the text, otherwise it works -backwards to the beginning of the text. -

    If expr is found the function returns TRUE. If index and para are not 0, the number of the paragraph in which the first -character of the match was found is put into *para, and the -index position of that character within the paragraph is put into -*index. -

    If expr is not found the function returns FALSE. If index -and para are not 0 and expr is not found, *index -and *para are undefined. -

    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. -

    Using the para and index parameters will not work correctly -in case the document contains tables. - -

    bool TQTextEdit::focusNextPrevChild ( bool n ) [virtual protected] -

    -Reimplemented to allow tabbing through links. If n is TRUE the -tab moves the focus to the next child; if n is FALSE the tab -moves the focus to the previous child. Returns TRUE if the focus -was moved; otherwise returns FALSE. - -

    TQFont TQTextEdit::font () const -

    -This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

    Returns TQScrollView::font() -

    Warning: In previous versions this function returned the font of -the current format. This lead to confusion. Please use -currentFont() instead. - -

    Example: qwerty/qwerty.cpp. -

    void TQTextEdit::getCursorPosition ( int * para, int * index ) const -

    -This function sets the *para and *index parameters to the -current cursor position. para and index must not be 0. -

    See also setCursorPosition(). - -

    void TQTextEdit::getSelection ( int * paraFrom, int * indexFrom, int * paraTo, int * indexTo, int selNum = 0 ) const -

    -If there is a selection, *paraFrom is set to the number of the -paragraph in which the selection begins and *paraTo is set to -the number of the paragraph in which the selection ends. (They -could be the same.) *indexFrom is set to the index at which the -selection begins within *paraFrom, and *indexTo is set to -the index at which the selection ends within *paraTo. -

    If there is no selection, *paraFrom, *indexFrom, *paraTo -and *indexTo are all set to -1. -

    If paraFrom, indexFrom, paraTo or indexTo is 0 this -function does nothing. -

    The selNum is the number of the selection (multiple selections -are supported). It defaults to 0 (the default selection). -

    See also setSelection() and selectedText. - -

    bool TQTextEdit::hasSelectedText () const -

    Returns TRUE if some text is selected in selection 0; otherwise returns FALSE. -See the "hasSelectedText" property for details. -

    int TQTextEdit::heightForWidth ( int w ) const [virtual] -

    -Returns how many pixels high the text edit needs to be to display -all the text if the text edit is w pixels wide. - -

    Reimplemented from TQWidget. -

    void TQTextEdit::insert ( const TQString & text, uint insertionFlags = CheckNewLines | RemoveSelected ) [slot] -

    -Inserts text at the current cursor position. -

    The insertionFlags define how the text is inserted. If RedoIndentation is set, the paragraph is re-indented. If CheckNewLines is set, newline characters in text result in hard -line breaks (i.e. new paragraphs). If checkNewLine is not set, -the behaviour of the editor is undefined if the text 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. -

    The default flags are CheckNewLines | RemoveSelected. -

    If the widget is in LogText mode this function will do nothing. -

    See also paste() and pasteSubType(). - -

    void TQTextEdit::insert ( const TQString & text, bool indent, bool checkNewLine = TRUE, bool removeSelected = TRUE ) [virtual slot] -

    -This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

    -

    void TQTextEdit::insertAt ( const TQString & text, int para, int index ) [virtual slot] -

    -Inserts text in the paragraph para at position index. - -

    void TQTextEdit::insertParagraph ( const TQString & text, int para ) [virtual slot] -

    -Inserts text as a new paragraph at position para. If para -is -1, the text is appended. Use append() if the append operation -is performance critical. - -

    bool TQTextEdit::isModified () const -

    Returns TRUE if the document has been modified by the user; otherwise returns FALSE. -See the "modified" property for details. -

    bool TQTextEdit::isOverwriteMode () const -

    Returns the text edit's overwrite mode. -See the "overwriteMode" property for details. -

    bool TQTextEdit::isReadOnly () const -

    Returns TRUE if the text edit is read-only; otherwise returns FALSE. -See the "readOnly" property for details. -

    bool TQTextEdit::isRedoAvailable () const -

    -Returns TRUE if redo is available; otherwise returns FALSE. - -

    bool TQTextEdit::isUndoAvailable () const -

    -Returns TRUE if undo is available; otherwise returns FALSE. - -

    bool TQTextEdit::isUndoRedoEnabled () const -

    Returns TRUE if undo/redo is enabled; otherwise returns FALSE. -See the "undoRedoEnabled" property for details. -

    bool TQTextEdit::italic () const -

    -Returns TRUE if the current format is italic; otherwise returns FALSE. -

    See also setItalic(). - -

    void TQTextEdit::keyPressEvent ( TQKeyEvent * e ) [virtual protected] -

    -Processes the key event, e. By default key events are used to -provide keyboard navigation and text editing. - -

    Reimplemented from TQWidget. -

    Reimplemented in TQTextBrowser. -

    int TQTextEdit::length () const -

    Returns the number of characters in the text. -See the "length" property for details. -

    int TQTextEdit::lineOfChar ( int para, int index ) -

    -Returns the line number of the line in paragraph para in which -the character at position index appears. The index position is -relative to the beginning of the paragraph. If there is no such -paragraph or no such character at the index position (e.g. the -index is out of range) -1 is returned. - -

    int TQTextEdit::lines () const -

    -Returns the number of lines in the text edit; this could be 0. -

    Warning: 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. - -

    int TQTextEdit::linesOfParagraph ( int para ) const -

    -Returns the number of lines in paragraph para, or -1 if there -is no paragraph with index para. - -

    bool TQTextEdit::linkUnderline () const -

    Returns TRUE if hypertext links will be underlined; otherwise returns FALSE. -See the "linkUnderline" property for details. -

    int TQTextEdit::maxLogLines () [slot] -

    -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. - -

    TQMimeSourceFactory * TQTextEdit::mimeSourceFactory () const -

    -Returns the TQMimeSourceFactory which is being used by this text -edit. -

    See also setMimeSourceFactory(). - -

    Examples: action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, mdi/application.cpp, and qdir/qdir.cpp. -

    void TQTextEdit::modificationChanged ( bool m ) [signal] -

    - -

    This signal is emitted when the modification status of the -document has changed. If m is TRUE, the document was modified, -otherwise the modification state has been reset to unmodified. -

    See also modified. - -

    void TQTextEdit::moveCursor ( CursorAction action, bool select ) [virtual slot] -

    -Moves the text cursor according to action. This is normally -used by some key event handler. select specifies whether the -text between the current cursor position and the new position -should be selected. - -

    TQBrush TQTextEdit::paper () const -

    Returns the background (paper) brush. -See the "paper" property for details. -

    int TQTextEdit::paragraphAt ( const TQPoint & pos ) const -

    -Returns the paragraph which is at position pos (in contents -coordinates). - -

    TQColor TQTextEdit::paragraphBackgroundColor ( int para ) const -

    -Returns the background color of the paragraph para or an -invalid color if para is out of range or the paragraph has no -background set - -

    int TQTextEdit::paragraphLength ( int para ) const -

    -Returns the length of the paragraph para (i.e. the number of -characters), or -1 if there is no paragraph with index para. -

    This function ignores newlines. - -

    TQRect TQTextEdit::paragraphRect ( int para ) const -

    -Returns the rectangle of the paragraph para in contents -coordinates, or an invalid rectangle if para is out of range. - -

    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. - -

    void TQTextEdit::paste () [virtual slot] -

    -Pastes the text from the clipboard into the text edit at the -current cursor position. Only plain text is pasted. -

    If there is no text in the clipboard nothing happens. -

    See also pasteSubType(), cut(), and TQTextEdit::copy(). - -

    void TQTextEdit::pasteSubType ( const TQCString & subtype ) [virtual slot] -

    -Pastes the text with format subtype from the clipboard into the -text edit at the current cursor position. The subtype can be -"plain" or "html". -

    If there is no text with format subtype in the clipboard -nothing happens. -

    See also paste(), cut(), and TQTextEdit::copy(). - -

    void TQTextEdit::placeCursor ( const TQPoint & pos, TQTextCursor * c = 0 ) [virtual slot] -

    -Places the cursor c at the character which is closest to position -pos (in contents coordinates). If c is 0, the default text -cursor is used. -

    See also setCursorPosition(). - -

    int TQTextEdit::pointSize () const -

    -Returns the point size of the font of the current format. -

    See also setFamily(), setCurrentFont(), and setPointSize(). - -

    void TQTextEdit::redo () [virtual slot] -

    -Redoes the last operation. -

    If there is no operation to redo, i.e. there is no redo step in -the undo/redo history, nothing happens. -

    See also redoAvailable(), undo(), and undoDepth. - -

    void TQTextEdit::redoAvailable ( bool yes ) [signal] -

    - -

    This signal is emitted when the availability of redo changes. If -yes is TRUE, then redo() will work until redoAvailable( FALSE ) -is next emitted. -

    See also redo() and undoDepth. - -

    void TQTextEdit::removeParagraph ( int para ) [virtual slot] -

    -Removes the paragraph para. - -

    void TQTextEdit::removeSelectedText ( int selNum = 0 ) [virtual slot] -

    -Deletes the text of selection selNum (by default, the default -selection, 0). If there is no selected text nothing happens. -

    See also selectedText and removeSelection(). - -

    void TQTextEdit::removeSelection ( int selNum = 0 ) [virtual slot] -

    -Removes the selection selNum (by default 0). This does not -remove the selected text. -

    See also removeSelectedText(). - -

    void TQTextEdit::repaintChanged () [protected] -

    -Repaints any paragraphs that have changed. -

    Although used extensively internally you shouldn't need to call -this yourself. - -

    void TQTextEdit::returnPressed () [signal] -

    - -

    This signal is emitted if the user pressed the Return or the Enter -key. - -

    void TQTextEdit::scrollToAnchor ( const TQString & name ) [virtual slot] -

    -Scrolls the text edit to make the text at the anchor called name 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. <a name="target">. - -

    void TQTextEdit::scrollToBottom () [virtual slot] -

    -Scrolls to the bottom of the document and does formatting if -required. - -

    void TQTextEdit::selectAll ( bool select = TRUE ) [virtual slot] -

    -If select is TRUE (the default), all the text is selected as -selection 0. If select is FALSE any selected text is -unselected, i.e. the default selection (selection 0) is cleared. -

    See also selectedText. - -

    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. -

    void TQTextEdit::selectionChanged () [signal] -

    - -

    This signal is emitted whenever the selection changes. -

    See also setSelection() and copyAvailable(). - -

    void TQTextEdit::setAlignment ( int a ) [virtual slot] -

    -Sets the alignment of the current paragraph to a. Valid -alignments are TQt::AlignLeft, TQt::AlignRight, -TQt::AlignJustify and TQt::AlignCenter (which centers -horizontally). - -

    Reimplemented in TQMultiLineEdit. -

    void TQTextEdit::setAutoFormatting ( uint features ) -

    Sets the enabled set of auto formatting features to features. -See the "autoFormatting" property for details. -

    void TQTextEdit::setBold ( bool b ) [virtual slot] -

    -If b is TRUE sets the current format to bold; otherwise sets -the current format to non-bold. -

    See also bold(). - -

    void TQTextEdit::setColor ( const TQColor & c ) [virtual slot] -

    -Sets the color of the current format, i.e. of the text, to c. -

    See also color() and paper. - -

    void TQTextEdit::setCurrentFont ( const TQFont & f ) [virtual slot] -

    - -

    Sets the font of the current format to f. -

    If the widget is in LogText mode this function will do -nothing. Use setFont() instead. -

    See also currentFont(), setPointSize(), and setFamily(). - -

    void TQTextEdit::setCursorPosition ( int para, int index ) [virtual slot] -

    -Sets the cursor to position index in paragraph para. -

    See also getCursorPosition(). - -

    void TQTextEdit::setFamily ( const TQString & fontFamily ) [virtual slot] -

    -Sets the font family of the current format to fontFamily. -

    See also family() and setCurrentFont(). - -

    void TQTextEdit::setItalic ( bool b ) [virtual slot] -

    -If b is TRUE sets the current format to italic; otherwise sets -the current format to non-italic. -

    See also italic(). - -

    void TQTextEdit::setLinkUnderline ( bool ) [virtual slot] -

    Sets whether hypertext links will be underlined. -See the "linkUnderline" property for details. -

    void TQTextEdit::setMaxLogLines ( int limit ) [slot] -

    -Sets the maximum number of lines a TQTextEdit can hold in LogText mode to limit. If limit is -1 (the default), this -signifies an unlimited number of lines. -

    Warning: 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. - -

    void TQTextEdit::setMimeSourceFactory ( TQMimeSourceFactory * factory ) [virtual slot] -

    -Sets the text edit's mimesource factory to factory. See -TQMimeSourceFactory for further details. -

    See also mimeSourceFactory(). - -

    void TQTextEdit::setModified ( bool m ) [virtual slot] -

    Sets whether the document has been modified by the user to m. -See the "modified" property for details. -

    void TQTextEdit::setOverwriteMode ( bool b ) [virtual slot] -

    Sets the text edit's overwrite mode to b. -See the "overwriteMode" property for details. -

    void TQTextEdit::setPaper ( const TQBrush & pap ) [virtual slot] -

    Sets the background (paper) brush to pap. -See the "paper" property for details. -

    void TQTextEdit::setParagraphBackgroundColor ( int para, const TQColor & bg ) [virtual slot] -

    -Sets the background color of the paragraph para to bg. - -

    void TQTextEdit::setPointSize ( int s ) [virtual slot] -

    -Sets the point size of the current format to s. -

    Note that if s is zero or negative, the behaviour of this -function is not defined. -

    See also pointSize(), setCurrentFont(), and setFamily(). - -

    void TQTextEdit::setReadOnly ( bool b ) [virtual slot] -

    Sets whether the text edit is read-only to b. -See the "readOnly" property for details. -

    void TQTextEdit::setSelection ( int paraFrom, int indexFrom, int paraTo, int indexTo, int selNum = 0 ) [virtual slot] -

    -Sets a selection which starts at position indexFrom in -paragraph paraFrom and ends at position indexTo in paragraph -paraTo. -

    Any existing selections which have a different id (selNum) are -left alone, but if an existing selection has the same id as selNum it is removed and replaced by this selection. -

    Uses the selection settings of selection selNum. If selNum -is 0, this is the default selection. -

    The cursor is moved to the end of the selection if selNum is 0, -otherwise the cursor position remains unchanged. -

    See also getSelection() and selectedText. - -

    void TQTextEdit::setSelectionAttributes ( int selNum, const TQColor & back, bool invertText ) [virtual slot] -

    -Sets the background color of selection number selNum to back -and specifies whether the text of this selection should be -inverted with invertText. -

    This only works for selNum > 0. The default selection (selNum == 0) gets its attributes from the text edit's -colorGroup(). - -

    void TQTextEdit::setStyleSheet ( TQStyleSheet * styleSheet ) [virtual slot] -

    -Sets the stylesheet to use with this text edit to styleSheet. -Changes will only take effect for new text added with setText() or -append(). -

    See also styleSheet(). - -

    void TQTextEdit::setTabChangesFocus ( bool b ) [slot] -

    Sets whether TAB changes focus or is accepted as input to b. -See the "tabChangesFocus" property for details. -

    void TQTextEdit::setTabStopWidth ( int ts ) [virtual slot] -

    Sets the tab stop width in pixels to ts. -See the "tabStopWidth" property for details. -

    void TQTextEdit::setText ( const TQString & txt ) [slot] -

    Sets the text edit's text to txt. -See the "text" property for details. -

    void TQTextEdit::setText ( const TQString & text, const TQString & context ) [virtual slot] -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Changes the text of the text edit to the string text and the -context to context. Any previous text is removed. -

    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 from text. -

    For rich text the rendering style and available tags are defined -by a styleSheet(); see TQStyleSheet for details. -

    The optional context is a path which the text edit's -TQMimeSourceFactory uses to resolve the locations of files and -images. (See TQTextEdit::TQTextEdit().) It is passed to the text -edit's TQMimeSourceFactory when quering data. -

    Note that the undo/redo history is cleared by this function. -

    See also text and textFormat. - -

    void TQTextEdit::setTextFormat ( TextFormat f ) [virtual slot] -

    Sets the text format: rich text, plain text, log text or auto text to f. -See the "textFormat" property for details. -

    void TQTextEdit::setUnderline ( bool b ) [virtual slot] -

    -If b is TRUE sets the current format to underline; otherwise -sets the current format to non-underline. -

    See also underline(). - -

    void TQTextEdit::setUndoDepth ( int d ) [virtual slot] -

    Sets the depth of the undo history to d. -See the "undoDepth" property for details. -

    void TQTextEdit::setUndoRedoEnabled ( bool b ) [virtual slot] -

    Sets whether undo/redo is enabled to b. -See the "undoRedoEnabled" property for details. -

    void TQTextEdit::setVerticalAlignment ( VerticalAlignment a ) [virtual slot] -

    -Sets the vertical alignment of the current format, i.e. of the -text, to a. -

    See also color() and paper. - -

    void TQTextEdit::setWordWrap ( WordWrap mode ) [virtual slot] -

    Sets the word wrap mode to mode. -See the "wordWrap" property for details. -

    void TQTextEdit::setWrapColumnOrWidth ( int ) [virtual slot] -

    Sets the position (in pixels or columns depending on the wrap mode) where text will be wrapped. -See the "wrapColumnOrWidth" property for details. -

    void TQTextEdit::setWrapPolicy ( WrapPolicy policy ) [virtual slot] -

    Sets the word wrap policy, at whitespace or anywhere to policy. -See the "wrapPolicy" property for details. -

    TQStyleSheet * TQTextEdit::styleSheet () const -

    -Returns the TQStyleSheet which is being used by this text edit. -

    See also setStyleSheet(). - -

    Examples: action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, and mdi/application.cpp. -

    void TQTextEdit::sync () [virtual slot] -

    -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. -

    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. - -

    TQSyntaxHighlighter * TQTextEdit::syntaxHighlighter () const -

    -Returns the TQSyntaxHighlighter set on this TQTextEdit. 0 is -returned if no syntax highlighter is set. - -

    bool TQTextEdit::tabChangesFocus () const -

    Returns TRUE if TAB changes focus or is accepted as input; otherwise returns FALSE. -See the "tabChangesFocus" property for details. -

    int TQTextEdit::tabStopWidth () const -

    Returns the tab stop width in pixels. -See the "tabStopWidth" property for details. -

    TQString TQTextEdit::text () const -

    Returns the text edit's text. -See the "text" property for details. -

    TQString TQTextEdit::text ( int para ) const -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Returns the text of paragraph para. -

    If textFormat() is RichText the text will contain HTML -formatting tags. - -

    void TQTextEdit::textChanged () [signal] -

    - -

    This signal is emitted whenever the text in the text edit changes. -

    See also text and append(). - -

    Examples: qwerty/qwerty.cpp and rot13/rot13.cpp. -

    TQTextCursor * TQTextEdit::textCursor () const [protected] -

    - -

    Returns the text edit's text cursor. -

    Warning: TQTextCursor is not in the public API, but in special -circumstances you might wish to use it. - -

    TextFormat TQTextEdit::textFormat () const -

    Returns the text format: rich text, plain text, log text or auto text. -See the "textFormat" property for details. -

    bool TQTextEdit::underline () const -

    -Returns TRUE if the current format is underlined; otherwise returns -FALSE. -

    See also setUnderline(). - -

    void TQTextEdit::undo () [virtual slot] -

    -Undoes the last operation. -

    If there is no operation to undo, i.e. there is no undo step in -the undo/redo history, nothing happens. -

    See also undoAvailable(), redo(), and undoDepth. - -

    void TQTextEdit::undoAvailable ( bool yes ) [signal] -

    - -

    This signal is emitted when the availability of undo changes. If -yes is TRUE, then undo() will work until undoAvailable( FALSE ) -is next emitted. -

    See also undo() and undoDepth. - -

    int TQTextEdit::undoDepth () const -

    Returns the depth of the undo history. -See the "undoDepth" property for details. -

    WordWrap TQTextEdit::wordWrap () const -

    Returns the word wrap mode. -See the "wordWrap" property for details. -

    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. -

    WrapPolicy TQTextEdit::wrapPolicy () const -

    Returns the word wrap policy, at whitespace or anywhere. -See the "wrapPolicy" property for details. -

    void TQTextEdit::zoomIn ( int range ) [virtual slot] -

    -Zooms in on the text by making the base font size range -points larger and recalculating all font sizes to be the new size. -This does not change the size of any images. -

    See also zoomOut(). - -

    void TQTextEdit::zoomIn () [virtual slot] -

    - -

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    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. -

    See also zoomOut(). - -

    void TQTextEdit::zoomOut ( int range ) [virtual slot] -

    -Zooms out on the text by making the base font size range points -smaller and recalculating all font sizes to be the new size. This -does not change the size of any images. -

    See also zoomIn(). - -

    void TQTextEdit::zoomOut () [virtual slot] -

    - -

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    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. -

    See also zoomIn(). - -

    void TQTextEdit::zoomTo ( int size ) [virtual slot] -

    -Zooms the text by making the base font size size points and -recalculating all font sizes to be the new size. This does not -change the size of any images. - -

    Property Documentation

    -

    AutoFormatting autoFormatting

    -

    This property holds the enabled set of auto formatting features. -

    The value can be any combination of the values in the AutoFormatting enum. The default is AutoAll. Choose AutoNone -to disable all automatic formatting. -

    Currently, the only automatic formatting feature provided is AutoBulletList; future versions of TQt may offer more. - -

    Set this property's value with setAutoFormatting() and get this property's value with autoFormatting(). -

    TQString documentTitle

    -

    This property holds the title of the document parsed from the text. -

    For PlainText the title will be an empty string. For RichText the title will be the text between the <title> tags, -if present, otherwise an empty string. - -

    Get this property's value with documentTitle(). -

    bool hasSelectedText

    -

    This property holds whether some text is selected in selection 0. -

    -

    Get this property's value with hasSelectedText(). -

    int length

    -

    This property holds the number of characters in the text. -

    -

    Get this property's value with length(). -

    bool linkUnderline

    -

    This property holds whether hypertext links will be underlined. -

    If TRUE (the default) hypertext links will be displayed -underlined. If FALSE links will not be displayed underlined. - -

    Set this property's value with setLinkUnderline() and get this property's value with linkUnderline(). -

    bool modified

    -

    This property holds whether the document has been modified by the user. -

    -

    Set this property's value with setModified() and get this property's value with isModified(). -

    bool overwriteMode

    -

    This property holds the text edit's overwrite mode. -

    If FALSE (the default) characters entered by the user are inserted -with any characters to the right being moved out of the way. If -TRUE, the editor is in overwrite mode, i.e. characters entered by -the user overwrite any characters to the right of the cursor -position. - -

    Set this property's value with setOverwriteMode() and get this property's value with isOverwriteMode(). -

    TQBrush paper

    -

    This property holds the background (paper) brush. -

    The brush that is currently used to draw the background of the -text edit. The initial setting is an empty brush. - -

    Set this property's value with setPaper() and get this property's value with paper(). -

    bool readOnly

    -

    This property holds whether the text edit is read-only. -

    In a read-only text edit the user can only navigate through the -text and select text; modifying the text is not possible. -

    This property's default is FALSE. - -

    Set this property's value with setReadOnly() and get this property's value with isReadOnly(). -

    TQString selectedText

    -

    This property holds the selected text (from selection 0) or an empty string if there is no currently selected text (in selection 0). -

    The text is always returned as PlainText if the textFormat() is -PlainText or AutoText, otherwise it is returned as HTML. -

    See also hasSelectedText. - -

    Get this property's value with selectedText(). -

    bool tabChangesFocus

    This property holds whether TAB changes focus or is accepted as input. -

    In some occasions text edits should not allow the user to input -tabulators or change indentation using the TAB key, as this breaks -the focus chain. The default is FALSE. -

    -

    Set this property's value with setTabChangesFocus() and get this property's value with tabChangesFocus(). -

    int tabStopWidth

    -

    This property holds the tab stop width in pixels. -

    -

    Set this property's value with setTabStopWidth() and get this property's value with tabStopWidth(). -

    TQString text

    -

    This property holds the text edit's text. -

    There is no default text. -

    On setting, any previous text is deleted. -

    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. -

    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. -

    See also textFormat. - -

    Set this property's value with setText() and get this property's value with text(). -

    TextFormat textFormat

    -

    This property holds the text format: rich text, plain text, log text or auto text. -

    The text format is one of the following: -

      -
    • PlainText - all characters, except newlines, are displayed -verbatim, including spaces. Whenever a newline appears in the text -the text edit inserts a hard line break and begins a new -paragraph. -
    • RichText - rich text rendering. The available styles are -defined in the default stylesheet TQStyleSheet::defaultSheet(). -
    • LogText - optimized mode for very large texts. Supports a very -limited set of formatting tags (color, bold, underline and italic -settings). -
    • AutoText - this is the default. The text edit autodetects which -rendering style is best, PlainText or RichText. This is done -by using the TQStyleSheet::mightBeRichText() function. -
    - -

    Set this property's value with setTextFormat() and get this property's value with textFormat(). -

    int undoDepth

    -

    This property holds the depth of the undo history. -

    The maximum number of steps in the undo/redo history. The default -is 100. -

    See also undo() and redo(). - -

    Set this property's value with setUndoDepth() and get this property's value with undoDepth(). -

    bool undoRedoEnabled

    -

    This property holds whether undo/redo is enabled. -

    When changing this property, the undo/redo history is cleared. -

    The default is TRUE. - -

    Set this property's value with setUndoRedoEnabled() and get this property's value with isUndoRedoEnabled(). -

    WordWrap wordWrap

    -

    This property holds the word wrap mode. -

    The default mode is WidgetWidth which causes words to be -wrapped at the right edge of the text edit. Wrapping occurs at -whitespace, keeping whole words intact. If you want wrapping to -occur within words use setWrapPolicy(). If you set a wrap mode of -FixedPixelWidth or FixedColumnWidth you should also call -setWrapColumnOrWidth() with the width you want. -

    See also WordWrap, wrapColumnOrWidth, and wrapPolicy. - -

    Set this property's value with setWordWrap() and get this property's value with wordWrap(). -

    int wrapColumnOrWidth

    -

    This property holds the position (in pixels or columns depending on the wrap mode) where text will be wrapped. -

    If the wrap mode is FixedPixelWidth, the value is the number of -pixels from the left edge of the text edit at which text should be -wrapped. If the wrap mode is FixedColumnWidth, the value is the -column number (in character columns) from the left edge of the -text edit at which text should be wrapped. -

    See also wordWrap. - -

    Set this property's value with setWrapColumnOrWidth() and get this property's value with wrapColumnOrWidth(). -

    WrapPolicy wrapPolicy

    -

    This property holds the word wrap policy, at whitespace or anywhere. -

    Defines where text can be wrapped when word wrap mode is not NoWrap. The choices are AtWordBoundary (the default), Anywhere and AtWordOrDocumentBoundary -

    See also wordWrap. - -

    Set this property's value with setWrapPolicy() and get this property's value with wrapPolicy(). - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/ntqtextstream.html b/doc/html/ntqtextstream.html deleted file mode 100644 index 557c33754..000000000 --- a/doc/html/ntqtextstream.html +++ /dev/null @@ -1,667 +0,0 @@ - - - - - -TQTextStream Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQTextStream Class Reference

    - -

    The TQTextStream class provides basic functions for reading -and writing text using a TQIODevice. -More... -

    All the functions in this class are reentrant when TQt is built with thread support.

    -

    #include <ntqtextstream.h> -

    Inherited by TQTextIStream and TQTextOStream. -

    List of all member functions. -

    Public Members

    - -

    Detailed Description

    - - - -The TQTextStream class provides basic functions for reading -and writing text using a TQIODevice. -

    - - -

    The text stream class has a functional interface that is very -similar to that of the standard C++ iostream class. -

    TQt provides several global functions similar to the ones in iostream: -

    -
    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) sets the precision to the given argument -
    -

    Warning: 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. -

    The TQTextStream class reads and writes text; it is not appropriate -for dealing with binary data (but TQDataStream is). -

    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. -

    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. -

    See also TQDataStream, Input/Output and Networking, and Text Related Classes. - -


    Member Type Documentation

    -

    TQTextStream::Encoding

    - -
      -
    • TQTextStream::Locale -
    • TQTextStream::Latin1 -
    • TQTextStream::Unicode -
    • TQTextStream::UnicodeNetworkOrder -
    • TQTextStream::UnicodeReverse -
    • TQTextStream::RawUnicode -
    • TQTextStream::UnicodeUTF8 -

    See setEncoding() for an explanation of the encodings. - -


    Member Function Documentation

    -

    TQTextStream::TQTextStream () -

    -Constructs a data stream that has no IO device. - -

    TQTextStream::TQTextStream ( TQIODevice * iod ) -

    -Constructs a text stream that uses the IO device iod. - -

    TQTextStream::TQTextStream ( TQString * str, int filemode ) -

    -Constructs a text stream that operates on the Unicode TQString, str, through an internal device. The filemode argument is -passed to the device's open() function; see TQIODevice::mode(). -

    If you set an encoding or codec with setEncoding() or setCodec(), -this setting is ignored for text streams that operate on TQString. -

    Example: -

    -    TQString str;
    -    TQTextStream ts( &str, IO_WriteOnly );
    -    ts << "pi = " << 3.14; // str == "pi = 3.14"
    -    
    - -

    Writing data to the text stream will modify the contents of the -string. The string will be expanded when data is written beyond -the end of the string. Note that the string will not be truncated: -

    -    TQString str = "pi = 3.14";
    -    TQTextStream ts( &str, IO_WriteOnly );
    -    ts <<  "2+2 = " << 2+2; // str == "2+2 = 414"
    -    
    - -

    Note that because TQString is Unicode, you should not use -readRawBytes() or writeRawBytes() on such a stream. - -

    TQTextStream::TQTextStream ( TQString & str, int filemode ) -

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

    This constructor is equivalent to the constructor taking a TQString* -parameter. - -

    TQTextStream::TQTextStream ( TQByteArray a, int mode ) -

    -Constructs a text stream that operates on the byte array, a, -through an internal TQBuffer device. The mode argument is passed -to the device's open() function; see TQIODevice::mode(). -

    Example: -

    -    TQByteArray array;
    -    TQTextStream ts( array, IO_WriteOnly );
    -    ts << "pi = " << 3.14 << '\0'; // array == "pi = 3.14"
    -    
    - -

    Writing data to the text stream will modify the contents of the -array. The array will be expanded when data is written beyond the -end of the string. -

    Same example, using a TQBuffer: -

    -    TQByteArray array;
    -    TQBuffer buf( array );
    -    buf.open( IO_WriteOnly );
    -    TQTextStream ts( &buf );
    -    ts << "pi = " << 3.14 << '\0'; // array == "pi = 3.14"
    -    buf.close();
    -    
    - - -

    TQTextStream::TQTextStream ( FILE * fh, int mode ) -

    -Constructs a text stream that operates on an existing file handle -fh through an internal TQFile device. The mode argument is -passed to the device's open() function; see TQIODevice::mode(). -

    Note that if you create a TQTextStream cout 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. - -

    TQTextStream::~TQTextStream () [virtual] -

    -Destroys the text stream. -

    The destructor does not affect the current IO device. - -

    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. -

    See also TQIODevice::atEnd(). - -

    Examples: addressbook/centralwidget.cpp and grapher/grapher.cpp. -

    TQTextCodec * TQTextStream::codec () -

    -Returns the codec actually used for this stream. -

    If Unicode is automatically detected in input, a codec with name() "ISO-10646-UCS-2" is returned. -

    See also setCodec(). - -

    TQIODevice * TQTextStream::device () const -

    - -

    Returns the IO device currently set. -

    See also setDevice() and unsetDevice(). - -

    bool TQTextStream::eof () const -

    -

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

    This function has been renamed to atEnd(). -

    See also TQIODevice::atEnd(). - -

    Example: chart/chartform_files.cpp. -

    int TQTextStream::fill () const -

    - -

    Returns the fill character. The default value is ' ' (space). - -

    int TQTextStream::fill ( int f ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Sets the fill character to f. Returns the previous fill character. - -

    int TQTextStream::flags () const -

    - -

    Returns the current stream flags. The default value is 0. -

    -
    Flag Meaning -
    skipws Not currently used; whitespace always skipped -
    left Numeric fields are left-aligned -
    right -Not currently used (by default, numerics are right-aligned) -
    internal Puts any padding spaces between +/- and value -
    bin Output and input only in binary -
    oct Output and input only in octal -
    dec Output and input only in decimal -
    hex Output and input only in hexadecimal -
    showbase -Annotates numeric outputs with 0b, 0, or 0x if in bin, -oct, or hex format -
    showpoint Not currently used -
    uppercase Uses 0B and 0X rather than 0b and 0x -
    showpos Shows + for positive numeric values -
    scientific Uses scientific notation for floating point values -
    fixed Uses fixed-point notation for floating point values -
    -

    Note that unless bin, oct, dec, or hex 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. -

    See also setf() and unsetf(). - -

    int TQTextStream::flags ( int f ) -

    - -

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Sets the stream flags to f. Returns the previous stream flags. -

    See also setf() and unsetf(). - -

    TQTextStream & TQTextStream::operator<< ( TQChar c ) -

    -Writes character char to the stream and returns a reference to -the stream. -

    The character c is assumed to be Latin1 encoded independent of -the Encoding set for the TQTextStream. - -

    TQTextStream & TQTextStream::operator<< ( char c ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Writes character c to the stream and returns a reference to the -stream. - -

    TQTextStream & TQTextStream::operator<< ( signed short i ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Writes a short integer i to the stream and returns a -reference to the stream. - -

    TQTextStream & TQTextStream::operator<< ( unsigned short i ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Writes an unsigned short integer i to the stream and -returns a reference to the stream. - -

    TQTextStream & TQTextStream::operator<< ( signed int i ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Writes an int i to the stream and returns a reference to the -stream. - -

    TQTextStream & TQTextStream::operator<< ( unsigned int i ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Writes an unsigned int i to the stream and returns a -reference to the stream. - -

    TQTextStream & TQTextStream::operator<< ( signed long i ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Writes a long int i to the stream and returns a reference -to the stream. - -

    TQTextStream & TQTextStream::operator<< ( unsigned long i ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Writes an unsigned long int i to the stream and -returns a reference to the stream. - -

    TQTextStream & TQTextStream::operator<< ( float f ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Writes a float f to the stream and returns a reference to -the stream. - -

    TQTextStream & TQTextStream::operator<< ( double f ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Writes a double f to the stream and returns a reference to -the stream. - -

    TQTextStream & TQTextStream::operator<< ( const char * s ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Writes a string to the stream and returns a reference to the -stream. -

    The string s is assumed to be Latin1 encoded independent of the -Encoding set for the TQTextStream. - -

    TQTextStream & TQTextStream::operator<< ( const TQString & s ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Writes s to the stream and returns a reference to the stream. - -

    TQTextStream & TQTextStream::operator<< ( const TQCString & s ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Writes s to the stream and returns a reference to the stream. -

    The string s is assumed to be Latin1 encoded independent of the -Encoding set for the TQTextStream. - -

    TQTextStream & TQTextStream::operator<< ( void * ptr ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Writes a pointer to the stream and returns a reference to the -stream. -

    The ptr is output as an unsigned long hexadecimal integer. - -

    TQTextStream & TQTextStream::operator>> ( TQChar & c ) -

    -Reads a char c from the stream and returns a reference to the -stream. Note that whitespace is not skipped. - -

    TQTextStream & TQTextStream::operator>> ( char & c ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Reads a char c from the stream and returns a reference to the -stream. Note that whitespace is skipped. - -

    TQTextStream & TQTextStream::operator>> ( signed short & i ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Reads a signed short integer i from the stream and returns a -reference to the stream. See flags() for an explanation of the -expected input format. - -

    TQTextStream & TQTextStream::operator>> ( unsigned short & i ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Reads an unsigned short integer i from the stream and -returns a reference to the stream. See flags() for an explanation -of the expected input format. - -

    TQTextStream & TQTextStream::operator>> ( signed int & i ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Reads a signed int i from the stream and returns a reference -to the stream. See flags() for an explanation of the expected -input format. - -

    TQTextStream & TQTextStream::operator>> ( unsigned int & i ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Reads an unsigned int i from the stream and returns a -reference to the stream. See flags() for an explanation of the -expected input format. - -

    TQTextStream & TQTextStream::operator>> ( signed long & i ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Reads a signed long int i from the stream and returns a -reference to the stream. See flags() for an explanation of the -expected input format. - -

    TQTextStream & TQTextStream::operator>> ( unsigned long & i ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Reads an unsigned long int i from the stream and returns a -reference to the stream. See flags() for an explanation of the -expected input format. - -

    TQTextStream & TQTextStream::operator>> ( float & f ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Reads a float f from the stream and returns a reference to -the stream. See flags() for an explanation of the expected input -format. - -

    TQTextStream & TQTextStream::operator>> ( double & f ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Reads a double f from the stream and returns a reference to -the stream. See flags() for an explanation of the expected input -format. - -

    TQTextStream & TQTextStream::operator>> ( char * s ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Reads a "word" from the stream into s and returns a reference -to the stream. -

    A word consists of characters for which isspace() returns FALSE. - -

    TQTextStream & TQTextStream::operator>> ( TQString & str ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Reads a "word" from the stream into str and returns a reference -to the stream. -

    A word consists of characters for which isspace() returns FALSE. - -

    TQTextStream & TQTextStream::operator>> ( TQCString & str ) -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Reads a "word" from the stream into str and returns a reference -to the stream. -

    A word consists of characters for which isspace() returns FALSE. - -

    int TQTextStream::precision () const -

    - -

    Returns the precision. The default value is 6. - -

    int TQTextStream::precision ( int p ) -

    - -

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Sets the precision to p. Returns the previous precision setting. - -

    TQString TQTextStream::read () -

    -Reads the entire stream from the current position, and returns a string -containing the text. -

    See also TQIODevice::readLine(). - -

    Examples: action/application.cpp, application/application.cpp, mdi/application.cpp, qdir/qdir.cpp, and qwerty/qwerty.cpp. -

    TQString TQTextStream::readLine () -

    -Reads a line from the stream and returns a string containing the -text. -

    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. -

    On EOF you will get a TQString that is null. On reading an empty -line the returned TQString is empty but not null. -

    See also TQIODevice::readLine(). - -

    Examples: addressbook/centralwidget.cpp, chart/element.cpp, and network/clientserver/server/server.cpp. -

    TQTextStream & TQTextStream::readRawBytes ( char * s, uint len ) -

    -Reads len bytes from the stream into s and returns a -reference to the stream. -

    The buffer s must be preallocated. -

    Note that no encoding is done by this function. -

    Warning: The behavior of this function is undefined unless the -stream's encoding is set to Unicode or Latin1. -

    See also TQIODevice::readBlock(). - -

    void TQTextStream::reset () -

    -Resets the text stream. -

      -
    • All flags are set to 0. -
    • The field width is set to 0. -
    • The fill character is set to ' ' (Space). -
    • The precision is set to 6. -
    -

    See also setf(), width(), fill(), and precision(). - -

    void TQTextStream::setCodec ( TQTextCodec * codec ) -

    -Sets the codec for this stream to codec. Will not try to -autodetect Unicode. -

    Note that this function should be called before any data is read -to/written from the stream. -

    See also setEncoding() and codec(). - -

    Example: qwerty/qwerty.cpp. -

    void TQTextStream::setDevice ( TQIODevice * iod ) -

    -Sets the IO device to iod. -

    See also device() and unsetDevice(). - -

    void TQTextStream::setEncoding ( Encoding e ) -

    -Sets the encoding of this stream to e, where e is one of the -following values: -
    -
    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 -Like Unicode, but does not write the byte order marker nor -does it auto-detect the byte order. Useful only when writing to -non-persistent storage used by a single process. -
    -

    Locale and all Unicode encodings, except RawUnicode, will look -at the first two bytes in an input stream to determine the byte -order. The initial byte order marker will be stripped off before -data is read. -

    Note that this function should be called before any data is read to -or written from the stream. -

    See also setCodec(). - -

    Examples: addressbook/centralwidget.cpp, network/httpd/httpd.cpp, and qwerty/qwerty.cpp. -

    int TQTextStream::setf ( int bits ) -

    - -

    Sets the stream flag bits bits. Returns the previous stream -flags. -

    Equivalent to flags( flags() | bits ). -

    See also unsetf(). - -

    int TQTextStream::setf ( int bits, int mask ) -

    - -

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Sets the stream flag bits bits with a bit mask mask. Returns -the previous stream flags. -

    Equivalent to flags( (flags() & ~mask) | (bits & mask) ). -

    See also unsetf(). - -

    void TQTextStream::skipWhiteSpace () -

    -Positions the read pointer at the first non-whitespace character. - -

    void TQTextStream::unsetDevice () -

    -Unsets the IO device. Equivalent to setDevice( 0 ). -

    See also device() and setDevice(). - -

    int TQTextStream::unsetf ( int bits ) -

    - -

    Clears the stream flag bits bits. Returns the previous stream -flags. -

    Equivalent to flags( flags() & ~mask ). -

    See also setf(). - -

    int TQTextStream::width () const -

    - -

    Returns the field width. The default value is 0. - -

    int TQTextStream::width ( int w ) -

    - -

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Sets the field width to w. Returns the previous field width. - -

    TQTextStream & TQTextStream::writeRawBytes ( const char * s, uint len ) -

    -Writes the len bytes from s to the stream and returns a -reference to the stream. -

    Note that no encoding is done by this function. -

    See also TQIODevice::writeBlock(). - - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/ntqtextview.html b/doc/html/ntqtextview.html deleted file mode 100644 index 3666e1e1b..000000000 --- a/doc/html/ntqtextview.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - - -TQTextView Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQTextView Class Reference
    [obsolete]

    - -

    The TQTextView class provides a rich-text viewer. -More... -

    #include <ntqtextview.h> -

    Inherits TQTextEdit. -

    List of all member functions. -

    Properties

    -
      -
    • bool modified - whether the text view's contents have been modified  (read only)
    • -
    • bool overwriteMode - whether new text overwrites or pushes aside existing text  (read only)
    • -
    • bool readOnly - whether the text view's contents are read only  (read only)
    • -
    • int undoDepth - the number of undoable steps  (read only)
    • -
    • bool undoRedoEnabled - whether undo and redo are enabled  (read only)
    • -
    -

    Detailed Description

    - -The TQTextView class provides a rich-text viewer. -

    This class is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

    This class wraps a read-only TQTextEdit. -Use a TQTextEdit instead, and call setReadOnly(TRUE) -to disable editing. - -


    Property Documentation

    -

    bool modified

    -

    This property holds whether the text view's contents have been modified. -

    -

    bool overwriteMode

    -

    This property holds whether new text overwrites or pushes aside existing text. -

    -

    bool readOnly

    -

    This property holds whether the text view's contents are read only. -

    -

    int undoDepth

    -

    This property holds the number of undoable steps. -

    -

    bool undoRedoEnabled

    -

    This property holds whether undo and redo are enabled. -

    -

    -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/ntqtsciicodec.html b/doc/html/ntqtsciicodec.html index 6cd76e288..6d27cdd3d 100644 --- a/doc/html/ntqtsciicodec.html +++ b/doc/html/ntqtsciicodec.html @@ -35,7 +35,7 @@ body { background: #ffffff; color: black; } More...

    All the functions in this class are reentrant when TQt is built with thread support.

    #include <ntqtsciicodec.h> -

    Inherits TQTextCodec. +

    Inherits TQTextCodec.

    List of all member functions.


    Detailed Description

    diff --git a/doc/html/pictures.html b/doc/html/pictures.html index 15e713fa2..3c139f31c 100644 --- a/doc/html/pictures.html +++ b/doc/html/pictures.html @@ -48,7 +48,7 @@ bottom there's a TQIconView. a TQMenuBar and some TQToolBars that contain various widgets, e.g. TQToolButtons and TQComboBoxes. The central widget is a TQWorkspace which is used for MDI window management and -which contains an MDI-Window featuring a TQTextEdit. At the bottom +which contains an MDI-Window featuring a TQTextEdit. At the bottom you see a TQStatusBar and at the bottom-right a TQSizeGrip.

    The image below shows a TQFileDialog. On the Macintosh and Windows @@ -81,9 +81,9 @@ also be used as a separate widget. more convenient class TQTabWidget, which combines a tab bar with the pages, can be used separately. In the visible page you see a TQLabel, the range controls TQSlider and TQSpinBox and below a TQLCDNumber. In the bottom row there are some TQPushButtons.

    -

    In the screenshot below there's a TQTextBrowser displaying a HTML -page. See also TQTextEdit. -

    +

    In the screenshot below there's a TQTextBrowser displaying a HTML +page. See also TQTextEdit. +


    diff --git a/doc/html/plugins-howto.html b/doc/html/plugins-howto.html index 8c146ccc8..320c694f3 100644 --- a/doc/html/plugins-howto.html +++ b/doc/html/plugins-howto.html @@ -55,7 +55,7 @@ by default in the standard plugin directory. TQStylePlugin pluginsbase/styles * -TQTextCodecPlugin +TQTextCodecPlugin pluginsbase/codecs * TQWidgetPlugin diff --git a/doc/html/plugins.html b/doc/html/plugins.html index 50f0bb247..da4187cc0 100644 --- a/doc/html/plugins.html +++ b/doc/html/plugins.html @@ -46,7 +46,7 @@ Windows. TQMouseDriverPluginAbstract base for TQt/Embedded mouse driver plugins TQSqlDriverPluginAbstract base for custom TQSqlDriver plugins TQStylePluginAbstract base for custom TQStyle plugins -TQTextCodecPluginAbstract base for custom TQTextCodec plugins +TQTextCodecPluginAbstract base for custom TQTextCodec plugins TQWidgetPluginAbstract base for custom TQWidget plugins diff --git a/doc/html/porting.html b/doc/html/porting.html index 701b449f3..4a486675e 100644 --- a/doc/html/porting.html +++ b/doc/html/porting.html @@ -375,7 +375,7 @@ new code.
  • TQTabDialog::selected( const TQString & )
  • TQTabDialog::selected( const TQString & tabLabel )
  • TQTabDialog::setTabEnabled( const char *name, bool enable ) -
  • TQTextStream::TQTextStream( TQString & str, int filemode ) +
  • TQTextStream::TQTextStream( TQString & str, int filemode )
  • TQToolBar::TQToolBar( const TQString & label, TQMainWindow *, ToolBarDock = DockTop, bool newLine = FALSE, const char *name = 0 )
  • TQToolTip::enabled()
  • TQToolTip::setEnabled( bool enable ) @@ -392,7 +392,7 @@ new code.
  • TQWidget::setPalette( const TQPalette & p, bool )
  • TQWizard::setFinish( TQWidget *, bool )
  • TQXmlInputSource::TQXmlInputSource( TQFile & file ) -
  • TQXmlInputSource::TQXmlInputSource( TQTextStream & stream ) +
  • TQXmlInputSource::TQXmlInputSource( TQTextStream & stream )
  • TQXmlReader::parse( const TQXmlInputSource & input )

    Additionally, these preprocessor directives have been removed: @@ -491,7 +491,7 @@ top level widgets.

    The TQMultiLineEdit was a simple editor widget in previous TQt versions. Since TQt 3.0 includes a new richtext engine, which also supports editing, TQMultiLineEdit is obsolete. For the sake of compatibility -TQMultiLineEdit is still provided. It is now a subclass of TQTextEdit +TQMultiLineEdit is still provided. It is now a subclass of TQTextEdit which wraps the old TQMultiLineEdit so that it is mostly source compatible to keep old applications working.

    For new applications and when maintaining existing applications we @@ -676,7 +676,7 @@ have been removed, together with the following two functions as well.

  • void TQToolButton::setIconSet( const TQIconSet & set )
  • TQIconSet TQToolButton::iconSet() const -

    TQTextStream +

    TQTextStream

    The global TQTextStream manipulators setw(), setfill() and setprecison() were renamed to qSetW(), qSetFill() and qSetPrecision() to avoid conflicts diff --git a/doc/html/process-example.html b/doc/html/process-example.html index 719651b89..9629f2950 100644 --- a/doc/html/process-example.html +++ b/doc/html/process-example.html @@ -52,7 +52,7 @@ output of the command. #include <tqobject.h> #include <ntqprocess.h> #include <ntqvbox.h> -#include <ntqtextview.h> +#include <tqtextview.h> #include <ntqpushbutton.h> #include <ntqapplication.h> #include <ntqmessagebox.h> @@ -73,14 +73,14 @@ public slots: private: TQProcess *proc; - TQTextView *output; + TQTextView *output; TQPushButton *quitButton; }; UicManager::UicManager() { // Layout - output = new TQTextView( this ); + output = new TQTextView( this ); quitButton = new TQPushButton( tr("Quit"), this ); connect( quitButton, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); @@ -116,7 +116,7 @@ void UicManager::readFromStdout() { // Read and process the data. // Bear in mind that the data might be output in chunks. - output->append( proc->readStdout() ); + output->append( proc->readStdout() ); } void UicManager::scrollToTop() diff --git a/doc/html/propertydocs b/doc/html/propertydocs index 7bd06c2e0..d85f48272 100644 --- a/doc/html/propertydocs +++ b/doc/html/propertydocs @@ -1966,8 +1966,8 @@ set, the buddy accelerator key is updated from the new text. <p> 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 <a href="ntqtextedit.html">QTextEdit</a> -in read-only mode instead. QTextEdit will flicker less on resize +palette and font properties. For large documents, use <a href="tqtextedit.html">TQTextEdit</a> +in read-only mode instead. TQTextEdit will flicker less on resize and can also provide a scrollbar when necessary. <p> <p>See also <a href="ntqlabel.html#textFormat-prop">textFormat</a>, <a href="ntqlabel.html#setBuddy">setBuddy</a>(), and <a href="ntqlabel.html#alignment-prop">alignment</a>. @@ -2733,8 +2733,8 @@ the message box will try to auto-detect the format of the text. QMultiLineEdit::edited <p>This property holds whether the document has been edited by the user. -<p>This is the same as <a href="ntqtextedit.html">QTextEdit</a>'s "modifed" property. -<p> <p>See also <a href="ntqtextedit.html#modified-prop">QTextEdit::modified</a>. +<p>This is the same as <a href="tqtextedit.html">TQTextEdit</a>'s "modifed" property. +<p> <p>See also <a href="tqtextedit.html#modified-prop">TQTextEdit::modified</a>. <p>Set this property's value with <a href="ntqmultilineedit.html#setEdited">setEdited</a>() and get this property's value with <a href="ntqmultilineedit.html#edited">edited</a>(). @@ -3862,19 +3862,19 @@ multiple ranges of cells. - QTextBrowser::source - + TQTextBrowser::source + <p>This property holds the name of the displayed document. <p>This is a <a href="tqstring.html#TQString-null">TQString::null</a> if no document is displayed or if the source is unknown. -<p> Setting this property uses the <a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>() to lookup the +<p> Setting this property uses the <a href="tqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>() to lookup the named document. It also checks for optional anchors and scrolls the document accordingly. <p> If the first tag in the document is <tt>&lt;qt type=detail&gt;</tt>, the document is displayed as a popup rather than as new document in the browser window itself. Otherwise, the document is displayed normally in the text browser with the text set to the contents of -the named document with <a href="ntqtextedit.html#setText">setText</a>(). +the named document with <a href="tqtextedit.html#setText">setText</a>(). <p> If you are using the filesystem access capabilities of the mime source factory, you must ensure that the factory knows about the encoding of specified files; otherwise no data will be available. @@ -3882,67 +3882,67 @@ The default factory handles a couple of common file extensions such as <tt>*.html</tt> and <tt>*.txt</tt> with reasonable defaults. See <a href="qmimesourcefactory.html#data">QMimeSourceFactory::data</a>() for details. -<p>Set this property's value with <a href="ntqtextbrowser.html#setSource">setSource</a>() and get this property's value with <a href="ntqtextbrowser.html#source">source</a>(). +<p>Set this property's value with <a href="tqtextbrowser.html#setSource">setSource</a>() and get this property's value with <a href="tqtextbrowser.html#source">source</a>(). - QTextEdit::autoFormatting - + TQTextEdit::autoFormatting + <p>This property holds the enabled set of auto formatting features. -<p>The value can be any combination of the values in the <a href="ntqtextedit.html#AutoFormatting-enum">AutoFormatting</a> enum. The default is <a href="ntqtextedit.html#AutoFormatting-enum">AutoAll</a>. Choose <a href="ntqtextedit.html#AutoFormatting-enum">AutoNone</a> +<p>The value can be any combination of the values in the <a href="tqtextedit.html#AutoFormatting-enum">AutoFormatting</a> enum. The default is <a href="tqtextedit.html#AutoFormatting-enum">AutoAll</a>. Choose <a href="tqtextedit.html#AutoFormatting-enum">AutoNone</a> to disable all automatic formatting. -<p> Currently, the only automatic formatting feature provided is <a href="ntqtextedit.html#AutoFormatting-enum">AutoBulletList</a>; future versions of TQt may offer more. +<p> Currently, the only automatic formatting feature provided is <a href="tqtextedit.html#AutoFormatting-enum">AutoBulletList</a>; future versions of TQt may offer more. -<p>Set this property's value with <a href="ntqtextedit.html#setAutoFormatting">setAutoFormatting</a>() and get this property's value with <a href="ntqtextedit.html#autoFormatting">autoFormatting</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setAutoFormatting">setAutoFormatting</a>() and get this property's value with <a href="tqtextedit.html#autoFormatting">autoFormatting</a>(). - QTextEdit::documentTitle - + TQTextEdit::documentTitle + <p>This property holds the title of the document parsed from the text. <p>For <a href="ntqt.html#TextFormat-enum">PlainText</a> the title will be an empty string. For <a href="ntqt.html#TextFormat-enum">RichText</a> the title will be the text between the <tt>&lt;title&gt;</tt> tags, if present, otherwise an empty string. -<p>Get this property's value with <a href="ntqtextedit.html#documentTitle">documentTitle</a>(). +<p>Get this property's value with <a href="tqtextedit.html#documentTitle">documentTitle</a>(). - QTextEdit::hasSelectedText - + TQTextEdit::hasSelectedText + <p>This property holds whether some text is selected in selection 0. <p> -<p>Get this property's value with <a href="ntqtextedit.html#hasSelectedText">hasSelectedText</a>(). +<p>Get this property's value with <a href="tqtextedit.html#hasSelectedText">hasSelectedText</a>(). - QTextEdit::length - + TQTextEdit::length + <p>This property holds the number of characters in the text. <p> -<p>Get this property's value with <a href="ntqtextedit.html#length">length</a>(). +<p>Get this property's value with <a href="tqtextedit.html#length">length</a>(). - QTextEdit::linkUnderline - + TQTextEdit::linkUnderline + <p>This property holds whether hypertext links will be underlined. <p>If TRUE (the default) hypertext links will be displayed underlined. If FALSE links will not be displayed underlined. -<p>Set this property's value with <a href="ntqtextedit.html#setLinkUnderline">setLinkUnderline</a>() and get this property's value with <a href="ntqtextedit.html#linkUnderline">linkUnderline</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setLinkUnderline">setLinkUnderline</a>() and get this property's value with <a href="tqtextedit.html#linkUnderline">linkUnderline</a>(). - QTextEdit::modified - + TQTextEdit::modified + <p>This property holds whether the document has been modified by the user. <p> -<p>Set this property's value with <a href="ntqtextedit.html#setModified">setModified</a>() and get this property's value with <a href="ntqtextedit.html#isModified">isModified</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setModified">setModified</a>() and get this property's value with <a href="tqtextedit.html#isModified">isModified</a>(). - QTextEdit::overwriteMode - + TQTextEdit::overwriteMode + <p>This property holds the text edit's overwrite mode. <p>If FALSE (the default) characters entered by the user are inserted with any characters to the right being moved out of the way. If @@ -3950,80 +3950,80 @@ TRUE, the editor is in overwrite mode, i.e. characters entered by the user overwrite any characters to the right of the cursor position. -<p>Set this property's value with <a href="ntqtextedit.html#setOverwriteMode">setOverwriteMode</a>() and get this property's value with <a href="ntqtextedit.html#isOverwriteMode">isOverwriteMode</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setOverwriteMode">setOverwriteMode</a>() and get this property's value with <a href="tqtextedit.html#isOverwriteMode">isOverwriteMode</a>(). - QTextEdit::paper - + TQTextEdit::paper + <p>This property holds the background (paper) brush. <p>The brush that is currently used to draw the background of the text edit. The initial setting is an empty brush. -<p>Set this property's value with <a href="ntqtextedit.html#setPaper">setPaper</a>() and get this property's value with <a href="ntqtextedit.html#paper">paper</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setPaper">setPaper</a>() and get this property's value with <a href="tqtextedit.html#paper">paper</a>(). - QTextEdit::readOnly - + TQTextEdit::readOnly + <p>This property holds whether the text edit is read-only. <p>In a read-only text edit the user can only navigate through the text and select text; modifying the text is not possible. <p> This property's default is FALSE. -<p>Set this property's value with <a href="ntqtextedit.html#setReadOnly">setReadOnly</a>() and get this property's value with <a href="ntqtextedit.html#isReadOnly">isReadOnly</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setReadOnly">setReadOnly</a>() and get this property's value with <a href="tqtextedit.html#isReadOnly">isReadOnly</a>(). - QTextEdit::selectedText - + TQTextEdit::selectedText + <p>This property holds the selected text (from selection 0) or an empty string if there is no currently selected text (in selection 0). -<p>The text is always returned as <a href="ntqt.html#TextFormat-enum">PlainText</a> if the <a href="ntqtextedit.html#textFormat">textFormat</a>() is +<p>The text is always returned as <a href="ntqt.html#TextFormat-enum">PlainText</a> if the <a href="tqtextedit.html#textFormat">textFormat</a>() is <a href="ntqt.html#TextFormat-enum">PlainText</a> or <a href="ntqt.html#TextFormat-enum">AutoText</a>, otherwise it is returned as HTML. -<p> <p>See also <a href="ntqtextedit.html#hasSelectedText-prop">hasSelectedText</a>. +<p> <p>See also <a href="tqtextedit.html#hasSelectedText-prop">hasSelectedText</a>. -<p>Get this property's value with <a href="ntqtextedit.html#selectedText">selectedText</a>(). +<p>Get this property's value with <a href="tqtextedit.html#selectedText">selectedText</a>(). - QTextEdit::tabChangesFocus - <p>This property holds whether TAB changes focus or is accepted as input. + TQTextEdit::tabChangesFocus + <p>This property holds whether TAB changes focus or is accepted as input. <p>In some occasions text edits should not allow the user to input tabulators or change indentation using the TAB key, as this breaks the focus chain. The default is FALSE. <p> -<p>Set this property's value with <a href="ntqtextedit.html#setTabChangesFocus">setTabChangesFocus</a>() and get this property's value with <a href="ntqtextedit.html#tabChangesFocus">tabChangesFocus</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setTabChangesFocus">setTabChangesFocus</a>() and get this property's value with <a href="tqtextedit.html#tabChangesFocus">tabChangesFocus</a>(). - QTextEdit::tabStopWidth - + TQTextEdit::tabStopWidth + <p>This property holds the tab stop width in pixels. <p> -<p>Set this property's value with <a href="ntqtextedit.html#setTabStopWidth">setTabStopWidth</a>() and get this property's value with <a href="ntqtextedit.html#tabStopWidth">tabStopWidth</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setTabStopWidth">setTabStopWidth</a>() and get this property's value with <a href="tqtextedit.html#tabStopWidth">tabStopWidth</a>(). - QTextEdit::text - + TQTextEdit::text + <p>This property holds the text edit's text. <p>There is no default text. <p> On setting, any previous text is deleted. <p> The text may be interpreted either as plain text or as rich text, -depending on the <a href="ntqtextedit.html#textFormat">textFormat</a>(). The default setting is <a href="ntqt.html#TextFormat-enum">AutoText</a>, +depending on the <a href="tqtextedit.html#textFormat">textFormat</a>(). The default setting is <a href="ntqt.html#TextFormat-enum">AutoText</a>, i.e. the text edit auto-detects the format of the text. -<p> For richtext, calling <a href="ntqtextedit.html#text">text</a>() on an editable QTextEdit will cause +<p> For richtext, calling <a href="tqtextedit.html#text">text</a>() on an editable TQTextEdit will cause the text to be regenerated from the textedit. This may mean that the <a href="tqstring.html">TQString</a> returned may not be exactly the same as the one that was set. -<p> <p>See also <a href="ntqtextedit.html#textFormat-prop">textFormat</a>. +<p> <p>See also <a href="tqtextedit.html#textFormat-prop">textFormat</a>. -<p>Set this property's value with <a href="ntqtextedit.html#setText">setText</a>() and get this property's value with <a href="ntqtextedit.html#text">text</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setText">setText</a>() and get this property's value with <a href="tqtextedit.html#text">text</a>(). - QTextEdit::textFormat - + TQTextEdit::textFormat + <p>This property holds the text format: rich text, plain text, log text or auto text. <p>The text format is one of the following: <ul> @@ -4041,67 +4041,67 @@ rendering style is best, <a href="ntqt.html#TextFormat-enum">PlainText< by using the <a href="ntqstylesheet.html#mightBeRichText">QStyleSheet::mightBeRichText</a>() function. </ul> -<p>Set this property's value with <a href="ntqtextedit.html#setTextFormat">setTextFormat</a>() and get this property's value with <a href="ntqtextedit.html#textFormat">textFormat</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setTextFormat">setTextFormat</a>() and get this property's value with <a href="tqtextedit.html#textFormat">textFormat</a>(). - QTextEdit::undoDepth - + TQTextEdit::undoDepth + <p>This property holds the depth of the undo history. <p>The maximum number of steps in the undo/redo history. The default is 100. -<p> <p>See also <a href="ntqtextedit.html#undo">undo</a>() and <a href="ntqtextedit.html#redo">redo</a>(). +<p> <p>See also <a href="tqtextedit.html#undo">undo</a>() and <a href="tqtextedit.html#redo">redo</a>(). -<p>Set this property's value with <a href="ntqtextedit.html#setUndoDepth">setUndoDepth</a>() and get this property's value with <a href="ntqtextedit.html#undoDepth">undoDepth</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setUndoDepth">setUndoDepth</a>() and get this property's value with <a href="tqtextedit.html#undoDepth">undoDepth</a>(). - QTextEdit::undoRedoEnabled - + TQTextEdit::undoRedoEnabled + <p>This property holds whether undo/redo is enabled. <p>When changing this property, the undo/redo history is cleared. <p> The default is TRUE. -<p>Set this property's value with <a href="ntqtextedit.html#setUndoRedoEnabled">setUndoRedoEnabled</a>() and get this property's value with <a href="ntqtextedit.html#isUndoRedoEnabled">isUndoRedoEnabled</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setUndoRedoEnabled">setUndoRedoEnabled</a>() and get this property's value with <a href="tqtextedit.html#isUndoRedoEnabled">isUndoRedoEnabled</a>(). - QTextEdit::wordWrap - + TQTextEdit::wordWrap + <p>This property holds the word wrap mode. -<p>The default mode is <a href="ntqtextedit.html#WordWrap-enum">WidgetWidth</a> which causes words to be +<p>The default mode is <a href="tqtextedit.html#WordWrap-enum">WidgetWidth</a> which causes words to be wrapped at the right edge of the text edit. Wrapping occurs at whitespace, keeping whole words intact. If you want wrapping to -occur within words use <a href="ntqtextedit.html#setWrapPolicy">setWrapPolicy</a>(). If you set a wrap mode of -<a href="ntqtextedit.html#WordWrap-enum">FixedPixelWidth</a> or <a href="ntqtextedit.html#WordWrap-enum">FixedColumnWidth</a> you should also call -<a href="ntqtextedit.html#setWrapColumnOrWidth">setWrapColumnOrWidth</a>() with the width you want. -<p> <p>See also <a href="ntqtextedit.html#WordWrap-enum">WordWrap</a>, <a href="ntqtextedit.html#wrapColumnOrWidth-prop">wrapColumnOrWidth</a>, and <a href="ntqtextedit.html#wrapPolicy-prop">wrapPolicy</a>. +occur within words use <a href="tqtextedit.html#setWrapPolicy">setWrapPolicy</a>(). If you set a wrap mode of +<a href="tqtextedit.html#WordWrap-enum">FixedPixelWidth</a> or <a href="tqtextedit.html#WordWrap-enum">FixedColumnWidth</a> you should also call +<a href="tqtextedit.html#setWrapColumnOrWidth">setWrapColumnOrWidth</a>() with the width you want. +<p> <p>See also <a href="tqtextedit.html#WordWrap-enum">WordWrap</a>, <a href="tqtextedit.html#wrapColumnOrWidth-prop">wrapColumnOrWidth</a>, and <a href="tqtextedit.html#wrapPolicy-prop">wrapPolicy</a>. -<p>Set this property's value with <a href="ntqtextedit.html#setWordWrap">setWordWrap</a>() and get this property's value with <a href="ntqtextedit.html#wordWrap">wordWrap</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setWordWrap">setWordWrap</a>() and get this property's value with <a href="tqtextedit.html#wordWrap">wordWrap</a>(). - QTextEdit::wrapColumnOrWidth - + TQTextEdit::wrapColumnOrWidth + <p>This property holds the position (in pixels or columns depending on the wrap mode) where text will be wrapped. -<p>If the wrap mode is <a href="ntqtextedit.html#WordWrap-enum">FixedPixelWidth</a>, the value is the number of +<p>If the wrap mode is <a href="tqtextedit.html#WordWrap-enum">FixedPixelWidth</a>, the value is the number of pixels from the left edge of the text edit at which text should be -wrapped. If the wrap mode is <a href="ntqtextedit.html#WordWrap-enum">FixedColumnWidth</a>, the value is the +wrapped. If the wrap mode is <a href="tqtextedit.html#WordWrap-enum">FixedColumnWidth</a>, the value is the column number (in character columns) from the left edge of the text edit at which text should be wrapped. -<p> <p>See also <a href="ntqtextedit.html#wordWrap-prop">wordWrap</a>. +<p> <p>See also <a href="tqtextedit.html#wordWrap-prop">wordWrap</a>. -<p>Set this property's value with <a href="ntqtextedit.html#setWrapColumnOrWidth">setWrapColumnOrWidth</a>() and get this property's value with <a href="ntqtextedit.html#wrapColumnOrWidth">wrapColumnOrWidth</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setWrapColumnOrWidth">setWrapColumnOrWidth</a>() and get this property's value with <a href="tqtextedit.html#wrapColumnOrWidth">wrapColumnOrWidth</a>(). - QTextEdit::wrapPolicy - + TQTextEdit::wrapPolicy + <p>This property holds the word wrap policy, at whitespace or anywhere. -<p>Defines where text can be wrapped when word wrap mode is not <a href="ntqtextedit.html#WordWrap-enum">NoWrap</a>. The choices are <a href="ntqtextedit.html#WrapPolicy-enum">AtWordBoundary</a> (the default), <a href="ntqtextedit.html#WrapPolicy-enum">Anywhere</a> and <a href="ntqtextedit.html#WrapPolicy-enum">AtWordOrDocumentBoundary</a> -<p> <p>See also <a href="ntqtextedit.html#wordWrap-prop">wordWrap</a>. +<p>Defines where text can be wrapped when word wrap mode is not <a href="tqtextedit.html#WordWrap-enum">NoWrap</a>. The choices are <a href="tqtextedit.html#WrapPolicy-enum">AtWordBoundary</a> (the default), <a href="tqtextedit.html#WrapPolicy-enum">Anywhere</a> and <a href="tqtextedit.html#WrapPolicy-enum">AtWordOrDocumentBoundary</a> +<p> <p>See also <a href="tqtextedit.html#wordWrap-prop">wordWrap</a>. -<p>Set this property's value with <a href="ntqtextedit.html#setWrapPolicy">setWrapPolicy</a>() and get this property's value with <a href="ntqtextedit.html#wrapPolicy">wrapPolicy</a>(). +<p>Set this property's value with <a href="tqtextedit.html#setWrapPolicy">setWrapPolicy</a>() and get this property's value with <a href="tqtextedit.html#wrapPolicy">wrapPolicy</a>(). diff --git a/doc/html/propertyindex b/doc/html/propertyindex index 48327defa..61f8bd7a0 100644 --- a/doc/html/propertyindex +++ b/doc/html/propertyindex @@ -314,26 +314,26 @@ "QTable/selectionMode" ntqtable.html#selectionMode-prop "QTable/showGrid" ntqtable.html#showGrid-prop "QTable/sorting" ntqtable.html#sorting-prop -"QTextBrowser/source" ntqtextbrowser.html#source-prop -"QTextEdit/autoFormatting" ntqtextedit.html#autoFormatting-prop -"QTextEdit/documentTitle" ntqtextedit.html#documentTitle-prop -"QTextEdit/hasSelectedText" ntqtextedit.html#hasSelectedText-prop -"QTextEdit/length" ntqtextedit.html#length-prop -"QTextEdit/linkUnderline" ntqtextedit.html#linkUnderline-prop -"QTextEdit/modified" ntqtextedit.html#modified-prop -"QTextEdit/overwriteMode" ntqtextedit.html#overwriteMode-prop -"QTextEdit/paper" ntqtextedit.html#paper-prop -"QTextEdit/readOnly" ntqtextedit.html#readOnly-prop -"QTextEdit/selectedText" ntqtextedit.html#selectedText-prop -"QTextEdit/tabChangesFocus" ntqtextedit.html#tabChangesFocus-prop -"QTextEdit/tabStopWidth" ntqtextedit.html#tabStopWidth-prop -"QTextEdit/text" ntqtextedit.html#text-prop -"QTextEdit/textFormat" ntqtextedit.html#textFormat-prop -"QTextEdit/undoDepth" ntqtextedit.html#undoDepth-prop -"QTextEdit/undoRedoEnabled" ntqtextedit.html#undoRedoEnabled-prop -"QTextEdit/wordWrap" ntqtextedit.html#wordWrap-prop -"QTextEdit/wrapColumnOrWidth" ntqtextedit.html#wrapColumnOrWidth-prop -"QTextEdit/wrapPolicy" ntqtextedit.html#wrapPolicy-prop +"TQTextBrowser/source" tqtextbrowser.html#source-prop +"TQTextEdit/autoFormatting" tqtextedit.html#autoFormatting-prop +"TQTextEdit/documentTitle" tqtextedit.html#documentTitle-prop +"TQTextEdit/hasSelectedText" tqtextedit.html#hasSelectedText-prop +"TQTextEdit/length" tqtextedit.html#length-prop +"TQTextEdit/linkUnderline" tqtextedit.html#linkUnderline-prop +"TQTextEdit/modified" tqtextedit.html#modified-prop +"TQTextEdit/overwriteMode" tqtextedit.html#overwriteMode-prop +"TQTextEdit/paper" tqtextedit.html#paper-prop +"TQTextEdit/readOnly" tqtextedit.html#readOnly-prop +"TQTextEdit/selectedText" tqtextedit.html#selectedText-prop +"TQTextEdit/tabChangesFocus" tqtextedit.html#tabChangesFocus-prop +"TQTextEdit/tabStopWidth" tqtextedit.html#tabStopWidth-prop +"TQTextEdit/text" tqtextedit.html#text-prop +"TQTextEdit/textFormat" tqtextedit.html#textFormat-prop +"TQTextEdit/undoDepth" tqtextedit.html#undoDepth-prop +"TQTextEdit/undoRedoEnabled" tqtextedit.html#undoRedoEnabled-prop +"TQTextEdit/wordWrap" tqtextedit.html#wordWrap-prop +"TQTextEdit/wrapColumnOrWidth" tqtextedit.html#wrapColumnOrWidth-prop +"TQTextEdit/wrapPolicy" tqtextedit.html#wrapPolicy-prop "QTimeEdit/autoAdvance" qtimeedit.html#autoAdvance-prop "QTimeEdit/display" qtimeedit.html#display-prop "QTimeEdit/maxValue" qtimeedit.html#maxValue-prop diff --git a/doc/html/qaction-application-example.html b/doc/html/qaction-application-example.html index 5b441bf46..a04ca8e77 100644 --- a/doc/html/qaction-application-example.html +++ b/doc/html/qaction-application-example.html @@ -82,7 +82,7 @@ private slots: private: TQPrinter *printer; - TQTextEdit *e; + TQTextEdit *e; TQString filename; }; @@ -110,7 +110,7 @@ private: #include <ntqtoolbutton.h> #include <ntqpopupmenu.h> #include <ntqmenubar.h> -#include <ntqtextedit.h> +#include <tqtextedit.h> #include <ntqfile.h> #include <ntqfiledialog.h> #include <ntqstatusbar.h> @@ -118,7 +118,7 @@ private: #include <ntqprinter.h> #include <ntqapplication.h> #include <ntqaccel.h> -#include <ntqtextstream.h> +#include <tqtextstream.h> #include <ntqpainter.h> #include <ntqpaintdevicemetrics.h> #include <ntqwhatsthis.h> @@ -232,7 +232,7 @@ private: // create and define the central widget - e = new TQTextEdit( this, "editor" ); + e = new TQTextEdit( this, "editor" ); e->setFocus(); setCentralWidget( e ); statusBar()->message( "Ready", 2000 ); @@ -271,9 +271,9 @@ void ApplicationWindow::load( const T if ( !f.open( IO_ReadOnly ) ) return; - TQTextStream ts( &f ); - e->setText( ts.read() ); - e->setModified( FALSE ); + TQTextStream ts( &f ); + e->setText( ts.read() ); + e->setModified( FALSE ); setCaption( fileName ); statusBar()->message( "Loaded document " + fileName, 2000 ); } @@ -286,7 +286,7 @@ void ApplicationWindow::save() return; } - TQString text = e->text(); + TQString text = e->text(); TQFile f( filename ); if ( !f.open( IO_WriteOnly ) ) { statusBar()->message( TQString("Could not write to %1").arg(filename), @@ -294,11 +294,11 @@ void ApplicationWindow::save() return; } - TQTextStream t( &f ); + TQTextStream t( &f ); t << text; f.close(); - e->setModified( FALSE ); + e->setModified( FALSE ); setCaption( filename ); @@ -334,11 +334,11 @@ void ApplicationWindow::print() int dpiy = metrics.logicalDpiY(); int margin = (int) ( (2/2.54)*dpiy ); // 2 cm margins TQRect view( margin, margin, metrics.width() - 2*margin, metrics.height() - 2*margin ); - TQSimpleRichText richText( TQStyleSheet::convertFromPlainText(e->text()), + TQSimpleRichText richText( TQStyleSheet::convertFromPlainText(e->text()), TQFont(), - e->context(), - e->styleSheet(), - e->mimeSourceFactory(), + e->context(), + e->styleSheet(), + e->mimeSourceFactory(), view.height() ); richText.setWidth( &p, view.width() ); int page = 1; @@ -362,7 +362,7 @@ void ApplicationWindow::print() void ApplicationWindow::closeEvent( TQCloseEvent* ce ) { - if ( !e->isModified() ) { + if ( !e->isModified() ) { ce->accept(); return; } diff --git a/doc/html/qaxbase.html b/doc/html/qaxbase.html index 5f49323d5..a78a0cc63 100644 --- a/doc/html/qaxbase.html +++ b/doc/html/qaxbase.html @@ -420,7 +420,7 @@ the help file, and the help context ID in brackets, e.g. "filename [id]".

    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. +or use it in e.g. a TQTextBrowser widget.

    bool TQAxBase::initialize ( IUnknown ** ptr ) [virtual protected]

    diff --git a/doc/html/qbig5codec-h.html b/doc/html/qbig5codec-h.html index 1ca433ad7..445e6ca42 100644 --- a/doc/html/qbig5codec-h.html +++ b/doc/html/qbig5codec-h.html @@ -82,7 +82,7 @@ body { background: #ffffff; color: black; } #define TQBIG5CODEC_H #ifndef QT_H -#include "ntqtextcodec.h" +#include "tqtextcodec.h" #endif // QT_H #ifndef TQT_NO_BIG_CODECS diff --git a/doc/html/qbig5codec-members.html b/doc/html/qbig5codec-members.html index bc3c72ec9..1fad0d9f7 100644 --- a/doc/html/qbig5codec-members.html +++ b/doc/html/qbig5codec-members.html @@ -35,31 +35,31 @@ body { background: #ffffff; color: black; } TQBig5Codec, including inherited members.


    diff --git a/doc/html/qbig5hkscscodec-members.html b/doc/html/qbig5hkscscodec-members.html index 5ee1a4b5d..bf81269d5 100644 --- a/doc/html/qbig5hkscscodec-members.html +++ b/doc/html/qbig5hkscscodec-members.html @@ -35,31 +35,31 @@ body { background: #ffffff; color: black; } TQBig5hkscsCodec, including inherited members.


    diff --git a/doc/html/qbig5hkscscodec.html b/doc/html/qbig5hkscscodec.html index 7eda79ff7..6a6a018c1 100644 --- a/doc/html/qbig5hkscscodec.html +++ b/doc/html/qbig5hkscscodec.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }

    The TQBig5hkscsCodec class provides conversion to and from the Big5-HKSCS encoding. More...

    #include <ntqbig5codec.h> -

    Inherits TQTextCodec. +

    Inherits TQTextCodec.

    List of all member functions.


    Detailed Description

    diff --git a/doc/html/qdir-example.html b/doc/html/qdir-example.html index b540a69a2..ffd1d77f9 100644 --- a/doc/html/qdir-example.html +++ b/doc/html/qdir-example.html @@ -49,10 +49,10 @@ body { background: #ffffff; color: black; } #include "ntqdir.h" #include <ntqapplication.h> -#include <ntqtextview.h> +#include <tqtextview.h> #include <ntqfileinfo.h> #include <ntqfile.h> -#include <ntqtextstream.h> +#include <tqtextstream.h> #include <ntqhbox.h> #include <ntqspinbox.h> #include <ntqlabel.h> @@ -64,7 +64,7 @@ body { background: #ffffff; color: black; } #include <ntqpushbutton.h> #include <ntqtoolbutton.h> #include <ntqfile.h> -#include <ntqtextstream.h> +#include <tqtextstream.h> #include <ntqtooltip.h> #include <stdlib.h> @@ -147,8 +147,8 @@ void PixmapView::setPixmap( const TQ : TQWidgetStack( parent ) { normalText = new TQMultiLineEdit( this ); - normalText->setReadOnly( TRUE ); - html = new TQTextView( this ); + normalText->setReadOnly( TRUE ); + html = new TQTextView( this ); pixmap = new PixmapView( this ); raiseWidget( normalText ); } @@ -159,7 +159,7 @@ void Preview::showPreview( const TQUrl< TQString path = u.path(); TQFileInfo fi( path ); if ( fi.isFile() && (int)fi.size() > size * 1000 ) { - normalText->setText( tr( "The File\n%1\nis too large, so I don't show it!" ).arg( path ) ); + normalText->setText( tr( "The File\n%1\nis too large, so I don't show it!" ).arg( path ) ); raiseWidget( normalText ); return; } @@ -169,29 +169,29 @@ void Preview::showPreview( const TQUrl< if ( fi.isFile() ) { TQFile f( path ); if ( f.open( IO_ReadOnly ) ) { - TQTextStream ts( &f ); - TQString text = ts.read(); + TQTextStream ts( &f ); + TQString text = ts.read(); f.close(); if ( fi.extension().lower().contains( "htm" ) ) { - TQString url = html->mimeSourceFactory()->makeAbsolute( path, html->context() ); - html->setText( text, url ); + TQString url = html->mimeSourceFactory()->makeAbsolute( path, html->context() ); + html->setText( text, url ); raiseWidget( html ); return; } else { - normalText->setText( text ); + normalText->setText( text ); raiseWidget( normalText ); return; } } } - normalText->setText( TQString::null ); + normalText->setText( TQString::null ); raiseWidget( normalText ); } else { pixmap->setPixmap( pix ); raiseWidget( pixmap ); } } else { - normalText->setText( "I only show local files!" ); + normalText->setText( "I only show local files!" ); raiseWidget( normalText ); } } diff --git a/doc/html/qdockarea-h.html b/doc/html/qdockarea-h.html index 655170550..988d0b4cb 100644 --- a/doc/html/qdockarea-h.html +++ b/doc/html/qdockarea-h.html @@ -84,7 +84,7 @@ body { background: #ffffff; color: black; } #include "ntqlayout.h" #include "tqvaluelist.h" #include "ntqguardedptr.h" -#include "ntqtextstream.h" +#include "tqtextstream.h" #endif // QT_H #ifndef TQT_NO_MAINWINDOW diff --git a/doc/html/qdropevent.html b/doc/html/qdropevent.html index a53c65911..5c444ce08 100644 --- a/doc/html/qdropevent.html +++ b/doc/html/qdropevent.html @@ -105,7 +105,7 @@ which your widget processed. Set y to TRUE (the default) if your widget could process the data, otherwise set y to FALSE. To get the data, use encodedData(), or preferably, the decode() methods of existing TQDragObject subclasses, such as -TQTextDrag::decode(), or your own subclasses. +TQTextDrag::decode(), or your own subclasses.

    See also acceptAction().

    Example: iconview/simple_dd/main.cpp. diff --git a/doc/html/qeucjpcodec-h.html b/doc/html/qeucjpcodec-h.html index 8c28e8982..2767442fa 100644 --- a/doc/html/qeucjpcodec-h.html +++ b/doc/html/qeucjpcodec-h.html @@ -107,7 +107,7 @@ body { background: #ffffff; color: black; } #define TQEUCJPCODEC_H #ifndef QT_H -#include "ntqtextcodec.h" +#include "tqtextcodec.h" #include "ntqjpunicode.h" #endif // QT_H diff --git a/doc/html/qeucjpcodec-members.html b/doc/html/qeucjpcodec-members.html index d56a5adac..0bdb369ec 100644 --- a/doc/html/qeucjpcodec-members.html +++ b/doc/html/qeucjpcodec-members.html @@ -37,31 +37,31 @@ body { background: #ffffff; color: black; }


    diff --git a/doc/html/qeuckrcodec-h.html b/doc/html/qeuckrcodec-h.html index 0446d1a58..77900acac 100644 --- a/doc/html/qeuckrcodec-h.html +++ b/doc/html/qeuckrcodec-h.html @@ -103,7 +103,7 @@ body { background: #ffffff; color: black; } #define TQEUCKRCODEC_H #ifndef QT_H -#include "ntqtextcodec.h" +#include "tqtextcodec.h" #endif // QT_H #ifndef TQT_NO_BIG_CODECS diff --git a/doc/html/qeuckrcodec-members.html b/doc/html/qeuckrcodec-members.html index 52ac21111..3ad209ea8 100644 --- a/doc/html/qeuckrcodec-members.html +++ b/doc/html/qeuckrcodec-members.html @@ -35,31 +35,31 @@ body { background: #ffffff; color: black; } TQEucKrCodec, including inherited members.


    diff --git a/doc/html/qfontmanager_qws-h.html b/doc/html/qfontmanager_qws-h.html index 40f47881d..137a3d9bd 100644 --- a/doc/html/qfontmanager_qws-h.html +++ b/doc/html/qfontmanager_qws-h.html @@ -78,7 +78,7 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "ntqfont.h" #include "tqptrlist.h" -#include <private/qtextengine_p.h> +#include <private/tqtextengine_p.h> #endif // QT_H // These are stored in the shared memory segment in front of their diff --git a/doc/html/qgb18030codec-h.html b/doc/html/qgb18030codec-h.html index 663055631..84781ea94 100644 --- a/doc/html/qgb18030codec-h.html +++ b/doc/html/qgb18030codec-h.html @@ -78,7 +78,7 @@ body { background: #ffffff; color: black; } #define TQGB18030CODEC_H #ifndef QT_H -#include "ntqtextcodec.h" +#include "tqtextcodec.h" #endif // QT_H diff --git a/doc/html/qgb18030codec-members.html b/doc/html/qgb18030codec-members.html index 040e8cbfa..39cbfc6cd 100644 --- a/doc/html/qgb18030codec-members.html +++ b/doc/html/qgb18030codec-members.html @@ -35,31 +35,31 @@ body { background: #ffffff; color: black; } TQGb18030Codec, including inherited members.


    diff --git a/doc/html/qgb2312codec-members.html b/doc/html/qgb2312codec-members.html index dbc8dcc90..02b9b867d 100644 --- a/doc/html/qgb2312codec-members.html +++ b/doc/html/qgb2312codec-members.html @@ -35,31 +35,31 @@ body { background: #ffffff; color: black; } TQGb2312Codec, including inherited members.


    diff --git a/doc/html/qgbkcodec-members.html b/doc/html/qgbkcodec-members.html index e8fd8b873..15c7a000f 100644 --- a/doc/html/qgbkcodec-members.html +++ b/doc/html/qgbkcodec-members.html @@ -35,31 +35,31 @@ body { background: #ffffff; color: black; } TQGbkCodec, including inherited members.


    diff --git a/doc/html/qgfx_qws-h.html b/doc/html/qgfx_qws-h.html index 5f8d2497a..3fb69e87d 100644 --- a/doc/html/qgfx_qws-h.html +++ b/doc/html/qgfx_qws-h.html @@ -84,7 +84,7 @@ body { background: #ffffff; color: black; } #include "ntqpoint.h" #endif // QT_H -#include <private/qtextengine_p.h> +#include <private/tqtextengine_p.h> class TQScreenCursor; diff --git a/doc/html/qhebrewcodec-members.html b/doc/html/qhebrewcodec-members.html index 1460f7750..ea578ccd1 100644 --- a/doc/html/qhebrewcodec-members.html +++ b/doc/html/qhebrewcodec-members.html @@ -35,31 +35,31 @@ body { background: #ffffff; color: black; } TQHebrewCodec, including inherited members.


    diff --git a/doc/html/qhebrewcodec.html b/doc/html/qhebrewcodec.html index 29e92170e..6430f491c 100644 --- a/doc/html/qhebrewcodec.html +++ b/doc/html/qhebrewcodec.html @@ -36,7 +36,7 @@ visually ordered Hebrew. More...

    All the functions in this class are reentrant when TQt is built with thread support.

    #include <ntqrtlcodec.h> -

    Inherits TQTextCodec. +

    Inherits TQTextCodec.

    List of all member functions.

    Public Members


    diff --git a/doc/html/qnamespace-h.html b/doc/html/qnamespace-h.html index 2b5c0a707..b70c5e706 100644 --- a/doc/html/qnamespace-h.html +++ b/doc/html/qnamespace-h.html @@ -843,7 +843,7 @@ public: LogText }; - // Documented in qtextedit.cpp + // Documented in tqtextedit.cpp enum AnchorAttribute { AnchorName, AnchorHref diff --git a/doc/html/qnpstream.html b/doc/html/qnpstream.html index 66f624173..223084af3 100644 --- a/doc/html/qnpstream.html +++ b/doc/html/qnpstream.html @@ -57,7 +57,7 @@ body { background: #ffffff; color: black; } The TQNPStream class provides a stream of data provided to a TQNPInstance by the browser.

    -

    Note that this is neither a TQTextStream nor a TQDataStream. +

    Note that this is neither a TQTextStream nor a TQDataStream.

    See also TQNPInstance::write() and TQNPInstance::newStreamCreated().


    Member Function Documentation

    diff --git a/doc/html/qrtlcodec-h.html b/doc/html/qrtlcodec-h.html index bdfc830ca..f02ea4602 100644 --- a/doc/html/qrtlcodec-h.html +++ b/doc/html/qrtlcodec-h.html @@ -78,7 +78,7 @@ body { background: #ffffff; color: black; } #define TQRTLCODEC_H #ifndef QT_H -#include "ntqtextcodec.h" +#include "tqtextcodec.h" #endif // QT_H #ifndef TQT_NO_CODEC_HEBREW diff --git a/doc/html/qsjiscodec-h.html b/doc/html/qsjiscodec-h.html index e0f3789fc..974c5d4d2 100644 --- a/doc/html/qsjiscodec-h.html +++ b/doc/html/qsjiscodec-h.html @@ -107,7 +107,7 @@ body { background: #ffffff; color: black; } #define TQSJISCODEC_H #ifndef QT_H -#include "ntqtextcodec.h" +#include "tqtextcodec.h" #include "ntqjpunicode.h" #endif // QT_H diff --git a/doc/html/qsjiscodec-members.html b/doc/html/qsjiscodec-members.html index ff9d65cc9..340a680b2 100644 --- a/doc/html/qsjiscodec-members.html +++ b/doc/html/qsjiscodec-members.html @@ -37,31 +37,31 @@ body { background: #ffffff; color: black; }


    diff --git a/doc/html/qt-template-lib.html b/doc/html/qt-template-lib.html index 3f3c4c831..a695db8b3 100644 --- a/doc/html/qt-template-lib.html +++ b/doc/html/qt-template-lib.html @@ -239,7 +239,7 @@ OutputIterator, in this case a TQTextOStreamIterator: list.push_back( 100 ); list.push_back( 200 ); list.push_back( 300 ); - TQTextOStream str( stdout ); + TQTextOStream str( stdout ); tqCopy( list.begin(), list.end(), TQTextOStreamIterator(str) );
  • @@ -287,7 +287,7 @@ as possible. In the above example, you could just as easily print out a standard C++ array with tqCopy():

         int arr[] = { 100, 200, 300 };
    -    TQTextOStream str( stdout );
    +    TQTextOStream str( stdout );
         tqCopy( arr, arr + 3, TQTextOStreamIterator( str ) ); 
     
    diff --git a/doc/html/qt.dcf b/doc/html/qt.dcf index 9c187608e..8d3c0187a 100644 --- a/doc/html/qt.dcf +++ b/doc/html/qt.dcf @@ -7888,302 +7888,302 @@
    -
    - QTextBrowser - anchorClicked - backward - backwardAvailable - forward - forwardAvailable - highlighted - home - keyPressEvent - linkClicked - modified - overwriteMode - readOnly - reload - setSource - setText - source - source - sourceChanged - undoDepth - undoRedoEnabled -
    -
    -
    -
    - QTextCodec - canEncode - codecForCStrings - codecForContent - codecForIndex - codecForLocale - codecForMib - codecForName - codecForTr - deleteAllCodecs - fromUnicode - heuristicContentMatch - heuristicNameMatch - loadCharmap - loadCharmapFile - locale - makeDecoder - makeEncoder - mibEnum - mimeName - name - setCodecForCStrings - setCodecForLocale - setCodecForTr - simpleHeuristicNameMatch - toUnicode - ~QTextCodec -
    -
    -
    -
    - QTextCodecPlugin - createForMib - createForName - mibEnums - names - ~QTextCodecPlugin -
    -
    -
    -
    - QTextDecoder - toUnicode - ~QTextDecoder -
    -
    -
    -
    - QTextDrag - canDecode - decode - setSubtype - setText - ~QTextDrag -
    +
    + TQTextBrowser + anchorClicked + backward + backwardAvailable + forward + forwardAvailable + highlighted + home + keyPressEvent + linkClicked + modified + overwriteMode + readOnly + reload + setSource + setText + source + source + sourceChanged + undoDepth + undoRedoEnabled +
    +
    +
    +
    + TQTextCodec + canEncode + codecForCStrings + codecForContent + codecForIndex + codecForLocale + codecForMib + codecForName + codecForTr + deleteAllCodecs + fromUnicode + heuristicContentMatch + heuristicNameMatch + loadCharmap + loadCharmapFile + locale + makeDecoder + makeEncoder + mibEnum + mimeName + name + setCodecForCStrings + setCodecForLocale + setCodecForTr + simpleHeuristicNameMatch + toUnicode + ~TQTextCodec +
    +
    +
    +
    + TQTextCodecPlugin + createForMib + createForName + mibEnums + names + ~TQTextCodecPlugin +
    +
    +
    +
    + TQTextDecoder + toUnicode + ~TQTextDecoder +
    +
    +
    +
    + TQTextDrag + canDecode + decode + setSubtype + setText + ~TQTextDrag +
    -
    - QTextEdit - AutoFormatting - CursorAction - KeyboardAction - VerticalAlignment - WordWrap - WrapPolicy - alignment - anchorAt - append - autoFormatting - autoFormatting - bold - charAt - clear - clearParagraphBackground - clicked - color - context - copy - copyAvailable - createPopupMenu - currentAlignmentChanged - currentColorChanged - currentFont - currentFontChanged - currentVerticalAlignmentChanged - cursorPositionChanged - cut - del - doKeyboardAction - documentTitle - documentTitle - doubleClicked - ensureCursorVisible - family - find - focusNextPrevChild - getCursorPosition - getSelection - hasSelectedText - hasSelectedText - heightForWidth - insert - insertAt - insertParagraph - isModified - isOverwriteMode - isReadOnly - isRedoAvailable - isUndoAvailable - isUndoRedoEnabled - italic - keyPressEvent - length - length - lineOfChar - lines - linesOfParagraph - linkUnderline - linkUnderline - maxLogLines - mimeSourceFactory - modificationChanged - modified - moveCursor - optimCheckLimit - overwriteMode - paper - paper - paragraphAt - paragraphBackgroundColor - paragraphLength - paragraphRect - paragraphs - paste - pasteSpecial - pasteSubType - placeCursor - pointSize - readOnly - redo - redoAvailable - removeParagraph - removeSelectedText - removeSelection - repaintChanged - returnPressed - scrollToAnchor - scrollToBottom - selectAll - selectedText - selectedText - selectionChanged - setAlignment - setAutoFormatting - setBold - setColor - setCurrentFont - setCursorPosition - setFamily - setItalic - setLinkUnderline - setMaxLogLines - setMimeSourceFactory - setModified - setOverwriteMode - setPaper - setParagraphBackgroundColor - setPointSize - setReadOnly - setSelection - setSelectionAttributes - setStyleSheet - setTabChangesFocus - setTabStopWidth - setText - setTextFormat - setUnderline - setUndoDepth - setUndoRedoEnabled - setVerticalAlignment - setWordWrap - setWrapColumnOrWidth - setWrapPolicy - styleSheet - sync - syntaxHighlighter - tabChangesFocus - tabChangesFocus - tabStopWidth - tabStopWidth - text - text - textChanged - textCursor - textFormat - textFormat - underline - undo - undoAvailable - undoDepth - undoDepth - undoRedoEnabled - wordWrap - wordWrap - wrapColumnOrWidth - wrapColumnOrWidth - wrapPolicy - wrapPolicy - zoomIn - zoomOut - zoomTo -
    -
    -
    -
    - QTextEncoder - fromUnicode - ~QTextEncoder -
    -
    -
    -
    - QTextIStream -
    -
    -
    -
    - QTextOStream -
    -
    -
    -
    - QTextStream - Encoding - atEnd - codec - device - fill - flags - operator<< - operator>> - precision - read - readLine - readRawBytes - reset - setCodec - setDevice - setEncoding - setf - skipWhiteSpace - ts_getbuf - ts_getline - ts_putc - unsetDevice - unsetf - width - writeRawBytes - ~QTextStream -
    -
    -
    -
    - modified - overwriteMode - readOnly - undoDepth - undoRedoEnabled -
    -
    +
    + TQTextEdit + AutoFormatting + CursorAction + KeyboardAction + VerticalAlignment + WordWrap + WrapPolicy + alignment + anchorAt + append + autoFormatting + autoFormatting + bold + charAt + clear + clearParagraphBackground + clicked + color + context + copy + copyAvailable + createPopupMenu + currentAlignmentChanged + currentColorChanged + currentFont + currentFontChanged + currentVerticalAlignmentChanged + cursorPositionChanged + cut + del + doKeyboardAction + documentTitle + documentTitle + doubleClicked + ensureCursorVisible + family + find + focusNextPrevChild + getCursorPosition + getSelection + hasSelectedText + hasSelectedText + heightForWidth + insert + insertAt + insertParagraph + isModified + isOverwriteMode + isReadOnly + isRedoAvailable + isUndoAvailable + isUndoRedoEnabled + italic + keyPressEvent + length + length + lineOfChar + lines + linesOfParagraph + linkUnderline + linkUnderline + maxLogLines + mimeSourceFactory + modificationChanged + modified + moveCursor + optimCheckLimit + overwriteMode + paper + paper + paragraphAt + paragraphBackgroundColor + paragraphLength + paragraphRect + paragraphs + paste + pasteSpecial + pasteSubType + placeCursor + pointSize + readOnly + redo + redoAvailable + removeParagraph + removeSelectedText + removeSelection + repaintChanged + returnPressed + scrollToAnchor + scrollToBottom + selectAll + selectedText + selectedText + selectionChanged + setAlignment + setAutoFormatting + setBold + setColor + setCurrentFont + setCursorPosition + setFamily + setItalic + setLinkUnderline + setMaxLogLines + setMimeSourceFactory + setModified + setOverwriteMode + setPaper + setParagraphBackgroundColor + setPointSize + setReadOnly + setSelection + setSelectionAttributes + setStyleSheet + setTabChangesFocus + setTabStopWidth + setText + setTextFormat + setUnderline + setUndoDepth + setUndoRedoEnabled + setVerticalAlignment + setWordWrap + setWrapColumnOrWidth + setWrapPolicy + styleSheet + sync + syntaxHighlighter + tabChangesFocus + tabChangesFocus + tabStopWidth + tabStopWidth + text + text + textChanged + textCursor + textFormat + textFormat + underline + undo + undoAvailable + undoDepth + undoDepth + undoRedoEnabled + wordWrap + wordWrap + wrapColumnOrWidth + wrapColumnOrWidth + wrapPolicy + wrapPolicy + zoomIn + zoomOut + zoomTo +
    +
    +
    +
    + TQTextEncoder + fromUnicode + ~TQTextEncoder +
    +
    +
    +
    + TQTextIStream +
    +
    +
    +
    + TQTextOStream +
    +
    +
    +
    + TQTextStream + Encoding + atEnd + codec + device + fill + flags + operator<< + operator>> + precision + read + readLine + readRawBytes + reset + setCodec + setDevice + setEncoding + setf + skipWhiteSpace + ts_getbuf + ts_getline + ts_putc + unsetDevice + unsetf + width + writeRawBytes + ~TQTextStream +
    +
    +
    +
    + modified + overwriteMode + readOnly + undoDepth + undoRedoEnabled +
    +
    QThread diff --git a/doc/html/qtextbrowser-h.html b/doc/html/qtextbrowser-h.html deleted file mode 100644 index 0932d2839..000000000 --- a/doc/html/qtextbrowser-h.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - -ntqtextbrowser.h Include File - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    ntqtextbrowser.h

    - -

    This is the verbatim text of the ntqtextbrowser.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


    -
    -/****************************************************************************
    -** $Id: qt/ntqtextbrowser.h   3.3.8   edited Jan 11 14:39 $
    -**
    -** Definition of the TQTextBrowser class
    -**
    -** Created : 990101
    -**
    -** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
    -**
    -** This file is part of the widgets module of the TQt GUI Toolkit.
    -**
    -** This file may be used under the terms of the GNU General Public
    -** License versions 2.0 or 3.0 as published by the Free Software
    -** Foundation and appearing in the file LICENSE.GPL included in the
    -** packaging of this file. Alternatively you may (at your option) use any
    -** later version of the GNU General Public License if such license has
    -** been publicly approved by Trolltech ASA (or its successors, if any)
    -** and the KDE Free TQt Foundation.
    -**
    -** Please review the following information to ensure GNU General
    -** Public Licensing requirements will be met:
    -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
    -** If you are unsure which license is appropriate for your use, please
    -** review the following information:
    -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
    -** or contact the sales department at sales@trolltech.com.
    -**
    -** This file may be used under the terms of the Q Public License as
    -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
    -** included in the packaging of this file.  Licensees holding valid TQt
    -** Commercial licenses may use this file in accordance with the TQt
    -** Commercial License Agreement provided with the Software.
    -**
    -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
    -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
    -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
    -** herein.
    -**
    -**********************************************************************/
    -
    -#ifndef TQTEXTBROWSER_H
    -#define TQTEXTBROWSER_H
    -
    -#ifndef QT_H
    -#include "tqptrlist.h"
    -#include "ntqpixmap.h"
    -#include "ntqcolor.h"
    -#include "ntqtextedit.h"
    -#endif // QT_H
    -
    -#ifndef TQT_NO_TEXTBROWSER
    -
    -class TQTextBrowserData;
    -
    -class TQ_EXPORT TQTextBrowser : public TQTextEdit
    -{
    -    TQ_OBJECT
    -    TQ_PROPERTY( TQString source READ source WRITE setSource )
    -    TQ_OVERRIDE( int undoDepth DESIGNABLE false SCRIPTABLE false )
    -    TQ_OVERRIDE( bool overwriteMode DESIGNABLE false SCRIPTABLE false )
    -    TQ_OVERRIDE( bool modified SCRIPTABLE false)
    -    TQ_OVERRIDE( bool readOnly DESIGNABLE false SCRIPTABLE false )
    -    TQ_OVERRIDE( bool undoRedoEnabled DESIGNABLE false SCRIPTABLE false )
    -
    -public:
    -    TQTextBrowser( TQWidget* parent=0, const char* name=0 );
    -    ~TQTextBrowser();
    -
    -    TQString source() const;
    -
    -public slots:
    -    virtual void setSource(const TQString& name);
    -    virtual void backward();
    -    virtual void forward();
    -    virtual void home();
    -    virtual void reload();
    -    void setText( const TQString &txt ) { setText( txt, TQString::null ); }
    -    virtual void setText( const TQString &txt, const TQString &context );
    -
    -signals:
    -    void backwardAvailable( bool );
    -    void forwardAvailable( bool );
    -    void sourceChanged( const TQString& );
    -    void highlighted( const TQString& );
    -    void linkClicked( const TQString& );
    -    void anchorClicked( const TQString&, const TQString& );
    -
    -protected:
    -    void keyPressEvent( TQKeyEvent * e);
    -
    -private:
    -    void popupDetail( const TQString& contents, const TQPoint& pos );
    -    bool linksEnabled() const { return TRUE; }
    -    void emitHighlighted( const TQString &s );
    -    void emitLinkClicked( const TQString &s );
    -    TQTextBrowserData *d;
    -
    -private:	// Disabled copy constructor and operator=
    -#if defined(TQ_DISABLE_COPY)
    -    TQTextBrowser( const TQTextBrowser & );
    -    TQTextBrowser& operator=( const TQTextBrowser & );
    -#endif
    -};
    -
    -#endif // TQT_NO_TEXTBROWSER
    -
    -#endif // TQTEXTBROWSER_H
    -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextbrowser-m.png b/doc/html/qtextbrowser-m.png deleted file mode 100644 index 39c1bdb72..000000000 Binary files a/doc/html/qtextbrowser-m.png and /dev/null differ diff --git a/doc/html/qtextbrowser-members.html b/doc/html/qtextbrowser-members.html deleted file mode 100644 index d24648ca6..000000000 --- a/doc/html/qtextbrowser-members.html +++ /dev/null @@ -1,556 +0,0 @@ - - - - - -TQTextBrowser Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQTextBrowser

    - -

    This is the complete list of member functions for -TQTextBrowser, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextbrowser-w.png b/doc/html/qtextbrowser-w.png deleted file mode 100644 index 84343370f..000000000 Binary files a/doc/html/qtextbrowser-w.png and /dev/null differ diff --git a/doc/html/qtextcodec-h.html b/doc/html/qtextcodec-h.html deleted file mode 100644 index 9b6fcdc6e..000000000 --- a/doc/html/qtextcodec-h.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - -ntqtextcodec.h Include File - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    ntqtextcodec.h

    - -

    This is the verbatim text of the ntqtextcodec.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


    -
    -/****************************************************************************
    -** $Id: qt/ntqtextcodec.h   3.3.8   edited Jan 11 14:46 $
    -**
    -** Definition of TQTextCodec class
    -**
    -** Created : 981015
    -**
    -** Copyright (C) 1998-2007 Trolltech ASA.  All rights reserved.
    -**
    -** This file is part of the tools module of the TQt GUI Toolkit.
    -**
    -** This file may be used under the terms of the GNU General Public
    -** License versions 2.0 or 3.0 as published by the Free Software
    -** Foundation and appearing in the file LICENSE.GPL included in the
    -** packaging of this file. Alternatively you may (at your option) use any
    -** later version of the GNU General Public License if such license has
    -** been publicly approved by Trolltech ASA (or its successors, if any)
    -** and the KDE Free TQt Foundation.
    -**
    -** Please review the following information to ensure GNU General
    -** Public Licensing requirements will be met:
    -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
    -** If you are unsure which license is appropriate for your use, please
    -** review the following information:
    -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
    -** or contact the sales department at sales@trolltech.com.
    -**
    -** This file may be used under the terms of the Q Public License as
    -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
    -** included in the packaging of this file.  Licensees holding valid TQt
    -** Commercial licenses may use this file in accordance with the TQt
    -** Commercial License Agreement provided with the Software.
    -**
    -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
    -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
    -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
    -** herein.
    -**
    -**********************************************************************/
    -
    -#ifndef TQTEXTCODEC_H
    -#define TQTEXTCODEC_H
    -
    -#ifndef QT_H
    -#include "tqstring.h"
    -#endif // QT_H
    -
    -#ifndef TQT_NO_TEXTCODEC
    -
    -class TQTextCodec;
    -class TQIODevice;
    -class TQFont;
    -
    -class TQ_EXPORT TQTextEncoder {
    -public:
    -    virtual ~TQTextEncoder();
    -    virtual TQCString fromUnicode(const TQString& uc, int& lenInOut) = 0;
    -};
    -
    -class TQ_EXPORT TQTextDecoder {
    -public:
    -    virtual ~TQTextDecoder();
    -    virtual TQString toUnicode(const char* chars, int len) = 0;
    -};
    -
    -class TQ_EXPORT TQTextCodec {
    -public:
    -    virtual ~TQTextCodec();
    -
    -#ifndef TQT_NO_CODECS
    -    static TQTextCodec* loadCharmap(TQIODevice*);
    -    static TQTextCodec* loadCharmapFile(TQString filename);
    -#endif //TQT_NO_CODECS
    -    static TQTextCodec* codecForMib(int mib);
    -    static TQTextCodec* codecForName(const char* hint, int accuracy=0);
    -    static TQTextCodec* codecForContent(const char* chars, int len);
    -    static TQTextCodec* codecForIndex(int i);
    -    static TQTextCodec* codecForLocale();
    -    static void setCodecForLocale(TQTextCodec *c);
    -
    -    static TQTextCodec* codecForTr();
    -    static void setCodecForTr(TQTextCodec *c);
    -    static TQTextCodec* codecForCStrings();
    -    static void setCodecForCStrings(TQTextCodec *c);
    -
    -    static void deleteAllCodecs();
    -
    -    static const char* locale();
    -
    -    virtual const char* name() const = 0;
    -    virtual const char* mimeName() const;
    -    virtual int mibEnum() const = 0;
    -
    -    virtual TQTextDecoder* makeDecoder() const;
    -    virtual TQTextEncoder* makeEncoder() const;
    -
    -    virtual TQString toUnicode(const char* chars, int len) const;
    -    virtual TQCString fromUnicode(const TQString& uc, int& lenInOut) const;
    -
    -    TQCString fromUnicode(const TQString& uc) const;
    -    TQString toUnicode(const TQByteArray&, int len) const;
    -    TQString toUnicode(const TQByteArray&) const;
    -    TQString toUnicode(const TQCString&, int len) const;
    -    TQString toUnicode(const TQCString&) const;
    -    TQString toUnicode(const char* chars) const;
    -    virtual bool canEncode( TQChar ) const;
    -    virtual bool canEncode( const TQString& ) const;
    -
    -    virtual int heuristicContentMatch(const char* chars, int len) const = 0;
    -    virtual int heuristicNameMatch(const char* hint) const;
    -
    -    virtual TQByteArray fromUnicode(const TQString& uc, int from, int len) const;
    -    virtual unsigned short characterFromUnicode(const TQString &str, int pos) const;
    -
    -protected:
    -    TQTextCodec();
    -    static int simpleHeuristicNameMatch(const char* name, const char* hint);
    -
    -private:
    -    friend class TQFont;
    -    friend class TQFontEngineXLFD;
    -    void fromUnicodeInternal( const TQChar *in, unsigned short *out,  int length );
    -
    -    static TQTextCodec *cftr;
    -    static TQTextCodec *cfcs;
    -};
    -
    -inline TQTextCodec* TQTextCodec::codecForTr() { return cftr; }
    -inline void TQTextCodec::setCodecForTr(TQTextCodec *c) { cftr = c; }
    -inline TQTextCodec* TQTextCodec::codecForCStrings() { return cfcs; }
    -inline void TQTextCodec::setCodecForCStrings(TQTextCodec *c) { cfcs = c; }
    -
    -#endif // TQT_NO_TEXTCODEC
    -#endif // TQTEXTCODEC_H
    -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextcodec-members.html b/doc/html/qtextcodec-members.html deleted file mode 100644 index 1ef38ff5e..000000000 --- a/doc/html/qtextcodec-members.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - -TQTextCodec Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQTextCodec

    - -

    This is the complete list of member functions for -TQTextCodec, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextcodecplugin-h.html b/doc/html/qtextcodecplugin-h.html deleted file mode 100644 index 3f40b0dc7..000000000 --- a/doc/html/qtextcodecplugin-h.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - -ntqtextcodecplugin.h Include File - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    ntqtextcodecplugin.h

    - -

    This is the verbatim text of the ntqtextcodecplugin.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


    -
    -/****************************************************************************
    -** $Id: qt/ntqtextcodecplugin.h   3.3.8   edited Jan 11 14:46 $
    -**
    -** Definition of TQTextCodecPlugin class
    -**
    -** Created : 010920
    -**
    -** Copyright (C) 2005-2007 Trolltech ASA.  All rights reserved.
    -**
    -** This file is part of the tools module of the TQt GUI Toolkit.
    -**
    -** This file may be used under the terms of the GNU General Public
    -** License versions 2.0 or 3.0 as published by the Free Software
    -** Foundation and appearing in the file LICENSE.GPL included in the
    -** packaging of this file. Alternatively you may (at your option) use any
    -** later version of the GNU General Public License if such license has
    -** been publicly approved by Trolltech ASA (or its successors, if any)
    -** and the KDE Free TQt Foundation.
    -**
    -** Please review the following information to ensure GNU General
    -** Public Licensing requirements will be met:
    -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
    -** If you are unsure which license is appropriate for your use, please
    -** review the following information:
    -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
    -** or contact the sales department at sales@trolltech.com.
    -**
    -** This file may be used under the terms of the Q Public License as
    -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
    -** included in the packaging of this file.  Licensees holding valid TQt
    -** Commercial licenses may use this file in accordance with the TQt
    -** Commercial License Agreement provided with the Software.
    -**
    -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
    -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
    -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
    -** herein.
    -**
    -**********************************************************************/
    -
    -#ifndef TQTEXTCODECPLUGIN_H
    -#define TQTEXTCODECPLUGIN_H
    -
    -#ifndef QT_H
    -#include "ntqgplugin.h"
    -#include "tqstringlist.h"
    -#endif // QT_H
    -
    -#ifndef TQT_NO_TEXTCODECPLUGIN
    -class TQTextCodec;
    -class TQTextCodecPluginPrivate;
    -
    -class TQ_EXPORT TQTextCodecPlugin : public TQGPlugin
    -{
    -    TQ_OBJECT
    -public:
    -    TQTextCodecPlugin();
    -    ~TQTextCodecPlugin();
    -
    -    virtual TQStringList names() const = 0;
    -    virtual TQTextCodec *createForName( const TQString &name ) = 0;
    -    
    -    virtual TQValueList<int> mibEnums() const = 0;
    -    virtual TQTextCodec *createForMib( int mib ) = 0;
    -
    -private:
    -    TQTextCodecPluginPrivate *d;
    -};
    -#endif // TQT_NO_TEXTCODECPLUGIN
    -#endif // TQTEXTCODECPLUGIN_H
    -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextcodecplugin-members.html b/doc/html/qtextcodecplugin-members.html deleted file mode 100644 index 6196bfc19..000000000 --- a/doc/html/qtextcodecplugin-members.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - -TQTextCodecPlugin Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQTextCodecPlugin

    - -

    This is the complete list of member functions for -TQTextCodecPlugin, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextdecoder-members.html b/doc/html/qtextdecoder-members.html deleted file mode 100644 index ac2e74208..000000000 --- a/doc/html/qtextdecoder-members.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - -TQTextDecoder Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQTextDecoder

    - -

    This is the complete list of member functions for -TQTextDecoder, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextdecoder.html b/doc/html/qtextdecoder.html deleted file mode 100644 index 880e40291..000000000 --- a/doc/html/qtextdecoder.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - -TQTextDecoder Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQTextDecoder Class Reference

    - -

    The TQTextDecoder class provides a state-based decoder. -More... -

    All the functions in this class are reentrant when TQt is built with thread support.

    -

    #include <ntqtextcodec.h> -

    List of all member functions. -

    Public Members

    - -

    Detailed Description

    - - -The TQTextDecoder class provides a state-based decoder. - - -

    The decoder converts a text format into Unicode, remembering any -state that is required between calls. -

    See also TQTextCodec::makeEncoder() and Internationalization with TQt. - -


    Member Function Documentation

    -

    TQTextDecoder::~TQTextDecoder () [virtual] -

    -Destroys the decoder. - -

    TQString TQTextDecoder::toUnicode ( const char * chars, int len ) [pure virtual] -

    - -

    Converts the first len bytes in chars to Unicode, returning -the result. -

    If not all characters are used (e.g. if only part of a multi-byte -encoding is at the end of the characters), the decoder remembers -enough state to continue with the next call to this function. - - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextdrag-members.html b/doc/html/qtextdrag-members.html deleted file mode 100644 index a4b161858..000000000 --- a/doc/html/qtextdrag-members.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - -TQTextDrag Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQTextDrag

    - -

    This is the complete list of member functions for -TQTextDrag, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextdrag.html b/doc/html/qtextdrag.html deleted file mode 100644 index 50ac69757..000000000 --- a/doc/html/qtextdrag.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - -TQTextDrag Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQTextDrag Class Reference

    - -

    The TQTextDrag class is a drag and drop object for -transferring plain and Unicode text. -More... -

    #include <ntqdragobject.h> -

    Inherits TQDragObject. -

    List of all member functions. -

    Public Members

    -
      -
    • TQTextDrag ( const TQString & text, TQWidget * dragSource = 0, const char * name = 0 )
    • -
    • TQTextDrag ( TQWidget * dragSource = 0, const char * name = 0 )
    • -
    • ~TQTextDrag ()
    • -
    • virtual void setText ( const TQString & text )
    • -
    • virtual void setSubtype ( const TQCString & st )
    • -
    -

    Static Public Members

    -
      -
    • bool canDecode ( const TQMimeSource * e )
    • -
    • bool decode ( const TQMimeSource * e, TQString & str )
    • -
    • bool decode ( const TQMimeSource * e, TQString & str, TQCString & subtype )
    • -
    -

    Detailed Description

    - - -

    The TQTextDrag class is a drag and drop object for -transferring plain and Unicode text. -

    -

    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. -

    TQt provides no built-in mechanism for delivering only a single-line. -

    For more information about drag and drop, see the TQDragObject class -and the drag and drop documentation. -

    See also Drag And Drop Classes. - -


    Member Function Documentation

    -

    TQTextDrag::TQTextDrag ( const TQString & text, TQWidget * dragSource = 0, const char * name = 0 ) -

    -Constructs a text drag object and sets its data to text. dragSource must be the drag source; name is the object name. - -

    TQTextDrag::TQTextDrag ( TQWidget * dragSource = 0, const char * name = 0 ) -

    -Constructs a default text drag object. dragSource must be the -drag source; name is the object name. - -

    TQTextDrag::~TQTextDrag () -

    -Destroys the text drag object and frees up all allocated -resources. - -

    bool TQTextDrag::canDecode ( const TQMimeSource * e ) [static] -

    -Returns TRUE if the information in e can be decoded into a -TQString; otherwise returns FALSE. -

    See also decode(). - -

    Example: iconview/simple_dd/main.cpp. -

    bool TQTextDrag::decode ( const TQMimeSource * e, TQString & str ) [static] -

    -Attempts to decode the dropped information in e into str. -Returns TRUE if successful; otherwise returns FALSE. -

    See also canDecode(). - -

    Example: iconview/simple_dd/main.cpp. -

    bool TQTextDrag::decode ( const TQMimeSource * e, TQString & str, TQCString & subtype ) [static] -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Attempts to decode the dropped information in e into str. -Returns TRUE if successful; otherwise returns FALSE. If subtype -is null, any text subtype is accepted; otherwise only the -specified subtype is accepted. -

    See also canDecode(). - -

    void TQTextDrag::setSubtype ( const TQCString & st ) [virtual] -

    -Sets the MIME subtype of the text being dragged to st. 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"). - -

    void TQTextDrag::setText ( const TQString & text ) [virtual] -

    -Sets the text to be dragged to text. You will need to call this -if you did not pass the text during construction. - - -

    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextedit-h.html b/doc/html/qtextedit-h.html deleted file mode 100644 index c03747801..000000000 --- a/doc/html/qtextedit-h.html +++ /dev/null @@ -1,655 +0,0 @@ - - - - - -ntqtextedit.h Include File - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    ntqtextedit.h

    - -

    This is the verbatim text of the ntqtextedit.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


    -
    -/****************************************************************************
    -** $Id: qt/ntqtextedit.h   3.3.8   edited Jan 11 14:39 $
    -**
    -** Definition of the TQTextEdit class
    -**
    -** Created : 990101
    -**
    -** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
    -**
    -** This file is part of the widgets module of the TQt GUI Toolkit.
    -**
    -** This file may be used under the terms of the GNU General Public
    -** License versions 2.0 or 3.0 as published by the Free Software
    -** Foundation and appearing in the file LICENSE.GPL included in the
    -** packaging of this file. Alternatively you may (at your option) use any
    -** later version of the GNU General Public License if such license has
    -** been publicly approved by Trolltech ASA (or its successors, if any)
    -** and the KDE Free TQt Foundation.
    -**
    -** Please review the following information to ensure GNU General
    -** Public Licensing requirements will be met:
    -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
    -** If you are unsure which license is appropriate for your use, please
    -** review the following information:
    -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
    -** or contact the sales department at sales@trolltech.com.
    -**
    -** This file may be used under the terms of the Q Public License as
    -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
    -** included in the packaging of this file.  Licensees holding valid TQt
    -** Commercial licenses may use this file in accordance with the TQt
    -** Commercial License Agreement provided with the Software.
    -**
    -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
    -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
    -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
    -** herein.
    -**
    -**********************************************************************/
    -
    -#ifndef TQTEXTEDIT_H
    -#define TQTEXTEDIT_H
    -
    -#ifndef QT_H
    -#include "ntqscrollview.h"
    -#include "ntqstylesheet.h"
    -#include "tqptrvector.h"
    -#include "tqvaluelist.h"
    -#include "tqptrlist.h"
    -#endif // QT_H
    -
    -#ifndef TQT_NO_TEXTEDIT
    -// uncomment below to enable optimization mode - also uncomment the
    -// optimDoAutoScroll() private slot since moc ignores #ifdefs..
    -#define QT_TEXTEDIT_OPTIMIZATION
    -
    -class TQPainter;
    -class TQTextDocument;
    -class TQTextCursor;
    -class TQKeyEvent;
    -class TQResizeEvent;
    -class TQMouseEvent;
    -class TQTimer;
    -class TQTextString;
    -class TQTextCommand;
    -class TQTextParagraph;
    -class TQTextFormat;
    -class TQFont;
    -class TQColor;
    -class TQTextEdit;
    -class TQTextBrowser;
    -class TQTextString;
    -struct TQUndoRedoInfoPrivate;
    -class TQPopupMenu;
    -class TQTextEditPrivate;
    -class TQSyntaxHighlighter;
    -
    -#ifdef QT_TEXTEDIT_OPTIMIZATION
    -class TQTextEditOptimPrivate
    -{
    -public:
    -    // Note: no left-tag has any value for leftTag or parent, and
    -    // no right-tag has any formatting flags set.
    -    enum TagType { Color = 0, Format = 1 };
    -    struct Tag {
    -	TagType type:2;
    -	bool bold:1;
    -	bool italic:1;
    -	bool underline:1;
    -	int line;
    -	int index;
    -	Tag * leftTag; // ptr to left-tag in a left-right tag pair
    -	Tag * parent;  // ptr to parent left-tag in a nested tag
    -	Tag * prev;
    -	Tag * next;
    -	TQString tag;
    -    };
    -    TQTextEditOptimPrivate()
    -    {
    -	len = numLines = maxLineWidth = 0;
    -	selStart.line = selStart.index = -1;
    -	selEnd.line = selEnd.index = -1;
    -	search.line = search.index = 0;
    -	tags = lastTag = 0;
    -    }
    -    void clearTags()
    -    {
    -	Tag * itr = tags;
    -	while ( tags ) {
    -	    itr  = tags;
    -	    tags = tags->next;
    -	    delete itr;
    -	}
    -	tags = lastTag = 0;
    -	tagIndex.clear();
    -    }
    -    ~TQTextEditOptimPrivate()
    -    {
    -	clearTags();
    -    }
    -    int len;
    -    int numLines;
    -    int maxLineWidth;
    -    struct Selection {
    -	int line;
    -	int index;
    -    };
    -    Selection selStart, selEnd, search;
    -    Tag * tags, * lastTag;
    -    TQMap<int, TQString> lines;
    -    TQMap<int, Tag *> tagIndex;
    -};
    -#endif
    -
    -class TQ_EXPORT TQTextEdit : public TQScrollView
    -{
    -    friend class TQTextBrowser;
    -    friend class TQSyntaxHighlighter;
    -
    -    TQ_OBJECT
    -    TQ_ENUMS( WordWrap WrapPolicy )
    -    TQ_SETS( AutoFormatting )
    -    TQ_PROPERTY( TextFormat textFormat READ textFormat WRITE setTextFormat )
    -    TQ_PROPERTY( TQString text READ text WRITE setText )
    -    TQ_PROPERTY( TQBrush paper READ paper WRITE setPaper )
    -    TQ_PROPERTY( bool linkUnderline READ linkUnderline WRITE setLinkUnderline )
    -    TQ_PROPERTY( TQString documentTitle READ documentTitle )
    -    TQ_PROPERTY( int length READ length )
    -    TQ_PROPERTY( WordWrap wordWrap READ wordWrap WRITE setWordWrap )
    -    TQ_PROPERTY( int wrapColumnOrWidth READ wrapColumnOrWidth WRITE setWrapColumnOrWidth )
    -    TQ_PROPERTY( WrapPolicy wrapPolicy READ wrapPolicy WRITE setWrapPolicy )
    -    TQ_PROPERTY( bool hasSelectedText READ hasSelectedText )
    -    TQ_PROPERTY( TQString selectedText READ selectedText )
    -    TQ_PROPERTY( int undoDepth READ undoDepth WRITE setUndoDepth )
    -    TQ_PROPERTY( bool overwriteMode READ isOverwriteMode WRITE setOverwriteMode )
    -    TQ_PROPERTY( bool modified READ isModified WRITE setModified DESIGNABLE false )
    -    TQ_PROPERTY( bool readOnly READ isReadOnly WRITE setReadOnly )
    -    TQ_PROPERTY( bool undoRedoEnabled READ isUndoRedoEnabled WRITE setUndoRedoEnabled )
    -    TQ_PROPERTY( int tabStopWidth READ tabStopWidth WRITE setTabStopWidth )
    -    TQ_PROPERTY( bool tabChangesFocus READ tabChangesFocus WRITE setTabChangesFocus )
    -    TQ_PROPERTY( AutoFormatting autoFormatting READ autoFormatting WRITE setAutoFormatting )
    -
    -public:
    -    enum WordWrap {
    -	NoWrap,
    -	WidgetWidth,
    -	FixedPixelWidth,
    -	FixedColumnWidth
    -    };
    -
    -    enum WrapPolicy {
    -	AtWordBoundary,
    -	AtWhiteSpace = AtWordBoundary, // AtWhiteSpace is deprecated
    -	Anywhere,
    -	AtWordOrDocumentBoundary
    -    };
    -
    -    enum AutoFormatting {
    -	AutoNone = 0,
    -	AutoBulletList = 0x00000001,
    -	AutoAll = 0xffffffff
    -    };
    -
    -    enum KeyboardAction {
    -	ActionBackspace,
    -	ActionDelete,
    -	ActionReturn,
    -	ActionKill,
    -	ActionWordBackspace,
    -	ActionWordDelete
    -    };
    -
    -    enum CursorAction {
    -	MoveBackward,
    -	MoveForward,
    -	MoveWordBackward,
    -	MoveWordForward,
    -	MoveUp,
    -	MoveDown,
    -	MoveLineStart,
    -	MoveLineEnd,
    -	MoveHome,
    -	MoveEnd,
    -	MovePgUp,
    -	MovePgDown
    -    };
    -
    -    enum VerticalAlignment {
    -	AlignNormal,
    -	AlignSuperScript,
    -	AlignSubScript
    -    };
    -
    -    enum TextInsertionFlags {
    -	RedoIndentation = 0x0001,
    -	CheckNewLines = 0x0002,
    -	RemoveSelected = 0x0004
    -    };
    -
    -    TQTextEdit( const TQString& text, const TQString& context = TQString::null,
    -	       TQWidget* parent=0, const char* name=0);
    -    TQTextEdit( TQWidget* parent=0, const char* name=0 );
    -    virtual ~TQTextEdit();
    -    void setPalette( const TQPalette & );
    -
    -    TQString text() const;
    -    TQString text( int para ) const;
    -    TextFormat textFormat() const;
    -    TQString context() const;
    -    TQString documentTitle() const;
    -
    -    void getSelection( int *paraFrom, int *indexFrom,
    -		    int *paraTo, int *indexTo, int selNum = 0 ) const;
    -    virtual bool find( const TQString &expr, bool cs, bool wo, bool forward = TRUE,
    -		       int *para = 0, int *index = 0 );
    -
    -    int paragraphs() const;
    -    int lines() const;
    -    int linesOfParagraph( int para ) const;
    -    int lineOfChar( int para, int chr );
    -    int length() const;
    -    TQRect paragraphRect( int para ) const;
    -    int paragraphAt( const TQPoint &pos ) const;
    -    int charAt( const TQPoint &pos, int *para ) const;
    -    int paragraphLength( int para ) const;
    -
    -    TQStyleSheet* styleSheet() const;
    -#ifndef TQT_NO_MIME
    -    TQMimeSourceFactory* mimeSourceFactory() const;
    -#endif
    -    TQBrush paper() const;
    -    bool linkUnderline() const;
    -
    -    int heightForWidth( int w ) const;
    -
    -    bool hasSelectedText() const;
    -    TQString selectedText() const;
    -    bool isUndoAvailable() const;
    -    bool isRedoAvailable() const;
    -
    -    WordWrap wordWrap() const;
    -    int wrapColumnOrWidth() const;
    -    WrapPolicy wrapPolicy() const;
    -
    -    int tabStopWidth() const;
    -
    -    TQString anchorAt( const TQPoint& pos );
    -    TQString anchorAt( const TQPoint& pos, AnchorAttribute a );
    -
    -    TQSize sizeHint() const;
    -
    -    bool isReadOnly() const { return readonly; }
    -
    -    void getCursorPosition( int *parag, int *index ) const;
    -
    -    bool isModified() const;
    -    bool italic() const;
    -    bool bold() const;
    -    bool underline() const;
    -    TQString family() const;
    -    int pointSize() const;
    -    TQColor color() const;
    -    TQFont font() const;
    -    TQFont currentFont() const;
    -    int alignment() const;
    -    int undoDepth() const;
    -
    -    // do not use, will go away
    -    virtual bool getFormat( int para, int index, TQFont *font, TQColor *color, VerticalAlignment *verticalAlignment );
    -    // do not use, will go away
    -    virtual bool getParagraphFormat( int para, TQFont *font, TQColor *color,
    -				     VerticalAlignment *verticalAlignment, int *alignment,
    -				     TQStyleSheetItem::DisplayMode *displayMode,
    -				     TQStyleSheetItem::ListStyle *listStyle,
    -				     int *listDepth );
    -
    -
    -    bool isOverwriteMode() const { return overWrite; }
    -    TQColor paragraphBackgroundColor( int para ) const;
    -
    -    bool isUndoRedoEnabled() const;
    -    bool eventFilter( TQObject *o, TQEvent *e );
    -    bool tabChangesFocus() const;
    -
    -    void setAutoFormatting( uint features );
    -    uint autoFormatting() const;
    -    TQSyntaxHighlighter *syntaxHighlighter() const;
    -
    -public slots:
    -    void setEnabled( bool );
    -#ifndef TQT_NO_MIME
    -    virtual void setMimeSourceFactory( TQMimeSourceFactory* factory );
    -#endif
    -    virtual void setStyleSheet( TQStyleSheet* styleSheet );
    -    virtual void scrollToAnchor( const TQString& name );
    -    virtual void setPaper( const TQBrush& pap );
    -    virtual void setLinkUnderline( bool );
    -
    -    virtual void setWordWrap( WordWrap mode );
    -    virtual void setWrapColumnOrWidth( int );
    -    virtual void setWrapPolicy( WrapPolicy policy );
    -
    -    virtual void copy();
    -    virtual void append( const TQString& text );
    -
    -    void setText( const TQString &txt ) { setText( txt, TQString::null ); }
    -    virtual void setText( const TQString &txt, const TQString &context );
    -    virtual void setTextFormat( TextFormat f );
    -
    -    virtual void selectAll( bool select = TRUE );
    -    virtual void setTabStopWidth( int ts );
    -    virtual void zoomIn( int range );
    -    virtual void zoomIn() { zoomIn( 1 ); }
    -    virtual void zoomOut( int range );
    -    virtual void zoomOut() { zoomOut( 1 ); }
    -    virtual void zoomTo( int size );
    -
    -    virtual void sync();
    -    virtual void setReadOnly( bool b );
    -
    -    virtual void undo();
    -    virtual void redo();
    -    virtual void cut();
    -    virtual void paste();
    -#ifndef TQT_NO_CLIPBOARD
    -    virtual void pasteSubType( const TQCString &subtype );
    -#endif
    -    virtual void clear();
    -    virtual void del();
    -    virtual void indent();
    -    virtual void setItalic( bool b );
    -    virtual void setBold( bool b );
    -    virtual void setUnderline( bool b );
    -    virtual void setFamily( const TQString &f );
    -    virtual void setPointSize( int s );
    -    virtual void setColor( const TQColor &c );
    -    virtual void setFont( const TQFont &f );
    -    virtual void setVerticalAlignment( VerticalAlignment a );
    -    virtual void setAlignment( int a );
    -
    -    // do not use, will go away
    -    virtual void setParagType( TQStyleSheetItem::DisplayMode dm, TQStyleSheetItem::ListStyle listStyle );
    -
    -    virtual void setCursorPosition( int parag, int index );
    -    virtual void setSelection( int parag_from, int index_from, int parag_to, int index_to, int selNum = 0 );
    -    virtual void setSelectionAttributes( int selNum, const TQColor &back, bool invertText );
    -    virtual void setModified( bool m );
    -    virtual void resetFormat();
    -    virtual void setUndoDepth( int d );
    -    virtual void setFormat( TQTextFormat *f, int flags );
    -    virtual void ensureCursorVisible();
    -    virtual void placeCursor( const TQPoint &pos, TQTextCursor *c = 0 );
    -    virtual void moveCursor( CursorAction action, bool select );
    -    virtual void doKeyboardAction( KeyboardAction action );
    -    virtual void removeSelectedText( int selNum = 0 );
    -    virtual void removeSelection( int selNum = 0 );
    -    virtual void setCurrentFont( const TQFont &f );
    -    virtual void setOverwriteMode( bool b ) { overWrite = b; }
    -
    -    virtual void scrollToBottom();
    -
    -    void insert( const TQString &text, uint insertionFlags = CheckNewLines | RemoveSelected ); // ## virtual in 4.0
    -
    -    // obsolete
    -    virtual void insert( const TQString &text, bool, bool = TRUE, bool = TRUE );
    -
    -    virtual void insertAt( const TQString &text, int para, int index );
    -    virtual void removeParagraph( int para );
    -    virtual void insertParagraph( const TQString &text, int para );
    -
    -    virtual void setParagraphBackgroundColor( int para, const TQColor &bg );
    -    virtual void clearParagraphBackground( int para );
    -
    -    virtual void setUndoRedoEnabled( bool b );
    -    void setTabChangesFocus( bool b ); // ### make virtual in 4.0
    -
    -#ifdef QT_TEXTEDIT_OPTIMIZATION
    -    void polish();
    -    void setMaxLogLines( int numLines );
    -    int maxLogLines();
    -#endif
    -
    -signals:
    -    void textChanged();
    -    void selectionChanged();
    -    void copyAvailable( bool );
    -    void undoAvailable( bool yes );
    -    void redoAvailable( bool yes );
    -    void currentFontChanged( const TQFont &f );
    -    void currentColorChanged( const TQColor &c );
    -    void currentAlignmentChanged( int a );
    -    void currentVerticalAlignmentChanged( VerticalAlignment a );
    -    void cursorPositionChanged( TQTextCursor *c );
    -    void cursorPositionChanged( int para, int pos );
    -    void returnPressed();
    -    void modificationChanged( bool m );
    -    void clicked( int parag, int index );
    -    void doubleClicked( int parag, int index );
    -
    -protected:
    -    void repaintChanged();
    -    void updateStyles();
    -    void drawContents( TQPainter *p, int cx, int cy, int cw, int ch );
    -    bool event( TQEvent *e );
    -    void keyPressEvent( TQKeyEvent *e );
    -    void resizeEvent( TQResizeEvent *e );
    -    void viewportResizeEvent( TQResizeEvent* );
    -    void contentsMousePressEvent( TQMouseEvent *e );
    -    void contentsMouseMoveEvent( TQMouseEvent *e );
    -    void contentsMouseReleaseEvent( TQMouseEvent *e );
    -    void contentsMouseDoubleClickEvent( TQMouseEvent *e );
    -#ifndef TQT_NO_WHEELEVENT
    -    void contentsWheelEvent( TQWheelEvent *e );
    -#endif
    -    void imStartEvent( TQIMEvent * );
    -    void imComposeEvent( TQIMEvent * );
    -    void imEndEvent( TQIMEvent * );
    -#ifndef TQT_NO_DRAGANDDROP
    -    void contentsDragEnterEvent( TQDragEnterEvent *e );
    -    void contentsDragMoveEvent( TQDragMoveEvent *e );
    -    void contentsDragLeaveEvent( TQDragLeaveEvent *e );
    -    void contentsDropEvent( TQDropEvent *e );
    -#endif
    -    void contentsContextMenuEvent( TQContextMenuEvent *e );
    -    bool focusNextPrevChild( bool next );
    -    TQTextDocument *document() const;
    -    TQTextCursor *textCursor() const;
    -    void setDocument( TQTextDocument *doc );
    -    virtual TQPopupMenu *createPopupMenu( const TQPoint& pos );
    -    virtual TQPopupMenu *createPopupMenu();
    -    void drawCursor( bool visible );
    -
    -    void windowActivationChange( bool );
    -
    -protected slots:
    -    virtual void doChangeInterval();
    -    void sliderReleased(); // ### make virtual in 4.0
    -
    -private slots:
    -    void formatMore();
    -    void doResize();
    -    void autoScrollTimerDone();
    -    void blinkCursor();
    -    void setModified();
    -    void startDrag();
    -    void documentWidthChanged( int w );
    -    void clipboardChanged();
    -
    -private:
    -    struct TQ_EXPORT UndoRedoInfo {
    -	enum Type { Invalid, Insert, Delete, Backspace, Return, RemoveSelected, Format, Style, IME };
    -
    -	UndoRedoInfo( TQTextDocument *dc );
    -	~UndoRedoInfo();
    -	void clear();
    -	bool valid() const;
    -
    -	TQUndoRedoInfoPrivate *d;
    -	int id;
    -	int index;
    -	int eid;
    -	int eindex;
    -	TQTextFormat *format;
    -	int flags;
    -	Type type;
    -	TQTextDocument *doc;
    -	TQByteArray styleInformation;
    -    };
    -
    -private:
    -    void updateCursor( const TQPoint & pos );
    -    void handleMouseMove( const TQPoint& pos );
    -    void drawContents( TQPainter * );
    -    virtual bool linksEnabled() const { return FALSE; }
    -    void init();
    -    void checkUndoRedoInfo( UndoRedoInfo::Type t );
    -    void updateCurrentFormat();
    -    bool handleReadOnlyKeyEvent( TQKeyEvent *e );
    -    void makeParagVisible( TQTextParagraph *p );
    -    void normalCopy();
    -    void copyToClipboard();
    -#ifndef TQT_NO_MIME
    -    TQCString pickSpecial(TQMimeSource* ms, bool always_ask, const TQPoint&);
    -    TQTextDrag *dragObject( TQWidget *parent = 0 ) const;
    -#endif
    -#ifndef TQT_NO_MIMECLIPBOARD
    -    void pasteSpecial(const TQPoint&);
    -#endif
    -    void setFontInternal( const TQFont &f );
    -
    -    virtual void emitHighlighted( const TQString & ) {}
    -    virtual void emitLinkClicked( const TQString & ) {}
    -
    -    void readFormats( TQTextCursor &c1, TQTextCursor &c2, TQTextString &text, bool fillStyles = FALSE );
    -    void clearUndoRedo();
    -    void paintDocument( bool drawAll, TQPainter *p, int cx = -1, int cy = -1, int cw = -1, int ch = -1 );
    -    void moveCursor( CursorAction action );
    -    void ensureFormatted( TQTextParagraph *p );
    -    void placeCursor( const TQPoint &pos, TQTextCursor *c, bool link );
    -    void updateMicroFocusHint();
    -
    -#ifdef QT_TEXTEDIT_OPTIMIZATION
    -    bool checkOptimMode();
    -    TQString optimText() const;
    -    void optimSetText( const TQString &str );
    -    void optimAppend( const TQString &str );
    -    void optimInsert( const TQString &str, int line, int index );
    -    void optimDrawContents( TQPainter * p, int cx, int cy, int cw, int ch );
    -    void optimMousePressEvent( TQMouseEvent * e );
    -    void optimMouseReleaseEvent( TQMouseEvent * e );
    -    void optimMouseMoveEvent( TQMouseEvent * e );
    -    int  optimCharIndex( const TQString &str, int mx ) const;
    -    void optimSelectAll();
    -    void optimRemoveSelection();
    -    void optimSetSelection( int startLine, int startIdx, int endLine,
    -			    int endIdx );
    -    bool optimHasSelection() const;
    -    TQString optimSelectedText() const;
    -    bool optimFind( const TQString & str, bool, bool, bool, int *, int * );
    -    void optimParseTags( TQString * str, int lineNo = -1, int indexOffset = 0 );
    -    TQTextEditOptimPrivate::Tag * optimPreviousLeftTag( int line );
    -    void optimSetTextFormat( TQTextDocument *, TQTextCursor *, TQTextFormat * f,
    -			     int, int, TQTextEditOptimPrivate::Tag * t );
    -    TQTextEditOptimPrivate::Tag * optimAppendTag( int index, const TQString & tag );
    -    TQTextEditOptimPrivate::Tag * optimInsertTag( int line, int index, const TQString & tag );
    -    void optimCheckLimit( const TQString& str );
    -    bool optimHasBoldMetrics( int line );
    -
    -private slots:
    -    void optimDoAutoScroll();
    -#endif // QT_TEXTEDIT_OPTIMIZATION
    -
    -private:
    -#ifndef TQT_NO_CLIPBOARD
    -    void pasteSubType( const TQCString &subtype, TQMimeSource *m );
    -#endif
    -
    -private:
    -    TQTextDocument *doc;
    -    TQTextCursor *cursor;
    -    TQTimer *formatTimer, *scrollTimer, *changeIntervalTimer, *blinkTimer, *dragStartTimer;
    -    TQTextParagraph *lastFormatted;
    -    int interval;
    -    UndoRedoInfo undoRedoInfo;
    -    TQTextFormat *currentFormat;
    -    int currentAlignment;
    -    TQPoint oldMousePos, mousePos;
    -    TQPoint dragStartPos;
    -    TQString onLink;
    -    WordWrap wrapMode;
    -    WrapPolicy wPolicy;
    -    int wrapWidth;
    -    TQString pressedLink;
    -    TQTextEditPrivate *d;
    -    bool inDoubleClick : 1;
    -    bool mousePressed : 1;
    -    bool cursorVisible : 1;
    -    bool blinkCursorVisible : 1;
    -    bool readOnly : 1;
    -    bool modified : 1;
    -    bool mightStartDrag : 1;
    -    bool inDnD : 1;
    -    bool readonly : 1;
    -    bool undoEnabled : 1;
    -    bool overWrite : 1;
    -
    -private:	// Disabled copy constructor and operator=
    -#if defined(TQ_DISABLE_COPY)
    -    TQTextEdit( const TQTextEdit & );
    -    TQTextEdit &operator=( const TQTextEdit & );
    -#endif
    -};
    -
    -inline TQTextDocument *TQTextEdit::document() const
    -{
    -    return doc;
    -}
    -
    -inline TQTextCursor *TQTextEdit::textCursor() const
    -{
    -    return cursor;
    -}
    -
    -inline void TQTextEdit::setCurrentFont( const TQFont &f )
    -{
    -    TQTextEdit::setFontInternal( f );
    -}
    -
    -#endif //TQT_NO_TEXTEDIT
    -#endif //TQTEXTVIEW_H
    -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextedit-members.html b/doc/html/qtextedit-members.html deleted file mode 100644 index ed3aeba97..000000000 --- a/doc/html/qtextedit-members.html +++ /dev/null @@ -1,544 +0,0 @@ - - - - - -TQTextEdit Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQTextEdit

    - -

    This is the complete list of member functions for -TQTextEdit, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextencoder-members.html b/doc/html/qtextencoder-members.html deleted file mode 100644 index dbe9c69f5..000000000 --- a/doc/html/qtextencoder-members.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - -TQTextEncoder Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQTextEncoder

    - -

    This is the complete list of member functions for -TQTextEncoder, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextencoder.html b/doc/html/qtextencoder.html deleted file mode 100644 index 410dd59bd..000000000 --- a/doc/html/qtextencoder.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - -TQTextEncoder Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQTextEncoder Class Reference

    - -

    The TQTextEncoder class provides a state-based encoder. -More... -

    All the functions in this class are reentrant when TQt is built with thread support.

    -

    #include <ntqtextcodec.h> -

    List of all member functions. -

    Public Members

    - -

    Detailed Description

    - - -The TQTextEncoder class provides a state-based encoder. - - -

    The encoder converts Unicode into another format, remembering any -state that is required between calls. -

    See also TQTextCodec::makeEncoder() and Internationalization with TQt. - -


    Member Function Documentation

    -

    TQTextEncoder::~TQTextEncoder () [virtual] -

    -Destroys the encoder. - -

    TQCString TQTextEncoder::fromUnicode ( const TQString & uc, int & lenInOut ) [pure virtual] -

    - -

    Converts lenInOut characters (not bytes) from uc, producing -a TQCString. lenInOut will be set to the length of the result (in bytes). -

    The encoder is free to record state to use when subsequent calls -are made to this function (for example, it might change modes with -escape sequences if needed during the encoding of one string, then -assume that mode applies when a subsequent call begins). - - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextistream-members.html b/doc/html/qtextistream-members.html deleted file mode 100644 index e64909026..000000000 --- a/doc/html/qtextistream-members.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - -TQTextIStream Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQTextIStream

    - -

    This is the complete list of member functions for -TQTextIStream, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextistream.html b/doc/html/qtextistream.html deleted file mode 100644 index dd06f52c5..000000000 --- a/doc/html/qtextistream.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -TQTextIStream Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQTextIStream Class Reference

    - -

    The TQTextIStream class is a convenience class for input streams. -More... -

    All the functions in this class are reentrant when TQt is built with thread support.

    -

    #include <ntqtextstream.h> -

    Inherits TQTextStream. -

    List of all member functions. -

    Public Members

    - -

    Detailed Description

    - - - -The TQTextIStream class is a convenience class for input streams. -

    - -

    This class provides a shorthand for creating simple input -TQTextStreams without having to pass a mode argument to the -constructor. -

    This class makes it easy, for example, to write things like this: -

    -    TQString data = "123 456";
    -    int a, b;
    -    TQTextIStream(&data) >> a >> b;
    -    
    - -

    See also TQTextOStream, Input/Output and Networking, and Text Related Classes. - -


    Member Function Documentation

    -

    TQTextIStream::TQTextIStream ( const TQString * s ) -

    - -

    Constructs a stream to read from the string s. - -

    TQTextIStream::TQTextIStream ( TQByteArray ba ) -

    - -

    Constructs a stream to read from the array ba. - -

    TQTextIStream::TQTextIStream ( FILE * f ) -

    - -

    Constructs a stream to read from the file f. - - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextostream-members.html b/doc/html/qtextostream-members.html deleted file mode 100644 index 2dfa17d9f..000000000 --- a/doc/html/qtextostream-members.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - -TQTextOStream Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQTextOStream

    - -

    This is the complete list of member functions for -TQTextOStream, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextostream.html b/doc/html/qtextostream.html deleted file mode 100644 index 6e4d99944..000000000 --- a/doc/html/qtextostream.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - -TQTextOStream Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQTextOStream Class Reference

    - -

    The TQTextOStream class is a convenience class for output streams. -More... -

    All the functions in this class are reentrant when TQt is built with thread support.

    -

    #include <ntqtextstream.h> -

    Inherits TQTextStream. -

    List of all member functions. -

    Public Members

    - -

    Detailed Description

    - - - -The TQTextOStream class is a convenience class for output streams. -

    - -

    This class provides a shorthand for creating simple output -TQTextStreams without having to pass a mode argument to the -constructor. -

    This makes it easy for example, to write things like this: -

    -    TQString result;
    -    TQTextOStream(&result) << "pi = " << 3.14;
    -    
    - -

    See also Input/Output and Networking and Text Related Classes. - -


    Member Function Documentation

    -

    TQTextOStream::TQTextOStream ( TQString * s ) -

    - -

    Constructs a stream to write to string s. - -

    TQTextOStream::TQTextOStream ( TQByteArray ba ) -

    - -

    Constructs a stream to write to the array ba. - -

    TQTextOStream::TQTextOStream ( FILE * f ) -

    - -

    Constructs a stream to write to the file f. - - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextstream-h.html b/doc/html/qtextstream-h.html deleted file mode 100644 index 8ced94589..000000000 --- a/doc/html/qtextstream-h.html +++ /dev/null @@ -1,383 +0,0 @@ - - - - - -ntqtextstream.h Include File - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    ntqtextstream.h

    - -

    This is the verbatim text of the ntqtextstream.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


    -
    -/****************************************************************************
    -** $Id: qt/ntqtextstream.h   3.3.8   edited Jan 11 14:38 $
    -**
    -** Definition of TQTextStream class
    -**
    -** Created : 940922
    -**
    -** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
    -**
    -** This file is part of the tools module of the TQt GUI Toolkit.
    -**
    -** This file may be used under the terms of the GNU General Public
    -** License versions 2.0 or 3.0 as published by the Free Software
    -** Foundation and appearing in the file LICENSE.GPL included in the
    -** packaging of this file. Alternatively you may (at your option) use any
    -** later version of the GNU General Public License if such license has
    -** been publicly approved by Trolltech ASA (or its successors, if any)
    -** and the KDE Free TQt Foundation.
    -**
    -** Please review the following information to ensure GNU General
    -** Public Licensing requirements will be met:
    -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
    -** If you are unsure which license is appropriate for your use, please
    -** review the following information:
    -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
    -** or contact the sales department at sales@trolltech.com.
    -**
    -** This file may be used under the terms of the Q Public License as
    -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
    -** included in the packaging of this file.  Licensees holding valid TQt
    -** Commercial licenses may use this file in accordance with the TQt
    -** Commercial License Agreement provided with the Software.
    -**
    -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
    -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
    -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
    -** herein.
    -**
    -**********************************************************************/
    -
    -#ifndef TQTEXTSTREAM_H
    -#define TQTEXTSTREAM_H
    -
    -#ifndef QT_H
    -#include "ntqiodevice.h"
    -#include "tqstring.h"
    -#include <stdio.h>
    -#endif // QT_H
    -
    -#ifndef TQT_NO_TEXTSTREAM
    -class TQTextCodec;
    -class TQTextDecoder;
    -
    -class TQTextStreamPrivate;
    -
    -class TQ_EXPORT TQTextStream				// text stream class
    -{
    -public:
    -    enum Encoding { Locale, Latin1, Unicode, UnicodeNetworkOrder,
    -		    UnicodeReverse, RawUnicode, UnicodeUTF8 };
    -
    -    void	setEncoding( Encoding );
    -#ifndef TQT_NO_TEXTCODEC
    -    void	setCodec( TQTextCodec* );
    -    TQTextCodec *codec();
    -#endif
    -
    -    TQTextStream();
    -    TQTextStream( TQIODevice * );
    -    TQTextStream( TQString*, int mode );
    -    TQTextStream( TQString&, int mode );		// obsolete
    -    TQTextStream( TQByteArray, int mode );
    -    TQTextStream( FILE *, int mode );
    -    virtual ~TQTextStream();
    -
    -    TQIODevice	*device() const;
    -    void	 setDevice( TQIODevice * );
    -    void	 unsetDevice();
    -
    -    bool	 atEnd() const;
    -    bool	 eof() const;
    -
    -    TQTextStream &operator>>( TQChar & );
    -    TQTextStream &operator>>( char & );
    -    TQTextStream &operator>>( signed short & );
    -    TQTextStream &operator>>( unsigned short & );
    -    TQTextStream &operator>>( signed int & );
    -    TQTextStream &operator>>( unsigned int & );
    -    TQTextStream &operator>>( signed long & );
    -    TQTextStream &operator>>( unsigned long & );
    -    TQTextStream &operator>>( float & );
    -    TQTextStream &operator>>( double & );
    -    TQTextStream &operator>>( char * );
    -    TQTextStream &operator>>( TQString & );
    -    TQTextStream &operator>>( TQCString & );
    -
    -    TQTextStream &operator<<( TQChar );
    -    TQTextStream &operator<<( char );
    -    TQTextStream &operator<<( signed short );
    -    TQTextStream &operator<<( unsigned short );
    -    TQTextStream &operator<<( signed int );
    -    TQTextStream &operator<<( unsigned int );
    -    TQTextStream &operator<<( signed long );
    -    TQTextStream &operator<<( unsigned long );
    -    TQTextStream &operator<<( float );
    -    TQTextStream &operator<<( double );
    -    TQTextStream &operator<<( const char* );
    -    TQTextStream &operator<<( const TQString & );
    -    TQTextStream &operator<<( const TQCString & );
    -    TQTextStream &operator<<( void * );		// any pointer
    -
    -    TQTextStream &readRawBytes( char *, uint len );
    -    TQTextStream &writeRawBytes( const char* , uint len );
    -
    -    TQString	readLine();
    -    TQString	read();
    -    void	skipWhiteSpace();
    -
    -    enum {
    -	skipws	  = 0x0001,			// skip whitespace on input
    -	left	  = 0x0002,			// left-adjust output
    -	right	  = 0x0004,			// right-adjust output
    -	internal  = 0x0008,			// pad after sign
    -	bin	  = 0x0010,			// binary format integer
    -	oct	  = 0x0020,			// octal format integer
    -	dec	  = 0x0040,			// decimal format integer
    -	hex	  = 0x0080,			// hex format integer
    -	showbase  = 0x0100,			// show base indicator
    -	showpoint = 0x0200,			// force decimal point (float)
    -	uppercase = 0x0400,			// upper-case hex output
    -	showpos	  = 0x0800,			// add '+' to positive integers
    -	scientific= 0x1000,			// scientific float output
    -	fixed	  = 0x2000			// fixed float output
    -    };
    -
    -    static const int basefield;			// bin | oct | dec | hex
    -    static const int adjustfield;		// left | right | internal
    -    static const int floatfield;		// scientific | fixed
    -
    -    int	  flags() const;
    -    int	  flags( int f );
    -    int	  setf( int bits );
    -    int	  setf( int bits, int mask );
    -    int	  unsetf( int bits );
    -
    -    void  reset();
    -
    -    int	  width()	const;
    -    int	  width( int );
    -    int	  fill()	const;
    -    int	  fill( int );
    -    int	  precision()	const;
    -    int	  precision( int );
    -
    -private:
    -    long	input_int();
    -    void	init();
    -    TQTextStream &output_int( int, ulong, bool );
    -    TQIODevice	*dev;
    -
    -    int		fflags;
    -    int		fwidth;
    -    int		fillchar;
    -    int		fprec;
    -    bool	doUnicodeHeader;
    -    bool	owndev;
    -    TQTextCodec 	*mapper;
    -    TQTextStreamPrivate * d;
    -    TQChar	unused1; // ### remove in TQt 4.0
    -    bool	latin1;
    -    bool 	internalOrder;
    -    bool	networkOrder;
    -    void	*unused2; // ### remove in TQt 4.0
    -
    -    TQChar	eat_ws();
    -    uint 	ts_getline( TQChar* );
    -    void	ts_ungetc( TQChar );
    -    TQChar	ts_getc();
    -    uint	ts_getbuf( TQChar*, uint );
    -    void	ts_putc(int);
    -    void	ts_putc(TQChar);
    -    bool	ts_isspace(TQChar);
    -    bool	ts_isdigit(TQChar);
    -    ulong	input_bin();
    -    ulong	input_oct();
    -    ulong	input_dec();
    -    ulong	input_hex();
    -    double	input_double();
    -    TQTextStream &writeBlock( const char* p, uint len );
    -    TQTextStream &writeBlock( const TQChar* p, uint len );
    -
    -private:	// Disabled copy constructor and operator=
    -#if defined(TQ_DISABLE_COPY)
    -    TQTextStream( const TQTextStream & );
    -    TQTextStream &operator=( const TQTextStream & );
    -#endif
    -};
    -
    -typedef TQTextStream TQTS;
    -
    -class TQ_EXPORT TQTextIStream : public TQTextStream {
    -public:
    -    TQTextIStream( const TQString* s ) :
    -	TQTextStream((TQString*)s,IO_ReadOnly) { }
    -    TQTextIStream( TQByteArray ba ) :
    -	TQTextStream(ba,IO_ReadOnly) { }
    -    TQTextIStream( FILE *f ) :
    -	TQTextStream(f,IO_ReadOnly) { }
    -
    -private:	// Disabled copy constructor and operator=
    -#if defined(TQ_DISABLE_COPY)
    -    TQTextIStream( const TQTextIStream & );
    -    TQTextIStream &operator=( const TQTextIStream & );
    -#endif
    -};
    -
    -class TQ_EXPORT TQTextOStream : public TQTextStream {
    -public:
    -    TQTextOStream( TQString* s ) :
    -	TQTextStream(s,IO_WriteOnly) { }
    -    TQTextOStream( TQByteArray ba ) :
    -	TQTextStream(ba,IO_WriteOnly) { }
    -    TQTextOStream( FILE *f ) :
    -	TQTextStream(f,IO_WriteOnly) { }
    -
    -private:	// Disabled copy constructor and operator=
    -#if defined(TQ_DISABLE_COPY)
    -    TQTextOStream( const TQTextOStream & );
    -    TQTextOStream &operator=( const TQTextOStream & );
    -#endif
    -};
    -
    -/*****************************************************************************
    -  TQTextStream inline functions
    - *****************************************************************************/
    -
    -inline TQIODevice *TQTextStream::device() const
    -{ return dev; }
    -
    -inline bool TQTextStream::atEnd() const
    -{ return dev ? dev->atEnd() : FALSE; }
    -
    -inline bool TQTextStream::eof() const
    -{ return atEnd(); }
    -
    -inline int TQTextStream::flags() const
    -{ return fflags; }
    -
    -inline int TQTextStream::flags( int f )
    -{ int oldf = fflags;  fflags = f;  return oldf; }
    -
    -inline int TQTextStream::setf( int bits )
    -{ int oldf = fflags;  fflags |= bits;  return oldf; }
    -
    -inline int TQTextStream::setf( int bits, int mask )
    -{ int oldf = fflags;  fflags = (fflags & ~mask) | (bits & mask); return oldf; }
    -
    -inline int TQTextStream::unsetf( int bits )
    -{ int oldf = fflags;  fflags &= ~bits;	return oldf; }
    -
    -inline int TQTextStream::width() const
    -{ return fwidth; }
    -
    -inline int TQTextStream::width( int w )
    -{ int oldw = fwidth;  fwidth = w;  return oldw;	 }
    -
    -inline int TQTextStream::fill() const
    -{ return fillchar; }
    -
    -inline int TQTextStream::fill( int f )
    -{ int oldc = fillchar;	fillchar = f;  return oldc;  }
    -
    -inline int TQTextStream::precision() const
    -{ return fprec; }
    -
    -inline int TQTextStream::precision( int p )
    -{ int oldp = fprec;  fprec = p;	 return oldp;  }
    -
    -/*!
    -  Returns one character from the stream, or EOF.
    -*/
    -inline TQChar TQTextStream::ts_getc()
    -{ TQChar r; return ( ts_getbuf( &r,1 ) == 1 ? r : TQChar((ushort)0xffff) ); }
    -
    -/*****************************************************************************
    -  TQTextStream manipulators
    - *****************************************************************************/
    -
    -typedef TQTextStream & (*TQTSFUNC)(TQTextStream &);// manipulator function
    -typedef int (TQTextStream::*TQTSMFI)(int);	// manipulator w/int argument
    -
    -class TQ_EXPORT TQTSManip {			// text stream manipulator
    -public:
    -    TQTSManip( TQTSMFI m, int a ) { mf=m; arg=a; }
    -    void exec( TQTextStream &s ) { (s.*mf)(arg); }
    -private:
    -    TQTSMFI mf;					// TQTextStream member function
    -    int	   arg;					// member function argument
    -};
    -
    -TQ_EXPORT inline TQTextStream &operator>>( TQTextStream &s, TQTSFUNC f )
    -{ return (*f)( s ); }
    -
    -TQ_EXPORT inline TQTextStream &operator<<( TQTextStream &s, TQTSFUNC f )
    -{ return (*f)( s ); }
    -
    -TQ_EXPORT inline TQTextStream &operator<<( TQTextStream &s, TQTSManip m )
    -{ m.exec(s); return s; }
    -
    -TQ_EXPORT TQTextStream &bin( TQTextStream &s );	// set bin notation
    -TQ_EXPORT TQTextStream &oct( TQTextStream &s );	// set oct notation
    -TQ_EXPORT TQTextStream &dec( TQTextStream &s );	// set dec notation
    -TQ_EXPORT TQTextStream &hex( TQTextStream &s );	// set hex notation
    -TQ_EXPORT TQTextStream &endl( TQTextStream &s );	// insert EOL ('\n')
    -TQ_EXPORT TQTextStream &flush( TQTextStream &s );	// flush output
    -TQ_EXPORT TQTextStream &ws( TQTextStream &s );	// eat whitespace on input
    -TQ_EXPORT TQTextStream &reset( TQTextStream &s );	// set default flags
    -
    -TQ_EXPORT inline TQTSManip qSetW( int w )
    -{
    -    TQTSMFI func = &TQTextStream::width;
    -    return TQTSManip(func,w);
    -}
    -
    -TQ_EXPORT inline TQTSManip qSetFill( int f )
    -{
    -    TQTSMFI func = &TQTextStream::fill;
    -    return TQTSManip(func,f);
    -}
    -
    -TQ_EXPORT inline TQTSManip qSetPrecision( int p )
    -{
    -    TQTSMFI func = &TQTextStream::precision;
    -    return TQTSManip(func,p);
    -}
    -
    -#endif // TQT_NO_TEXTSTREAM
    -#endif // TQTEXTSTREAM_H
    -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextstream-members.html b/doc/html/qtextstream-members.html deleted file mode 100644 index 3c75a892e..000000000 --- a/doc/html/qtextstream-members.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - -TQTextStream Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQTextStream

    - -

    This is the complete list of member functions for -TQTextStream, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextview-h.html b/doc/html/qtextview-h.html deleted file mode 100644 index 9c2aa2ba7..000000000 --- a/doc/html/qtextview-h.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - -ntqtextview.h Include File - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    ntqtextview.h

    - -

    This is the verbatim text of the ntqtextview.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


    -
    -/****************************************************************************
    -** $Id: qt/ntqtextview.h   3.3.8   edited Jan 11 14:39 $
    -**
    -** Definition of the TQTextView class
    -**
    -** Created : 990101
    -**
    -** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
    -**
    -** This file is part of the widgets module of the TQt GUI Toolkit.
    -**
    -** This file may be used under the terms of the GNU General Public
    -** License versions 2.0 or 3.0 as published by the Free Software
    -** Foundation and appearing in the file LICENSE.GPL included in the
    -** packaging of this file. Alternatively you may (at your option) use any
    -** later version of the GNU General Public License if such license has
    -** been publicly approved by Trolltech ASA (or its successors, if any)
    -** and the KDE Free TQt Foundation.
    -**
    -** Please review the following information to ensure GNU General
    -** Public Licensing requirements will be met:
    -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
    -** If you are unsure which license is appropriate for your use, please
    -** review the following information:
    -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
    -** or contact the sales department at sales@trolltech.com.
    -**
    -** This file may be used under the terms of the Q Public License as
    -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
    -** included in the packaging of this file.  Licensees holding valid TQt
    -** Commercial licenses may use this file in accordance with the TQt
    -** Commercial License Agreement provided with the Software.
    -**
    -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
    -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
    -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
    -** herein.
    -**
    -**********************************************************************/
    -
    -#ifndef TQTEXTVIEW_H
    -#define TQTEXTVIEW_H
    -
    -#ifndef QT_H
    -#include "ntqtextedit.h"
    -#endif // QT_H
    -
    -#ifndef TQT_NO_TEXTVIEW
    -
    -class TQ_EXPORT TQTextView : public TQTextEdit
    -{
    -    TQ_OBJECT
    -    TQ_OVERRIDE( int undoDepth DESIGNABLE false SCRIPTABLE false )
    -    TQ_OVERRIDE( bool overwriteMode DESIGNABLE false SCRIPTABLE false )
    -    TQ_OVERRIDE( bool modified SCRIPTABLE false)
    -    TQ_OVERRIDE( bool readOnly DESIGNABLE false SCRIPTABLE false )
    -    TQ_OVERRIDE( bool undoRedoEnabled DESIGNABLE false SCRIPTABLE false )
    -
    -public:
    -    TQTextView( const TQString& text, const TQString& context = TQString::null,
    -	       TQWidget* parent=0, const char* name=0);
    -    TQTextView( TQWidget* parent=0, const char* name=0 );
    -
    -    virtual ~TQTextView();
    -
    -private:
    -#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
    -    TQTextView( const TQTextView & );
    -    TQTextView &operator=( const TQTextView & );
    -#endif
    -};
    -
    -#endif //TQT_NO_TEXTVIEW
    -#endif //TQTEXTVIEW_H
    -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtextview-members.html b/doc/html/qtextview-members.html deleted file mode 100644 index 5b70f3ef8..000000000 --- a/doc/html/qtextview-members.html +++ /dev/null @@ -1,543 +0,0 @@ - - - - - -TQTextView Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQTextView

    - -

    This is the complete list of member functions for -TQTextView, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qtsciicodec-h.html b/doc/html/qtsciicodec-h.html index 174a44217..3f979320f 100644 --- a/doc/html/qtsciicodec-h.html +++ b/doc/html/qtsciicodec-h.html @@ -105,7 +105,7 @@ body { background: #ffffff; color: black; } #define TQTSCIICODEC_H #ifndef QT_H -#include "ntqtextcodec.h" +#include "tqtextcodec.h" #endif // QT_H #ifndef TQT_NO_CODECS diff --git a/doc/html/qtsciicodec-members.html b/doc/html/qtsciicodec-members.html index 4fd232530..8702dc5b3 100644 --- a/doc/html/qtsciicodec-members.html +++ b/doc/html/qtsciicodec-members.html @@ -35,31 +35,31 @@ body { background: #ffffff; color: black; } TQTsciiCodec, including inherited members.


    diff --git a/doc/html/qwerty-example.html b/doc/html/qwerty-example.html index 15e5a9509..fe1c4459a 100644 --- a/doc/html/qwerty-example.html +++ b/doc/html/qwerty-example.html @@ -113,14 +113,14 @@ private: #include <ntqfile.h> #include <ntqfiledialog.h> #include <ntqpopupmenu.h> -#include <ntqtextstream.h> +#include <tqtextstream.h> #include <ntqpainter.h> #include <ntqmessagebox.h> #include <ntqpaintdevicemetrics.h> #include <tqptrlist.h> #include <ntqfontdialog.h> -#include <ntqtextcodec.h> +#include <tqtextcodec.h> const bool no_writing = FALSE; @@ -171,7 +171,7 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 }; #endif changed = FALSE; e = new TQMultiLineEdit( this, "editor" ); - connect( e, TQ_SIGNAL( textChanged() ), this, TQ_SLOT( textChanged() ) ); + connect( e, TQ_SIGNAL( textChanged() ), this, TQ_SLOT( textChanged() ) ); // We use Unifont - if you have it installed you'll see all // Unicode character glyphs. @@ -193,7 +193,7 @@ Editor::~Editor() { #ifndef TQT_NO_FONTDIALOG bool ok; - TQFont f = TQFontDialog::getFont( &ok, e->font() ); + TQFont f = TQFontDialog::getFont( &ok, e->font() ); if ( ok ) { e->setFont( f ); } @@ -206,16 +206,16 @@ void Editor::rebuildCodecList() { delete codecList; codecList = new TQPtrList<TQTextCodec>; - TQTextCodec *codec; + TQTextCodec *codec; int i; - for (i = 0; (codec = TQTextCodec::codecForIndex(i)); i++) + for (i = 0; (codec = TQTextCodec::codecForIndex(i)); i++) codecList->append( codec ); int n = codecList->count(); for (int pm=0; pm<2; pm++) { TQPopupMenu* menu = pm ? open_as : save_as; menu->clear(); TQString local = "Local ("; - local += TQTextCodec::codecForLocale()->name(); + local += TQTextCodec::codecForLocale()->name(); local += ")"; menu->insertItem( local, Local ); menu->insertItem( "Unicode", Uni ); @@ -258,28 +258,28 @@ void Editor::load( const TQString& fileName, int e->setAutoUpdate( FALSE ); - TQTextStream t(&f); + TQTextStream t(&f); if ( code >= Codec ) - t.setCodec( codecList->at(code-Codec) ); + t.setCodec( codecList->at(code-Codec) ); else if ( code == Uni ) - t.setEncoding( TQTextStream::Unicode ); + t.setEncoding( TQTextStream::Unicode ); else if ( code == MBug ) - t.setEncoding( TQTextStream::UnicodeReverse ); + t.setEncoding( TQTextStream::UnicodeReverse ); else if ( code == Lat1 ) - t.setEncoding( TQTextStream::Latin1 ); + t.setEncoding( TQTextStream::Latin1 ); else if ( code == Guess ) { TQFile f(fileName); f.open(IO_ReadOnly); char buffer[256]; int l = 256; l=f.readBlock(buffer,l); - TQTextCodec* codec = TQTextCodec::codecForContent(buffer, l); + TQTextCodec* codec = TQTextCodec::codecForContent(buffer, l); if ( codec ) { - TQMessageBox::information(this,"Encoding",TQString("Codec: ")+codec->name()); - t.setCodec( codec ); + TQMessageBox::information(this,"Encoding",TQString("Codec: ")+codec->name()); + t.setCodec( codec ); } } - e->setText( t.read() ); + e->setText( t.read() ); f.close(); e->setAutoUpdate( TRUE ); @@ -327,7 +327,7 @@ void Editor::addEncoding() if ( !fn.isEmpty() ) { TQFile f(fn); if (f.open(IO_ReadOnly)) { - if (TQTextCodec::loadCharmap(&f)) { + if (TQTextCodec::loadCharmap(&f)) { rebuildCodecList(); } else { TQMessageBox::warning(0,"Charmap error", @@ -358,16 +358,16 @@ bool Editor::saveAs( const TQStringTQTextStream t(&f); + TQTextStream t(&f); if ( code >= Codec ) - t.setCodec( codecList->at(code-Codec) ); + t.setCodec( codecList->at(code-Codec) ); else if ( code == Uni ) - t.setEncoding( TQTextStream::Unicode ); + t.setEncoding( TQTextStream::Unicode ); else if ( code == MBug ) - t.setEncoding( TQTextStream::UnicodeReverse ); + t.setEncoding( TQTextStream::UnicodeReverse ); else if ( code == Lat1 ) - t.setEncoding( TQTextStream::Latin1 ); - t << e->text(); + t.setEncoding( TQTextStream::Latin1 ); + t << e->text(); f.close(); setCaption( fileName ); changed = FALSE; @@ -381,7 +381,7 @@ void Editor::print() printer.setFullPage(TRUE); // we'll set our own margins TQPainter p; p.begin( &printer ); // paint on printer - p.setFont( e->font() ); + p.setFont( e->font() ); TQFontMetrics fm = p.fontMetrics(); TQPaintDeviceMetrics metrics( &printer ); // need width/height // of printer surface @@ -441,12 +441,12 @@ void Editor::resizeEvent( Editor::toUpper() { - e->setText(e->text().upper()); + e->setText(e->text().upper()); } void Editor::toLower() { - e->setText(e->text().lower()); + e->setText(e->text().lower()); } void Editor::textChanged() diff --git a/doc/html/qwindowsmime.html b/doc/html/qwindowsmime.html index 42e354dc8..ea4b0a0ba 100644 --- a/doc/html/qwindowsmime.html +++ b/doc/html/qwindowsmime.html @@ -73,7 +73,7 @@ proprietary clipboard formats to MIME formats.

    TQt has predefined support for the following Windows Clipboard formats:

    It declares a class that inherits TQMainWindow, with slots and private -variables. The class pre-declaration of TQTextEdit at the beginning +variables. The class pre-declaration of TQTextEdit at the beginning (instead of an include) helps to speed up compilation. With this trick, make depend won't insist on recompiling every .cpp file that -includes application.h when ntqtextedit.h changes. +includes application.h when tqtextedit.h changes.

    A simple main()

    @@ -319,7 +319,7 @@ will be aligned to the right if the windows system style requires it.

    We create a Help menu, add it to the menu bar, and insert a few commands. Depending on the style it will appear on the right hand side of the menu bar or not. -

            e = new TQTextEdit( this, "editor" );
    +

            e = new TQTextEdit( this, "editor" );
             e->setFocus();
             setCentralWidget( e );
     
    @@ -382,9 +382,9 @@ error message in the statusbar. if ( !f.open( IO_ReadOnly ) ) return; - TQTextStream ts( &f ); - e->setText( ts.read() ); - e->setModified( FALSE ); + TQTextStream ts( &f ); + e->setText( ts.read() ); + e->setModified( FALSE ); setCaption( fileName ); statusBar()->message( "Loaded document " + fileName, 2000 ); } @@ -401,7 +401,7 @@ readable, nothing happens. return; } - TQString text = e->text(); + TQString text = e->text(); TQFile f( filename ); if ( !f.open( IO_WriteOnly ) ) { statusBar()->message( TQString("Could not write to %1").arg(filename), @@ -409,7 +409,7 @@ readable, nothing happens. return; } - TQTextStream t( &f ); + TQTextStream t( &f ); t << text; f.close();
    @@ -418,7 +418,7 @@ filename has been specified so far, the saveAs() functio Note that there is more than one way to do this: compare the above statusBar()->message() line with the equivalent code in the load() function. -

            e->setModified( FALSE );
    +

            e->setModified( FALSE );
     

    Tell the editor that the contents haven't been edited since the last save. When the user does some further editing and wishes to close the @@ -463,11 +463,11 @@ and implicitly changes the window system caption to the new name. int dpiy = metrics.logicalDpiY(); int margin = (int) ( (2/2.54)*dpiy ); // 2 cm margins TQRect view( margin, margin, metrics.width() - 2*margin, metrics.height() - 2*margin ); - TQSimpleRichText richText( TQStyleSheet::convertFromPlainText(e->text()), + TQSimpleRichText richText( TQStyleSheet::convertFromPlainText(e->text()), TQFont(), - e->context(), - e->styleSheet(), - e->mimeSourceFactory(), + e->context(), + e->styleSheet(), + e->mimeSourceFactory(), view.height() ); richText.setWidth( &p, view.width() ); int page = 1; @@ -506,7 +506,7 @@ an ApplicationWindow.

    This event gets to process window system close events. A close event is subtly different from a hide event: hide often means "iconify" whereas close means that the window is going away for good. -

            if ( !e->isModified() ) {
    +

            if ( !e->isModified() ) {
                 ce->accept();
                 return;
             }
    diff --git a/doc/html/simple-font-demo-example.html b/doc/html/simple-font-demo-example.html
    index a5345e383..728f9a0ec 100644
    --- a/doc/html/simple-font-demo-example.html
    +++ b/doc/html/simple-font-demo-example.html
    @@ -66,8 +66,8 @@ private:
         void layout();
         void showFontInfo( TQFont & );
     
    -    TQTextView * greetings;
    -    TQTextView * fontInfo;
    +    TQTextView * greetings;
    +    TQTextView * fontInfo;
     
         TQPushButton * defaultButton;
         TQPushButton * sansSerifButton;
    @@ -84,7 +84,7 @@ private:
     #include "viewer.h"
     #include <tqstring.h>
     #include <tqstringlist.h>
    -#include <ntqtextview.h>
    +#include <tqtextview.h>
     #include <ntqpushbutton.h>
     #include <ntqlayout.h>
     
    @@ -97,13 +97,13 @@ private:
         TQString greeting_ru = TQString::fromUtf8( "\320\227\320\264\321\200\320\260\320\262\321\201\321\202\320\262\321\203\320\271\321\202\320\265" );
         TQString greeting_en( "Hello" );
     
    -    greetings = new TQTextView( this, "textview" );
    +    greetings = new TQTextView( this, "textview" );
     
    -    greetings->setText( greeting_en + "\n" +
    +    greetings->setText( greeting_en + "\n" +
                            greeting_ru + "\n" +
                            greeting_heb );
     
    -    fontInfo = new TQTextView( this, "fontinfo" );
    +    fontInfo = new TQTextView( this, "fontinfo" );
     
         setDefault();
     
    @@ -191,7 +191,7 @@ void Viewer::showFontInfo( TQFont
                            font.family() + ".";
         }
     
    -    fontInfo->setText( messageText );
    +    fontInfo->setText( messageText );
     }
     
     void Viewer::setFontSubstitutions()
    diff --git a/doc/html/simple_dd-example.html b/doc/html/simple_dd-example.html
    index e7d35acb2..56cfd3a02 100644
    --- a/doc/html/simple_dd-example.html
    +++ b/doc/html/simple_dd-example.html
    @@ -191,7 +191,7 @@ const char* green_icon[]={
     
     void DDListBox::dragEnterEvent( TQDragEnterEvent *evt )
     {
    -    if ( TQTextDrag::canDecode( evt ) )
    +    if ( TQTextDrag::canDecode( evt ) )
             evt->accept();
     }
     
    @@ -200,7 +200,7 @@ const char* green_icon[]={
     {
         TQString text;
     
    -    if ( TQTextDrag::decode( evt, text ) )
    +    if ( TQTextDrag::decode( evt, text ) )
             insertItem( text );
     }
     
    @@ -215,7 +215,7 @@ const char* green_icon[]={
     void DDListBox::mouseMoveEvent( TQMouseEvent * )
     {
         if ( dragging ) {
    -        TQDragObject *d = new TQTextDrag( currentText(), this );
    +        TQDragObject *d = new TQTextDrag( currentText(), this );
             d->dragCopy(); // do NOT delete d.
             dragging = FALSE;
         }
    @@ -237,7 +237,7 @@ const char* green_icon[]={
     {
         TQString label;
     
    -    if ( TQTextDrag::decode( evt, label ) )
    +    if ( TQTextDrag::decode( evt, label ) )
             setText( label );
     }
     
    @@ -246,14 +246,14 @@ const char* green_icon[]={
     
     TQDragObject *DDIconView::dragObject()
     {
    -  return new TQTextDrag( currentItem()->text(), this );
    +  return new TQTextDrag( currentItem()->text(), this );
     }
     
     void DDIconView::slotNewItem( TQDropEvent *evt, const TQValueList<TQIconDragItem>& )
     {
         TQString label;
     
    -    if ( TQTextDrag::decode( evt, label ) ) {
    +    if ( TQTextDrag::decode( evt, label ) ) {
             DDIconViewItem *item = new DDIconViewItem( this, label );
             item->setRenameEnabled( TRUE );
         }
    diff --git a/doc/html/text.html b/doc/html/text.html
    index 190b5db9e..94c2b5b50 100644
    --- a/doc/html/text.html
    +++ b/doc/html/text.html
    @@ -49,11 +49,11 @@ body { background: #ffffff; color: black; }
     TQStyleSheetCollection of styles for rich text rendering and a generator of tags
     TQStyleSheetItemEncapsulation of a set of text styles
     TQSyntaxHighlighterBase class for implementing TQTextEdit syntax highlighters
    -TQTextBrowserRich text browser with hypertext navigation
    -TQTextEditPowerful single-page rich text editor
    -TQTextIStreamConvenience class for input streams
    -TQTextOStreamConvenience class for output streams
    -TQTextStreamBasic functions for reading and writing text using a TQIODevice
    +TQTextBrowserRich text browser with hypertext navigation
    +TQTextEditPowerful single-page rich text editor
    +TQTextIStreamConvenience class for input streams
    +TQTextOStreamConvenience class for output streams
    +TQTextStreamBasic functions for reading and writing text using a TQIODevice
     
     
     


    diff --git a/doc/html/titleindex b/doc/html/titleindex index bd60dc303..90760440b 100644 --- a/doc/html/titleindex +++ b/doc/html/titleindex @@ -857,28 +857,28 @@ QTableSelection Class | qtableselection.html QTableSelection Member List | qtableselection-members.html QTabletEvent Class | qtabletevent.html QTabletEvent Member List | qtabletevent-members.html -QTextBrowser Class | ntqtextbrowser.html -QTextBrowser Member List | qtextbrowser-members.html -QTextCodec Class | ntqtextcodec.html -QTextCodec Member List | qtextcodec-members.html -QTextCodecPlugin Class | ntqtextcodecplugin.html -QTextCodecPlugin Member List | qtextcodecplugin-members.html -QTextDecoder Class | qtextdecoder.html -QTextDecoder Member List | qtextdecoder-members.html -QTextDrag Class | qtextdrag.html -QTextDrag Member List | qtextdrag-members.html -QTextEdit Class | ntqtextedit.html -QTextEdit Member List | qtextedit-members.html -QTextEncoder Class | qtextencoder.html -QTextEncoder Member List | qtextencoder-members.html -QTextIStream Class | qtextistream.html -QTextIStream Member List | qtextistream-members.html -QTextOStream Class | qtextostream.html -QTextOStream Member List | qtextostream-members.html -QTextStream Class | ntqtextstream.html -QTextStream Member List | qtextstream-members.html -QTextView Class | ntqtextview.html -QTextView Member List | qtextview-members.html +TQTextBrowser Class | tqtextbrowser.html +TQTextBrowser Member List | tqtextbrowser-members.html +TQTextCodec Class | tqtextcodec.html +TQTextCodec Member List | tqtextcodec-members.html +TQTextCodecPlugin Class | tqtextcodecplugin.html +TQTextCodecPlugin Member List | tqtextcodecplugin-members.html +TQTextDecoder Class | tqtextdecoder.html +TQTextDecoder Member List | tqtextdecoder-members.html +TQTextDrag Class | tqtextdrag.html +TQTextDrag Member List | tqtextdrag-members.html +TQTextEdit Class | tqtextedit.html +TQTextEdit Member List | tqtextedit-members.html +TQTextEncoder Class | tqtextencoder.html +TQTextEncoder Member List | tqtextencoder-members.html +TQTextIStream Class | tqtextistream.html +TQTextIStream Member List | tqtextistream-members.html +TQTextOStream Class | tqtextostream.html +TQTextOStream Member List | tqtextostream-members.html +TQTextStream Class | tqtextstream.html +TQTextStream Member List | tqtextstream-members.html +TQTextView Class | tqtextview.html +TQTextView Member List | tqtextview-members.html QThread Class | ntqthread.html QThread Member List | qthread-members.html QThreadStorage Class | ntqthreadstorage.html @@ -1384,12 +1384,12 @@ ntqtabbar.h Include File | qtabbar-h.html ntqtabdialog.h Include File | qtabdialog-h.html ntqtable.h Include File | qtable-h.html ntqtabwidget.h Include File | qtabwidget-h.html -ntqtextbrowser.h Include File | qtextbrowser-h.html -ntqtextcodec.h Include File | qtextcodec-h.html -ntqtextcodecplugin.h Include File | qtextcodecplugin-h.html -ntqtextedit.h Include File | qtextedit-h.html -ntqtextstream.h Include File | qtextstream-h.html -ntqtextview.h Include File | qtextview-h.html +tqtextbrowser.h Include File | tqtextbrowser-h.html +tqtextcodec.h Include File | tqtextcodec-h.html +tqtextcodecplugin.h Include File | tqtextcodecplugin-h.html +tqtextedit.h Include File | tqtextedit-h.html +tqtextstream.h Include File | tqtextstream-h.html +tqtextview.h Include File | tqtextview-h.html ntqthread.h Include File | qthread-h.html ntqthreadstorage.h Include File | qthreadstorage-h.html ntqtimer.h Include File | qtimer-h.html diff --git a/doc/html/tqdomnode.html b/doc/html/tqdomnode.html index 1bf210bf0..28217cbd4 100644 --- a/doc/html/tqdomnode.html +++ b/doc/html/tqdomnode.html @@ -620,7 +620,7 @@ replaced by all of the children of the fragment.

    Returns a new reference to oldChild on success or a null node an failure.

    See also insertBefore(), insertAfter(), removeChild(), and appendChild(). -

    void TQDomNode::save ( TQTextStream & str, int indent ) const +

    void TQDomNode::save ( TQTextStream & str, int indent ) const

    Writes the XML representation of the node and all its children to the stream str. This function uses indent as the amount of @@ -722,7 +722,7 @@ the returned object will be null.

    See also isText().


    Related Functions

    -

    TQTextStream & operator<< ( TQTextStream & str, const TQDomNode & node ) +

    TQTextStream & operator<< ( TQTextStream & str, const TQDomNode & node )

    Writes the XML representation of the node node and all its diff --git a/doc/html/tqobject.html b/doc/html/tqobject.html index 4a64e20d3..c492affab 100644 --- a/doc/html/tqobject.html +++ b/doc/html/tqobject.html @@ -506,13 +506,13 @@ TRUE; otherwise return FALSE. bool eventFilter( TQObject *obj, TQEvent *ev ); private: - TQTextEdit *textEdit; + TQTextEdit *textEdit; }; MyMainWindow::MyMainWindow( TQWidget *parent, const char *name ) : TQMainWindow( parent, name ) { - textEdit = new TQTextEdit( this ); + textEdit = new TQTextEdit( this ); setCentralWidget( textEdit ); textEdit->installEventFilter( this ); } diff --git a/doc/html/tqsqlpropertymap.html b/doc/html/tqsqlpropertymap.html index b762a25e6..6202e875d 100644 --- a/doc/html/tqsqlpropertymap.html +++ b/doc/html/tqsqlpropertymap.html @@ -130,7 +130,7 @@ new default map.) date TQDateTimeEdit dateTime - TQTextBrowser + TQTextBrowser source TQButton, TQDial, @@ -138,7 +138,7 @@ new default map.) TQLineEdit, TQMultiLineEdit, TQPushButton, -TQTextEdit, +TQTextEdit, text TQTimeEdit time diff --git a/doc/html/tqstring.html b/doc/html/tqstring.html index 865dbdae0..353f72161 100644 --- a/doc/html/tqstring.html +++ b/doc/html/tqstring.html @@ -376,7 +376,7 @@ it will result in more readable code. Constructs a string that is a deep copy of str, interpreted as a classic C string. The encoding is assumed to be Latin-1, unless -you change it using TQTextCodec::setCodecForCStrings(). +you change it using TQTextCodec::setCodecForCStrings().

    If str is 0, then a null string is created.

    This is a cast constructor, but it is perfectly safe: converting a Latin-1 const char * to TQString preserves all the information. You @@ -623,7 +623,7 @@ except that the strings are replaced in one pass.

    const char * TQString::ascii () const

    Returns an 8-bit ASCII representation of the string. -

    If a codec has been set using TQTextCodec::codecForCStrings(), +

    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().

    See also fromAscii(), latin1(), utf8(), and local8Bit(). @@ -923,7 +923,7 @@ Returns the Unicode string decoded from the first len bytes of ascii, ignoring the rest of ascii. If len is -1 then the length of ascii is used. If len is bigger than the length of ascii then it will use the length of ascii. -

    If a codec has been set using TQTextCodec::codecForCStrings(), +

    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().

    This is the same as the TQString(const char*) constructor, but you @@ -958,7 +958,7 @@ of local8Bit.

    local8Bit is assumed to be encoded in a locale-specific format. -

    See TQTextCodec for more diverse coding/decoding of Unicode strings. +

    See TQTextCodec for more diverse coding/decoding of Unicode strings.

    TQString TQString::fromUcs2 ( const unsigned short * str ) [static]

    @@ -978,7 +978,7 @@ the length of utf8 then it will use the length of utf8. // str == "12345"
    -

    See TQTextCodec for more diverse coding/decoding of Unicode strings. +

    See TQTextCodec for more diverse coding/decoding of Unicode strings.

    Example: fonts/simple-qfont-demo/viewer.cpp.

    TQString & TQString::insert ( uint index, const TQString & s ) @@ -1066,7 +1066,7 @@ null string is always empty. 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. +Unicode, see the TQTextCodec classes.

    This function is mainly useful for boot-strapping legacy code to use Unicode.

    The result remains valid so long as one unmodified copy of the @@ -1115,10 +1115,10 @@ padded by the fill character.

    TQCString TQString::local8Bit () const

    Returns the string encoded in a locale-specific format. On X11, -this is the TQTextCodec::codecForLocale(). On Windows, it is a +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. -

    See TQTextCodec for more diverse coding/decoding of Unicode +

    See TQTextCodec for more diverse coding/decoding of Unicode strings.

    See also fromLocal8Bit(), ascii(), latin1(), and utf8(). @@ -1131,7 +1131,7 @@ greater than s2.

    The comparison is performed in a locale- and also platform-dependent manner. Use this function to present sorted lists of strings to the user. -

    See also TQString::compare() and TQTextCodec::locale(). +

    See also TQString::compare() and TQTextCodec::locale().

    int TQString::localeAwareCompare ( const TQString & s ) const

    @@ -1898,7 +1898,7 @@ the escape sequences of printf() in the standard C library.

    The %s escape sequence expects a utf8() encoded string. The format string cformat 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 +building, with full Unicode support, you can use TQTextOStream like this:

             TQString str;
    @@ -2227,7 +2227,7 @@ Returns an uppercase copy of the string.
     

    TQCString TQString::utf8 () const

    Returns the string encoded in UTF-8 format. -

    See TQTextCodec for more diverse coding/decoding of Unicode strings. +

    See TQTextCodec for more diverse coding/decoding of Unicode strings.

    See also fromUtf8(), ascii(), latin1(), and local8Bit().

    Example: network/archivesearch/archivedialog.ui.h. diff --git a/doc/html/tqtextbrowser-h.html b/doc/html/tqtextbrowser-h.html new file mode 100644 index 000000000..badeb3fea --- /dev/null +++ b/doc/html/tqtextbrowser-h.html @@ -0,0 +1,152 @@ + + + + + +tqtextbrowser.h Include File + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    tqtextbrowser.h

    + +

    This is the verbatim text of the tqtextbrowser.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


    +
    +/****************************************************************************
    +** $Id: qt/tqtextbrowser.h   3.3.8   edited Jan 11 14:39 $
    +**
    +** Definition of the TQTextBrowser class
    +**
    +** Created : 990101
    +**
    +** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
    +**
    +** This file is part of the widgets module of the TQt GUI Toolkit.
    +**
    +** This file may be used under the terms of the GNU General Public
    +** License versions 2.0 or 3.0 as published by the Free Software
    +** Foundation and appearing in the file LICENSE.GPL included in the
    +** packaging of this file. Alternatively you may (at your option) use any
    +** later version of the GNU General Public License if such license has
    +** been publicly approved by Trolltech ASA (or its successors, if any)
    +** and the KDE Free TQt Foundation.
    +**
    +** Please review the following information to ensure GNU General
    +** Public Licensing requirements will be met:
    +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
    +** If you are unsure which license is appropriate for your use, please
    +** review the following information:
    +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
    +** or contact the sales department at sales@trolltech.com.
    +**
    +** This file may be used under the terms of the Q Public License as
    +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
    +** included in the packaging of this file.  Licensees holding valid TQt
    +** Commercial licenses may use this file in accordance with the TQt
    +** Commercial License Agreement provided with the Software.
    +**
    +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
    +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
    +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
    +** herein.
    +**
    +**********************************************************************/
    +
    +#ifndef TQTEXTBROWSER_H
    +#define TQTEXTBROWSER_H
    +
    +#ifndef QT_H
    +#include "tqptrlist.h"
    +#include "ntqpixmap.h"
    +#include "ntqcolor.h"
    +#include "tqtextedit.h"
    +#endif // QT_H
    +
    +#ifndef TQT_NO_TEXTBROWSER
    +
    +class TQTextBrowserData;
    +
    +class TQ_EXPORT TQTextBrowser : public TQTextEdit
    +{
    +    TQ_OBJECT
    +    TQ_PROPERTY( TQString source READ source WRITE setSource )
    +    TQ_OVERRIDE( int undoDepth DESIGNABLE false SCRIPTABLE false )
    +    TQ_OVERRIDE( bool overwriteMode DESIGNABLE false SCRIPTABLE false )
    +    TQ_OVERRIDE( bool modified SCRIPTABLE false)
    +    TQ_OVERRIDE( bool readOnly DESIGNABLE false SCRIPTABLE false )
    +    TQ_OVERRIDE( bool undoRedoEnabled DESIGNABLE false SCRIPTABLE false )
    +
    +public:
    +    TQTextBrowser( TQWidget* parent=0, const char* name=0 );
    +    ~TQTextBrowser();
    +
    +    TQString source() const;
    +
    +public slots:
    +    virtual void setSource(const TQString& name);
    +    virtual void backward();
    +    virtual void forward();
    +    virtual void home();
    +    virtual void reload();
    +    void setText( const TQString &txt ) { setText( txt, TQString::null ); }
    +    virtual void setText( const TQString &txt, const TQString &context );
    +
    +signals:
    +    void backwardAvailable( bool );
    +    void forwardAvailable( bool );
    +    void sourceChanged( const TQString& );
    +    void highlighted( const TQString& );
    +    void linkClicked( const TQString& );
    +    void anchorClicked( const TQString&, const TQString& );
    +
    +protected:
    +    void keyPressEvent( TQKeyEvent * e);
    +
    +private:
    +    void popupDetail( const TQString& contents, const TQPoint& pos );
    +    bool linksEnabled() const { return TRUE; }
    +    void emitHighlighted( const TQString &s );
    +    void emitLinkClicked( const TQString &s );
    +    TQTextBrowserData *d;
    +
    +private:	// Disabled copy constructor and operator=
    +#if defined(TQ_DISABLE_COPY)
    +    TQTextBrowser( const TQTextBrowser & );
    +    TQTextBrowser& operator=( const TQTextBrowser & );
    +#endif
    +};
    +
    +#endif // TQT_NO_TEXTBROWSER
    +
    +#endif // TQTEXTBROWSER_H
    +
    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextbrowser-m.png b/doc/html/tqtextbrowser-m.png new file mode 100644 index 000000000..39c1bdb72 Binary files /dev/null and b/doc/html/tqtextbrowser-m.png differ diff --git a/doc/html/tqtextbrowser-members.html b/doc/html/tqtextbrowser-members.html new file mode 100644 index 000000000..c5439fa75 --- /dev/null +++ b/doc/html/tqtextbrowser-members.html @@ -0,0 +1,556 @@ + + + + + +TQTextBrowser Member List + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    Complete Member List for TQTextBrowser

    + +

    This is the complete list of member functions for +TQTextBrowser, including inherited members. + +

    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextbrowser-w.png b/doc/html/tqtextbrowser-w.png new file mode 100644 index 000000000..84343370f Binary files /dev/null and b/doc/html/tqtextbrowser-w.png differ diff --git a/doc/html/tqtextbrowser.html b/doc/html/tqtextbrowser.html new file mode 100644 index 000000000..a1e379389 --- /dev/null +++ b/doc/html/tqtextbrowser.html @@ -0,0 +1,265 @@ + + + + + +TQTextBrowser Class + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    TQTextBrowser Class Reference

    + +

    The TQTextBrowser class provides a rich text browser with hypertext navigation. +More... +

    #include <tqtextbrowser.h> +

    Inherits TQTextEdit. +

    List of all member functions. +

    Public Members

    +
      +
    • TQTextBrowser ( TQWidget * parent = 0, const char * name = 0 )
    • +
    • TQString source () const
    • +
    +

    Public Slots

    + +

    Signals

    + +

    Properties

    +
      +
    • bool modified - whether the contents have been modified  (read only)
    • +
    • bool overwriteMode - this text browser's overwrite mode  (read only)
    • +
    • bool readOnly - whether the contents are read only  (read only)
    • +
    • TQString source - the name of the displayed document
    • +
    • int undoDepth - this text browser's undo depth  (read only)
    • +
    • bool undoRedoEnabled - whether undo and redo are enabled  (read only)
    • +
    +

    Protected Members

    + +

    Detailed Description

    + + +The TQTextBrowser class provides a rich text browser with hypertext navigation. +

    + + + +

    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, "#anchor"), 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 href +value as argument. You can track the current source by connetion +to the sourceChanged() signal. +

    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. +

    By using TQTextEdit::setMimeSourceFactory() you can provide your +own subclass of TQMimeSourceFactory. This makes it possible to +access data from anywhere, for example from a network or from a +database. See TQMimeSourceFactory::data() for details. +

    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: +

    +    mimeSourceFactory()->setExtensionType("qml", "text/utf8");
    +    
    + +This is to ensure that the factory is able to resolve the document +names. +

    TQTextBrowser interprets the tags it processes in accordance with +the default style sheet. Change the style sheet with +setStyleSheet(); see TQStyleSheet for details. +

    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 TQSimpleRichText or TQLabel. +

    +

    See also Advanced Widgets, Help System, and Text Related Classes. + +


    Member Function Documentation

    +

    TQTextBrowser::TQTextBrowser ( TQWidget * parent = 0, const char * name = 0 ) +

    +Constructs an empty TQTextBrowser called name, with parent parent. + +

    void TQTextBrowser::anchorClicked ( const TQString & name, const TQString & link ) [signal] +

    + +

    This signal is emitted when the user clicks an anchor. The link is +the value of the href i.e. the name of the target document. The name +is the name of the anchor. +

    See also linkClicked(). + +

    void TQTextBrowser::backward () [virtual slot] +

    +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. +

    See also forward() and backwardAvailable(). + +

    Example: helpviewer/helpwindow.cpp. +

    void TQTextBrowser::backwardAvailable ( bool available ) [signal] +

    + +

    This signal is emitted when the availability of backward() +changes. available is FALSE when the user is at home(); +otherwise it is TRUE. + +

    Example: helpviewer/helpwindow.cpp. +

    void TQTextBrowser::forward () [virtual slot] +

    +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. +

    See also backward() and forwardAvailable(). + +

    Example: helpviewer/helpwindow.cpp. +

    void TQTextBrowser::forwardAvailable ( bool available ) [signal] +

    + +

    This signal is emitted when the availability of forward() changes. +available is TRUE after the user navigates backward() and FALSE +when the user navigates or goes forward(). + +

    Example: helpviewer/helpwindow.cpp. +

    void TQTextBrowser::highlighted ( const TQString & link ) [signal] +

    +

    This signal is emitted when the user has selected but not +activated a link in the document. link is the value of the href i.e. the name of the target document. + +

    Example: helpviewer/helpwindow.cpp. +

    void TQTextBrowser::home () [virtual slot] +

    +Changes the document displayed to be the first document the +browser displayed. + +

    Example: helpviewer/helpwindow.cpp. +

    void TQTextBrowser::keyPressEvent ( TQKeyEvent * e ) [virtual protected] +

    +The event e is used to provide the following keyboard shortcuts: +
    +
    Keypress Action +
    Alt+Left Arrow backward() +
    Alt+Right Arrow forward() +
    Alt+Up Arrow home() +
    + +

    Reimplemented from TQTextEdit. +

    void TQTextBrowser::linkClicked ( const TQString & link ) [signal] +

    + +

    This signal is emitted when the user clicks a link. The link is +the value of the href i.e. the name of the target document. +

    The link 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. +

    See also anchorClicked() and context(). + +

    void TQTextBrowser::reload () [virtual slot] +

    +Reloads the current set source. + +

    void TQTextBrowser::setSource ( const TQString & name ) [virtual slot] +

    Sets the name of the displayed document to name. +See the "source" property for details. +

    TQString TQTextBrowser::source () const +

    Returns the name of the displayed document. +See the "source" property for details. +

    void TQTextBrowser::sourceChanged ( const TQString & src ) [signal] +

    + +

    This signal is emitted when the mime source has changed, src +being the new source. +

    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. + +

    Example: helpviewer/helpwindow.cpp. +


    Property Documentation

    +

    bool modified

    +

    This property holds whether the contents have been modified. +

    +

    bool overwriteMode

    +

    This property holds this text browser's overwrite mode. +

    +

    bool readOnly

    +

    This property holds whether the contents are read only. +

    +

    TQString source

    +

    This property holds the name of the displayed document. +

    This is a TQString::null if no document is displayed or if the +source is unknown. +

    Setting this property uses the mimeSourceFactory() to lookup the +named document. It also checks for optional anchors and scrolls +the document accordingly. +

    If the first tag in the document is <qt type=detail>, the +document is displayed as a popup rather than as new document in +the browser window itself. Otherwise, the document is displayed +normally in the text browser with the text set to the contents of +the named document with setText(). +

    If you are using the filesystem access capabilities of the mime +source factory, you must ensure that the factory knows about the +encoding of specified files; otherwise no data will be available. +The default factory handles a couple of common file extensions +such as *.html and *.txt with reasonable defaults. See +TQMimeSourceFactory::data() for details. + +

    Set this property's value with setSource() and get this property's value with source(). +

    int undoDepth

    +

    This property holds this text browser's undo depth. +

    +

    bool undoRedoEnabled

    +

    This property holds whether undo and redo are enabled. +

    +

    +


    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextcodec-h.html b/doc/html/tqtextcodec-h.html new file mode 100644 index 000000000..e912b659a --- /dev/null +++ b/doc/html/tqtextcodec-h.html @@ -0,0 +1,179 @@ + + + + + +tqtextcodec.h Include File + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    tqtextcodec.h

    + +

    This is the verbatim text of the tqtextcodec.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


    +
    +/****************************************************************************
    +** $Id: qt/tqtextcodec.h   3.3.8   edited Jan 11 14:46 $
    +**
    +** Definition of TQTextCodec class
    +**
    +** Created : 981015
    +**
    +** Copyright (C) 1998-2007 Trolltech ASA.  All rights reserved.
    +**
    +** This file is part of the tools module of the TQt GUI Toolkit.
    +**
    +** This file may be used under the terms of the GNU General Public
    +** License versions 2.0 or 3.0 as published by the Free Software
    +** Foundation and appearing in the file LICENSE.GPL included in the
    +** packaging of this file. Alternatively you may (at your option) use any
    +** later version of the GNU General Public License if such license has
    +** been publicly approved by Trolltech ASA (or its successors, if any)
    +** and the KDE Free TQt Foundation.
    +**
    +** Please review the following information to ensure GNU General
    +** Public Licensing requirements will be met:
    +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
    +** If you are unsure which license is appropriate for your use, please
    +** review the following information:
    +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
    +** or contact the sales department at sales@trolltech.com.
    +**
    +** This file may be used under the terms of the Q Public License as
    +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
    +** included in the packaging of this file.  Licensees holding valid TQt
    +** Commercial licenses may use this file in accordance with the TQt
    +** Commercial License Agreement provided with the Software.
    +**
    +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
    +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
    +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
    +** herein.
    +**
    +**********************************************************************/
    +
    +#ifndef TQTEXTCODEC_H
    +#define TQTEXTCODEC_H
    +
    +#ifndef QT_H
    +#include "tqstring.h"
    +#endif // QT_H
    +
    +#ifndef TQT_NO_TEXTCODEC
    +
    +class TQTextCodec;
    +class TQIODevice;
    +class TQFont;
    +
    +class TQ_EXPORT TQTextEncoder {
    +public:
    +    virtual ~TQTextEncoder();
    +    virtual TQCString fromUnicode(const TQString& uc, int& lenInOut) = 0;
    +};
    +
    +class TQ_EXPORT TQTextDecoder {
    +public:
    +    virtual ~TQTextDecoder();
    +    virtual TQString toUnicode(const char* chars, int len) = 0;
    +};
    +
    +class TQ_EXPORT TQTextCodec {
    +public:
    +    virtual ~TQTextCodec();
    +
    +#ifndef TQT_NO_CODECS
    +    static TQTextCodec* loadCharmap(TQIODevice*);
    +    static TQTextCodec* loadCharmapFile(TQString filename);
    +#endif //TQT_NO_CODECS
    +    static TQTextCodec* codecForMib(int mib);
    +    static TQTextCodec* codecForName(const char* hint, int accuracy=0);
    +    static TQTextCodec* codecForContent(const char* chars, int len);
    +    static TQTextCodec* codecForIndex(int i);
    +    static TQTextCodec* codecForLocale();
    +    static void setCodecForLocale(TQTextCodec *c);
    +
    +    static TQTextCodec* codecForTr();
    +    static void setCodecForTr(TQTextCodec *c);
    +    static TQTextCodec* codecForCStrings();
    +    static void setCodecForCStrings(TQTextCodec *c);
    +
    +    static void deleteAllCodecs();
    +
    +    static const char* locale();
    +
    +    virtual const char* name() const = 0;
    +    virtual const char* mimeName() const;
    +    virtual int mibEnum() const = 0;
    +
    +    virtual TQTextDecoder* makeDecoder() const;
    +    virtual TQTextEncoder* makeEncoder() const;
    +
    +    virtual TQString toUnicode(const char* chars, int len) const;
    +    virtual TQCString fromUnicode(const TQString& uc, int& lenInOut) const;
    +
    +    TQCString fromUnicode(const TQString& uc) const;
    +    TQString toUnicode(const TQByteArray&, int len) const;
    +    TQString toUnicode(const TQByteArray&) const;
    +    TQString toUnicode(const TQCString&, int len) const;
    +    TQString toUnicode(const TQCString&) const;
    +    TQString toUnicode(const char* chars) const;
    +    virtual bool canEncode( TQChar ) const;
    +    virtual bool canEncode( const TQString& ) const;
    +
    +    virtual int heuristicContentMatch(const char* chars, int len) const = 0;
    +    virtual int heuristicNameMatch(const char* hint) const;
    +
    +    virtual TQByteArray fromUnicode(const TQString& uc, int from, int len) const;
    +    virtual unsigned short characterFromUnicode(const TQString &str, int pos) const;
    +
    +protected:
    +    TQTextCodec();
    +    static int simpleHeuristicNameMatch(const char* name, const char* hint);
    +
    +private:
    +    friend class TQFont;
    +    friend class TQFontEngineXLFD;
    +    void fromUnicodeInternal( const TQChar *in, unsigned short *out,  int length );
    +
    +    static TQTextCodec *cftr;
    +    static TQTextCodec *cfcs;
    +};
    +
    +inline TQTextCodec* TQTextCodec::codecForTr() { return cftr; }
    +inline void TQTextCodec::setCodecForTr(TQTextCodec *c) { cftr = c; }
    +inline TQTextCodec* TQTextCodec::codecForCStrings() { return cfcs; }
    +inline void TQTextCodec::setCodecForCStrings(TQTextCodec *c) { cfcs = c; }
    +
    +#endif // TQT_NO_TEXTCODEC
    +#endif // TQTEXTCODEC_H
    +
    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextcodec-members.html b/doc/html/tqtextcodec-members.html new file mode 100644 index 000000000..ecca7c61c --- /dev/null +++ b/doc/html/tqtextcodec-members.html @@ -0,0 +1,73 @@ + + + + + +TQTextCodec Member List + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    Complete Member List for TQTextCodec

    + +

    This is the complete list of member functions for +TQTextCodec, including inherited members. + +

    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextcodec.html b/doc/html/tqtextcodec.html new file mode 100644 index 000000000..bce967c66 --- /dev/null +++ b/doc/html/tqtextcodec.html @@ -0,0 +1,611 @@ + + + + + +TQTextCodec Class + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    TQTextCodec Class Reference

    + +

    The TQTextCodec class provides conversion between text encodings. +More... +

    Almost all the functions in this class are reentrant when TQt is built with thread support. The exceptions are ~TQTextCodec(), setCodecForTr(), setCodecForCStrings(), and TQTextCodec(). +

    #include <tqtextcodec.h> +

    Inherited by TQBig5Codec, TQBig5hkscsCodec, TQEucJpCodec, TQEucKrCodec, TQGb18030Codec, TQJisCodec, TQHebrewCodec, TQSjisCodec, and TQTsciiCodec. +

    List of all member functions. +

    Public Members

    +
      +
    • virtual ~TQTextCodec ()
    • +
    • virtual const char * name () const = 0
    • +
    • virtual const char * mimeName () const
    • +
    • virtual int mibEnum () const = 0
    • +
    • virtual TQTextDecoder * makeDecoder () const
    • +
    • virtual TQTextEncoder * makeEncoder () const
    • +
    • virtual TQString toUnicode ( const char * chars, int len ) const
    • +
    • virtual TQCString fromUnicode ( const TQString & uc, int & lenInOut ) const
    • +
    • TQCString fromUnicode ( const TQString & uc ) const
    • +
    • TQString toUnicode ( const TQByteArray & a, int len ) const
    • +
    • TQString toUnicode ( const TQByteArray & a ) const
    • +
    • TQString toUnicode ( const TQCString & a, int len ) const
    • +
    • TQString toUnicode ( const TQCString & a ) const
    • +
    • TQString toUnicode ( const char * chars ) const
    • +
    • virtual bool canEncode ( TQChar ch ) const
    • +
    • virtual bool canEncode ( const TQString & s ) const
    • +
    • virtual int heuristicContentMatch ( const char * chars, int len ) const = 0
    • +
    • virtual int heuristicNameMatch ( const char * hint ) const
    • +
    +

    Static Public Members

    + +

    Protected Members

    + +

    Static Protected Members

    + +

    Detailed Description

    + + +The TQTextCodec class provides conversion between text encodings. + + +

    TQt 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. +

    TQt 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). +

    The supported encodings are: +

      +
    • Latin1 +
    • Big5 -- Chinese +
    • Big5-HKSCS -- Chinese +
    • eucJP -- Japanese +
    • eucKR -- Korean +
    • GB2312 -- Chinese +
    • GBK -- Chinese +
    • GB18030 -- Chinese +
    • JIS7 -- Japanese +
    • Shift-JIS -- Japanese +
    • TSCII -- Tamil +
    • utf8 -- Unicode, 8-bit +
    • utf16 -- Unicode +
    • KOI8-R -- Russian +
    • KOI8-U -- Ukrainian +
    • ISO8859-1 -- Western +
    • ISO8859-2 -- Central European +
    • ISO8859-3 -- Central European +
    • ISO8859-4 -- Baltic +
    • ISO8859-5 -- Cyrillic +
    • ISO8859-6 -- Arabic +
    • ISO8859-7 -- Greek +
    • ISO8859-8 -- Hebrew, visually ordered +
    • ISO8859-8-i -- Hebrew, logically ordered +
    • ISO8859-9 -- Turkish +
    • ISO8859-10 +
    • ISO8859-13 +
    • ISO8859-14 +
    • ISO8859-15 -- Western +
    • IBM 850 +
    • IBM 866 +
    • CP874 +
    • CP1250 -- Central European +
    • CP1251 -- Cyrillic +
    • CP1252 -- Western +
    • CP1253 -- Greek +
    • CP1254 -- Turkish +
    • CP1255 -- Hebrew +
    • CP1256 -- Arabic +
    • CP1257 -- Baltic +
    • CP1258 +
    • Apple Roman +
    • TIS-620 -- Thai +
    +

    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: +

    +    TQCString locallyEncoded = "..."; // text to convert
    +    TQTextCodec *codec = TQTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R
    +    TQString unicodeString = codec->toUnicode( locallyEncoded );
    +    
    + +

    After this, unicodeString holds the text converted to Unicode. +Converting a string from Unicode to the local encoding is just as +easy: +

    +    TQString unicodeString = "..."; // any Unicode text
    +    TQTextCodec *codec = TQTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R
    +    TQCString locallyEncoded = codec->fromUnicode( unicodeString );
    +    
    + +

    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. +

    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: +

    +    TQTextCodec *codec = TQTextCodec::codecForName( "Shift-JIS" );
    +    TQTextDecoder *decoder = codec->makeDecoder();
    +
    +    TQString unicodeString;
    +    while( receiving_data ) {
    +        TQByteArray chunk = new_data;
    +        unicodeString += decoder->toUnicode( chunk.data(), chunk.length() );
    +    }
    +    
    + +

    The TQTextDecoder object maintains state between chunks and therefore +works correctly even if a multi-byte character is split between +chunks. +

    +

    Creating your own Codec class +

    +

    Support for new text encodings can be added to TQt by creating +TQTextCodec subclasses. +

    Built-in codecs can be overridden by custom codecs since more +recently created TQTextCodec objects take precedence over earlier +ones. +

    You may find it more convenient to make your codec class available +as a plugin; see the plugin + documentation for more details. +

    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. +

    To add support for another 8-bit encoding to TQt, make a subclass +of TQTextCodec and implement at least the following methods: +

    +    const char* name() const
    +    
    + +Return the official name for the encoding. +

    +    int mibEnum() const
    +    
    + +Return the MIB enum for the encoding if it is listed in the +IANA character-sets encoding file. +

    If the encoding is multi-byte then it will have "state"; that is, +the interpretation of some bytes will be dependent on some preceding +bytes. For such encodings, you must implement: +

    +    TQTextDecoder* makeDecoder() const
    +    
    + +Return a TQTextDecoder that remembers incomplete multi-byte sequence +prefixes or other required state. +

    If the encoding does not require state, you should implement: +

    +    TQString toUnicode(const char* chars, int len) const
    +    
    + +Converts len characters from chars to Unicode. +

    The base TQTextCodec class has default implementations of the above +two functions, but they are mutually recursive, so you must +re-implement at least one of them, or both for improved efficiency. +

    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: +

    +    TQTextEncoder* makeEncoder() const
    +    
    + +Return a TQTextEncoder. +

    +    TQCString fromUnicode(const TQString& uc, int& lenInOut ) const
    +    
    + +Converts lenInOut characters (of type TQChar) from the start of +the string uc, returning a TQCString result, and also returning +the length of the result in +lenInOut. +

    Again, these are mutually recursive so only one needs to be implemented, +or both if greater efficiency is possible. +

    Finally, you must implement: +

    +    int heuristicContentMatch(const char* chars, int len) const
    +    
    + +Gives a value indicating how likely it is that len characters +from chars are in the encoding. +

    A good model for this function is the +TQWindowsLocalCodec::heuristicContentMatch function found in the TQt +sources. +

    A TQTextCodec subclass might have improved performance if you also +re-implement: +

    +    bool canEncode( TQChar ) const
    +    
    + +Test if a Unicode character can be encoded. +

    +    bool canEncode( const TQString& ) const
    +    
    + +Test if a string of Unicode characters can be encoded. +

    +    int heuristicNameMatch(const char* hint) const
    +    
    + +Test if a possibly non-standard name is referring to the codec. +

    Codecs can also be created as plugins. +

    See also Internationalization with TQt. + +


    Member Function Documentation

    +

    TQTextCodec::TQTextCodec () [protected] +

    Warning: This function is not reentrant.

    + + +

    Constructs a TQTextCodec, and gives it the highest precedence. The +TQTextCodec should always be constructed on the heap (i.e. with new). TQt takes ownership and will delete it when the application +terminates. + +

    TQTextCodec::~TQTextCodec () [virtual] +

    Warning: This function is not reentrant.

    + + +

    Destroys the TQTextCodec. Note that you should not delete codecs +yourself: once created they become TQt's responsibility. + +

    bool TQTextCodec::canEncode ( TQChar ch ) const [virtual] +

    +Returns TRUE if the Unicode character ch can be fully encoded +with this codec; otherwise returns FALSE. The default +implementation tests if the result of toUnicode(fromUnicode(ch)) +is the original ch. Subclasses may be able to improve the +efficiency. + +

    bool TQTextCodec::canEncode ( const TQString & s ) const [virtual] +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    s contains the string being tested for encode-ability. + +

    TQTextCodec * TQTextCodec::codecForCStrings () [static] +

    + +

    Returns the codec used by TQString to convert to and from const +char* and TQCStrings. If this function returns 0 (the default), +TQString assumes Latin-1. +

    See also setCodecForCStrings(). + +

    TQTextCodec * TQTextCodec::codecForContent ( const char * chars, int len ) [static] +

    +Searches all installed TQTextCodec objects, returning the one which +most recognizes the given content. May return 0. +

    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. +

    chars contains the string to check, and len contains the +number of characters in the string to use. +

    See also heuristicContentMatch(). + +

    Example: qwerty/qwerty.cpp. +

    TQTextCodec * TQTextCodec::codecForIndex ( int i ) [static] +

    +Returns the TQTextCodec i positions from the most recently +inserted codec, or 0 if there is no such TQTextCodec. Thus, +codecForIndex(0) returns the most recently created TQTextCodec. + +

    Example: qwerty/qwerty.cpp. +

    TQTextCodec * TQTextCodec::codecForLocale () [static] +

    Returns a pointer to the codec most suitable for this locale. +

    Example: qwerty/qwerty.cpp. +

    TQTextCodec * TQTextCodec::codecForMib ( int mib ) [static] +

    +Returns the TQTextCodec which matches the MIBenum mib. + +

    TQTextCodec * TQTextCodec::codecForName ( const char * name, int accuracy = 0 ) [static] +

    +Searches all installed TQTextCodec objects and returns the one +which best matches name; the match is case-insensitive. Returns +0 if no codec's heuristicNameMatch() reports a match better than +accuracy, or if name is a null string. +

    See also heuristicNameMatch(). + +

    TQTextCodec * TQTextCodec::codecForTr () [static] +

    + +

    Returns the codec used by TQObject::tr() on its argument. If this +function returns 0 (the default), tr() assumes Latin-1. +

    See also setCodecForTr(). + +

    void TQTextCodec::deleteAllCodecs () [static] +

    +Deletes all the created codecs. +

    Warning: Do not call this function. +

    TQApplication 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. +

    If you are using the utility classes (like TQString) but not using +TQApplication, calling this function at the very end of your +application may be helpful for chasing down memory leaks by +eliminating any TQTextCodec objects. + +

    TQCString TQTextCodec::fromUnicode ( const TQString & uc, int & lenInOut ) const [virtual] +

    +TQTextCodec subclasses must reimplement either this function or +makeEncoder(). It converts the first lenInOut characters of uc from Unicode to the encoding of the subclass. If lenInOut is +negative or too large, the length of uc is used instead. +

    Converts lenInOut characters (not bytes) from uc, producing +a TQCString. lenInOut will be set to the length of the result (in bytes). +

    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 must reimplement one function or the other to +avoid infinite recursion. + +

    Reimplemented in TQHebrewCodec. +

    TQCString TQTextCodec::fromUnicode ( const TQString & uc ) const +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    uc is the unicode source string. + +

    int TQTextCodec::heuristicContentMatch ( const char * chars, int len ) const [pure virtual] +

    + +

    TQTextCodec subclasses must reimplement this function. It examines +the first len bytes of chars 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 len. Thus, most decoders will return -1, 0, +or -len. +

    The characters are not null terminated. +

    See also codecForContent(). + +

    int TQTextCodec::heuristicNameMatch ( const char * hint ) const [virtual] +

    +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 hint. +

    A good match returns a positive number around the length of the +string. A bad match is negative. +

    The default implementation calls simpleHeuristicNameMatch() with +the name of the codec. + +

    TQTextCodec * TQTextCodec::loadCharmap ( TQIODevice * iod ) [static] +

    +Reads a POSIX2 charmap definition from iod. +The parser recognizes the following lines: +

    +  <code_set_name> name
    +  <escape_char> character
    +  % alias alias
    +  CHARMAP
    +  <token> /xhexbyte <Uunicode> ...
    +  <token> /ddecbyte <Uunicode> ...
    +  <token> /octbyte <Uunicode> ...
    +  <token> /any/any... <Uunicode> ...
    +  END CHARMAP
    +
    +

    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. +

    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. +

    See also loadCharmapFile(). + +

    Example: qwerty/qwerty.cpp. +

    TQTextCodec * TQTextCodec::loadCharmapFile ( TQString filename ) [static] +

    +A convenience function for loadCharmap() that loads the charmap +definition from the file filename. + +

    const char * TQTextCodec::locale () [static] +

    +Returns a string representing the current language and +sublanguage, e.g. "pt" for Portuguese, or "pt_br" for Portuguese/Brazil. + +

    Example: i18n/main.cpp. +

    TQTextDecoder * TQTextCodec::makeDecoder () const [virtual] +

    +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. +

    The caller is responsible for deleting the returned object. + +

    TQTextEncoder * TQTextCodec::makeEncoder () const [virtual] +

    +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. +

    The caller is responsible for deleting the returned object. + +

    int TQTextCodec::mibEnum () const [pure virtual] +

    + +

    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. + +

    Reimplemented in TQEucJpCodec. +

    const char * TQTextCodec::mimeName () const [virtual] +

    +Returns the preferred mime name of the encoding as defined in the +IANA character-sets encoding file. + +

    Reimplemented in TQEucJpCodec, TQEucKrCodec, TQJisCodec, TQHebrewCodec, and TQSjisCodec. +

    const char * TQTextCodec::name () const [pure virtual] +

    + +

    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: +

      +
    • 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 hint, such as "iso8859-1" for Latin-1 fonts, +"koi8-r" for Russian KOI8 fonts. +The default algorithm of heuristicNameMatch() uses name(). +
    • Some applications may use this function to present +encodings to the end user. +
    + +

    Example: qwerty/qwerty.cpp. +

    void TQTextCodec::setCodecForCStrings ( TQTextCodec * c ) [static] +

    Warning: This function is not reentrant.

    + + + +

    Sets the codec used by TQString to convert to and from const char* +and TQCStrings. If c is 0 (the default), TQString assumes Latin-1. +

    Warning: 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. +

    See also codecForCStrings() and setCodecForTr(). + +

    void TQTextCodec::setCodecForLocale ( TQTextCodec * c ) [static] +

    +Set the codec to c; this will be returned by codecForLocale(). +This might be needed for some applications that want to use their +own mechanism for setting the locale. +

    See also codecForLocale(). + +

    void TQTextCodec::setCodecForTr ( TQTextCodec * c ) [static] +

    Warning: This function is not reentrant.

    + + + +

    Sets the codec used by TQObject::tr() on its argument to c. If +c is 0 (the default), tr() assumes Latin-1. +

    If the literal quoted text in the program is not in the Latin-1 +encoding, this function can be used to set the appropriate +encoding. For example, software developed by Korean programmers +might use eucKR for all the text in the program, in which case the +main() function might look like this: +

    +    int main(int argc, char** argv)
    +    {
    +        TQApplication app(argc, argv);
    +        ... install any additional codecs ...
    +        TQTextCodec::setCodecForTr( TQTextCodec::codecForName("eucKR") );
    +        ...
    +    }
    +    
    + +

    Note that this is not the way to select the encoding that the user 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. +

    See also codecForTr() and setCodecForCStrings(). + +

    int TQTextCodec::simpleHeuristicNameMatch ( const char * name, const char * hint ) [static protected] +

    +A simple utility function for heuristicNameMatch(): it does some +very minor character-skipping so that almost-exact matches score +high. name is the text we're matching and hint is used for +the comparison. + +

    TQString TQTextCodec::toUnicode ( const char * chars, int len ) const [virtual] +

    +TQTextCodec subclasses must reimplement this function or +makeDecoder(). It converts the first len characters of chars +to Unicode. +

    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 must reimplement one function or +the other to avoid infinite recursion. + +

    TQString TQTextCodec::toUnicode ( const TQByteArray & a, int len ) const +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    a contains the source characters; len contains the number of +characters in a to use. + +

    TQString TQTextCodec::toUnicode ( const TQByteArray & a ) const +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    a contains the source characters. + +

    TQString TQTextCodec::toUnicode ( const TQCString & a, int len ) const +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    a contains the source characters; len contains the number of +characters in a to use. + +

    TQString TQTextCodec::toUnicode ( const TQCString & a ) const +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    a contains the source characters. + +

    TQString TQTextCodec::toUnicode ( const char * chars ) const +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    chars contains the source characters. + + +


    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextcodecplugin-h.html b/doc/html/tqtextcodecplugin-h.html new file mode 100644 index 000000000..1e717620b --- /dev/null +++ b/doc/html/tqtextcodecplugin-h.html @@ -0,0 +1,115 @@ + + + + + +tqtextcodecplugin.h Include File + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    tqtextcodecplugin.h

    + +

    This is the verbatim text of the tqtextcodecplugin.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


    +
    +/****************************************************************************
    +** $Id: qt/tqtextcodecplugin.h   3.3.8   edited Jan 11 14:46 $
    +**
    +** Definition of TQTextCodecPlugin class
    +**
    +** Created : 010920
    +**
    +** Copyright (C) 2005-2007 Trolltech ASA.  All rights reserved.
    +**
    +** This file is part of the tools module of the TQt GUI Toolkit.
    +**
    +** This file may be used under the terms of the GNU General Public
    +** License versions 2.0 or 3.0 as published by the Free Software
    +** Foundation and appearing in the file LICENSE.GPL included in the
    +** packaging of this file. Alternatively you may (at your option) use any
    +** later version of the GNU General Public License if such license has
    +** been publicly approved by Trolltech ASA (or its successors, if any)
    +** and the KDE Free TQt Foundation.
    +**
    +** Please review the following information to ensure GNU General
    +** Public Licensing requirements will be met:
    +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
    +** If you are unsure which license is appropriate for your use, please
    +** review the following information:
    +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
    +** or contact the sales department at sales@trolltech.com.
    +**
    +** This file may be used under the terms of the Q Public License as
    +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
    +** included in the packaging of this file.  Licensees holding valid TQt
    +** Commercial licenses may use this file in accordance with the TQt
    +** Commercial License Agreement provided with the Software.
    +**
    +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
    +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
    +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
    +** herein.
    +**
    +**********************************************************************/
    +
    +#ifndef TQTEXTCODECPLUGIN_H
    +#define TQTEXTCODECPLUGIN_H
    +
    +#ifndef QT_H
    +#include "ntqgplugin.h"
    +#include "tqstringlist.h"
    +#endif // QT_H
    +
    +#ifndef TQT_NO_TEXTCODECPLUGIN
    +class TQTextCodec;
    +class TQTextCodecPluginPrivate;
    +
    +class TQ_EXPORT TQTextCodecPlugin : public TQGPlugin
    +{
    +    TQ_OBJECT
    +public:
    +    TQTextCodecPlugin();
    +    ~TQTextCodecPlugin();
    +
    +    virtual TQStringList names() const = 0;
    +    virtual TQTextCodec *createForName( const TQString &name ) = 0;
    +    
    +    virtual TQValueList<int> mibEnums() const = 0;
    +    virtual TQTextCodec *createForMib( int mib ) = 0;
    +
    +private:
    +    TQTextCodecPluginPrivate *d;
    +};
    +#endif // TQT_NO_TEXTCODECPLUGIN
    +#endif // TQTEXTCODECPLUGIN_H
    +
    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextcodecplugin-members.html b/doc/html/tqtextcodecplugin-members.html new file mode 100644 index 000000000..a5121af81 --- /dev/null +++ b/doc/html/tqtextcodecplugin-members.html @@ -0,0 +1,52 @@ + + + + + +TQTextCodecPlugin Member List + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    Complete Member List for TQTextCodecPlugin

    + +

    This is the complete list of member functions for +TQTextCodecPlugin, including inherited members. + +

    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextcodecplugin.html b/doc/html/tqtextcodecplugin.html new file mode 100644 index 000000000..274af80d5 --- /dev/null +++ b/doc/html/tqtextcodecplugin.html @@ -0,0 +1,114 @@ + + + + + +TQTextCodecPlugin Class + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    TQTextCodecPlugin Class Reference

    + +

    The TQTextCodecPlugin class provides an abstract base for custom TQTextCodec plugins. +More... +

    All the functions in this class are reentrant when TQt is built with thread support.

    +

    #include <tqtextcodecplugin.h> +

    List of all member functions. +

    Public Members

    + +

    Detailed Description

    + + +The TQTextCodecPlugin class provides an abstract base for custom TQTextCodec plugins. + + +

    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. +

    Writing a text codec plugin is achieved by subclassing this base +class, reimplementing the pure virtual functions names(), +createForName(), mibEnums() and createForMib(), and exporting the +class with the TQ_EXPORT_PLUGIN macro. See the TQt Plugins documentation for details. +

    See the IANA + character-sets encoding file for more information on mime +names and mib enums. +

    See also Plugins. + +


    Member Function Documentation

    +

    TQTextCodecPlugin::TQTextCodecPlugin () +

    +Constructs a text codec plugin. This is invoked automatically by +the TQ_EXPORT_PLUGIN macro. + +

    TQTextCodecPlugin::~TQTextCodecPlugin () +

    +Destroys the text codec plugin. +

    You never have to call this explicitly. TQt destroys a plugin +automatically when it is no longer used. + +

    TQTextCodec * TQTextCodecPlugin::createForMib ( int mib ) [pure virtual] +

    + +

    Creates a TQTextCodec object for the mib enum mib. +

    (See the + IANA character-sets encoding file for more information) +

    See also mibEnums(). + +

    TQTextCodec * TQTextCodecPlugin::createForName ( const TQString & name ) [pure virtual] +

    + +

    Creates a TQTextCodec object for the codec called name. +

    See also names(). + +

    TQValueList<int> TQTextCodecPlugin::mibEnums () const [pure virtual] +

    + +

    Returns the list of mib enums supported by this plugin. +

    See also createForMib(). + +

    TQStringList TQTextCodecPlugin::names () const [pure virtual] +

    + +

    Returns the list of mime names supported by this plugin. +

    See also createForName(). + + +


    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextdecoder-members.html b/doc/html/tqtextdecoder-members.html new file mode 100644 index 000000000..cc29254f6 --- /dev/null +++ b/doc/html/tqtextdecoder-members.html @@ -0,0 +1,48 @@ + + + + + +TQTextDecoder Member List + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    Complete Member List for TQTextDecoder

    + +

    This is the complete list of member functions for +TQTextDecoder, including inherited members. + +

    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextdecoder.html b/doc/html/tqtextdecoder.html new file mode 100644 index 000000000..46c437088 --- /dev/null +++ b/doc/html/tqtextdecoder.html @@ -0,0 +1,78 @@ + + + + + +TQTextDecoder Class + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    TQTextDecoder Class Reference

    + +

    The TQTextDecoder class provides a state-based decoder. +More... +

    All the functions in this class are reentrant when TQt is built with thread support.

    +

    #include <tqtextcodec.h> +

    List of all member functions. +

    Public Members

    + +

    Detailed Description

    + + +The TQTextDecoder class provides a state-based decoder. + + +

    The decoder converts a text format into Unicode, remembering any +state that is required between calls. +

    See also TQTextCodec::makeEncoder() and Internationalization with TQt. + +


    Member Function Documentation

    +

    TQTextDecoder::~TQTextDecoder () [virtual] +

    +Destroys the decoder. + +

    TQString TQTextDecoder::toUnicode ( const char * chars, int len ) [pure virtual] +

    + +

    Converts the first len bytes in chars to Unicode, returning +the result. +

    If not all characters are used (e.g. if only part of a multi-byte +encoding is at the end of the characters), the decoder remembers +enough state to continue with the next call to this function. + + +


    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextdrag-members.html b/doc/html/tqtextdrag-members.html new file mode 100644 index 000000000..88c216596 --- /dev/null +++ b/doc/html/tqtextdrag-members.html @@ -0,0 +1,107 @@ + + + + + +TQTextDrag Member List + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    Complete Member List for TQTextDrag

    + +

    This is the complete list of member functions for +TQTextDrag, including inherited members. + +

    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextdrag.html b/doc/html/tqtextdrag.html new file mode 100644 index 000000000..d8fa395a6 --- /dev/null +++ b/doc/html/tqtextdrag.html @@ -0,0 +1,129 @@ + + + + + +TQTextDrag Class + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    TQTextDrag Class Reference

    + +

    The TQTextDrag class is a drag and drop object for +transferring plain and Unicode text. +More... +

    #include <ntqdragobject.h> +

    Inherits TQDragObject. +

    List of all member functions. +

    Public Members

    +
      +
    • TQTextDrag ( const TQString & text, TQWidget * dragSource = 0, const char * name = 0 )
    • +
    • TQTextDrag ( TQWidget * dragSource = 0, const char * name = 0 )
    • +
    • ~TQTextDrag ()
    • +
    • virtual void setText ( const TQString & text )
    • +
    • virtual void setSubtype ( const TQCString & st )
    • +
    +

    Static Public Members

    +
      +
    • bool canDecode ( const TQMimeSource * e )
    • +
    • bool decode ( const TQMimeSource * e, TQString & str )
    • +
    • bool decode ( const TQMimeSource * e, TQString & str, TQCString & subtype )
    • +
    +

    Detailed Description

    + + +

    The TQTextDrag class is a drag and drop object for +transferring plain and Unicode text. +

    +

    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. +

    TQt provides no built-in mechanism for delivering only a single-line. +

    For more information about drag and drop, see the TQDragObject class +and the drag and drop documentation. +

    See also Drag And Drop Classes. + +


    Member Function Documentation

    +

    TQTextDrag::TQTextDrag ( const TQString & text, TQWidget * dragSource = 0, const char * name = 0 ) +

    +Constructs a text drag object and sets its data to text. dragSource must be the drag source; name is the object name. + +

    TQTextDrag::TQTextDrag ( TQWidget * dragSource = 0, const char * name = 0 ) +

    +Constructs a default text drag object. dragSource must be the +drag source; name is the object name. + +

    TQTextDrag::~TQTextDrag () +

    +Destroys the text drag object and frees up all allocated +resources. + +

    bool TQTextDrag::canDecode ( const TQMimeSource * e ) [static] +

    +Returns TRUE if the information in e can be decoded into a +TQString; otherwise returns FALSE. +

    See also decode(). + +

    Example: iconview/simple_dd/main.cpp. +

    bool TQTextDrag::decode ( const TQMimeSource * e, TQString & str ) [static] +

    +Attempts to decode the dropped information in e into str. +Returns TRUE if successful; otherwise returns FALSE. +

    See also canDecode(). + +

    Example: iconview/simple_dd/main.cpp. +

    bool TQTextDrag::decode ( const TQMimeSource * e, TQString & str, TQCString & subtype ) [static] +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Attempts to decode the dropped information in e into str. +Returns TRUE if successful; otherwise returns FALSE. If subtype +is null, any text subtype is accepted; otherwise only the +specified subtype is accepted. +

    See also canDecode(). + +

    void TQTextDrag::setSubtype ( const TQCString & st ) [virtual] +

    +Sets the MIME subtype of the text being dragged to st. 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"). + +

    void TQTextDrag::setText ( const TQString & text ) [virtual] +

    +Sets the text to be dragged to text. You will need to call this +if you did not pass the text during construction. + + +

    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextedit-h.html b/doc/html/tqtextedit-h.html new file mode 100644 index 000000000..94375129c --- /dev/null +++ b/doc/html/tqtextedit-h.html @@ -0,0 +1,655 @@ + + + + + +tqtextedit.h Include File + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    tqtextedit.h

    + +

    This is the verbatim text of the tqtextedit.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


    +
    +/****************************************************************************
    +** $Id: qt/tqtextedit.h   3.3.8   edited Jan 11 14:39 $
    +**
    +** Definition of the TQTextEdit class
    +**
    +** Created : 990101
    +**
    +** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
    +**
    +** This file is part of the widgets module of the TQt GUI Toolkit.
    +**
    +** This file may be used under the terms of the GNU General Public
    +** License versions 2.0 or 3.0 as published by the Free Software
    +** Foundation and appearing in the file LICENSE.GPL included in the
    +** packaging of this file. Alternatively you may (at your option) use any
    +** later version of the GNU General Public License if such license has
    +** been publicly approved by Trolltech ASA (or its successors, if any)
    +** and the KDE Free TQt Foundation.
    +**
    +** Please review the following information to ensure GNU General
    +** Public Licensing requirements will be met:
    +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
    +** If you are unsure which license is appropriate for your use, please
    +** review the following information:
    +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
    +** or contact the sales department at sales@trolltech.com.
    +**
    +** This file may be used under the terms of the Q Public License as
    +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
    +** included in the packaging of this file.  Licensees holding valid TQt
    +** Commercial licenses may use this file in accordance with the TQt
    +** Commercial License Agreement provided with the Software.
    +**
    +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
    +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
    +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
    +** herein.
    +**
    +**********************************************************************/
    +
    +#ifndef TQTEXTEDIT_H
    +#define TQTEXTEDIT_H
    +
    +#ifndef QT_H
    +#include "ntqscrollview.h"
    +#include "ntqstylesheet.h"
    +#include "tqptrvector.h"
    +#include "tqvaluelist.h"
    +#include "tqptrlist.h"
    +#endif // QT_H
    +
    +#ifndef TQT_NO_TEXTEDIT
    +// uncomment below to enable optimization mode - also uncomment the
    +// optimDoAutoScroll() private slot since moc ignores #ifdefs..
    +#define QT_TEXTEDIT_OPTIMIZATION
    +
    +class TQPainter;
    +class TQTextDocument;
    +class TQTextCursor;
    +class TQKeyEvent;
    +class TQResizeEvent;
    +class TQMouseEvent;
    +class TQTimer;
    +class TQTextString;
    +class TQTextCommand;
    +class TQTextParagraph;
    +class TQTextFormat;
    +class TQFont;
    +class TQColor;
    +class TQTextEdit;
    +class TQTextBrowser;
    +class TQTextString;
    +struct TQUndoRedoInfoPrivate;
    +class TQPopupMenu;
    +class TQTextEditPrivate;
    +class TQSyntaxHighlighter;
    +
    +#ifdef QT_TEXTEDIT_OPTIMIZATION
    +class TQTextEditOptimPrivate
    +{
    +public:
    +    // Note: no left-tag has any value for leftTag or parent, and
    +    // no right-tag has any formatting flags set.
    +    enum TagType { Color = 0, Format = 1 };
    +    struct Tag {
    +	TagType type:2;
    +	bool bold:1;
    +	bool italic:1;
    +	bool underline:1;
    +	int line;
    +	int index;
    +	Tag * leftTag; // ptr to left-tag in a left-right tag pair
    +	Tag * parent;  // ptr to parent left-tag in a nested tag
    +	Tag * prev;
    +	Tag * next;
    +	TQString tag;
    +    };
    +    TQTextEditOptimPrivate()
    +    {
    +	len = numLines = maxLineWidth = 0;
    +	selStart.line = selStart.index = -1;
    +	selEnd.line = selEnd.index = -1;
    +	search.line = search.index = 0;
    +	tags = lastTag = 0;
    +    }
    +    void clearTags()
    +    {
    +	Tag * itr = tags;
    +	while ( tags ) {
    +	    itr  = tags;
    +	    tags = tags->next;
    +	    delete itr;
    +	}
    +	tags = lastTag = 0;
    +	tagIndex.clear();
    +    }
    +    ~TQTextEditOptimPrivate()
    +    {
    +	clearTags();
    +    }
    +    int len;
    +    int numLines;
    +    int maxLineWidth;
    +    struct Selection {
    +	int line;
    +	int index;
    +    };
    +    Selection selStart, selEnd, search;
    +    Tag * tags, * lastTag;
    +    TQMap<int, TQString> lines;
    +    TQMap<int, Tag *> tagIndex;
    +};
    +#endif
    +
    +class TQ_EXPORT TQTextEdit : public TQScrollView
    +{
    +    friend class TQTextBrowser;
    +    friend class TQSyntaxHighlighter;
    +
    +    TQ_OBJECT
    +    TQ_ENUMS( WordWrap WrapPolicy )
    +    TQ_SETS( AutoFormatting )
    +    TQ_PROPERTY( TextFormat textFormat READ textFormat WRITE setTextFormat )
    +    TQ_PROPERTY( TQString text READ text WRITE setText )
    +    TQ_PROPERTY( TQBrush paper READ paper WRITE setPaper )
    +    TQ_PROPERTY( bool linkUnderline READ linkUnderline WRITE setLinkUnderline )
    +    TQ_PROPERTY( TQString documentTitle READ documentTitle )
    +    TQ_PROPERTY( int length READ length )
    +    TQ_PROPERTY( WordWrap wordWrap READ wordWrap WRITE setWordWrap )
    +    TQ_PROPERTY( int wrapColumnOrWidth READ wrapColumnOrWidth WRITE setWrapColumnOrWidth )
    +    TQ_PROPERTY( WrapPolicy wrapPolicy READ wrapPolicy WRITE setWrapPolicy )
    +    TQ_PROPERTY( bool hasSelectedText READ hasSelectedText )
    +    TQ_PROPERTY( TQString selectedText READ selectedText )
    +    TQ_PROPERTY( int undoDepth READ undoDepth WRITE setUndoDepth )
    +    TQ_PROPERTY( bool overwriteMode READ isOverwriteMode WRITE setOverwriteMode )
    +    TQ_PROPERTY( bool modified READ isModified WRITE setModified DESIGNABLE false )
    +    TQ_PROPERTY( bool readOnly READ isReadOnly WRITE setReadOnly )
    +    TQ_PROPERTY( bool undoRedoEnabled READ isUndoRedoEnabled WRITE setUndoRedoEnabled )
    +    TQ_PROPERTY( int tabStopWidth READ tabStopWidth WRITE setTabStopWidth )
    +    TQ_PROPERTY( bool tabChangesFocus READ tabChangesFocus WRITE setTabChangesFocus )
    +    TQ_PROPERTY( AutoFormatting autoFormatting READ autoFormatting WRITE setAutoFormatting )
    +
    +public:
    +    enum WordWrap {
    +	NoWrap,
    +	WidgetWidth,
    +	FixedPixelWidth,
    +	FixedColumnWidth
    +    };
    +
    +    enum WrapPolicy {
    +	AtWordBoundary,
    +	AtWhiteSpace = AtWordBoundary, // AtWhiteSpace is deprecated
    +	Anywhere,
    +	AtWordOrDocumentBoundary
    +    };
    +
    +    enum AutoFormatting {
    +	AutoNone = 0,
    +	AutoBulletList = 0x00000001,
    +	AutoAll = 0xffffffff
    +    };
    +
    +    enum KeyboardAction {
    +	ActionBackspace,
    +	ActionDelete,
    +	ActionReturn,
    +	ActionKill,
    +	ActionWordBackspace,
    +	ActionWordDelete
    +    };
    +
    +    enum CursorAction {
    +	MoveBackward,
    +	MoveForward,
    +	MoveWordBackward,
    +	MoveWordForward,
    +	MoveUp,
    +	MoveDown,
    +	MoveLineStart,
    +	MoveLineEnd,
    +	MoveHome,
    +	MoveEnd,
    +	MovePgUp,
    +	MovePgDown
    +    };
    +
    +    enum VerticalAlignment {
    +	AlignNormal,
    +	AlignSuperScript,
    +	AlignSubScript
    +    };
    +
    +    enum TextInsertionFlags {
    +	RedoIndentation = 0x0001,
    +	CheckNewLines = 0x0002,
    +	RemoveSelected = 0x0004
    +    };
    +
    +    TQTextEdit( const TQString& text, const TQString& context = TQString::null,
    +	       TQWidget* parent=0, const char* name=0);
    +    TQTextEdit( TQWidget* parent=0, const char* name=0 );
    +    virtual ~TQTextEdit();
    +    void setPalette( const TQPalette & );
    +
    +    TQString text() const;
    +    TQString text( int para ) const;
    +    TextFormat textFormat() const;
    +    TQString context() const;
    +    TQString documentTitle() const;
    +
    +    void getSelection( int *paraFrom, int *indexFrom,
    +		    int *paraTo, int *indexTo, int selNum = 0 ) const;
    +    virtual bool find( const TQString &expr, bool cs, bool wo, bool forward = TRUE,
    +		       int *para = 0, int *index = 0 );
    +
    +    int paragraphs() const;
    +    int lines() const;
    +    int linesOfParagraph( int para ) const;
    +    int lineOfChar( int para, int chr );
    +    int length() const;
    +    TQRect paragraphRect( int para ) const;
    +    int paragraphAt( const TQPoint &pos ) const;
    +    int charAt( const TQPoint &pos, int *para ) const;
    +    int paragraphLength( int para ) const;
    +
    +    TQStyleSheet* styleSheet() const;
    +#ifndef TQT_NO_MIME
    +    TQMimeSourceFactory* mimeSourceFactory() const;
    +#endif
    +    TQBrush paper() const;
    +    bool linkUnderline() const;
    +
    +    int heightForWidth( int w ) const;
    +
    +    bool hasSelectedText() const;
    +    TQString selectedText() const;
    +    bool isUndoAvailable() const;
    +    bool isRedoAvailable() const;
    +
    +    WordWrap wordWrap() const;
    +    int wrapColumnOrWidth() const;
    +    WrapPolicy wrapPolicy() const;
    +
    +    int tabStopWidth() const;
    +
    +    TQString anchorAt( const TQPoint& pos );
    +    TQString anchorAt( const TQPoint& pos, AnchorAttribute a );
    +
    +    TQSize sizeHint() const;
    +
    +    bool isReadOnly() const { return readonly; }
    +
    +    void getCursorPosition( int *parag, int *index ) const;
    +
    +    bool isModified() const;
    +    bool italic() const;
    +    bool bold() const;
    +    bool underline() const;
    +    TQString family() const;
    +    int pointSize() const;
    +    TQColor color() const;
    +    TQFont font() const;
    +    TQFont currentFont() const;
    +    int alignment() const;
    +    int undoDepth() const;
    +
    +    // do not use, will go away
    +    virtual bool getFormat( int para, int index, TQFont *font, TQColor *color, VerticalAlignment *verticalAlignment );
    +    // do not use, will go away
    +    virtual bool getParagraphFormat( int para, TQFont *font, TQColor *color,
    +				     VerticalAlignment *verticalAlignment, int *alignment,
    +				     TQStyleSheetItem::DisplayMode *displayMode,
    +				     TQStyleSheetItem::ListStyle *listStyle,
    +				     int *listDepth );
    +
    +
    +    bool isOverwriteMode() const { return overWrite; }
    +    TQColor paragraphBackgroundColor( int para ) const;
    +
    +    bool isUndoRedoEnabled() const;
    +    bool eventFilter( TQObject *o, TQEvent *e );
    +    bool tabChangesFocus() const;
    +
    +    void setAutoFormatting( uint features );
    +    uint autoFormatting() const;
    +    TQSyntaxHighlighter *syntaxHighlighter() const;
    +
    +public slots:
    +    void setEnabled( bool );
    +#ifndef TQT_NO_MIME
    +    virtual void setMimeSourceFactory( TQMimeSourceFactory* factory );
    +#endif
    +    virtual void setStyleSheet( TQStyleSheet* styleSheet );
    +    virtual void scrollToAnchor( const TQString& name );
    +    virtual void setPaper( const TQBrush& pap );
    +    virtual void setLinkUnderline( bool );
    +
    +    virtual void setWordWrap( WordWrap mode );
    +    virtual void setWrapColumnOrWidth( int );
    +    virtual void setWrapPolicy( WrapPolicy policy );
    +
    +    virtual void copy();
    +    virtual void append( const TQString& text );
    +
    +    void setText( const TQString &txt ) { setText( txt, TQString::null ); }
    +    virtual void setText( const TQString &txt, const TQString &context );
    +    virtual void setTextFormat( TextFormat f );
    +
    +    virtual void selectAll( bool select = TRUE );
    +    virtual void setTabStopWidth( int ts );
    +    virtual void zoomIn( int range );
    +    virtual void zoomIn() { zoomIn( 1 ); }
    +    virtual void zoomOut( int range );
    +    virtual void zoomOut() { zoomOut( 1 ); }
    +    virtual void zoomTo( int size );
    +
    +    virtual void sync();
    +    virtual void setReadOnly( bool b );
    +
    +    virtual void undo();
    +    virtual void redo();
    +    virtual void cut();
    +    virtual void paste();
    +#ifndef TQT_NO_CLIPBOARD
    +    virtual void pasteSubType( const TQCString &subtype );
    +#endif
    +    virtual void clear();
    +    virtual void del();
    +    virtual void indent();
    +    virtual void setItalic( bool b );
    +    virtual void setBold( bool b );
    +    virtual void setUnderline( bool b );
    +    virtual void setFamily( const TQString &f );
    +    virtual void setPointSize( int s );
    +    virtual void setColor( const TQColor &c );
    +    virtual void setFont( const TQFont &f );
    +    virtual void setVerticalAlignment( VerticalAlignment a );
    +    virtual void setAlignment( int a );
    +
    +    // do not use, will go away
    +    virtual void setParagType( TQStyleSheetItem::DisplayMode dm, TQStyleSheetItem::ListStyle listStyle );
    +
    +    virtual void setCursorPosition( int parag, int index );
    +    virtual void setSelection( int parag_from, int index_from, int parag_to, int index_to, int selNum = 0 );
    +    virtual void setSelectionAttributes( int selNum, const TQColor &back, bool invertText );
    +    virtual void setModified( bool m );
    +    virtual void resetFormat();
    +    virtual void setUndoDepth( int d );
    +    virtual void setFormat( TQTextFormat *f, int flags );
    +    virtual void ensureCursorVisible();
    +    virtual void placeCursor( const TQPoint &pos, TQTextCursor *c = 0 );
    +    virtual void moveCursor( CursorAction action, bool select );
    +    virtual void doKeyboardAction( KeyboardAction action );
    +    virtual void removeSelectedText( int selNum = 0 );
    +    virtual void removeSelection( int selNum = 0 );
    +    virtual void setCurrentFont( const TQFont &f );
    +    virtual void setOverwriteMode( bool b ) { overWrite = b; }
    +
    +    virtual void scrollToBottom();
    +
    +    void insert( const TQString &text, uint insertionFlags = CheckNewLines | RemoveSelected ); // ## virtual in 4.0
    +
    +    // obsolete
    +    virtual void insert( const TQString &text, bool, bool = TRUE, bool = TRUE );
    +
    +    virtual void insertAt( const TQString &text, int para, int index );
    +    virtual void removeParagraph( int para );
    +    virtual void insertParagraph( const TQString &text, int para );
    +
    +    virtual void setParagraphBackgroundColor( int para, const TQColor &bg );
    +    virtual void clearParagraphBackground( int para );
    +
    +    virtual void setUndoRedoEnabled( bool b );
    +    void setTabChangesFocus( bool b ); // ### make virtual in 4.0
    +
    +#ifdef QT_TEXTEDIT_OPTIMIZATION
    +    void polish();
    +    void setMaxLogLines( int numLines );
    +    int maxLogLines();
    +#endif
    +
    +signals:
    +    void textChanged();
    +    void selectionChanged();
    +    void copyAvailable( bool );
    +    void undoAvailable( bool yes );
    +    void redoAvailable( bool yes );
    +    void currentFontChanged( const TQFont &f );
    +    void currentColorChanged( const TQColor &c );
    +    void currentAlignmentChanged( int a );
    +    void currentVerticalAlignmentChanged( VerticalAlignment a );
    +    void cursorPositionChanged( TQTextCursor *c );
    +    void cursorPositionChanged( int para, int pos );
    +    void returnPressed();
    +    void modificationChanged( bool m );
    +    void clicked( int parag, int index );
    +    void doubleClicked( int parag, int index );
    +
    +protected:
    +    void repaintChanged();
    +    void updateStyles();
    +    void drawContents( TQPainter *p, int cx, int cy, int cw, int ch );
    +    bool event( TQEvent *e );
    +    void keyPressEvent( TQKeyEvent *e );
    +    void resizeEvent( TQResizeEvent *e );
    +    void viewportResizeEvent( TQResizeEvent* );
    +    void contentsMousePressEvent( TQMouseEvent *e );
    +    void contentsMouseMoveEvent( TQMouseEvent *e );
    +    void contentsMouseReleaseEvent( TQMouseEvent *e );
    +    void contentsMouseDoubleClickEvent( TQMouseEvent *e );
    +#ifndef TQT_NO_WHEELEVENT
    +    void contentsWheelEvent( TQWheelEvent *e );
    +#endif
    +    void imStartEvent( TQIMEvent * );
    +    void imComposeEvent( TQIMEvent * );
    +    void imEndEvent( TQIMEvent * );
    +#ifndef TQT_NO_DRAGANDDROP
    +    void contentsDragEnterEvent( TQDragEnterEvent *e );
    +    void contentsDragMoveEvent( TQDragMoveEvent *e );
    +    void contentsDragLeaveEvent( TQDragLeaveEvent *e );
    +    void contentsDropEvent( TQDropEvent *e );
    +#endif
    +    void contentsContextMenuEvent( TQContextMenuEvent *e );
    +    bool focusNextPrevChild( bool next );
    +    TQTextDocument *document() const;
    +    TQTextCursor *textCursor() const;
    +    void setDocument( TQTextDocument *doc );
    +    virtual TQPopupMenu *createPopupMenu( const TQPoint& pos );
    +    virtual TQPopupMenu *createPopupMenu();
    +    void drawCursor( bool visible );
    +
    +    void windowActivationChange( bool );
    +
    +protected slots:
    +    virtual void doChangeInterval();
    +    void sliderReleased(); // ### make virtual in 4.0
    +
    +private slots:
    +    void formatMore();
    +    void doResize();
    +    void autoScrollTimerDone();
    +    void blinkCursor();
    +    void setModified();
    +    void startDrag();
    +    void documentWidthChanged( int w );
    +    void clipboardChanged();
    +
    +private:
    +    struct TQ_EXPORT UndoRedoInfo {
    +	enum Type { Invalid, Insert, Delete, Backspace, Return, RemoveSelected, Format, Style, IME };
    +
    +	UndoRedoInfo( TQTextDocument *dc );
    +	~UndoRedoInfo();
    +	void clear();
    +	bool valid() const;
    +
    +	TQUndoRedoInfoPrivate *d;
    +	int id;
    +	int index;
    +	int eid;
    +	int eindex;
    +	TQTextFormat *format;
    +	int flags;
    +	Type type;
    +	TQTextDocument *doc;
    +	TQByteArray styleInformation;
    +    };
    +
    +private:
    +    void updateCursor( const TQPoint & pos );
    +    void handleMouseMove( const TQPoint& pos );
    +    void drawContents( TQPainter * );
    +    virtual bool linksEnabled() const { return FALSE; }
    +    void init();
    +    void checkUndoRedoInfo( UndoRedoInfo::Type t );
    +    void updateCurrentFormat();
    +    bool handleReadOnlyKeyEvent( TQKeyEvent *e );
    +    void makeParagVisible( TQTextParagraph *p );
    +    void normalCopy();
    +    void copyToClipboard();
    +#ifndef TQT_NO_MIME
    +    TQCString pickSpecial(TQMimeSource* ms, bool always_ask, const TQPoint&);
    +    TQTextDrag *dragObject( TQWidget *parent = 0 ) const;
    +#endif
    +#ifndef TQT_NO_MIMECLIPBOARD
    +    void pasteSpecial(const TQPoint&);
    +#endif
    +    void setFontInternal( const TQFont &f );
    +
    +    virtual void emitHighlighted( const TQString & ) {}
    +    virtual void emitLinkClicked( const TQString & ) {}
    +
    +    void readFormats( TQTextCursor &c1, TQTextCursor &c2, TQTextString &text, bool fillStyles = FALSE );
    +    void clearUndoRedo();
    +    void paintDocument( bool drawAll, TQPainter *p, int cx = -1, int cy = -1, int cw = -1, int ch = -1 );
    +    void moveCursor( CursorAction action );
    +    void ensureFormatted( TQTextParagraph *p );
    +    void placeCursor( const TQPoint &pos, TQTextCursor *c, bool link );
    +    void updateMicroFocusHint();
    +
    +#ifdef QT_TEXTEDIT_OPTIMIZATION
    +    bool checkOptimMode();
    +    TQString optimText() const;
    +    void optimSetText( const TQString &str );
    +    void optimAppend( const TQString &str );
    +    void optimInsert( const TQString &str, int line, int index );
    +    void optimDrawContents( TQPainter * p, int cx, int cy, int cw, int ch );
    +    void optimMousePressEvent( TQMouseEvent * e );
    +    void optimMouseReleaseEvent( TQMouseEvent * e );
    +    void optimMouseMoveEvent( TQMouseEvent * e );
    +    int  optimCharIndex( const TQString &str, int mx ) const;
    +    void optimSelectAll();
    +    void optimRemoveSelection();
    +    void optimSetSelection( int startLine, int startIdx, int endLine,
    +			    int endIdx );
    +    bool optimHasSelection() const;
    +    TQString optimSelectedText() const;
    +    bool optimFind( const TQString & str, bool, bool, bool, int *, int * );
    +    void optimParseTags( TQString * str, int lineNo = -1, int indexOffset = 0 );
    +    TQTextEditOptimPrivate::Tag * optimPreviousLeftTag( int line );
    +    void optimSetTextFormat( TQTextDocument *, TQTextCursor *, TQTextFormat * f,
    +			     int, int, TQTextEditOptimPrivate::Tag * t );
    +    TQTextEditOptimPrivate::Tag * optimAppendTag( int index, const TQString & tag );
    +    TQTextEditOptimPrivate::Tag * optimInsertTag( int line, int index, const TQString & tag );
    +    void optimCheckLimit( const TQString& str );
    +    bool optimHasBoldMetrics( int line );
    +
    +private slots:
    +    void optimDoAutoScroll();
    +#endif // QT_TEXTEDIT_OPTIMIZATION
    +
    +private:
    +#ifndef TQT_NO_CLIPBOARD
    +    void pasteSubType( const TQCString &subtype, TQMimeSource *m );
    +#endif
    +
    +private:
    +    TQTextDocument *doc;
    +    TQTextCursor *cursor;
    +    TQTimer *formatTimer, *scrollTimer, *changeIntervalTimer, *blinkTimer, *dragStartTimer;
    +    TQTextParagraph *lastFormatted;
    +    int interval;
    +    UndoRedoInfo undoRedoInfo;
    +    TQTextFormat *currentFormat;
    +    int currentAlignment;
    +    TQPoint oldMousePos, mousePos;
    +    TQPoint dragStartPos;
    +    TQString onLink;
    +    WordWrap wrapMode;
    +    WrapPolicy wPolicy;
    +    int wrapWidth;
    +    TQString pressedLink;
    +    TQTextEditPrivate *d;
    +    bool inDoubleClick : 1;
    +    bool mousePressed : 1;
    +    bool cursorVisible : 1;
    +    bool blinkCursorVisible : 1;
    +    bool readOnly : 1;
    +    bool modified : 1;
    +    bool mightStartDrag : 1;
    +    bool inDnD : 1;
    +    bool readonly : 1;
    +    bool undoEnabled : 1;
    +    bool overWrite : 1;
    +
    +private:	// Disabled copy constructor and operator=
    +#if defined(TQ_DISABLE_COPY)
    +    TQTextEdit( const TQTextEdit & );
    +    TQTextEdit &operator=( const TQTextEdit & );
    +#endif
    +};
    +
    +inline TQTextDocument *TQTextEdit::document() const
    +{
    +    return doc;
    +}
    +
    +inline TQTextCursor *TQTextEdit::textCursor() const
    +{
    +    return cursor;
    +}
    +
    +inline void TQTextEdit::setCurrentFont( const TQFont &f )
    +{
    +    TQTextEdit::setFontInternal( f );
    +}
    +
    +#endif //TQT_NO_TEXTEDIT
    +#endif //TQTEXTVIEW_H
    +
    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextedit-members.html b/doc/html/tqtextedit-members.html new file mode 100644 index 000000000..a307f02d6 --- /dev/null +++ b/doc/html/tqtextedit-members.html @@ -0,0 +1,544 @@ + + + + + +TQTextEdit Member List + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    Complete Member List for TQTextEdit

    + +

    This is the complete list of member functions for +TQTextEdit, including inherited members. + +

    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextedit.html b/doc/html/tqtextedit.html new file mode 100644 index 000000000..fc28e21be --- /dev/null +++ b/doc/html/tqtextedit.html @@ -0,0 +1,1626 @@ + + + + + +TQTextEdit Class + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    TQTextEdit Class Reference

    + +

    The TQTextEdit widget provides a powerful single-page rich text editor. +More... +

    #include <tqtextedit.h> +

    Inherits TQScrollView. +

    Inherited by TQMultiLineEdit, TQTextBrowser, and TQTextView. +

    List of all member functions. +

    Public Members

    + +

    Public Slots

    + +

    Signals

    + +

    Properties

    +
      +
    • AutoFormatting autoFormatting - the enabled set of auto formatting features
    • +
    • TQString documentTitle - the title of the document parsed from the text  (read only)
    • +
    • bool hasSelectedText - whether some text is selected in selection 0  (read only)
    • +
    • int length - the number of characters in the text  (read only)
    • +
    • bool linkUnderline - whether hypertext links will be underlined
    • +
    • bool modified - whether the document has been modified by the user
    • +
    • bool overwriteMode - the text edit's overwrite mode
    • +
    • TQBrush paper - the background (paper) brush
    • +
    • bool readOnly - whether the text edit is read-only
    • +
    • TQString selectedText - the selected text (from selection 0) or an empty string if there is no currently selected text (in selection 0)  (read only)
    • +
    • bool tabChangesFocus - whether TAB changes focus or is accepted as input
    • +
    • int tabStopWidth - the tab stop width in pixels
    • +
    • TQString text - the text edit's text
    • +
    • TextFormat textFormat - the text format: rich text, plain text, log text or auto text
    • +
    • int undoDepth - the depth of the undo history
    • +
    • bool undoRedoEnabled - whether undo/redo is enabled
    • +
    • WordWrap wordWrap - the word wrap mode
    • +
    • int wrapColumnOrWidth - the position (in pixels or columns depending on the wrap mode) where text will be wrapped
    • +
    • WrapPolicy wrapPolicy - the word wrap policy, at whitespace or anywhere
    • +
    +

    Protected Members

    + +

    Detailed Description

    + + +The TQTextEdit widget provides a powerful single-page rich text editor. +

    + + +

    +

    + + +

    Introduction and Concepts +

    +

    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. +

    TQTextEdit has four modes of operation: +

    +
    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. 1. +
    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) +Append text using append(). The widget is set to be read +only and rich text support is disabled although a few HTML +tags (for color, bold, italic and underline) may be used. +(See LogText mode for details.) +
    +

    1.A more complete API that supports setting +margins, images, etc., is planned for a later TQt release. +

    TQTextEdit can be used as a syntax highlighting editor when used in +conjunction with TQSyntaxHighlighter. +

    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. +

    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. +

    The text edit documentation uses the following concepts: +

      +
    • current format -- +this is the format at the current cursor position, and it +is the format of the selected text if any. +
    • current paragraph -- the paragraph which contains the +cursor. +
    +

    TQTextEdit can display images (using TQMimeSourceFactory), 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 +TQStyleSheet for details. The images identified by image tags are +displayed if they can be interpreted using the text edit's +TQMimeSourceFactory; see setMimeSourceFactory(). +

    If you want a text browser with more navigation use TQTextBrowser. +If you just need to display a small piece of rich text use TQLabel +or TQSimpleRichText. +

    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 TQStyleSheet 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. +

    Note that we do not intend to add a full-featured web browser +widget to TQt (because that would easily double TQt'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. +

    Using TQTextEdit as a Display Widget +

    +

    TQTextEdit can display a large HTML subset, including tables and +images. +

    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). +

    Loading and saving text is achieved using setText() and text(), +for example: +

    +    TQFile file( fileName ); // Read the text from a file
    +    if ( file.open( IO_ReadOnly ) ) {
    +        TQTextStream stream( &file );
    +        textEdit->setText( stream.read() );
    +    }
    +
    +    TQFile file( fileName ); // Write the text to a file
    +    if ( file.open( IO_WriteOnly ) ) {
    +        TQTextStream stream( &file );
    +        stream << textEdit->text();
    +        textEdit->setModified( FALSE );
    +    }
    +    
    + +

    By default the text edit wraps words at whitespace to fit within +the text edit widget. The setWordWrap() function is used to +specify the kind of word wrap you want, or NoWrap if you don't +want any wrapping. Call setWordWrap() to set a fixed pixel width +FixedPixelWidth, or character column (e.g. 80 column) FixedColumnWidth with the pixels or columns specified with +setWrapColumnOrWidth(). If you use word wrap to the widget's width +WidgetWidth, you can specify whether to break on whitespace or +anywhere with setWrapPolicy(). +

    The background color is set differently than other widgets, using +setPaper(). You specify a brush style which could be a plain color +or a complex pixmap. +

    Hypertext links are automatically underlined; this can be changed +with setLinkUnderline(). The tab stop width is set with +setTabStopWidth(). +

    The zoomIn() and zoomOut() functions can be used to resize the +text by increasing (decreasing for zoomOut()) the point size used. +Images are not affected by the zoom functions. +

    The lines() function returns the number of lines in the text and +paragraphs() returns the number of paragraphs. The number of lines +within a particular paragraph is returned by linesOfParagraph(). +The length of the entire text in characters is returned by +length(). +

    You can scroll to an anchor in the text, e.g. +<a name="anchor"> with scrollToAnchor(). The find() function +can be used to find and select a given string within the text. +

    A read-only TQTextEdit provides the same functionality as the +(obsolete) TQTextView. (TQTextView is still supplied for +compatibility with old code.) +

    Read-only key bindings +

    +

    When TQTextEdit is used read-only the key-bindings are limited to +navigation, and text may only be selected with the mouse: +

    +
    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 Zoom the text +
    +

    The text edit may be able to provide some meta-information. For +example, the documentTitle() function will return the text from +within HTML <title> tags. +

    The text displayed in a text edit has a context. The context is +a path which the text edit's TQMimeSourceFactory uses to resolve +the locations of files and images. It is passed to the +mimeSourceFactory() when quering data. (See TQTextEdit() and +context().) +

    +

    Using TQTextEdit in LogText Mode +

    +

    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 < and >. The characters <, > +and & are escaped by using &lt;, &gt; and &amp;. +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 / before +the tag keyword. For example <b> and </b> are a tag pair. +Tags can be nested, but they have to be closed in the same order as +they are opened. For example, <b><u></u></b> is valid, while <b><u></b></u> will output an error message. +

    By using tags it is possible to change the color, bold, italic and +underline settings for a piece of text. A color can be specified +by using the HTML font tag <font color=colorname>. The color +name can be one of the color names from the X11 color database, or +a RGB hex value (e.g #00ff00). Example of valid color tags: +<font color=red>, <font color="light blue">, <font color="#223344">. Bold, italic and underline settings can be +specified by the tags <b>, <i> and <u>. Note that a +tag does not necessarily have to be closed. A valid example: +

    +    This is <font color=red>red</font> while <b>this</b> is <font color=blue>blue</font>.
    +    <font color=green><font color=yellow>Yellow,</font> and <u>green</u>.
    +    
    + +

    Stylesheets can also be used in LogText mode. To create and use a +custom tag, you could do the following: +

    +    TQTextEdit * log = new TQTextEdit( this );
    +    log->setTextFormat( TQt::LogText );
    +    TQStyleSheetItem * item = new TQStyleSheetItem( log->styleSheet(), "mytag" );
    +    item->setColor( "red" );
    +    item->setFontWeight( TQFont::Bold );
    +    item->setFontUnderline( TRUE );
    +    log->append( "This is a <mytag>custom tag</mytag>!" );
    +    
    + +Note that only the color, bold, underline and italic attributes of +a TQStyleSheetItem is used in LogText mode. +

    Note that you can use setMaxLogLines() to limit the number of +lines the widget can hold in LogText mode. +

    There are a few things that you need to be aware of when the +widget is in this mode: +

      +
    • Functions that deal with rich text formatting and cursor +movement will not work or return anything valid. +
    • Lines are equivalent to paragraphs. +
    +

    Using TQTextEdit as an Editor +

    +

    All the information about using TQTextEdit as a display widget also +applies here. +

    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(). +

    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. +

    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. +

    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. +

    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. +

    The indent() function is used to reindent a paragraph. It is +useful for code editors, for example in TQt Designer's code editor Ctrl+I invokes the indent() +function. +

    Editing key bindings +

    +

    The list of key-bindings which are implemented for editing: +

    +
    Keypresses Action +
    Backspace Delete the character to the left of the cursor +
    Delete Delete the character to the right of the cursor +
    Ctrl+A Move the cursor to the beginning of the line +
    Ctrl+B Move the cursor one character left +
    Ctrl+C Copy the marked text to the clipboard (also +Ctrl+Insert under Windows) +
    Ctrl+D Delete the character to the right of the cursor +
    Ctrl+E Move the cursor to the end of the line +
    Ctrl+F Move the cursor one character right +
    Ctrl+H Delete the character to the left of the cursor +
    Ctrl+K Delete to end of line +
    Ctrl+N Move the cursor one line down +
    Ctrl+P Move the cursor one line up +
    Ctrl+V Paste the clipboard text into line edit +(also Shift+Insert under Windows) +
    Ctrl+X Cut the marked text, copy to clipboard +(also Shift+Delete under Windows) +
    Ctrl+Z Undo the last operation +
    Ctrl+Y Redo the last operation +
    LeftArrow Move the cursor one character left +
    Ctrl+LeftArrow Move the cursor one word left +
    RightArrow Move the cursor one character right +
    Ctrl+RightArrow Move the cursor one word right +
    UpArrow Move the cursor one line up +
    Ctrl+UpArrow Move the cursor one word up +
    DownArrow Move the cursor one line down +
    Ctrl+Down Arrow Move the cursor one word down +
    PageUp Move the cursor one page up +
    PageDown Move the cursor one page down +
    Home Move the cursor to the beginning of the line +
    Ctrl+Home Move the cursor to the beginning of the text +
    End Move the cursor to the end of the line +
    Ctrl+End Move the cursor to the end of the text +
    Shift+Wheel Scroll the page horizontally +(the Wheel is the mouse wheel) +
    Ctrl+Wheel Zoom the text +
    +

    To select (mark) text hold down the Shift key whilst pressing one +of the movement keystrokes, for example, Shift+Right Arrow +will select the character to the right, and Shift+Ctrl+Right Arrow will select the word to the right, etc. +

    By default the text edit widget operates in insert mode so all +text that the user enters is inserted into the text edit and any +text to the right of the cursor is moved out of the way. The mode +can be changed to overwrite, where new text overwrites any text to +the right of the cursor, using setOverwriteMode(). +

    See also Basic Widgets and Text Related Classes. + +


    Member Type Documentation

    +

    TQTextEdit::AutoFormatting

    + +
      +
    • TQTextEdit::AutoNone - Do not perform any automatic formatting +
    • TQTextEdit::AutoBulletList - Only automatically format bulletted lists +
    • TQTextEdit::AutoAll - Apply all available autoformatting +
    +

    TQTextEdit::CursorAction

    + +

    This enum is used by moveCursor() to specify in which direction +the cursor should be moved: +

      +
    • TQTextEdit::MoveBackward - Moves the cursor one character backward +
    • TQTextEdit::MoveWordBackward - Moves the cursor one word backward +
    • TQTextEdit::MoveForward - Moves the cursor one character forward +
    • TQTextEdit::MoveWordForward - Moves the cursor one word forward +
    • TQTextEdit::MoveUp - Moves the cursor up one line +
    • TQTextEdit::MoveDown - Moves the cursor down one line +
    • TQTextEdit::MoveLineStart - Moves the cursor to the beginning of the line +
    • TQTextEdit::MoveLineEnd - Moves the cursor to the end of the line +
    • TQTextEdit::MoveHome - Moves the cursor to the beginning of the document +
    • TQTextEdit::MoveEnd - Moves the cursor to the end of the document +
    • TQTextEdit::MovePgUp - Moves the cursor one viewport page up +
    • TQTextEdit::MovePgDown - Moves the cursor one viewport page down +
    +

    TQTextEdit::KeyboardAction

    + +

    This enum is used by doKeyboardAction() to specify which action +should be executed: +

      +
    • TQTextEdit::ActionBackspace - Delete the character to the left of the +cursor. +
    • TQTextEdit::ActionDelete - Delete the character to the right of the +cursor. +
    • TQTextEdit::ActionReturn - Split the paragraph at the cursor position. +
    • TQTextEdit::ActionKill - 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. +
    • TQTextEdit::ActionWordBackspace - Delete the word to the left of the +cursor position. +
    • TQTextEdit::ActionWordDelete - Delete the word to the right of the +cursor position +

    +

    TQTextEdit::VerticalAlignment

    + +

    This enum is used to set the vertical alignment of the text. +

      +
    • TQTextEdit::AlignNormal - Normal alignment +
    • TQTextEdit::AlignSuperScript - Superscript +
    • TQTextEdit::AlignSubScript - Subscript +
    +

    TQTextEdit::WordWrap

    + +

    This enum defines the TQTextEdit's word wrap modes. +

      +
    • TQTextEdit::NoWrap - Do not wrap the text. +
    • TQTextEdit::WidgetWidth - 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(). +
    • TQTextEdit::FixedPixelWidth - Wrap the text at a fixed number of pixels +from the widget's left side. The number of pixels is set with +wrapColumnOrWidth(). +
    • TQTextEdit::FixedColumnWidth - 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. +

    See also wordWrap and wordWrap. + +

    TQTextEdit::WrapPolicy

    + +

    This enum defines where text can be wrapped in word wrap mode. +

      +
    • TQTextEdit::AtWhiteSpace - Don't use this deprecated value (it is a +synonym for AtWordBoundary which you should use instead). +
    • TQTextEdit::Anywhere - Break anywhere, including within words. +
    • TQTextEdit::AtWordBoundary - Break lines at word boundaries, e.g. spaces or +newlines +
    • TQTextEdit::AtWordOrDocumentBoundary - Break lines at whitespace, e.g. +spaces or newlines if possible. Break it anywhere otherwise. +

    See also wrapPolicy. + +


    Member Function Documentation

    +

    TQTextEdit::TQTextEdit ( const TQString & text, const TQString & context = TQString::null, TQWidget * parent = 0, const char * name = 0 ) +

    +Constructs a TQTextEdit called name, with parent parent. The +text edit will display the text text using context context. +

    The context is a path which the text edit's TQMimeSourceFactory +uses to resolve the locations of files and images. It is passed to +the mimeSourceFactory() when quering data. +

    For example if the text contains an image tag, +<img src="image.png">, and the context is "path/to/look/in", the +TQMimeSourceFactory will try to load the image from +"path/to/look/in/image.png". If the tag was +<img src="/image.png">, the context will not be used (because +TQMimeSourceFactory 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 hrefs, for example, +<a href="target.html">Target</a>, would resolve to +"path/to/look/in/target.html". + +

    TQTextEdit::TQTextEdit ( TQWidget * parent = 0, const char * name = 0 ) +

    +Constructs an empty TQTextEdit called name, with parent parent. + +

    int TQTextEdit::alignment () const +

    +Returns the alignment of the current paragraph. +

    See also setAlignment(). + +

    TQString TQTextEdit::anchorAt ( const TQPoint & pos, AnchorAttribute attr ) +

    +If there is an anchor at position pos (in contents +coordinates), the text for attribute attr is returned, +otherwise TQString::null is returned. + +

    TQString TQTextEdit::anchorAt ( const TQPoint & pos ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    If there is an anchor at position pos (in contents +coordinates), its href is returned, otherwise TQString::null is +returned. + +

    void TQTextEdit::append ( const TQString & text ) [virtual slot] +

    +Appends a new paragraph with text 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(). + +

    Examples: network/clientserver/client/client.cpp, network/clientserver/server/server.cpp, network/httpd/httpd.cpp, and process/process.cpp. +

    uint TQTextEdit::autoFormatting () const +

    Returns the enabled set of auto formatting features. +See the "autoFormatting" property for details. +

    bool TQTextEdit::bold () const +

    +Returns TRUE if the current format is bold; otherwise returns FALSE. +

    See also setBold(). + +

    int TQTextEdit::charAt ( const TQPoint & pos, int * para ) const +

    +Returns the index of the character (relative to its paragraph) at +position pos (in contents coordinates). If para is not 0, +*para is set to the character's paragraph. + +

    void TQTextEdit::clear () [virtual slot] +

    +Deletes all the text in the text edit. +

    See also cut(), removeSelectedText(), and text. + +

    void TQTextEdit::clearParagraphBackground ( int para ) [virtual slot] +

    +Clears the background color of the paragraph para, so that the +default color is used again. + +

    void TQTextEdit::clicked ( int para, int pos ) [signal] +

    + +

    This signal is emitted when the mouse is clicked on the paragraph +para at character position pos. +

    See also doubleClicked(). + +

    TQColor TQTextEdit::color () const +

    +Returns the color of the current format. +

    See also setColor() and paper. + +

    TQString TQTextEdit::context () const +

    +Returns the context of the text edit. The context is a path which +the text edit's TQMimeSourceFactory uses to resolve the locations +of files and images. +

    See also text. + +

    Examples: action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, mdi/application.cpp, and qdir/qdir.cpp. +

    void TQTextEdit::copy () [virtual slot] +

    +Copies any selected text (from selection 0) to the clipboard. +

    See also hasSelectedText and copyAvailable(). + +

    void TQTextEdit::copyAvailable ( bool yes ) [signal] +

    + +

    This signal is emitted when text is selected or de-selected in the +text edit. +

    When text is selected this signal will be emitted with yes set +to TRUE. If no text has been selected or if the selected text is +de-selected this signal is emitted with yes set to FALSE. +

    If yes is TRUE then copy() can be used to copy the selection to +the clipboard. If yes is FALSE then copy() does nothing. +

    See also selectionChanged(). + +

    TQPopupMenu * TQTextEdit::createPopupMenu ( const TQPoint & pos ) [virtual protected] +

    +This function is called to create a right mouse button popup menu +at the document position pos. 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. +

    Warning: The TQPopupMenu 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. + +

    TQPopupMenu * TQTextEdit::createPopupMenu () [virtual protected] +

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

    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. +

    This function is only called if createPopupMenu( const TQPoint & ) +returns 0. + +

    void TQTextEdit::currentAlignmentChanged ( int a ) [signal] +

    + +

    This signal is emitted if the alignment of the current paragraph +has changed. +

    The new alignment is a. +

    See also setAlignment(). + +

    void TQTextEdit::currentColorChanged ( const TQColor & c ) [signal] +

    + +

    This signal is emitted if the color of the current format has +changed. +

    The new color is c. +

    See also setColor(). + +

    TQFont TQTextEdit::currentFont () const +

    +Returns the font of the current format. +

    See also setCurrentFont(), setFamily(), and setPointSize(). + +

    void TQTextEdit::currentFontChanged ( const TQFont & f ) [signal] +

    + +

    This signal is emitted if the font of the current format has +changed. +

    The new font is f. +

    See also setCurrentFont(). + +

    void TQTextEdit::currentVerticalAlignmentChanged ( VerticalAlignment a ) [signal] +

    + +

    This signal is emitted if the vertical alignment of the current +format has changed. +

    The new vertical alignment is a. +

    See also setVerticalAlignment(). + +

    void TQTextEdit::cursorPositionChanged ( int para, int pos ) [signal] +

    + +

    This signal is emitted if the position of the cursor has changed. +para contains the paragraph index and pos contains the +character position within the paragraph. +

    See also setCursorPosition(). + +

    void TQTextEdit::cut () [virtual slot] +

    +Copies the selected text (from selection 0) to the clipboard and +deletes it from the text edit. +

    If there is no selected text (in selection 0) nothing happens. +

    See also TQTextEdit::copy(), paste(), and pasteSubType(). + +

    void TQTextEdit::del () [virtual slot] +

    +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. +

    See also removeSelectedText() and cut(). + +

    void TQTextEdit::doKeyboardAction ( KeyboardAction action ) [virtual slot] +

    +Executes keyboard action action. This is normally called by a +key event handler. + +

    TQString TQTextEdit::documentTitle () const +

    Returns the title of the document parsed from the text. +See the "documentTitle" property for details. +

    void TQTextEdit::doubleClicked ( int para, int pos ) [signal] +

    +

    This signal is emitted when the mouse is double-clicked on the +paragraph para at character position pos. +

    See also clicked(). + +

    void TQTextEdit::ensureCursorVisible () [virtual slot] +

    +Ensures that the cursor is visible by scrolling the text edit if +necessary. +

    See also setCursorPosition(). + +

    TQString TQTextEdit::family () const +

    +Returns the font family of the current format. +

    See also setFamily(), setCurrentFont(), and setPointSize(). + +

    bool TQTextEdit::find ( const TQString & expr, bool cs, bool wo, bool forward = TRUE, int * para = 0, int * index = 0 ) [virtual] +

    +Finds the next occurrence of the string, expr. Returns TRUE if +expr was found; otherwise returns FALSE. +

    If para and index are both 0 the search begins from the +current cursor position. If para and index are both not 0, +the search begins from the *index character position in the +*para paragraph. +

    If cs is TRUE the search is case sensitive, otherwise it is +case insensitive. If wo is TRUE the search looks for whole word +matches only; otherwise it searches for any matching text. If forward is TRUE (the default) the search works forward from the +starting position to the end of the text, otherwise it works +backwards to the beginning of the text. +

    If expr is found the function returns TRUE. If index and para are not 0, the number of the paragraph in which the first +character of the match was found is put into *para, and the +index position of that character within the paragraph is put into +*index. +

    If expr is not found the function returns FALSE. If index +and para are not 0 and expr is not found, *index +and *para are undefined. +

    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. +

    Using the para and index parameters will not work correctly +in case the document contains tables. + +

    bool TQTextEdit::focusNextPrevChild ( bool n ) [virtual protected] +

    +Reimplemented to allow tabbing through links. If n is TRUE the +tab moves the focus to the next child; if n is FALSE the tab +moves the focus to the previous child. Returns TRUE if the focus +was moved; otherwise returns FALSE. + +

    TQFont TQTextEdit::font () const +

    +This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

    Returns TQScrollView::font() +

    Warning: In previous versions this function returned the font of +the current format. This lead to confusion. Please use +currentFont() instead. + +

    Example: qwerty/qwerty.cpp. +

    void TQTextEdit::getCursorPosition ( int * para, int * index ) const +

    +This function sets the *para and *index parameters to the +current cursor position. para and index must not be 0. +

    See also setCursorPosition(). + +

    void TQTextEdit::getSelection ( int * paraFrom, int * indexFrom, int * paraTo, int * indexTo, int selNum = 0 ) const +

    +If there is a selection, *paraFrom is set to the number of the +paragraph in which the selection begins and *paraTo is set to +the number of the paragraph in which the selection ends. (They +could be the same.) *indexFrom is set to the index at which the +selection begins within *paraFrom, and *indexTo is set to +the index at which the selection ends within *paraTo. +

    If there is no selection, *paraFrom, *indexFrom, *paraTo +and *indexTo are all set to -1. +

    If paraFrom, indexFrom, paraTo or indexTo is 0 this +function does nothing. +

    The selNum is the number of the selection (multiple selections +are supported). It defaults to 0 (the default selection). +

    See also setSelection() and selectedText. + +

    bool TQTextEdit::hasSelectedText () const +

    Returns TRUE if some text is selected in selection 0; otherwise returns FALSE. +See the "hasSelectedText" property for details. +

    int TQTextEdit::heightForWidth ( int w ) const [virtual] +

    +Returns how many pixels high the text edit needs to be to display +all the text if the text edit is w pixels wide. + +

    Reimplemented from TQWidget. +

    void TQTextEdit::insert ( const TQString & text, uint insertionFlags = CheckNewLines | RemoveSelected ) [slot] +

    +Inserts text at the current cursor position. +

    The insertionFlags define how the text is inserted. If RedoIndentation is set, the paragraph is re-indented. If CheckNewLines is set, newline characters in text result in hard +line breaks (i.e. new paragraphs). If checkNewLine is not set, +the behaviour of the editor is undefined if the text 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. +

    The default flags are CheckNewLines | RemoveSelected. +

    If the widget is in LogText mode this function will do nothing. +

    See also paste() and pasteSubType(). + +

    void TQTextEdit::insert ( const TQString & text, bool indent, bool checkNewLine = TRUE, bool removeSelected = TRUE ) [virtual slot] +

    +This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

    +

    void TQTextEdit::insertAt ( const TQString & text, int para, int index ) [virtual slot] +

    +Inserts text in the paragraph para at position index. + +

    void TQTextEdit::insertParagraph ( const TQString & text, int para ) [virtual slot] +

    +Inserts text as a new paragraph at position para. If para +is -1, the text is appended. Use append() if the append operation +is performance critical. + +

    bool TQTextEdit::isModified () const +

    Returns TRUE if the document has been modified by the user; otherwise returns FALSE. +See the "modified" property for details. +

    bool TQTextEdit::isOverwriteMode () const +

    Returns the text edit's overwrite mode. +See the "overwriteMode" property for details. +

    bool TQTextEdit::isReadOnly () const +

    Returns TRUE if the text edit is read-only; otherwise returns FALSE. +See the "readOnly" property for details. +

    bool TQTextEdit::isRedoAvailable () const +

    +Returns TRUE if redo is available; otherwise returns FALSE. + +

    bool TQTextEdit::isUndoAvailable () const +

    +Returns TRUE if undo is available; otherwise returns FALSE. + +

    bool TQTextEdit::isUndoRedoEnabled () const +

    Returns TRUE if undo/redo is enabled; otherwise returns FALSE. +See the "undoRedoEnabled" property for details. +

    bool TQTextEdit::italic () const +

    +Returns TRUE if the current format is italic; otherwise returns FALSE. +

    See also setItalic(). + +

    void TQTextEdit::keyPressEvent ( TQKeyEvent * e ) [virtual protected] +

    +Processes the key event, e. By default key events are used to +provide keyboard navigation and text editing. + +

    Reimplemented from TQWidget. +

    Reimplemented in TQTextBrowser. +

    int TQTextEdit::length () const +

    Returns the number of characters in the text. +See the "length" property for details. +

    int TQTextEdit::lineOfChar ( int para, int index ) +

    +Returns the line number of the line in paragraph para in which +the character at position index appears. The index position is +relative to the beginning of the paragraph. If there is no such +paragraph or no such character at the index position (e.g. the +index is out of range) -1 is returned. + +

    int TQTextEdit::lines () const +

    +Returns the number of lines in the text edit; this could be 0. +

    Warning: 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. + +

    int TQTextEdit::linesOfParagraph ( int para ) const +

    +Returns the number of lines in paragraph para, or -1 if there +is no paragraph with index para. + +

    bool TQTextEdit::linkUnderline () const +

    Returns TRUE if hypertext links will be underlined; otherwise returns FALSE. +See the "linkUnderline" property for details. +

    int TQTextEdit::maxLogLines () [slot] +

    +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. + +

    TQMimeSourceFactory * TQTextEdit::mimeSourceFactory () const +

    +Returns the TQMimeSourceFactory which is being used by this text +edit. +

    See also setMimeSourceFactory(). + +

    Examples: action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, mdi/application.cpp, and qdir/qdir.cpp. +

    void TQTextEdit::modificationChanged ( bool m ) [signal] +

    + +

    This signal is emitted when the modification status of the +document has changed. If m is TRUE, the document was modified, +otherwise the modification state has been reset to unmodified. +

    See also modified. + +

    void TQTextEdit::moveCursor ( CursorAction action, bool select ) [virtual slot] +

    +Moves the text cursor according to action. This is normally +used by some key event handler. select specifies whether the +text between the current cursor position and the new position +should be selected. + +

    TQBrush TQTextEdit::paper () const +

    Returns the background (paper) brush. +See the "paper" property for details. +

    int TQTextEdit::paragraphAt ( const TQPoint & pos ) const +

    +Returns the paragraph which is at position pos (in contents +coordinates). + +

    TQColor TQTextEdit::paragraphBackgroundColor ( int para ) const +

    +Returns the background color of the paragraph para or an +invalid color if para is out of range or the paragraph has no +background set + +

    int TQTextEdit::paragraphLength ( int para ) const +

    +Returns the length of the paragraph para (i.e. the number of +characters), or -1 if there is no paragraph with index para. +

    This function ignores newlines. + +

    TQRect TQTextEdit::paragraphRect ( int para ) const +

    +Returns the rectangle of the paragraph para in contents +coordinates, or an invalid rectangle if para is out of range. + +

    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. + +

    void TQTextEdit::paste () [virtual slot] +

    +Pastes the text from the clipboard into the text edit at the +current cursor position. Only plain text is pasted. +

    If there is no text in the clipboard nothing happens. +

    See also pasteSubType(), cut(), and TQTextEdit::copy(). + +

    void TQTextEdit::pasteSubType ( const TQCString & subtype ) [virtual slot] +

    +Pastes the text with format subtype from the clipboard into the +text edit at the current cursor position. The subtype can be +"plain" or "html". +

    If there is no text with format subtype in the clipboard +nothing happens. +

    See also paste(), cut(), and TQTextEdit::copy(). + +

    void TQTextEdit::placeCursor ( const TQPoint & pos, TQTextCursor * c = 0 ) [virtual slot] +

    +Places the cursor c at the character which is closest to position +pos (in contents coordinates). If c is 0, the default text +cursor is used. +

    See also setCursorPosition(). + +

    int TQTextEdit::pointSize () const +

    +Returns the point size of the font of the current format. +

    See also setFamily(), setCurrentFont(), and setPointSize(). + +

    void TQTextEdit::redo () [virtual slot] +

    +Redoes the last operation. +

    If there is no operation to redo, i.e. there is no redo step in +the undo/redo history, nothing happens. +

    See also redoAvailable(), undo(), and undoDepth. + +

    void TQTextEdit::redoAvailable ( bool yes ) [signal] +

    + +

    This signal is emitted when the availability of redo changes. If +yes is TRUE, then redo() will work until redoAvailable( FALSE ) +is next emitted. +

    See also redo() and undoDepth. + +

    void TQTextEdit::removeParagraph ( int para ) [virtual slot] +

    +Removes the paragraph para. + +

    void TQTextEdit::removeSelectedText ( int selNum = 0 ) [virtual slot] +

    +Deletes the text of selection selNum (by default, the default +selection, 0). If there is no selected text nothing happens. +

    See also selectedText and removeSelection(). + +

    void TQTextEdit::removeSelection ( int selNum = 0 ) [virtual slot] +

    +Removes the selection selNum (by default 0). This does not +remove the selected text. +

    See also removeSelectedText(). + +

    void TQTextEdit::repaintChanged () [protected] +

    +Repaints any paragraphs that have changed. +

    Although used extensively internally you shouldn't need to call +this yourself. + +

    void TQTextEdit::returnPressed () [signal] +

    + +

    This signal is emitted if the user pressed the Return or the Enter +key. + +

    void TQTextEdit::scrollToAnchor ( const TQString & name ) [virtual slot] +

    +Scrolls the text edit to make the text at the anchor called name 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. <a name="target">. + +

    void TQTextEdit::scrollToBottom () [virtual slot] +

    +Scrolls to the bottom of the document and does formatting if +required. + +

    void TQTextEdit::selectAll ( bool select = TRUE ) [virtual slot] +

    +If select is TRUE (the default), all the text is selected as +selection 0. If select is FALSE any selected text is +unselected, i.e. the default selection (selection 0) is cleared. +

    See also selectedText. + +

    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. +

    void TQTextEdit::selectionChanged () [signal] +

    + +

    This signal is emitted whenever the selection changes. +

    See also setSelection() and copyAvailable(). + +

    void TQTextEdit::setAlignment ( int a ) [virtual slot] +

    +Sets the alignment of the current paragraph to a. Valid +alignments are TQt::AlignLeft, TQt::AlignRight, +TQt::AlignJustify and TQt::AlignCenter (which centers +horizontally). + +

    Reimplemented in TQMultiLineEdit. +

    void TQTextEdit::setAutoFormatting ( uint features ) +

    Sets the enabled set of auto formatting features to features. +See the "autoFormatting" property for details. +

    void TQTextEdit::setBold ( bool b ) [virtual slot] +

    +If b is TRUE sets the current format to bold; otherwise sets +the current format to non-bold. +

    See also bold(). + +

    void TQTextEdit::setColor ( const TQColor & c ) [virtual slot] +

    +Sets the color of the current format, i.e. of the text, to c. +

    See also color() and paper. + +

    void TQTextEdit::setCurrentFont ( const TQFont & f ) [virtual slot] +

    + +

    Sets the font of the current format to f. +

    If the widget is in LogText mode this function will do +nothing. Use setFont() instead. +

    See also currentFont(), setPointSize(), and setFamily(). + +

    void TQTextEdit::setCursorPosition ( int para, int index ) [virtual slot] +

    +Sets the cursor to position index in paragraph para. +

    See also getCursorPosition(). + +

    void TQTextEdit::setFamily ( const TQString & fontFamily ) [virtual slot] +

    +Sets the font family of the current format to fontFamily. +

    See also family() and setCurrentFont(). + +

    void TQTextEdit::setItalic ( bool b ) [virtual slot] +

    +If b is TRUE sets the current format to italic; otherwise sets +the current format to non-italic. +

    See also italic(). + +

    void TQTextEdit::setLinkUnderline ( bool ) [virtual slot] +

    Sets whether hypertext links will be underlined. +See the "linkUnderline" property for details. +

    void TQTextEdit::setMaxLogLines ( int limit ) [slot] +

    +Sets the maximum number of lines a TQTextEdit can hold in LogText mode to limit. If limit is -1 (the default), this +signifies an unlimited number of lines. +

    Warning: 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. + +

    void TQTextEdit::setMimeSourceFactory ( TQMimeSourceFactory * factory ) [virtual slot] +

    +Sets the text edit's mimesource factory to factory. See +TQMimeSourceFactory for further details. +

    See also mimeSourceFactory(). + +

    void TQTextEdit::setModified ( bool m ) [virtual slot] +

    Sets whether the document has been modified by the user to m. +See the "modified" property for details. +

    void TQTextEdit::setOverwriteMode ( bool b ) [virtual slot] +

    Sets the text edit's overwrite mode to b. +See the "overwriteMode" property for details. +

    void TQTextEdit::setPaper ( const TQBrush & pap ) [virtual slot] +

    Sets the background (paper) brush to pap. +See the "paper" property for details. +

    void TQTextEdit::setParagraphBackgroundColor ( int para, const TQColor & bg ) [virtual slot] +

    +Sets the background color of the paragraph para to bg. + +

    void TQTextEdit::setPointSize ( int s ) [virtual slot] +

    +Sets the point size of the current format to s. +

    Note that if s is zero or negative, the behaviour of this +function is not defined. +

    See also pointSize(), setCurrentFont(), and setFamily(). + +

    void TQTextEdit::setReadOnly ( bool b ) [virtual slot] +

    Sets whether the text edit is read-only to b. +See the "readOnly" property for details. +

    void TQTextEdit::setSelection ( int paraFrom, int indexFrom, int paraTo, int indexTo, int selNum = 0 ) [virtual slot] +

    +Sets a selection which starts at position indexFrom in +paragraph paraFrom and ends at position indexTo in paragraph +paraTo. +

    Any existing selections which have a different id (selNum) are +left alone, but if an existing selection has the same id as selNum it is removed and replaced by this selection. +

    Uses the selection settings of selection selNum. If selNum +is 0, this is the default selection. +

    The cursor is moved to the end of the selection if selNum is 0, +otherwise the cursor position remains unchanged. +

    See also getSelection() and selectedText. + +

    void TQTextEdit::setSelectionAttributes ( int selNum, const TQColor & back, bool invertText ) [virtual slot] +

    +Sets the background color of selection number selNum to back +and specifies whether the text of this selection should be +inverted with invertText. +

    This only works for selNum > 0. The default selection (selNum == 0) gets its attributes from the text edit's +colorGroup(). + +

    void TQTextEdit::setStyleSheet ( TQStyleSheet * styleSheet ) [virtual slot] +

    +Sets the stylesheet to use with this text edit to styleSheet. +Changes will only take effect for new text added with setText() or +append(). +

    See also styleSheet(). + +

    void TQTextEdit::setTabChangesFocus ( bool b ) [slot] +

    Sets whether TAB changes focus or is accepted as input to b. +See the "tabChangesFocus" property for details. +

    void TQTextEdit::setTabStopWidth ( int ts ) [virtual slot] +

    Sets the tab stop width in pixels to ts. +See the "tabStopWidth" property for details. +

    void TQTextEdit::setText ( const TQString & txt ) [slot] +

    Sets the text edit's text to txt. +See the "text" property for details. +

    void TQTextEdit::setText ( const TQString & text, const TQString & context ) [virtual slot] +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Changes the text of the text edit to the string text and the +context to context. Any previous text is removed. +

    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 from text. +

    For rich text the rendering style and available tags are defined +by a styleSheet(); see TQStyleSheet for details. +

    The optional context is a path which the text edit's +TQMimeSourceFactory uses to resolve the locations of files and +images. (See TQTextEdit::TQTextEdit().) It is passed to the text +edit's TQMimeSourceFactory when quering data. +

    Note that the undo/redo history is cleared by this function. +

    See also text and textFormat. + +

    void TQTextEdit::setTextFormat ( TextFormat f ) [virtual slot] +

    Sets the text format: rich text, plain text, log text or auto text to f. +See the "textFormat" property for details. +

    void TQTextEdit::setUnderline ( bool b ) [virtual slot] +

    +If b is TRUE sets the current format to underline; otherwise +sets the current format to non-underline. +

    See also underline(). + +

    void TQTextEdit::setUndoDepth ( int d ) [virtual slot] +

    Sets the depth of the undo history to d. +See the "undoDepth" property for details. +

    void TQTextEdit::setUndoRedoEnabled ( bool b ) [virtual slot] +

    Sets whether undo/redo is enabled to b. +See the "undoRedoEnabled" property for details. +

    void TQTextEdit::setVerticalAlignment ( VerticalAlignment a ) [virtual slot] +

    +Sets the vertical alignment of the current format, i.e. of the +text, to a. +

    See also color() and paper. + +

    void TQTextEdit::setWordWrap ( WordWrap mode ) [virtual slot] +

    Sets the word wrap mode to mode. +See the "wordWrap" property for details. +

    void TQTextEdit::setWrapColumnOrWidth ( int ) [virtual slot] +

    Sets the position (in pixels or columns depending on the wrap mode) where text will be wrapped. +See the "wrapColumnOrWidth" property for details. +

    void TQTextEdit::setWrapPolicy ( WrapPolicy policy ) [virtual slot] +

    Sets the word wrap policy, at whitespace or anywhere to policy. +See the "wrapPolicy" property for details. +

    TQStyleSheet * TQTextEdit::styleSheet () const +

    +Returns the TQStyleSheet which is being used by this text edit. +

    See also setStyleSheet(). + +

    Examples: action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, and mdi/application.cpp. +

    void TQTextEdit::sync () [virtual slot] +

    +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. +

    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. + +

    TQSyntaxHighlighter * TQTextEdit::syntaxHighlighter () const +

    +Returns the TQSyntaxHighlighter set on this TQTextEdit. 0 is +returned if no syntax highlighter is set. + +

    bool TQTextEdit::tabChangesFocus () const +

    Returns TRUE if TAB changes focus or is accepted as input; otherwise returns FALSE. +See the "tabChangesFocus" property for details. +

    int TQTextEdit::tabStopWidth () const +

    Returns the tab stop width in pixels. +See the "tabStopWidth" property for details. +

    TQString TQTextEdit::text () const +

    Returns the text edit's text. +See the "text" property for details. +

    TQString TQTextEdit::text ( int para ) const +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Returns the text of paragraph para. +

    If textFormat() is RichText the text will contain HTML +formatting tags. + +

    void TQTextEdit::textChanged () [signal] +

    + +

    This signal is emitted whenever the text in the text edit changes. +

    See also text and append(). + +

    Examples: qwerty/qwerty.cpp and rot13/rot13.cpp. +

    TQTextCursor * TQTextEdit::textCursor () const [protected] +

    + +

    Returns the text edit's text cursor. +

    Warning: TQTextCursor is not in the public API, but in special +circumstances you might wish to use it. + +

    TextFormat TQTextEdit::textFormat () const +

    Returns the text format: rich text, plain text, log text or auto text. +See the "textFormat" property for details. +

    bool TQTextEdit::underline () const +

    +Returns TRUE if the current format is underlined; otherwise returns +FALSE. +

    See also setUnderline(). + +

    void TQTextEdit::undo () [virtual slot] +

    +Undoes the last operation. +

    If there is no operation to undo, i.e. there is no undo step in +the undo/redo history, nothing happens. +

    See also undoAvailable(), redo(), and undoDepth. + +

    void TQTextEdit::undoAvailable ( bool yes ) [signal] +

    + +

    This signal is emitted when the availability of undo changes. If +yes is TRUE, then undo() will work until undoAvailable( FALSE ) +is next emitted. +

    See also undo() and undoDepth. + +

    int TQTextEdit::undoDepth () const +

    Returns the depth of the undo history. +See the "undoDepth" property for details. +

    WordWrap TQTextEdit::wordWrap () const +

    Returns the word wrap mode. +See the "wordWrap" property for details. +

    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. +

    WrapPolicy TQTextEdit::wrapPolicy () const +

    Returns the word wrap policy, at whitespace or anywhere. +See the "wrapPolicy" property for details. +

    void TQTextEdit::zoomIn ( int range ) [virtual slot] +

    +Zooms in on the text by making the base font size range +points larger and recalculating all font sizes to be the new size. +This does not change the size of any images. +

    See also zoomOut(). + +

    void TQTextEdit::zoomIn () [virtual slot] +

    + +

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    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. +

    See also zoomOut(). + +

    void TQTextEdit::zoomOut ( int range ) [virtual slot] +

    +Zooms out on the text by making the base font size range points +smaller and recalculating all font sizes to be the new size. This +does not change the size of any images. +

    See also zoomIn(). + +

    void TQTextEdit::zoomOut () [virtual slot] +

    + +

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    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. +

    See also zoomIn(). + +

    void TQTextEdit::zoomTo ( int size ) [virtual slot] +

    +Zooms the text by making the base font size size points and +recalculating all font sizes to be the new size. This does not +change the size of any images. + +

    Property Documentation

    +

    AutoFormatting autoFormatting

    +

    This property holds the enabled set of auto formatting features. +

    The value can be any combination of the values in the AutoFormatting enum. The default is AutoAll. Choose AutoNone +to disable all automatic formatting. +

    Currently, the only automatic formatting feature provided is AutoBulletList; future versions of TQt may offer more. + +

    Set this property's value with setAutoFormatting() and get this property's value with autoFormatting(). +

    TQString documentTitle

    +

    This property holds the title of the document parsed from the text. +

    For PlainText the title will be an empty string. For RichText the title will be the text between the <title> tags, +if present, otherwise an empty string. + +

    Get this property's value with documentTitle(). +

    bool hasSelectedText

    +

    This property holds whether some text is selected in selection 0. +

    +

    Get this property's value with hasSelectedText(). +

    int length

    +

    This property holds the number of characters in the text. +

    +

    Get this property's value with length(). +

    bool linkUnderline

    +

    This property holds whether hypertext links will be underlined. +

    If TRUE (the default) hypertext links will be displayed +underlined. If FALSE links will not be displayed underlined. + +

    Set this property's value with setLinkUnderline() and get this property's value with linkUnderline(). +

    bool modified

    +

    This property holds whether the document has been modified by the user. +

    +

    Set this property's value with setModified() and get this property's value with isModified(). +

    bool overwriteMode

    +

    This property holds the text edit's overwrite mode. +

    If FALSE (the default) characters entered by the user are inserted +with any characters to the right being moved out of the way. If +TRUE, the editor is in overwrite mode, i.e. characters entered by +the user overwrite any characters to the right of the cursor +position. + +

    Set this property's value with setOverwriteMode() and get this property's value with isOverwriteMode(). +

    TQBrush paper

    +

    This property holds the background (paper) brush. +

    The brush that is currently used to draw the background of the +text edit. The initial setting is an empty brush. + +

    Set this property's value with setPaper() and get this property's value with paper(). +

    bool readOnly

    +

    This property holds whether the text edit is read-only. +

    In a read-only text edit the user can only navigate through the +text and select text; modifying the text is not possible. +

    This property's default is FALSE. + +

    Set this property's value with setReadOnly() and get this property's value with isReadOnly(). +

    TQString selectedText

    +

    This property holds the selected text (from selection 0) or an empty string if there is no currently selected text (in selection 0). +

    The text is always returned as PlainText if the textFormat() is +PlainText or AutoText, otherwise it is returned as HTML. +

    See also hasSelectedText. + +

    Get this property's value with selectedText(). +

    bool tabChangesFocus

    This property holds whether TAB changes focus or is accepted as input. +

    In some occasions text edits should not allow the user to input +tabulators or change indentation using the TAB key, as this breaks +the focus chain. The default is FALSE. +

    +

    Set this property's value with setTabChangesFocus() and get this property's value with tabChangesFocus(). +

    int tabStopWidth

    +

    This property holds the tab stop width in pixels. +

    +

    Set this property's value with setTabStopWidth() and get this property's value with tabStopWidth(). +

    TQString text

    +

    This property holds the text edit's text. +

    There is no default text. +

    On setting, any previous text is deleted. +

    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. +

    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. +

    See also textFormat. + +

    Set this property's value with setText() and get this property's value with text(). +

    TextFormat textFormat

    +

    This property holds the text format: rich text, plain text, log text or auto text. +

    The text format is one of the following: +

      +
    • PlainText - all characters, except newlines, are displayed +verbatim, including spaces. Whenever a newline appears in the text +the text edit inserts a hard line break and begins a new +paragraph. +
    • RichText - rich text rendering. The available styles are +defined in the default stylesheet TQStyleSheet::defaultSheet(). +
    • LogText - optimized mode for very large texts. Supports a very +limited set of formatting tags (color, bold, underline and italic +settings). +
    • AutoText - this is the default. The text edit autodetects which +rendering style is best, PlainText or RichText. This is done +by using the TQStyleSheet::mightBeRichText() function. +
    + +

    Set this property's value with setTextFormat() and get this property's value with textFormat(). +

    int undoDepth

    +

    This property holds the depth of the undo history. +

    The maximum number of steps in the undo/redo history. The default +is 100. +

    See also undo() and redo(). + +

    Set this property's value with setUndoDepth() and get this property's value with undoDepth(). +

    bool undoRedoEnabled

    +

    This property holds whether undo/redo is enabled. +

    When changing this property, the undo/redo history is cleared. +

    The default is TRUE. + +

    Set this property's value with setUndoRedoEnabled() and get this property's value with isUndoRedoEnabled(). +

    WordWrap wordWrap

    +

    This property holds the word wrap mode. +

    The default mode is WidgetWidth which causes words to be +wrapped at the right edge of the text edit. Wrapping occurs at +whitespace, keeping whole words intact. If you want wrapping to +occur within words use setWrapPolicy(). If you set a wrap mode of +FixedPixelWidth or FixedColumnWidth you should also call +setWrapColumnOrWidth() with the width you want. +

    See also WordWrap, wrapColumnOrWidth, and wrapPolicy. + +

    Set this property's value with setWordWrap() and get this property's value with wordWrap(). +

    int wrapColumnOrWidth

    +

    This property holds the position (in pixels or columns depending on the wrap mode) where text will be wrapped. +

    If the wrap mode is FixedPixelWidth, the value is the number of +pixels from the left edge of the text edit at which text should be +wrapped. If the wrap mode is FixedColumnWidth, the value is the +column number (in character columns) from the left edge of the +text edit at which text should be wrapped. +

    See also wordWrap. + +

    Set this property's value with setWrapColumnOrWidth() and get this property's value with wrapColumnOrWidth(). +

    WrapPolicy wrapPolicy

    +

    This property holds the word wrap policy, at whitespace or anywhere. +

    Defines where text can be wrapped when word wrap mode is not NoWrap. The choices are AtWordBoundary (the default), Anywhere and AtWordOrDocumentBoundary +

    See also wordWrap. + +

    Set this property's value with setWrapPolicy() and get this property's value with wrapPolicy(). + +


    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextencoder-members.html b/doc/html/tqtextencoder-members.html new file mode 100644 index 000000000..6354112e0 --- /dev/null +++ b/doc/html/tqtextencoder-members.html @@ -0,0 +1,48 @@ + + + + + +TQTextEncoder Member List + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    Complete Member List for TQTextEncoder

    + +

    This is the complete list of member functions for +TQTextEncoder, including inherited members. + +

    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextencoder.html b/doc/html/tqtextencoder.html new file mode 100644 index 000000000..eb085a7a8 --- /dev/null +++ b/doc/html/tqtextencoder.html @@ -0,0 +1,79 @@ + + + + + +TQTextEncoder Class + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    TQTextEncoder Class Reference

    + +

    The TQTextEncoder class provides a state-based encoder. +More... +

    All the functions in this class are reentrant when TQt is built with thread support.

    +

    #include <tqtextcodec.h> +

    List of all member functions. +

    Public Members

    + +

    Detailed Description

    + + +The TQTextEncoder class provides a state-based encoder. + + +

    The encoder converts Unicode into another format, remembering any +state that is required between calls. +

    See also TQTextCodec::makeEncoder() and Internationalization with TQt. + +


    Member Function Documentation

    +

    TQTextEncoder::~TQTextEncoder () [virtual] +

    +Destroys the encoder. + +

    TQCString TQTextEncoder::fromUnicode ( const TQString & uc, int & lenInOut ) [pure virtual] +

    + +

    Converts lenInOut characters (not bytes) from uc, producing +a TQCString. lenInOut will be set to the length of the result (in bytes). +

    The encoder is free to record state to use when subsequent calls +are made to this function (for example, it might change modes with +escape sequences if needed during the encoding of one string, then +assume that mode applies when a subsequent call begins). + + +


    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextistream-members.html b/doc/html/tqtextistream-members.html new file mode 100644 index 000000000..76a3eaa7b --- /dev/null +++ b/doc/html/tqtextistream-members.html @@ -0,0 +1,69 @@ + + + + + +TQTextIStream Member List + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    Complete Member List for TQTextIStream

    + +

    This is the complete list of member functions for +TQTextIStream, including inherited members. + +

    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextistream.html b/doc/html/tqtextistream.html new file mode 100644 index 000000000..d74a0247f --- /dev/null +++ b/doc/html/tqtextistream.html @@ -0,0 +1,91 @@ + + + + + +TQTextIStream Class + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    TQTextIStream Class Reference

    + +

    The TQTextIStream class is a convenience class for input streams. +More... +

    All the functions in this class are reentrant when TQt is built with thread support.

    +

    #include <tqtextstream.h> +

    Inherits TQTextStream. +

    List of all member functions. +

    Public Members

    + +

    Detailed Description

    + + + +The TQTextIStream class is a convenience class for input streams. +

    + +

    This class provides a shorthand for creating simple input +TQTextStreams without having to pass a mode argument to the +constructor. +

    This class makes it easy, for example, to write things like this: +

    +    TQString data = "123 456";
    +    int a, b;
    +    TQTextIStream(&data) >> a >> b;
    +    
    + +

    See also TQTextOStream, Input/Output and Networking, and Text Related Classes. + +


    Member Function Documentation

    +

    TQTextIStream::TQTextIStream ( const TQString * s ) +

    + +

    Constructs a stream to read from the string s. + +

    TQTextIStream::TQTextIStream ( TQByteArray ba ) +

    + +

    Constructs a stream to read from the array ba. + +

    TQTextIStream::TQTextIStream ( FILE * f ) +

    + +

    Constructs a stream to read from the file f. + + +


    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextostream-members.html b/doc/html/tqtextostream-members.html new file mode 100644 index 000000000..806c03f74 --- /dev/null +++ b/doc/html/tqtextostream-members.html @@ -0,0 +1,69 @@ + + + + + +TQTextOStream Member List + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    Complete Member List for TQTextOStream

    + +

    This is the complete list of member functions for +TQTextOStream, including inherited members. + +

    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextostream.html b/doc/html/tqtextostream.html new file mode 100644 index 000000000..ad721f206 --- /dev/null +++ b/doc/html/tqtextostream.html @@ -0,0 +1,90 @@ + + + + + +TQTextOStream Class + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    TQTextOStream Class Reference

    + +

    The TQTextOStream class is a convenience class for output streams. +More... +

    All the functions in this class are reentrant when TQt is built with thread support.

    +

    #include <tqtextstream.h> +

    Inherits TQTextStream. +

    List of all member functions. +

    Public Members

    + +

    Detailed Description

    + + + +The TQTextOStream class is a convenience class for output streams. +

    + +

    This class provides a shorthand for creating simple output +TQTextStreams without having to pass a mode argument to the +constructor. +

    This makes it easy for example, to write things like this: +

    +    TQString result;
    +    TQTextOStream(&result) << "pi = " << 3.14;
    +    
    + +

    See also Input/Output and Networking and Text Related Classes. + +


    Member Function Documentation

    +

    TQTextOStream::TQTextOStream ( TQString * s ) +

    + +

    Constructs a stream to write to string s. + +

    TQTextOStream::TQTextOStream ( TQByteArray ba ) +

    + +

    Constructs a stream to write to the array ba. + +

    TQTextOStream::TQTextOStream ( FILE * f ) +

    + +

    Constructs a stream to write to the file f. + + +


    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextstream-h.html b/doc/html/tqtextstream-h.html new file mode 100644 index 000000000..0225c593f --- /dev/null +++ b/doc/html/tqtextstream-h.html @@ -0,0 +1,383 @@ + + + + + +tqtextstream.h Include File + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    tqtextstream.h

    + +

    This is the verbatim text of the tqtextstream.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


    +
    +/****************************************************************************
    +** $Id: qt/tqtextstream.h   3.3.8   edited Jan 11 14:38 $
    +**
    +** Definition of TQTextStream class
    +**
    +** Created : 940922
    +**
    +** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
    +**
    +** This file is part of the tools module of the TQt GUI Toolkit.
    +**
    +** This file may be used under the terms of the GNU General Public
    +** License versions 2.0 or 3.0 as published by the Free Software
    +** Foundation and appearing in the file LICENSE.GPL included in the
    +** packaging of this file. Alternatively you may (at your option) use any
    +** later version of the GNU General Public License if such license has
    +** been publicly approved by Trolltech ASA (or its successors, if any)
    +** and the KDE Free TQt Foundation.
    +**
    +** Please review the following information to ensure GNU General
    +** Public Licensing requirements will be met:
    +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
    +** If you are unsure which license is appropriate for your use, please
    +** review the following information:
    +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
    +** or contact the sales department at sales@trolltech.com.
    +**
    +** This file may be used under the terms of the Q Public License as
    +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
    +** included in the packaging of this file.  Licensees holding valid TQt
    +** Commercial licenses may use this file in accordance with the TQt
    +** Commercial License Agreement provided with the Software.
    +**
    +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
    +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
    +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
    +** herein.
    +**
    +**********************************************************************/
    +
    +#ifndef TQTEXTSTREAM_H
    +#define TQTEXTSTREAM_H
    +
    +#ifndef QT_H
    +#include "ntqiodevice.h"
    +#include "tqstring.h"
    +#include <stdio.h>
    +#endif // QT_H
    +
    +#ifndef TQT_NO_TEXTSTREAM
    +class TQTextCodec;
    +class TQTextDecoder;
    +
    +class TQTextStreamPrivate;
    +
    +class TQ_EXPORT TQTextStream				// text stream class
    +{
    +public:
    +    enum Encoding { Locale, Latin1, Unicode, UnicodeNetworkOrder,
    +		    UnicodeReverse, RawUnicode, UnicodeUTF8 };
    +
    +    void	setEncoding( Encoding );
    +#ifndef TQT_NO_TEXTCODEC
    +    void	setCodec( TQTextCodec* );
    +    TQTextCodec *codec();
    +#endif
    +
    +    TQTextStream();
    +    TQTextStream( TQIODevice * );
    +    TQTextStream( TQString*, int mode );
    +    TQTextStream( TQString&, int mode );		// obsolete
    +    TQTextStream( TQByteArray, int mode );
    +    TQTextStream( FILE *, int mode );
    +    virtual ~TQTextStream();
    +
    +    TQIODevice	*device() const;
    +    void	 setDevice( TQIODevice * );
    +    void	 unsetDevice();
    +
    +    bool	 atEnd() const;
    +    bool	 eof() const;
    +
    +    TQTextStream &operator>>( TQChar & );
    +    TQTextStream &operator>>( char & );
    +    TQTextStream &operator>>( signed short & );
    +    TQTextStream &operator>>( unsigned short & );
    +    TQTextStream &operator>>( signed int & );
    +    TQTextStream &operator>>( unsigned int & );
    +    TQTextStream &operator>>( signed long & );
    +    TQTextStream &operator>>( unsigned long & );
    +    TQTextStream &operator>>( float & );
    +    TQTextStream &operator>>( double & );
    +    TQTextStream &operator>>( char * );
    +    TQTextStream &operator>>( TQString & );
    +    TQTextStream &operator>>( TQCString & );
    +
    +    TQTextStream &operator<<( TQChar );
    +    TQTextStream &operator<<( char );
    +    TQTextStream &operator<<( signed short );
    +    TQTextStream &operator<<( unsigned short );
    +    TQTextStream &operator<<( signed int );
    +    TQTextStream &operator<<( unsigned int );
    +    TQTextStream &operator<<( signed long );
    +    TQTextStream &operator<<( unsigned long );
    +    TQTextStream &operator<<( float );
    +    TQTextStream &operator<<( double );
    +    TQTextStream &operator<<( const char* );
    +    TQTextStream &operator<<( const TQString & );
    +    TQTextStream &operator<<( const TQCString & );
    +    TQTextStream &operator<<( void * );		// any pointer
    +
    +    TQTextStream &readRawBytes( char *, uint len );
    +    TQTextStream &writeRawBytes( const char* , uint len );
    +
    +    TQString	readLine();
    +    TQString	read();
    +    void	skipWhiteSpace();
    +
    +    enum {
    +	skipws	  = 0x0001,			// skip whitespace on input
    +	left	  = 0x0002,			// left-adjust output
    +	right	  = 0x0004,			// right-adjust output
    +	internal  = 0x0008,			// pad after sign
    +	bin	  = 0x0010,			// binary format integer
    +	oct	  = 0x0020,			// octal format integer
    +	dec	  = 0x0040,			// decimal format integer
    +	hex	  = 0x0080,			// hex format integer
    +	showbase  = 0x0100,			// show base indicator
    +	showpoint = 0x0200,			// force decimal point (float)
    +	uppercase = 0x0400,			// upper-case hex output
    +	showpos	  = 0x0800,			// add '+' to positive integers
    +	scientific= 0x1000,			// scientific float output
    +	fixed	  = 0x2000			// fixed float output
    +    };
    +
    +    static const int basefield;			// bin | oct | dec | hex
    +    static const int adjustfield;		// left | right | internal
    +    static const int floatfield;		// scientific | fixed
    +
    +    int	  flags() const;
    +    int	  flags( int f );
    +    int	  setf( int bits );
    +    int	  setf( int bits, int mask );
    +    int	  unsetf( int bits );
    +
    +    void  reset();
    +
    +    int	  width()	const;
    +    int	  width( int );
    +    int	  fill()	const;
    +    int	  fill( int );
    +    int	  precision()	const;
    +    int	  precision( int );
    +
    +private:
    +    long	input_int();
    +    void	init();
    +    TQTextStream &output_int( int, ulong, bool );
    +    TQIODevice	*dev;
    +
    +    int		fflags;
    +    int		fwidth;
    +    int		fillchar;
    +    int		fprec;
    +    bool	doUnicodeHeader;
    +    bool	owndev;
    +    TQTextCodec 	*mapper;
    +    TQTextStreamPrivate * d;
    +    TQChar	unused1; // ### remove in TQt 4.0
    +    bool	latin1;
    +    bool 	internalOrder;
    +    bool	networkOrder;
    +    void	*unused2; // ### remove in TQt 4.0
    +
    +    TQChar	eat_ws();
    +    uint 	ts_getline( TQChar* );
    +    void	ts_ungetc( TQChar );
    +    TQChar	ts_getc();
    +    uint	ts_getbuf( TQChar*, uint );
    +    void	ts_putc(int);
    +    void	ts_putc(TQChar);
    +    bool	ts_isspace(TQChar);
    +    bool	ts_isdigit(TQChar);
    +    ulong	input_bin();
    +    ulong	input_oct();
    +    ulong	input_dec();
    +    ulong	input_hex();
    +    double	input_double();
    +    TQTextStream &writeBlock( const char* p, uint len );
    +    TQTextStream &writeBlock( const TQChar* p, uint len );
    +
    +private:	// Disabled copy constructor and operator=
    +#if defined(TQ_DISABLE_COPY)
    +    TQTextStream( const TQTextStream & );
    +    TQTextStream &operator=( const TQTextStream & );
    +#endif
    +};
    +
    +typedef TQTextStream TQTS;
    +
    +class TQ_EXPORT TQTextIStream : public TQTextStream {
    +public:
    +    TQTextIStream( const TQString* s ) :
    +	TQTextStream((TQString*)s,IO_ReadOnly) { }
    +    TQTextIStream( TQByteArray ba ) :
    +	TQTextStream(ba,IO_ReadOnly) { }
    +    TQTextIStream( FILE *f ) :
    +	TQTextStream(f,IO_ReadOnly) { }
    +
    +private:	// Disabled copy constructor and operator=
    +#if defined(TQ_DISABLE_COPY)
    +    TQTextIStream( const TQTextIStream & );
    +    TQTextIStream &operator=( const TQTextIStream & );
    +#endif
    +};
    +
    +class TQ_EXPORT TQTextOStream : public TQTextStream {
    +public:
    +    TQTextOStream( TQString* s ) :
    +	TQTextStream(s,IO_WriteOnly) { }
    +    TQTextOStream( TQByteArray ba ) :
    +	TQTextStream(ba,IO_WriteOnly) { }
    +    TQTextOStream( FILE *f ) :
    +	TQTextStream(f,IO_WriteOnly) { }
    +
    +private:	// Disabled copy constructor and operator=
    +#if defined(TQ_DISABLE_COPY)
    +    TQTextOStream( const TQTextOStream & );
    +    TQTextOStream &operator=( const TQTextOStream & );
    +#endif
    +};
    +
    +/*****************************************************************************
    +  TQTextStream inline functions
    + *****************************************************************************/
    +
    +inline TQIODevice *TQTextStream::device() const
    +{ return dev; }
    +
    +inline bool TQTextStream::atEnd() const
    +{ return dev ? dev->atEnd() : FALSE; }
    +
    +inline bool TQTextStream::eof() const
    +{ return atEnd(); }
    +
    +inline int TQTextStream::flags() const
    +{ return fflags; }
    +
    +inline int TQTextStream::flags( int f )
    +{ int oldf = fflags;  fflags = f;  return oldf; }
    +
    +inline int TQTextStream::setf( int bits )
    +{ int oldf = fflags;  fflags |= bits;  return oldf; }
    +
    +inline int TQTextStream::setf( int bits, int mask )
    +{ int oldf = fflags;  fflags = (fflags & ~mask) | (bits & mask); return oldf; }
    +
    +inline int TQTextStream::unsetf( int bits )
    +{ int oldf = fflags;  fflags &= ~bits;	return oldf; }
    +
    +inline int TQTextStream::width() const
    +{ return fwidth; }
    +
    +inline int TQTextStream::width( int w )
    +{ int oldw = fwidth;  fwidth = w;  return oldw;	 }
    +
    +inline int TQTextStream::fill() const
    +{ return fillchar; }
    +
    +inline int TQTextStream::fill( int f )
    +{ int oldc = fillchar;	fillchar = f;  return oldc;  }
    +
    +inline int TQTextStream::precision() const
    +{ return fprec; }
    +
    +inline int TQTextStream::precision( int p )
    +{ int oldp = fprec;  fprec = p;	 return oldp;  }
    +
    +/*!
    +  Returns one character from the stream, or EOF.
    +*/
    +inline TQChar TQTextStream::ts_getc()
    +{ TQChar r; return ( ts_getbuf( &r,1 ) == 1 ? r : TQChar((ushort)0xffff) ); }
    +
    +/*****************************************************************************
    +  TQTextStream manipulators
    + *****************************************************************************/
    +
    +typedef TQTextStream & (*TQTSFUNC)(TQTextStream &);// manipulator function
    +typedef int (TQTextStream::*TQTSMFI)(int);	// manipulator w/int argument
    +
    +class TQ_EXPORT TQTSManip {			// text stream manipulator
    +public:
    +    TQTSManip( TQTSMFI m, int a ) { mf=m; arg=a; }
    +    void exec( TQTextStream &s ) { (s.*mf)(arg); }
    +private:
    +    TQTSMFI mf;					// TQTextStream member function
    +    int	   arg;					// member function argument
    +};
    +
    +TQ_EXPORT inline TQTextStream &operator>>( TQTextStream &s, TQTSFUNC f )
    +{ return (*f)( s ); }
    +
    +TQ_EXPORT inline TQTextStream &operator<<( TQTextStream &s, TQTSFUNC f )
    +{ return (*f)( s ); }
    +
    +TQ_EXPORT inline TQTextStream &operator<<( TQTextStream &s, TQTSManip m )
    +{ m.exec(s); return s; }
    +
    +TQ_EXPORT TQTextStream &bin( TQTextStream &s );	// set bin notation
    +TQ_EXPORT TQTextStream &oct( TQTextStream &s );	// set oct notation
    +TQ_EXPORT TQTextStream &dec( TQTextStream &s );	// set dec notation
    +TQ_EXPORT TQTextStream &hex( TQTextStream &s );	// set hex notation
    +TQ_EXPORT TQTextStream &endl( TQTextStream &s );	// insert EOL ('\n')
    +TQ_EXPORT TQTextStream &flush( TQTextStream &s );	// flush output
    +TQ_EXPORT TQTextStream &ws( TQTextStream &s );	// eat whitespace on input
    +TQ_EXPORT TQTextStream &reset( TQTextStream &s );	// set default flags
    +
    +TQ_EXPORT inline TQTSManip qSetW( int w )
    +{
    +    TQTSMFI func = &TQTextStream::width;
    +    return TQTSManip(func,w);
    +}
    +
    +TQ_EXPORT inline TQTSManip qSetFill( int f )
    +{
    +    TQTSMFI func = &TQTextStream::fill;
    +    return TQTSManip(func,f);
    +}
    +
    +TQ_EXPORT inline TQTSManip qSetPrecision( int p )
    +{
    +    TQTSMFI func = &TQTextStream::precision;
    +    return TQTSManip(func,p);
    +}
    +
    +#endif // TQT_NO_TEXTSTREAM
    +#endif // TQTEXTSTREAM_H
    +
    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextstream-members.html b/doc/html/tqtextstream-members.html new file mode 100644 index 000000000..073922a65 --- /dev/null +++ b/doc/html/tqtextstream-members.html @@ -0,0 +1,70 @@ + + + + + +TQTextStream Member List + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    Complete Member List for TQTextStream

    + +

    This is the complete list of member functions for +TQTextStream, including inherited members. + +

    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextstream.html b/doc/html/tqtextstream.html new file mode 100644 index 000000000..683aa8757 --- /dev/null +++ b/doc/html/tqtextstream.html @@ -0,0 +1,667 @@ + + + + + +TQTextStream Class + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    TQTextStream Class Reference

    + +

    The TQTextStream class provides basic functions for reading +and writing text using a TQIODevice. +More... +

    All the functions in this class are reentrant when TQt is built with thread support.

    +

    #include <tqtextstream.h> +

    Inherited by TQTextIStream and TQTextOStream. +

    List of all member functions. +

    Public Members

    + +

    Detailed Description

    + + + +The TQTextStream class provides basic functions for reading +and writing text using a TQIODevice. +

    + + +

    The text stream class has a functional interface that is very +similar to that of the standard C++ iostream class. +

    TQt provides several global functions similar to the ones in iostream: +

    +
    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) sets the precision to the given argument +
    +

    Warning: 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. +

    The TQTextStream class reads and writes text; it is not appropriate +for dealing with binary data (but TQDataStream is). +

    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. +

    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. +

    See also TQDataStream, Input/Output and Networking, and Text Related Classes. + +


    Member Type Documentation

    +

    TQTextStream::Encoding

    + +
      +
    • TQTextStream::Locale +
    • TQTextStream::Latin1 +
    • TQTextStream::Unicode +
    • TQTextStream::UnicodeNetworkOrder +
    • TQTextStream::UnicodeReverse +
    • TQTextStream::RawUnicode +
    • TQTextStream::UnicodeUTF8 +

    See setEncoding() for an explanation of the encodings. + +


    Member Function Documentation

    +

    TQTextStream::TQTextStream () +

    +Constructs a data stream that has no IO device. + +

    TQTextStream::TQTextStream ( TQIODevice * iod ) +

    +Constructs a text stream that uses the IO device iod. + +

    TQTextStream::TQTextStream ( TQString * str, int filemode ) +

    +Constructs a text stream that operates on the Unicode TQString, str, through an internal device. The filemode argument is +passed to the device's open() function; see TQIODevice::mode(). +

    If you set an encoding or codec with setEncoding() or setCodec(), +this setting is ignored for text streams that operate on TQString. +

    Example: +

    +    TQString str;
    +    TQTextStream ts( &str, IO_WriteOnly );
    +    ts << "pi = " << 3.14; // str == "pi = 3.14"
    +    
    + +

    Writing data to the text stream will modify the contents of the +string. The string will be expanded when data is written beyond +the end of the string. Note that the string will not be truncated: +

    +    TQString str = "pi = 3.14";
    +    TQTextStream ts( &str, IO_WriteOnly );
    +    ts <<  "2+2 = " << 2+2; // str == "2+2 = 414"
    +    
    + +

    Note that because TQString is Unicode, you should not use +readRawBytes() or writeRawBytes() on such a stream. + +

    TQTextStream::TQTextStream ( TQString & str, int filemode ) +

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

    This constructor is equivalent to the constructor taking a TQString* +parameter. + +

    TQTextStream::TQTextStream ( TQByteArray a, int mode ) +

    +Constructs a text stream that operates on the byte array, a, +through an internal TQBuffer device. The mode argument is passed +to the device's open() function; see TQIODevice::mode(). +

    Example: +

    +    TQByteArray array;
    +    TQTextStream ts( array, IO_WriteOnly );
    +    ts << "pi = " << 3.14 << '\0'; // array == "pi = 3.14"
    +    
    + +

    Writing data to the text stream will modify the contents of the +array. The array will be expanded when data is written beyond the +end of the string. +

    Same example, using a TQBuffer: +

    +    TQByteArray array;
    +    TQBuffer buf( array );
    +    buf.open( IO_WriteOnly );
    +    TQTextStream ts( &buf );
    +    ts << "pi = " << 3.14 << '\0'; // array == "pi = 3.14"
    +    buf.close();
    +    
    + + +

    TQTextStream::TQTextStream ( FILE * fh, int mode ) +

    +Constructs a text stream that operates on an existing file handle +fh through an internal TQFile device. The mode argument is +passed to the device's open() function; see TQIODevice::mode(). +

    Note that if you create a TQTextStream cout 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. + +

    TQTextStream::~TQTextStream () [virtual] +

    +Destroys the text stream. +

    The destructor does not affect the current IO device. + +

    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. +

    See also TQIODevice::atEnd(). + +

    Examples: addressbook/centralwidget.cpp and grapher/grapher.cpp. +

    TQTextCodec * TQTextStream::codec () +

    +Returns the codec actually used for this stream. +

    If Unicode is automatically detected in input, a codec with name() "ISO-10646-UCS-2" is returned. +

    See also setCodec(). + +

    TQIODevice * TQTextStream::device () const +

    + +

    Returns the IO device currently set. +

    See also setDevice() and unsetDevice(). + +

    bool TQTextStream::eof () const +

    +

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

    This function has been renamed to atEnd(). +

    See also TQIODevice::atEnd(). + +

    Example: chart/chartform_files.cpp. +

    int TQTextStream::fill () const +

    + +

    Returns the fill character. The default value is ' ' (space). + +

    int TQTextStream::fill ( int f ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Sets the fill character to f. Returns the previous fill character. + +

    int TQTextStream::flags () const +

    + +

    Returns the current stream flags. The default value is 0. +

    +
    Flag Meaning +
    skipws Not currently used; whitespace always skipped +
    left Numeric fields are left-aligned +
    right +Not currently used (by default, numerics are right-aligned) +
    internal Puts any padding spaces between +/- and value +
    bin Output and input only in binary +
    oct Output and input only in octal +
    dec Output and input only in decimal +
    hex Output and input only in hexadecimal +
    showbase +Annotates numeric outputs with 0b, 0, or 0x if in bin, +oct, or hex format +
    showpoint Not currently used +
    uppercase Uses 0B and 0X rather than 0b and 0x +
    showpos Shows + for positive numeric values +
    scientific Uses scientific notation for floating point values +
    fixed Uses fixed-point notation for floating point values +
    +

    Note that unless bin, oct, dec, or hex 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. +

    See also setf() and unsetf(). + +

    int TQTextStream::flags ( int f ) +

    + +

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Sets the stream flags to f. Returns the previous stream flags. +

    See also setf() and unsetf(). + +

    TQTextStream & TQTextStream::operator<< ( TQChar c ) +

    +Writes character char to the stream and returns a reference to +the stream. +

    The character c is assumed to be Latin1 encoded independent of +the Encoding set for the TQTextStream. + +

    TQTextStream & TQTextStream::operator<< ( char c ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Writes character c to the stream and returns a reference to the +stream. + +

    TQTextStream & TQTextStream::operator<< ( signed short i ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Writes a short integer i to the stream and returns a +reference to the stream. + +

    TQTextStream & TQTextStream::operator<< ( unsigned short i ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Writes an unsigned short integer i to the stream and +returns a reference to the stream. + +

    TQTextStream & TQTextStream::operator<< ( signed int i ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Writes an int i to the stream and returns a reference to the +stream. + +

    TQTextStream & TQTextStream::operator<< ( unsigned int i ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Writes an unsigned int i to the stream and returns a +reference to the stream. + +

    TQTextStream & TQTextStream::operator<< ( signed long i ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Writes a long int i to the stream and returns a reference +to the stream. + +

    TQTextStream & TQTextStream::operator<< ( unsigned long i ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Writes an unsigned long int i to the stream and +returns a reference to the stream. + +

    TQTextStream & TQTextStream::operator<< ( float f ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Writes a float f to the stream and returns a reference to +the stream. + +

    TQTextStream & TQTextStream::operator<< ( double f ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Writes a double f to the stream and returns a reference to +the stream. + +

    TQTextStream & TQTextStream::operator<< ( const char * s ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Writes a string to the stream and returns a reference to the +stream. +

    The string s is assumed to be Latin1 encoded independent of the +Encoding set for the TQTextStream. + +

    TQTextStream & TQTextStream::operator<< ( const TQString & s ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Writes s to the stream and returns a reference to the stream. + +

    TQTextStream & TQTextStream::operator<< ( const TQCString & s ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Writes s to the stream and returns a reference to the stream. +

    The string s is assumed to be Latin1 encoded independent of the +Encoding set for the TQTextStream. + +

    TQTextStream & TQTextStream::operator<< ( void * ptr ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Writes a pointer to the stream and returns a reference to the +stream. +

    The ptr is output as an unsigned long hexadecimal integer. + +

    TQTextStream & TQTextStream::operator>> ( TQChar & c ) +

    +Reads a char c from the stream and returns a reference to the +stream. Note that whitespace is not skipped. + +

    TQTextStream & TQTextStream::operator>> ( char & c ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Reads a char c from the stream and returns a reference to the +stream. Note that whitespace is skipped. + +

    TQTextStream & TQTextStream::operator>> ( signed short & i ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Reads a signed short integer i from the stream and returns a +reference to the stream. See flags() for an explanation of the +expected input format. + +

    TQTextStream & TQTextStream::operator>> ( unsigned short & i ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Reads an unsigned short integer i from the stream and +returns a reference to the stream. See flags() for an explanation +of the expected input format. + +

    TQTextStream & TQTextStream::operator>> ( signed int & i ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Reads a signed int i from the stream and returns a reference +to the stream. See flags() for an explanation of the expected +input format. + +

    TQTextStream & TQTextStream::operator>> ( unsigned int & i ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Reads an unsigned int i from the stream and returns a +reference to the stream. See flags() for an explanation of the +expected input format. + +

    TQTextStream & TQTextStream::operator>> ( signed long & i ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Reads a signed long int i from the stream and returns a +reference to the stream. See flags() for an explanation of the +expected input format. + +

    TQTextStream & TQTextStream::operator>> ( unsigned long & i ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Reads an unsigned long int i from the stream and returns a +reference to the stream. See flags() for an explanation of the +expected input format. + +

    TQTextStream & TQTextStream::operator>> ( float & f ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Reads a float f from the stream and returns a reference to +the stream. See flags() for an explanation of the expected input +format. + +

    TQTextStream & TQTextStream::operator>> ( double & f ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Reads a double f from the stream and returns a reference to +the stream. See flags() for an explanation of the expected input +format. + +

    TQTextStream & TQTextStream::operator>> ( char * s ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Reads a "word" from the stream into s and returns a reference +to the stream. +

    A word consists of characters for which isspace() returns FALSE. + +

    TQTextStream & TQTextStream::operator>> ( TQString & str ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Reads a "word" from the stream into str and returns a reference +to the stream. +

    A word consists of characters for which isspace() returns FALSE. + +

    TQTextStream & TQTextStream::operator>> ( TQCString & str ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Reads a "word" from the stream into str and returns a reference +to the stream. +

    A word consists of characters for which isspace() returns FALSE. + +

    int TQTextStream::precision () const +

    + +

    Returns the precision. The default value is 6. + +

    int TQTextStream::precision ( int p ) +

    + +

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Sets the precision to p. Returns the previous precision setting. + +

    TQString TQTextStream::read () +

    +Reads the entire stream from the current position, and returns a string +containing the text. +

    See also TQIODevice::readLine(). + +

    Examples: action/application.cpp, application/application.cpp, mdi/application.cpp, qdir/qdir.cpp, and qwerty/qwerty.cpp. +

    TQString TQTextStream::readLine () +

    +Reads a line from the stream and returns a string containing the +text. +

    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. +

    On EOF you will get a TQString that is null. On reading an empty +line the returned TQString is empty but not null. +

    See also TQIODevice::readLine(). + +

    Examples: addressbook/centralwidget.cpp, chart/element.cpp, and network/clientserver/server/server.cpp. +

    TQTextStream & TQTextStream::readRawBytes ( char * s, uint len ) +

    +Reads len bytes from the stream into s and returns a +reference to the stream. +

    The buffer s must be preallocated. +

    Note that no encoding is done by this function. +

    Warning: The behavior of this function is undefined unless the +stream's encoding is set to Unicode or Latin1. +

    See also TQIODevice::readBlock(). + +

    void TQTextStream::reset () +

    +Resets the text stream. +

      +
    • All flags are set to 0. +
    • The field width is set to 0. +
    • The fill character is set to ' ' (Space). +
    • The precision is set to 6. +
    +

    See also setf(), width(), fill(), and precision(). + +

    void TQTextStream::setCodec ( TQTextCodec * codec ) +

    +Sets the codec for this stream to codec. Will not try to +autodetect Unicode. +

    Note that this function should be called before any data is read +to/written from the stream. +

    See also setEncoding() and codec(). + +

    Example: qwerty/qwerty.cpp. +

    void TQTextStream::setDevice ( TQIODevice * iod ) +

    +Sets the IO device to iod. +

    See also device() and unsetDevice(). + +

    void TQTextStream::setEncoding ( Encoding e ) +

    +Sets the encoding of this stream to e, where e is one of the +following values: +
    +
    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 +Like Unicode, but does not write the byte order marker nor +does it auto-detect the byte order. Useful only when writing to +non-persistent storage used by a single process. +
    +

    Locale and all Unicode encodings, except RawUnicode, will look +at the first two bytes in an input stream to determine the byte +order. The initial byte order marker will be stripped off before +data is read. +

    Note that this function should be called before any data is read to +or written from the stream. +

    See also setCodec(). + +

    Examples: addressbook/centralwidget.cpp, network/httpd/httpd.cpp, and qwerty/qwerty.cpp. +

    int TQTextStream::setf ( int bits ) +

    + +

    Sets the stream flag bits bits. Returns the previous stream +flags. +

    Equivalent to flags( flags() | bits ). +

    See also unsetf(). + +

    int TQTextStream::setf ( int bits, int mask ) +

    + +

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Sets the stream flag bits bits with a bit mask mask. Returns +the previous stream flags. +

    Equivalent to flags( (flags() & ~mask) | (bits & mask) ). +

    See also unsetf(). + +

    void TQTextStream::skipWhiteSpace () +

    +Positions the read pointer at the first non-whitespace character. + +

    void TQTextStream::unsetDevice () +

    +Unsets the IO device. Equivalent to setDevice( 0 ). +

    See also device() and setDevice(). + +

    int TQTextStream::unsetf ( int bits ) +

    + +

    Clears the stream flag bits bits. Returns the previous stream +flags. +

    Equivalent to flags( flags() & ~mask ). +

    See also setf(). + +

    int TQTextStream::width () const +

    + +

    Returns the field width. The default value is 0. + +

    int TQTextStream::width ( int w ) +

    + +

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Sets the field width to w. Returns the previous field width. + +

    TQTextStream & TQTextStream::writeRawBytes ( const char * s, uint len ) +

    +Writes the len bytes from s to the stream and returns a +reference to the stream. +

    Note that no encoding is done by this function. +

    See also TQIODevice::writeBlock(). + + +


    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextview-h.html b/doc/html/tqtextview-h.html new file mode 100644 index 000000000..c0aac3279 --- /dev/null +++ b/doc/html/tqtextview-h.html @@ -0,0 +1,119 @@ + + + + + +tqtextview.h Include File + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    tqtextview.h

    + +

    This is the verbatim text of the tqtextview.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


    +
    +/****************************************************************************
    +** $Id: qt/tqtextview.h   3.3.8   edited Jan 11 14:39 $
    +**
    +** Definition of the TQTextView class
    +**
    +** Created : 990101
    +**
    +** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
    +**
    +** This file is part of the widgets module of the TQt GUI Toolkit.
    +**
    +** This file may be used under the terms of the GNU General Public
    +** License versions 2.0 or 3.0 as published by the Free Software
    +** Foundation and appearing in the file LICENSE.GPL included in the
    +** packaging of this file. Alternatively you may (at your option) use any
    +** later version of the GNU General Public License if such license has
    +** been publicly approved by Trolltech ASA (or its successors, if any)
    +** and the KDE Free TQt Foundation.
    +**
    +** Please review the following information to ensure GNU General
    +** Public Licensing requirements will be met:
    +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
    +** If you are unsure which license is appropriate for your use, please
    +** review the following information:
    +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
    +** or contact the sales department at sales@trolltech.com.
    +**
    +** This file may be used under the terms of the Q Public License as
    +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
    +** included in the packaging of this file.  Licensees holding valid TQt
    +** Commercial licenses may use this file in accordance with the TQt
    +** Commercial License Agreement provided with the Software.
    +**
    +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
    +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
    +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
    +** herein.
    +**
    +**********************************************************************/
    +
    +#ifndef TQTEXTVIEW_H
    +#define TQTEXTVIEW_H
    +
    +#ifndef QT_H
    +#include "tqtextedit.h"
    +#endif // QT_H
    +
    +#ifndef TQT_NO_TEXTVIEW
    +
    +class TQ_EXPORT TQTextView : public TQTextEdit
    +{
    +    TQ_OBJECT
    +    TQ_OVERRIDE( int undoDepth DESIGNABLE false SCRIPTABLE false )
    +    TQ_OVERRIDE( bool overwriteMode DESIGNABLE false SCRIPTABLE false )
    +    TQ_OVERRIDE( bool modified SCRIPTABLE false)
    +    TQ_OVERRIDE( bool readOnly DESIGNABLE false SCRIPTABLE false )
    +    TQ_OVERRIDE( bool undoRedoEnabled DESIGNABLE false SCRIPTABLE false )
    +
    +public:
    +    TQTextView( const TQString& text, const TQString& context = TQString::null,
    +	       TQWidget* parent=0, const char* name=0);
    +    TQTextView( TQWidget* parent=0, const char* name=0 );
    +
    +    virtual ~TQTextView();
    +
    +private:
    +#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
    +    TQTextView( const TQTextView & );
    +    TQTextView &operator=( const TQTextView & );
    +#endif
    +};
    +
    +#endif //TQT_NO_TEXTVIEW
    +#endif //TQTEXTVIEW_H
    +
    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextview-members.html b/doc/html/tqtextview-members.html new file mode 100644 index 000000000..cd6afef62 --- /dev/null +++ b/doc/html/tqtextview-members.html @@ -0,0 +1,543 @@ + + + + + +TQTextView Member List + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    Complete Member List for TQTextView

    + +

    This is the complete list of member functions for +TQTextView, including inherited members. + +

    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqtextview.html b/doc/html/tqtextview.html new file mode 100644 index 000000000..8997dc2e3 --- /dev/null +++ b/doc/html/tqtextview.html @@ -0,0 +1,81 @@ + + + + + +TQTextView Class + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    TQTextView Class Reference
    [obsolete]

    + +

    The TQTextView class provides a rich-text viewer. +More... +

    #include <tqtextview.h> +

    Inherits TQTextEdit. +

    List of all member functions. +

    Properties

    +
      +
    • bool modified - whether the text view's contents have been modified  (read only)
    • +
    • bool overwriteMode - whether new text overwrites or pushes aside existing text  (read only)
    • +
    • bool readOnly - whether the text view's contents are read only  (read only)
    • +
    • int undoDepth - the number of undoable steps  (read only)
    • +
    • bool undoRedoEnabled - whether undo and redo are enabled  (read only)
    • +
    +

    Detailed Description

    + +The TQTextView class provides a rich-text viewer. +

    This class is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

    This class wraps a read-only TQTextEdit. +Use a TQTextEdit instead, and call setReadOnly(TRUE) +to disable editing. + +


    Property Documentation

    +

    bool modified

    +

    This property holds whether the text view's contents have been modified. +

    +

    bool overwriteMode

    +

    This property holds whether new text overwrites or pushes aside existing text. +

    +

    bool readOnly

    +

    This property holds whether the text view's contents are read only. +

    +

    int undoDepth

    +

    This property holds the number of undoable steps. +

    +

    bool undoRedoEnabled

    +

    This property holds whether undo and redo are enabled. +

    +

    +


    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqwidget.html b/doc/html/tqwidget.html index 4da385844..291594fec 100644 --- a/doc/html/tqwidget.html +++ b/doc/html/tqwidget.html @@ -923,7 +923,7 @@ This event handler is called when a drag is in progress and the mouse enters this widget.

    See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application. -

    See also TQTextDrag, TQImageDrag, and TQDragEnterEvent. +

    See also TQTextDrag, TQImageDrag, and TQDragEnterEvent.

    Example: iconview/simple_dd/main.cpp.

    void TQWidget::dragLeaveEvent ( TQDragLeaveEvent * ) [virtual protected] @@ -932,7 +932,7 @@ This event handler is called when a drag is in progress and the mouse leaves this widget.

    See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application. -

    See also TQTextDrag, TQImageDrag, and TQDragLeaveEvent. +

    See also TQTextDrag, TQImageDrag, and TQDragLeaveEvent.

    void TQWidget::dragMoveEvent ( TQDragMoveEvent * ) [virtual protected]

    @@ -940,7 +940,7 @@ This event handler is called when a drag is in progress and the mouse enters this widget, and whenever it moves within the widget.

    See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application. -

    See also TQTextDrag, TQImageDrag, and TQDragMoveEvent. +

    See also TQTextDrag, TQImageDrag, and TQDragMoveEvent.

    void TQWidget::drawText ( int x, int y, const TQString & str )

    @@ -962,7 +962,7 @@ This event handler is called when the drag is dropped on this widget.

    See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application. -

    See also TQTextDrag, TQImageDrag, and TQDropEvent. +

    See also TQTextDrag, TQImageDrag, and TQDropEvent.

    Example: iconview/simple_dd/main.cpp.

    void TQWidget::enabledChange ( bool oldEnabled ) [virtual protected] @@ -1235,7 +1235,7 @@ Returns the preferred height for this widget, given the width w. The de preferred height does not depend on the width.

    Warning: Does not look at the widget's layout. -

    Reimplemented in TQMenuBar and TQTextEdit. +

    Reimplemented in TQMenuBar and TQTextEdit.

    void TQWidget::hide () [virtual slot]

    Hides the widget. @@ -1395,7 +1395,7 @@ presses Esc. Otherwise the event is ignored.

    See also keyReleaseEvent(), TQKeyEvent::ignore(), focusPolicy, focusInEvent(), focusOutEvent(), event(), and TQKeyEvent.

    Example: picture/picture.cpp. -

    Reimplemented in TQLineEdit and TQTextEdit. +

    Reimplemented in TQLineEdit and TQTextEdit.

    void TQWidget::keyReleaseEvent ( TQKeyEvent * e ) [virtual protected]

    This event handler, for event e, can be reimplemented in a @@ -2046,7 +2046,7 @@ See the "inputMethodEnabled" Enables key event compression, if compress is TRUE, and disables it if compress is FALSE.

    Key compression is off by default (except for TQLineEdit and -TQTextEdit), so widgets receive one key press event for each key +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 diff --git a/doc/html/tqxml-h.html b/doc/html/tqxml-h.html index f8aadfafb..c1d6c0e3d 100644 --- a/doc/html/tqxml-h.html +++ b/doc/html/tqxml-h.html @@ -78,7 +78,7 @@ body { background: #ffffff; color: black; } #define TQXML_H #ifndef QT_H -#include "ntqtextstream.h" +#include "tqtextstream.h" #include "ntqfile.h" #include "tqstring.h" #include "tqstringlist.h" diff --git a/doc/html/tqxmlinputsource.html b/doc/html/tqxmlinputsource.html index 5285e5939..bf0d34cee 100644 --- a/doc/html/tqxmlinputsource.html +++ b/doc/html/tqxmlinputsource.html @@ -108,7 +108,7 @@ source will contain no data.

    Constructs an input source and gets the data from the file file. If the file cannot be read the input source is empty. -

    TQXmlInputSource::TQXmlInputSource ( TQTextStream & stream ) +

    TQXmlInputSource::TQXmlInputSource ( TQTextStream & stream )

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.

    Constructs an input source and gets the data from the text stream stream. diff --git a/doc/html/tutorial2-03.html b/doc/html/tutorial2-03.html index 4cdcb4960..04cc3f1c9 100644 --- a/doc/html/tutorial2-03.html +++ b/doc/html/tutorial2-03.html @@ -153,8 +153,8 @@ index; (see Debugging).

    (Extracts from element.h.)

    -

        TQTextStream &operator<<( TQTextStream&, const Element& );
    -    TQTextStream &operator>>( TQTextStream&, Element& );
    +
        TQTextStream &operator<<( TQTextStream&, const Element& );
    +    TQTextStream &operator>>( TQTextStream&, Element& );
     

    To make our Element class more self-contained we provide overloads for the << and >> operators so that Elements may be written to @@ -168,9 +168,9 @@ filter the data using a scripting language.

        #include "element.h"
     
         #include <tqstringlist.h>
    -    #include <ntqtextstream.h>
    +    #include <tqtextstream.h>
     
    -

    Our implementation of the operators requires the inclusion of ntqtextstream.h and tqstringlist.h. +

    Our implementation of the operators requires the inclusion of tqtextstream.h and tqstringlist.h.

        const char FIELD_SEP = ':';
         const char PROPOINT_SEP = ';';
         const char XY_SEP = ',';
    @@ -190,7 +190,7 @@ label text. For example:
      
     

    There's no problem having whitespace and field separators in label text due to the way we read Element data. -

        TQTextStream &operator<<( TQTextStream &s, const Element &element )
    +

        TQTextStream &operator<<( TQTextStream &s, const Element &element )
         {
             s << element.value() << FIELD_SEP
               << element.valueColor().name() << FIELD_SEP
    @@ -210,9 +210,9 @@ text due to the way we read Element data.
     

    Writing elements is straight-forward. Each member is written followed by a field separator. The points are written as comma separated (XY_SEP) x, y pairs, each pair separated by the PROPOINT_SEP separator. The final field is the label followed by a newline. -

        TQTextStream &operator>>( TQTextStream &s, Element &element )
    +

        TQTextStream &operator>>( TQTextStream &s, Element &element )
         {
    -        TQString data = s.readLine();
    +        TQString data = s.readLine();
             element.setValue( Element::INVALID );
     
             int errors = 0;
    diff --git a/doc/html/tutorial2-07.html b/doc/html/tutorial2-07.html
    index b0cc1e314..3ff6dc9bb 100644
    --- a/doc/html/tutorial2-07.html
    +++ b/doc/html/tutorial2-07.html
    @@ -49,11 +49,11 @@ body { background: #ffffff; color: black; }
     
             init(); // Make sure we have colours
             m_filename = filename;
    -        TQTextStream ts( &file );
    +        TQTextStream ts( &file );
             Element element;
             int errors = 0;
             int i = 0;
    -        while ( !ts.eof() ) {
    +        while ( !ts.eof() ) {
                 ts >> element;
                 if ( element.isValid() )
                     m_elements[i++] = element;
    @@ -81,7 +81,7 @@ draw the chart and mark it as unchanged.
                                         arg( m_filename ), 2000 );
                 return;
             }
    -        TQTextStream ts( &file );
    +        TQTextStream ts( &file );
             for ( int i = 0; i < MAX_ELEMENTS; ++i )
                 if ( m_elements[i].isValid() )
                     ts << m_elements[i];
    diff --git a/doc/html/unicode.html b/doc/html/unicode.html
    index 5de9d2d46..075e04862 100644
    --- a/doc/html/unicode.html
    +++ b/doc/html/unicode.html
    @@ -63,7 +63,7 @@ update and
     

    In TQt, and in most applications that use TQt, most or all user-visible strings are stored using Unicode. TQt provides:

      -

    • Translation to/from legacy encodings for file I/O: see TQTextCodec and TQTextStream. +

    • Translation to/from legacy encodings for file I/O: see TQTextCodec and TQTextStream.
    • Translation from Input Methods and 8-bit keyboard input.
    • Translation to legacy character sets for on-screen display.
    • A string class, TQString, that stores Unicode characters, with @@ -76,7 +76,7 @@ even on Windows platforms that do not support it natively.

    To fully benefit from Unicode, we recommend using TQString for storing all user-visible strings, and performing all text file I/O using -TQTextStream. Use TQKeyEvent::text() for keyboard input in any custom +TQTextStream. Use TQKeyEvent::text() for keyboard input in any custom widgets you write; it does not make much difference for slow typists in Western Europe or North America, but for fast typists or people using special input methods using text() is beneficial. @@ -96,7 +96,7 @@ translation support, like this:

    tr() (simplifying somewhat) maps from const char * to a Unicode string, and uses installable TQTranslator objects to do the mapping. -

    TQt provides a number of built-in TQTextCodec classes, that is, +

    TQt provides a number of built-in TQTextCodec classes, that is, classes that know how to translate between Unicode and legacy encodings to support programs that must talk to other programs or read/write files in legacy file formats. diff --git a/doc/html/whatsthis b/doc/html/whatsthis index 24dcf0c30..370f55abc 100644 --- a/doc/html/whatsthis +++ b/doc/html/whatsthis @@ -9,7 +9,7 @@ Abstract base for Qt/Embedded keyboard driver plugins. | QKbdDriverPlugin Abstract base for Qt/Embedded mouse driver plugins. | QMouseDriverPlugin Abstract base for custom TQSqlDriver plugins. | TQSqlDriverPlugin Abstract base for custom QStyle plugins. | QStylePlugin -Abstract base for custom QTextCodec plugins. | QTextCodecPlugin +Abstract base for custom TQTextCodec plugins. | TQTextCodecPlugin Abstract base for custom TQWidget plugins. | TQWidgetPlugin Abstract base for custom image format plugins. | TQImageFormatPlugin Abstract base for fixed-size grids. | QGridView @@ -43,8 +43,8 @@ Array of bytes. | QByteArray Array of points. | QPointArray Asynchronous DNS lookups. | QDns Base class for QMenuBar and QPopupMenu. | QMenuData -Base class for implementing QTextEdit syntax highlighters. | QSyntaxHighlighter -Basic functions for reading and writing text using a TQIODevice. | QTextStream +Base class for implementing TQTextEdit syntax highlighters. | QSyntaxHighlighter +Basic functions for reading and writing text using a TQIODevice. | TQTextStream Blank space in a layout. | QSpacerItem Bridge between application objects and script code. | QAxScriptManager Browsing and editing of SQL tables and views. | TQSqlCursor @@ -72,9 +72,9 @@ Common operations for network protocols. | QNetworkOperation Common operations on URLs. | QUrlOperator Communication capabilities between several clients. | QCopChannel Const iterator for TQValueList. | TQValueListConstIterator -Convenience class for input streams. | QTextIStream -Convenience class for output streams. | QTextOStream -Conversion between text encodings. | QTextCodec +Convenience class for input streams. | TQTextIStream +Convenience class for output streams. | TQTextOStream +Conversion between text encodings. | TQTextCodec Conversion to and from EUC-JP character sets. | QEucJpCodec Conversion to and from EUC-KR character sets. | QEucKrCodec Conversion to and from JIS character sets. | QJisCodec @@ -118,7 +118,7 @@ Doubly-linked list of char*. | TQStrList Doubly-linked list of char* with case-insensitive comparison. | TQStrIList Drag and drop object for transferring colors. | QColorDrag Drag and drop object for transferring images. | TQImageDrag -Drag and drop object for transferring plain and Unicode text. | QTextDrag +Drag and drop object for transferring plain and Unicode text. | TQTextDrag Drag object for a list of URI references. | QUriDrag Ellipse or ellipse segment on a TQCanvas. | TQCanvasEllipse Encapsulates MIME-based data transfer. | QDragObject @@ -282,7 +282,7 @@ Platform-independent threads. | QThread Polygon on a TQCanvas. | TQCanvasPolygon Polygonal canvas item on a TQCanvas. | TQCanvasPolygonalItem Popup menu widget. | QPopupMenu -Powerful single-page rich text editor. | QTextEdit +Powerful single-page rich text editor. | TQTextEdit TQObject that is a web browser plugin. | QNPInstance TQObject that wraps a COM object. | QAxObject TQPtrList of TQObjects. | TQObjectList @@ -306,7 +306,7 @@ Represents one element in the DOM tree. | TQDomElement Represents text data in the parsed XML document. | TQDomText Request header information for HTTP. | QHttpRequestHeader Response header information for HTTP. | QHttpResponseHeader -Rich text browser with hypertext navigation. | QTextBrowser +Rich text browser with hypertext navigation. | TQTextBrowser Robust integer semaphore. | QSemaphore Rounded range control (like a speedometer or potentiometer). | QDial SGI/Irix look and feel. | QSGIStyle @@ -329,8 +329,8 @@ Splash screen that can be shown during application startup. | QSplashScreen Stack of tabbed widgets. | QTabDialog Stack of tabbed widgets. | QTabWidget Stack of widgets of which only the top widget is user-visible. | TQWidgetStack -State-based decoder. | QTextDecoder -State-based encoder. | QTextEncoder +State-based decoder. | TQTextDecoder +State-based encoder. | TQTextEncoder Stores information about URLs. | QUrlInfo Stores meta data about a property. | QMetaProperty Stores meta data associated with a SQL field. | TQSqlFieldInfo -- cgit v1.2.1