summaryrefslogtreecommitdiffstats
path: root/doc/html/qwerty-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/qwerty-example.html')
-rw-r--r--doc/html/qwerty-example.html36
1 files changed, 18 insertions, 18 deletions
diff --git a/doc/html/qwerty-example.html b/doc/html/qwerty-example.html
index be9a4dbda..5f8a887a7 100644
--- a/doc/html/qwerty-example.html
+++ b/doc/html/qwerty-example.html
@@ -110,8 +110,8 @@ private:
#include "qwerty.h"
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
-#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="tqfile-h.html">tqfile.h</a>&gt;
+#include &lt;<a href="tqfiledialog-h.html">tqfiledialog.h</a>&gt;
#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.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;
@@ -244,7 +244,7 @@ void <a name="f237"></a>Editor::newDoc()
void <a name="f238"></a>Editor::load()
{
#ifndef TQT_NO_FILEDIALOG
-<a name="x365"></a> <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( <a href="tqstring.html#TQString-null">TQString::null</a>, TQString::null, this );
+<a name="x365"></a> <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="tqfiledialog.html#getOpenFileName">getOpenFileName</a>( <a href="tqstring.html#TQString-null">TQString::null</a>, TQString::null, this );
<a name="x390"></a> if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() )
load( fn, -1 );
#endif
@@ -252,8 +252,8 @@ void <a name="f238"></a>Editor::load()
void Editor::load( const <a href="tqstring.html">TQString</a>&amp; fileName, int code )
{
- <a href="ntqfile.html">TQFile</a> f( fileName );
-<a name="x363"></a> if ( !f.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_ReadOnly</a> ) )
+ <a href="tqfile.html">TQFile</a> f( fileName );
+<a name="x363"></a> if ( !f.<a href="tqfile.html#open">open</a>( <a href="tqfile.html#open">IO_ReadOnly</a> ) )
return;
<a name="x376"></a> e-&gt;<a href="ntqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( FALSE );
@@ -268,11 +268,11 @@ void Editor::load( const <a href="tqstring.html">TQString</a>&amp; fileName, int
else if ( code == Lat1 )
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);
+ <a href="tqfile.html">TQFile</a> f(fileName);
+ f.<a href="tqfile.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="x364"></a> l=f.<a href="tqiodevice.html#readBlock">readBlock</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="tqtextcodec.html#name">name</a>());
@@ -280,7 +280,7 @@ void Editor::load( const <a href="tqstring.html">TQString</a>&amp; fileName, int
}
}
<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>();
+<a name="x362"></a> f.<a href="tqfile.html#close">close</a>();
e-&gt;<a href="ntqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( TRUE );
<a name="x407"></a> e-&gt;<a href="tqwidget.html#repaint">repaint</a>();
@@ -293,7 +293,7 @@ void <a name="f239"></a>Editor::openAsEncoding( int code )
{
#ifndef TQT_NO_FILEDIALOG
//storing filename (proper save) is left as an exercise...
- <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, TQString::null, this );
+ <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="tqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, TQString::null, this );
if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() )
(void) load( fn, code );
#endif
@@ -303,7 +303,7 @@ bool <a name="f240"></a>Editor::save()
{
#ifndef TQT_NO_FILEDIALOG
//storing filename (proper save) is left as an exercise...
-<a name="x366"></a> <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this );
+<a name="x366"></a> <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="tqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this );
if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() )
return saveAs( fn );
return FALSE;
@@ -314,7 +314,7 @@ void <a name="f241"></a>Editor::saveAsEncoding( int code )
{
#ifndef TQT_NO_FILEDIALOG
//storing filename (proper save) is left as an exercise...
- <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this );
+ <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="tqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this );
if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() )
(void) saveAs( fn, code );
#endif
@@ -323,10 +323,10 @@ void <a name="f241"></a>Editor::saveAsEncoding( int code )
void <a name="f242"></a>Editor::addEncoding()
{
#ifndef TQT_NO_FILEDIALOG
- <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, "*.map", this );
+ <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="tqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, "*.map", this );
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 href="tqfile.html">TQFile</a> f(fn);
+ if (f.<a href="tqfile.html#open">open</a>(IO_ReadOnly)) {
<a name="x394"></a> if (TQTextCodec::<a href="tqtextcodec.html#loadCharmap">loadCharmap</a>(&amp;f)) {
rebuildCodecList();
} else {
@@ -351,8 +351,8 @@ void <a name="f242"></a>Editor::addEncoding()
bool <a name="f243"></a>Editor::saveAs( const <a href="tqstring.html">TQString</a>&amp; fileName, int code )
{
- <a href="ntqfile.html">TQFile</a> f( fileName );
- if ( no_writing || !f.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_WriteOnly</a> ) ) {
+ <a href="tqfile.html">TQFile</a> f( fileName );
+ if ( no_writing || !f.<a href="tqfile.html#open">open</a>( <a href="tqfile.html#open">IO_WriteOnly</a> ) ) {
TQMessageBox::<a href="ntqmessagebox.html#warning">warning</a>(this,"I/O Error",
TQString("The file could not be opened.\n\n")
+fileName);
@@ -368,7 +368,7 @@ bool <a name="f243"></a>Editor::saveAs( const <a href="tqstring.html">TQString</
else if ( code == Lat1 )
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>();
+ f.<a href="tqfile.html#close">close</a>();
<a href="tqwidget.html#setCaption">setCaption</a>( fileName );
changed = FALSE;
return TRUE;