diff options
Diffstat (limited to 'doc/html/distributor-example.html')
-rw-r--r-- | doc/html/distributor-example.html | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/doc/html/distributor-example.html b/doc/html/distributor-example.html index 09b89cd1e..82d0ac511 100644 --- a/doc/html/distributor-example.html +++ b/doc/html/distributor-example.html @@ -78,29 +78,29 @@ void Distributor::init() timer = new <a href="tqtimer.html">TQTimer</a>( this ); <a name="x2672"></a> connect( timer, TQ_SIGNAL(<a href="tqtimer.html#timeout">timeout</a>()), TQ_SLOT(checkLibData()) ); - cancelButton()->setAutoDefault( FALSE ); - backButton()->setAutoDefault( FALSE ); + cancelButton()->setAutoDefault( false ); + backButton()->setAutoDefault( false ); - setNextEnabled( selectLibrary, FALSE ); + setNextEnabled( selectLibrary, false ); - setHelpEnabled( selectLibrary, FALSE ); - setHelpEnabled( modifyPaths, FALSE ); - setHelpEnabled( verifyMods, FALSE ); + setHelpEnabled( selectLibrary, false ); + setHelpEnabled( modifyPaths, false ); + setHelpEnabled( verifyMods, false ); - setFinishEnabled( verifyMods, TRUE ); + setFinishEnabled( verifyMods, true ); } void Distributor::showPage( <a href="tqwidget.html">TQWidget</a> *page ) { if ( page == selectLibrary ) { - nextButton()->setDefault( TRUE ); + nextButton()->setDefault( true ); libFilename->setFocus(); } else if ( page == modifyPaths ) { - nextButton()->setDefault( TRUE ); + nextButton()->setDefault( true ); prefixPath->selectAll(); prefixPath->setFocus(); } else if ( page == verifyMods ) { - finishButton()->setDefault( TRUE ); + finishButton()->setDefault( true ); finishButton()->setFocus(); <a href="tqstring.html">TQString</a> labeltext = @@ -135,13 +135,13 @@ void Distributor::showPage( <a href="tqwidget.html">TQWidget</a> *page ) void Distributor::checkLibFilename( const <a href="tqstring.html">TQString</a> &filename ) { - setNextEnabled( selectLibrary, FALSE ); + setNextEnabled( selectLibrary, false ); <a href="tqfileinfo.html">TQFileInfo</a> fileinfo( filename ); <a name="x2661"></a> if ( ! filename.<a href="tqstring.html#isEmpty">isEmpty</a>() && fileinfo.<a href="tqfileinfo.html#exists">exists</a>() && <a name="x2665"></a><a name="x2663"></a> fileinfo.<a href="tqfileinfo.html#isReadable">isReadable</a>() && fileinfo.<a href="tqfileinfo.html#isWritable">isWritable</a>() && <a name="x2664"></a><a name="x2662"></a> fileinfo.<a href="tqfileinfo.html#isFile">isFile</a>() && !fileinfo.<a href="tqfileinfo.html#isSymLink">isSymLink</a>() ) -<a name="x2671"></a> timer-><a href="tqtimer.html#start">start</a>( 500, TRUE ); +<a name="x2671"></a> timer-><a href="tqtimer.html#start">start</a>( 500, true ); } void Distributor::browseLibFilename() @@ -188,25 +188,25 @@ void Distributor::checkLibData() } steps[7]; steps[0].key = "qt_nstpath="; - steps[0].done = FALSE; + steps[0].done = false; steps[1].key = "qt_binpath="; - steps[1].done = FALSE; + steps[1].done = false; steps[2].key = "qt_docpath="; - steps[2].done = FALSE; + steps[2].done = false; steps[3].key = "qt_hdrpath="; - steps[3].done = FALSE; + steps[3].done = false; steps[4].key = "qt_libpath="; - steps[4].done = FALSE; + steps[4].done = false; steps[5].key = "qt_plgpath="; - steps[5].done = FALSE; + steps[5].done = false; steps[6].key = "qt_datpath="; - steps[6].done = FALSE; + steps[6].done = false; uint completed = 0; uint total_steps = sizeof(steps) / sizeof(step); @@ -246,7 +246,7 @@ void Distributor::checkLibData() } steps[x].value = s; - steps[x].done = TRUE; + steps[x].done = true; ++completed; } @@ -263,7 +263,7 @@ void Distributor::checkLibData() } if ( completed == total_steps ) { - setNextEnabled( selectLibrary, TRUE ); + setNextEnabled( selectLibrary, true ); <a name="x2657"></a> <a href="tqstring.html">TQString</a> prefix = TQFile::<a href="tqfile.html#decodeName">decodeName</a>( steps[0].value ); prefixPath->setText( prefix ); @@ -335,31 +335,31 @@ void Distributor::accept() steps[0].key = "qt_nstpath="; <a name="x2658"></a> steps[0].value = TQFile::<a href="tqfile.html#encodeName">encodeName</a>( prefixPath->text() ); - steps[0].done = FALSE; + steps[0].done = false; steps[1].key = "qt_binpath="; steps[1].value = TQFile::<a href="tqfile.html#encodeName">encodeName</a>( binPath->text() ); - steps[1].done = FALSE; + steps[1].done = false; steps[2].key = "qt_docpath="; steps[2].value = TQFile::<a href="tqfile.html#encodeName">encodeName</a>( docPath->text() ); - steps[2].done = FALSE; + steps[2].done = false; steps[3].key = "qt_hdrpath="; steps[3].value = TQFile::<a href="tqfile.html#encodeName">encodeName</a>( hdrPath->text() ); - steps[3].done = FALSE; + steps[3].done = false; steps[4].key = "qt_libpath="; steps[4].value = TQFile::<a href="tqfile.html#encodeName">encodeName</a>( libPath->text() ); - steps[4].done = FALSE; + steps[4].done = false; steps[5].key = "qt_plgpath="; steps[5].value = TQFile::<a href="tqfile.html#encodeName">encodeName</a>( plgPath->text() ); - steps[5].done = FALSE; + steps[5].done = false; steps[6].key = "qt_datpath="; steps[6].value = TQFile::<a href="tqfile.html#encodeName">encodeName</a>( datPath->text() ); - steps[6].done = FALSE; + steps[6].done = false; uint completed = 0; uint total_steps = sizeof(steps) / sizeof(step); @@ -400,7 +400,7 @@ void Distributor::accept() } <a href="tqcstring.html#qstrcpy">qstrcpy</a>( s, steps[x].value ); - steps[x].done = TRUE; + steps[x].done = true; ++completed; } |