summaryrefslogtreecommitdiffstats
path: root/doc/html/distributor-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/distributor-example.html')
-rw-r--r--doc/html/distributor-example.html82
1 files changed, 41 insertions, 41 deletions
diff --git a/doc/html/distributor-example.html b/doc/html/distributor-example.html
index 79d095a4c..d8cd62a55 100644
--- a/doc/html/distributor-example.html
+++ b/doc/html/distributor-example.html
@@ -65,9 +65,9 @@ distributed with TQt.
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="qcursor-h.html">ntqcursor.h</a>&gt;
#include &lt;<a href="qeventloop-h.html">ntqeventloop.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="qfileinfo-h.html">ntqfileinfo.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="tqfileinfo-h.html">tqfileinfo.h</a>&gt;
#include &lt;<a href="qlineedit-h.html">ntqlineedit.h</a>&gt;
#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
#include &lt;<a href="qpushbutton-h.html">ntqpushbutton.h</a>&gt;
@@ -138,17 +138,17 @@ void Distributor::checkLibFilename( const <a href="tqstring.html">TQString</a> &
{
setNextEnabled( selectLibrary, FALSE );
- <a href="ntqfileinfo.html">TQFileInfo</a> fileinfo( filename );
-<a name="x2661"></a> if ( ! filename.<a href="tqstring.html#isEmpty">isEmpty</a>() &amp;&amp; fileinfo.<a href="ntqfileinfo.html#exists">exists</a>() &amp;&amp;
-<a name="x2665"></a><a name="x2663"></a> fileinfo.<a href="ntqfileinfo.html#isReadable">isReadable</a>() &amp;&amp; fileinfo.<a href="ntqfileinfo.html#isWritable">isWritable</a>() &amp;&amp;
-<a name="x2664"></a><a name="x2662"></a> fileinfo.<a href="ntqfileinfo.html#isFile">isFile</a>() &amp;&amp; !fileinfo.<a href="ntqfileinfo.html#isSymLink">isSymLink</a>() )
+ <a href="tqfileinfo.html">TQFileInfo</a> fileinfo( filename );
+<a name="x2661"></a> if ( ! filename.<a href="tqstring.html#isEmpty">isEmpty</a>() &amp;&amp; fileinfo.<a href="tqfileinfo.html#exists">exists</a>() &amp;&amp;
+<a name="x2665"></a><a name="x2663"></a> fileinfo.<a href="tqfileinfo.html#isReadable">isReadable</a>() &amp;&amp; fileinfo.<a href="tqfileinfo.html#isWritable">isWritable</a>() &amp;&amp;
+<a name="x2664"></a><a name="x2662"></a> fileinfo.<a href="tqfileinfo.html#isFile">isFile</a>() &amp;&amp; !fileinfo.<a href="tqfileinfo.html#isSymLink">isSymLink</a>() )
<a name="x2671"></a> timer-&gt;<a href="tqtimer.html#start">start</a>( 500, TRUE );
}
void Distributor::browseLibFilename()
{
<a href="tqstring.html">TQString</a> filename =
-<a name="x2660"></a> TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( <a href="tqstring.html#TQString-null">TQString::null</a>, TQString::null, this );
+<a name="x2660"></a> TQFileDialog::<a href="tqfiledialog.html#getOpenFileName">getOpenFileName</a>( <a href="tqstring.html#TQString-null">TQString::null</a>, TQString::null, this );
libFilename-&gt;setText( filename );
}
@@ -212,18 +212,18 @@ void Distributor::checkLibData()
uint completed = 0;
uint total_steps = sizeof(steps) / sizeof(step);
- <a href="ntqfile.html">TQFile</a> file( libFilename-&gt;text() );
-<a name="x2659"></a> if ( file.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_ReadOnly</a> ) ) {
+ <a href="tqfile.html">TQFile</a> file( libFilename-&gt;text() );
+<a name="x2659"></a> if ( file.<a href="tqfile.html#open">open</a>( <a href="tqfile.html#open">IO_ReadOnly</a> ) ) {
<a name="x2653"></a> TQApplication::<a href="ntqapplication.html#setOverrideCursor">setOverrideCursor</a>( WaitCursor );
// instead of reading in the entire file, do the search in chunks
char data[60000];
ulong offset = 0;
-<a name="x2655"></a> while ( ! file.<a href="ntqfile.html#atEnd">atEnd</a>() &amp;&amp; completed &lt; total_steps ) {
+<a name="x2655"></a> while ( ! file.<a href="tqfile.html#atEnd">atEnd</a>() &amp;&amp; completed &lt; total_steps ) {
<a name="x2651"></a> TQApplication::<a href="ntqapplication.html#eventLoop">eventLoop</a>()-&gt;processEvents( TQEventLoop::ExcludeUserInput );
-<a name="x2667"></a> ulong len = file.<a href="ntqiodevice.html#readBlock">readBlock</a>( data, sizeof(data) );
+<a name="x2667"></a> ulong len = file.<a href="tqiodevice.html#readBlock">readBlock</a>( data, sizeof(data) );
if ( len &lt; 267 ) {
// not enough room to make any modifications... stop
break;
@@ -240,8 +240,8 @@ void Distributor::checkLibData()
// path... move the file pointer back to just
// before the pattern and continue
offset += where - 11;
-<a name="x2666"></a> file.<a href="ntqiodevice.html#at">at</a>( offset );
- len = file.<a href="ntqiodevice.html#readBlock">readBlock</a>( data, sizeof(data) );
+<a name="x2666"></a> file.<a href="tqiodevice.html#at">at</a>( offset );
+ len = file.<a href="tqiodevice.html#readBlock">readBlock</a>( data, sizeof(data) );
--x; // retry the current step
continue;
}
@@ -255,10 +255,10 @@ void Distributor::checkLibData()
// move to the new read position
offset += len - 11;
- file.<a href="ntqiodevice.html#at">at</a>( offset );
+ file.<a href="tqiodevice.html#at">at</a>( offset );
}
-<a name="x2656"></a> file.<a href="ntqfile.html#close">close</a>();
+<a name="x2656"></a> file.<a href="tqfile.html#close">close</a>();
<a name="x2652"></a> TQApplication::<a href="ntqapplication.html#restoreOverrideCursor">restoreOverrideCursor</a>();
}
@@ -266,7 +266,7 @@ void Distributor::checkLibData()
if ( completed == total_steps ) {
setNextEnabled( selectLibrary, TRUE );
-<a name="x2657"></a> <a href="tqstring.html">TQString</a> prefix = TQFile::<a href="ntqfile.html#decodeName">decodeName</a>( steps[0].value );
+<a name="x2657"></a> <a href="tqstring.html">TQString</a> prefix = TQFile::<a href="tqfile.html#decodeName">decodeName</a>( steps[0].value );
prefixPath-&gt;setText( prefix );
<a href="tqstring.html">TQString</a> def_bin = prefix + TQString::fromLatin1( "/bin" );
@@ -276,12 +276,12 @@ void Distributor::checkLibData()
<a href="tqstring.html">TQString</a> def_plg = prefix + TQString::fromLatin1( "/plugins" );
<a href="tqstring.html">TQString</a> def_dat = prefix;
- <a href="tqstring.html">TQString</a> bin = TQFile::<a href="ntqfile.html#decodeName">decodeName</a>( steps[1].value );
- <a href="tqstring.html">TQString</a> doc = TQFile::<a href="ntqfile.html#decodeName">decodeName</a>( steps[2].value );
- <a href="tqstring.html">TQString</a> hdr = TQFile::<a href="ntqfile.html#decodeName">decodeName</a>( steps[3].value );
- <a href="tqstring.html">TQString</a> lib = TQFile::<a href="ntqfile.html#decodeName">decodeName</a>( steps[4].value );
- <a href="tqstring.html">TQString</a> plg = TQFile::<a href="ntqfile.html#decodeName">decodeName</a>( steps[5].value );
- <a href="tqstring.html">TQString</a> dat = TQFile::<a href="ntqfile.html#decodeName">decodeName</a>( steps[6].value );
+ <a href="tqstring.html">TQString</a> bin = TQFile::<a href="tqfile.html#decodeName">decodeName</a>( steps[1].value );
+ <a href="tqstring.html">TQString</a> doc = TQFile::<a href="tqfile.html#decodeName">decodeName</a>( steps[2].value );
+ <a href="tqstring.html">TQString</a> hdr = TQFile::<a href="tqfile.html#decodeName">decodeName</a>( steps[3].value );
+ <a href="tqstring.html">TQString</a> lib = TQFile::<a href="tqfile.html#decodeName">decodeName</a>( steps[4].value );
+ <a href="tqstring.html">TQString</a> plg = TQFile::<a href="tqfile.html#decodeName">decodeName</a>( steps[5].value );
+ <a href="tqstring.html">TQString</a> dat = TQFile::<a href="tqfile.html#decodeName">decodeName</a>( steps[6].value );
autoSet-&gt;setChecked( def_bin == bin &amp;&amp;
def_doc == doc &amp;&amp;
@@ -316,7 +316,7 @@ void Distributor::checkInstallationPrefix( const <a href="tqstring.html">TQStrin
void Distributor::browseInstallationPrefix()
{
<a href="tqstring.html">TQString</a> prefix =
- TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, TQString::null, this );
+ TQFileDialog::<a href="tqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, TQString::null, this );
prefixPath-&gt;setText( prefix );
}
@@ -335,48 +335,48 @@ void Distributor::accept()
} steps[7];
steps[0].key = "qt_nstpath=";
-<a name="x2658"></a> steps[0].value = TQFile::<a href="ntqfile.html#encodeName">encodeName</a>( prefixPath-&gt;text() );
+<a name="x2658"></a> steps[0].value = TQFile::<a href="tqfile.html#encodeName">encodeName</a>( prefixPath-&gt;text() );
steps[0].done = FALSE;
steps[1].key = "qt_binpath=";
- steps[1].value = TQFile::<a href="ntqfile.html#encodeName">encodeName</a>( binPath-&gt;text() );
+ steps[1].value = TQFile::<a href="tqfile.html#encodeName">encodeName</a>( binPath-&gt;text() );
steps[1].done = FALSE;
steps[2].key = "qt_docpath=";
- steps[2].value = TQFile::<a href="ntqfile.html#encodeName">encodeName</a>( docPath-&gt;text() );
+ steps[2].value = TQFile::<a href="tqfile.html#encodeName">encodeName</a>( docPath-&gt;text() );
steps[2].done = FALSE;
steps[3].key = "qt_hdrpath=";
- steps[3].value = TQFile::<a href="ntqfile.html#encodeName">encodeName</a>( hdrPath-&gt;text() );
+ steps[3].value = TQFile::<a href="tqfile.html#encodeName">encodeName</a>( hdrPath-&gt;text() );
steps[3].done = FALSE;
steps[4].key = "qt_libpath=";
- steps[4].value = TQFile::<a href="ntqfile.html#encodeName">encodeName</a>( libPath-&gt;text() );
+ steps[4].value = TQFile::<a href="tqfile.html#encodeName">encodeName</a>( libPath-&gt;text() );
steps[4].done = FALSE;
steps[5].key = "qt_plgpath=";
- steps[5].value = TQFile::<a href="ntqfile.html#encodeName">encodeName</a>( plgPath-&gt;text() );
+ steps[5].value = TQFile::<a href="tqfile.html#encodeName">encodeName</a>( plgPath-&gt;text() );
steps[5].done = FALSE;
steps[6].key = "qt_datpath=";
- steps[6].value = TQFile::<a href="ntqfile.html#encodeName">encodeName</a>( datPath-&gt;text() );
+ steps[6].value = TQFile::<a href="tqfile.html#encodeName">encodeName</a>( datPath-&gt;text() );
steps[6].done = FALSE;
uint completed = 0;
uint total_steps = sizeof(steps) / sizeof(step);
- <a href="ntqfile.html">TQFile</a> file( libFilename-&gt;text() );
- if ( file.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_ReadWrite</a> ) ) {
+ <a href="tqfile.html">TQFile</a> file( libFilename-&gt;text() );
+ if ( file.<a href="tqfile.html#open">open</a>( <a href="tqfile.html#open">IO_ReadWrite</a> ) ) {
TQApplication::<a href="ntqapplication.html#setOverrideCursor">setOverrideCursor</a>( WaitCursor );
// instead of reading in the entire file, do the search in chunks
char data[60000];
ulong offset = 0;
- while ( ! file.<a href="ntqfile.html#atEnd">atEnd</a>() &amp;&amp; completed &lt; total_steps ) {
+ while ( ! file.<a href="tqfile.html#atEnd">atEnd</a>() &amp;&amp; completed &lt; total_steps ) {
TQApplication::<a href="ntqapplication.html#eventLoop">eventLoop</a>()-&gt;processEvents( TQEventLoop::ExcludeUserInput );
- ulong len = file.<a href="ntqiodevice.html#readBlock">readBlock</a>( data, sizeof(data) );
+ ulong len = file.<a href="tqiodevice.html#readBlock">readBlock</a>( data, sizeof(data) );
if ( len &lt; 267 ) {
// not enough room to make any modifications... stop
break;
@@ -394,8 +394,8 @@ void Distributor::accept()
// path... move the file pointer back to just
// before the pattern and continue
offset += where - 11;
- file.<a href="ntqiodevice.html#at">at</a>( offset );
- len = file.<a href="ntqiodevice.html#readBlock">readBlock</a>( data, sizeof(data) );
+ file.<a href="tqiodevice.html#at">at</a>( offset );
+ len = file.<a href="tqiodevice.html#readBlock">readBlock</a>( data, sizeof(data) );
--x; // retry the current step
continue;
}
@@ -410,16 +410,16 @@ void Distributor::accept()
if ( completed != completed_save ) {
// something changed... move file pointer back to
// where the data was read and write the new data
- file.<a href="ntqiodevice.html#at">at</a>( offset );
-<a name="x2668"></a> file.<a href="ntqiodevice.html#writeBlock">writeBlock</a>( data, len );
+ file.<a href="tqiodevice.html#at">at</a>( offset );
+<a name="x2668"></a> file.<a href="tqiodevice.html#writeBlock">writeBlock</a>( data, len );
}
// move to the new read position
offset += len - 11;
- file.<a href="ntqiodevice.html#at">at</a>( offset );
+ file.<a href="tqiodevice.html#at">at</a>( offset );
}
- file.<a href="ntqfile.html#close">close</a>();
+ file.<a href="tqfile.html#close">close</a>();
TQApplication::<a href="ntqapplication.html#restoreOverrideCursor">restoreOverrideCursor</a>();
}