summaryrefslogtreecommitdiffstats
path: root/doc/html/qwerty-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-08 12:56:43 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-08 12:56:43 +0900
commit0cf411b09cf5d8970b873a338a69eae98d5ce5d8 (patch)
tree107cf55759cc3138bb1e0035b479bcd92127403a /doc/html/qwerty-example.html
parente6077c30d14e9d662e8843c554db86c0d366d0b6 (diff)
downloadtqt3-0cf411b09cf5d8970b873a338a69eae98d5ce5d8.tar.gz
tqt3-0cf411b09cf5d8970b873a338a69eae98d5ce5d8.zip
Rename text nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/qwerty-example.html')
-rw-r--r--doc/html/qwerty-example.html52
1 files changed, 26 insertions, 26 deletions
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 &lt;<a href="qfile-h.html">ntqfile.h</a>&gt;
#include &lt;<a href="qfiledialog-h.html">ntqfiledialog.h</a>&gt;
#include &lt;<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>&gt;
-#include &lt;<a href="qtextstream-h.html">ntqtextstream.h</a>&gt;
+#include &lt;<a href="tqtextstream-h.html">tqtextstream.h</a>&gt;
#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
#include &lt;<a href="qpaintdevicemetrics-h.html">ntqpaintdevicemetrics.h</a>&gt;
#include &lt;<a href="tqptrlist-h.html">tqptrlist.h</a>&gt;
#include &lt;<a href="qfontdialog-h.html">ntqfontdialog.h</a>&gt;
-#include &lt;<a href="qtextcodec-h.html">ntqtextcodec.h</a>&gt;
+#include &lt;<a href="tqtextcodec-h.html">tqtextcodec.h</a>&gt;
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 <a href="ntqmultilineedit.html">TQMultiLineEdit</a>( this, "editor" );
-<a name="x400"></a> <a href="tqobject.html#connect">connect</a>( e, TQ_SIGNAL( <a href="ntqtextedit.html#textChanged">textChanged</a>() ), this, TQ_SLOT( textChanged() ) );
+<a name="x400"></a> <a href="tqobject.html#connect">connect</a>( e, TQ_SIGNAL( <a href="tqtextedit.html#textChanged">textChanged</a>() ), 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;
-<a name="x396"></a><a name="x368"></a> <a href="ntqfont.html">TQFont</a> f = TQFontDialog::<a href="ntqfontdialog.html#getFont">getFont</a>( &amp;ok, e-&gt;<a href="ntqtextedit.html#font">font</a>() );
+<a name="x396"></a><a name="x368"></a> <a href="ntqfont.html">TQFont</a> f = TQFontDialog::<a href="ntqfontdialog.html#getFont">getFont</a>( &amp;ok, e-&gt;<a href="tqtextedit.html#font">font</a>() );
if ( ok ) {
e-&gt;<a href="tqwidget.html#setFont">setFont</a>( f );
}
@@ -206,16 +206,16 @@ void <a name="f236"></a>Editor::rebuildCodecList()
{
delete codecList;
codecList = new <a href="tqptrlist.html">TQPtrList</a>&lt;TQTextCodec&gt;;
- <a href="ntqtextcodec.html">TQTextCodec</a> *codec;
+ <a href="tqtextcodec.html">TQTextCodec</a> *codec;
int i;
-<a name="x392"></a> for (i = 0; (codec = TQTextCodec::<a href="ntqtextcodec.html#codecForIndex">codecForIndex</a>(i)); i++)
+<a name="x392"></a> for (i = 0; (codec = TQTextCodec::<a href="tqtextcodec.html#codecForIndex">codecForIndex</a>(i)); i++)
<a name="x387"></a> codecList-&gt;<a href="tqptrlist.html#append">append</a>( codec );
<a name="x389"></a> int n = codecList-&gt;<a href="tqptrlist.html#count">count</a>();
for (int pm=0; pm&lt;2; pm++) {
<a href="ntqpopupmenu.html">TQPopupMenu</a>* menu = pm ? open_as : save_as;
<a name="x370"></a> menu-&gt;<a href="ntqmenudata.html#clear">clear</a>();
<a href="tqstring.html">TQString</a> local = "Local (";
-<a name="x393"></a> local += TQTextCodec::<a href="ntqtextcodec.html#codecForLocale">codecForLocale</a>()-&gt;name();
+<a name="x393"></a> local += TQTextCodec::<a href="tqtextcodec.html#codecForLocale">codecForLocale</a>()-&gt;name();
local += ")";
menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( local, Local );
menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Unicode", Uni );
@@ -258,28 +258,28 @@ void Editor::load( const <a href="tqstring.html">TQString</a>&amp; fileName, int
<a name="x376"></a> e-&gt;<a href="ntqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( FALSE );
- <a href="ntqtextstream.html">TQTextStream</a> t(&amp;f);
+ <a href="tqtextstream.html">TQTextStream</a> t(&amp;f);
if ( code &gt;= Codec )
-<a name="x402"></a> t.<a href="ntqtextstream.html#setCodec">setCodec</a>( codecList-&gt;<a href="tqptrlist.html#at">at</a>(code-Codec) );
+<a name="x402"></a> t.<a href="tqtextstream.html#setCodec">setCodec</a>( codecList-&gt;<a href="tqptrlist.html#at">at</a>(code-Codec) );
else if ( code == Uni )
-<a name="x403"></a> t.<a href="ntqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::Unicode );
+<a name="x403"></a> t.<a href="tqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::Unicode );
else if ( code == MBug )
- t.<a href="ntqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::UnicodeReverse );
+ t.<a href="tqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::UnicodeReverse );
else if ( code == Lat1 )
- t.<a href="ntqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::Latin1 );
+ t.<a href="tqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::Latin1 );
else if ( code == Guess ) {
<a href="ntqfile.html">TQFile</a> f(fileName);
f.<a href="ntqfile.html#open">open</a>(IO_ReadOnly);
char buffer[256];
int l = 256;
<a name="x364"></a> l=f.<a href="ntqiodevice.html#readBlock">readBlock</a>(buffer,l);
-<a name="x391"></a> <a href="ntqtextcodec.html">TQTextCodec</a>* codec = TQTextCodec::<a href="ntqtextcodec.html#codecForContent">codecForContent</a>(buffer, l);
+<a name="x391"></a> <a href="tqtextcodec.html">TQTextCodec</a>* codec = TQTextCodec::<a href="tqtextcodec.html#codecForContent">codecForContent</a>(buffer, l);
if ( codec ) {
-<a name="x395"></a><a name="x373"></a> TQMessageBox::<a href="ntqmessagebox.html#information">information</a>(this,"Encoding",TQString("Codec: ")+codec-&gt;<a href="ntqtextcodec.html#name">name</a>());
- t.<a href="ntqtextstream.html#setCodec">setCodec</a>( codec );
+<a name="x395"></a><a name="x373"></a> TQMessageBox::<a href="ntqmessagebox.html#information">information</a>(this,"Encoding",TQString("Codec: ")+codec-&gt;<a href="tqtextcodec.html#name">name</a>());
+ t.<a href="tqtextstream.html#setCodec">setCodec</a>( codec );
}
}
-<a name="x401"></a><a name="x398"></a> e-&gt;<a href="ntqtextedit.html#setText">setText</a>( t.<a href="ntqtextstream.html#read">read</a>() );
+<a name="x401"></a><a name="x398"></a> e-&gt;<a href="tqtextedit.html#setText">setText</a>( t.<a href="tqtextstream.html#read">read</a>() );
<a name="x362"></a> f.<a href="ntqfile.html#close">close</a>();
e-&gt;<a href="ntqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( TRUE );
@@ -327,7 +327,7 @@ void <a name="f242"></a>Editor::addEncoding()
if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) {
<a href="ntqfile.html">TQFile</a> f(fn);
if (f.<a href="ntqfile.html#open">open</a>(IO_ReadOnly)) {
-<a name="x394"></a> if (TQTextCodec::<a href="ntqtextcodec.html#loadCharmap">loadCharmap</a>(&amp;f)) {
+<a name="x394"></a> if (TQTextCodec::<a href="tqtextcodec.html#loadCharmap">loadCharmap</a>(&amp;f)) {
rebuildCodecList();
} else {
<a name="x374"></a> TQMessageBox::<a href="ntqmessagebox.html#warning">warning</a>(0,"Charmap error",
@@ -358,16 +358,16 @@ bool <a name="f243"></a>Editor::saveAs( const <a href="tqstring.html">TQString</
+fileName);
return FALSE;
}
- <a href="ntqtextstream.html">TQTextStream</a> t(&amp;f);
+ <a href="tqtextstream.html">TQTextStream</a> t(&amp;f);
if ( code &gt;= Codec )
- t.<a href="ntqtextstream.html#setCodec">setCodec</a>( codecList-&gt;<a href="tqptrlist.html#at">at</a>(code-Codec) );
+ t.<a href="tqtextstream.html#setCodec">setCodec</a>( codecList-&gt;<a href="tqptrlist.html#at">at</a>(code-Codec) );
else if ( code == Uni )
- t.<a href="ntqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::Unicode );
+ t.<a href="tqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::Unicode );
else if ( code == MBug )
- t.<a href="ntqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::UnicodeReverse );
+ t.<a href="tqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::UnicodeReverse );
else if ( code == Lat1 )
- t.<a href="ntqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::Latin1 );
-<a name="x399"></a> t &lt;&lt; e-&gt;<a href="ntqtextedit.html#text">text</a>();
+ t.<a href="tqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::Latin1 );
+<a name="x399"></a> t &lt;&lt; e-&gt;<a href="tqtextedit.html#text">text</a>();
f.<a href="ntqfile.html#close">close</a>();
<a href="tqwidget.html#setCaption">setCaption</a>( fileName );
changed = FALSE;
@@ -381,7 +381,7 @@ void <a name="f244"></a>Editor::print()
printer.setFullPage(TRUE); // we'll set our own margins
<a href="ntqpainter.html">TQPainter</a> p;
p.<a href="ntqpainter.html#begin">begin</a>( &amp;printer ); // paint on printer
-<a name="x385"></a> p.<a href="ntqpainter.html#setFont">setFont</a>( e-&gt;<a href="ntqtextedit.html#font">font</a>() );
+<a name="x385"></a> p.<a href="ntqpainter.html#setFont">setFont</a>( e-&gt;<a href="tqtextedit.html#font">font</a>() );
<a name="x384"></a> <a href="ntqfontmetrics.html">TQFontMetrics</a> fm = p.<a href="ntqpainter.html#fontMetrics">fontMetrics</a>();
<a href="ntqpaintdevicemetrics.html">TQPaintDeviceMetrics</a> metrics( &amp;printer ); // need width/height
// of printer surface
@@ -441,12 +441,12 @@ void Editor::<a href="tqwidget.html#resizeEvent">resizeEvent</a>( <a href="qresi
void <a name="f245"></a>Editor::toUpper()
{
- e-&gt;<a href="ntqtextedit.html#setText">setText</a>(e-&gt;<a href="ntqtextedit.html#text">text</a>().upper());
+ e-&gt;<a href="tqtextedit.html#setText">setText</a>(e-&gt;<a href="tqtextedit.html#text">text</a>().upper());
}
void <a name="f246"></a>Editor::toLower()
{
- e-&gt;<a href="ntqtextedit.html#setText">setText</a>(e-&gt;<a href="ntqtextedit.html#text">text</a>().lower());
+ e-&gt;<a href="tqtextedit.html#setText">setText</a>(e-&gt;<a href="tqtextedit.html#text">text</a>().lower());
}
void <a name="f247"></a>Editor::textChanged()