diff options
Diffstat (limited to 'doc/html/process-example.html')
-rw-r--r-- | doc/html/process-example.html | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/doc/html/process-example.html b/doc/html/process-example.html index 565eab304..8949c674a 100644 --- a/doc/html/process-example.html +++ b/doc/html/process-example.html @@ -49,17 +49,17 @@ output of the command. ** *****************************************************************************/ -#include <<a href="qobject-h.html">qobject.h</a>> -#include <<a href="qprocess-h.html">qprocess.h</a>> -#include <<a href="qvbox-h.html">qvbox.h</a>> -#include <<a href="qtextview-h.html">qtextview.h</a>> -#include <<a href="qpushbutton-h.html">qpushbutton.h</a>> -#include <<a href="qapplication-h.html">qapplication.h</a>> -#include <<a href="qmessagebox-h.html">qmessagebox.h</a>> +#include <<a href="qobject-h.html">ntqobject.h</a>> +#include <<a href="qprocess-h.html">ntqprocess.h</a>> +#include <<a href="qvbox-h.html">ntqvbox.h</a>> +#include <<a href="qtextview-h.html">ntqtextview.h</a>> +#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> #include <stdlib.h> -class UicManager : public <a href="qvbox.html">TQVBox</a> +class UicManager : public <a href="ntqvbox.html">TQVBox</a> { <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> @@ -72,42 +72,42 @@ public slots: void scrollToTop(); private: - <a href="qprocess.html">TQProcess</a> *proc; - <a href="qtextview.html">TQTextView</a> *output; - <a href="qpushbutton.html">TQPushButton</a> *quitButton; + <a href="ntqprocess.html">TQProcess</a> *proc; + <a href="ntqtextview.html">TQTextView</a> *output; + <a href="ntqpushbutton.html">TQPushButton</a> *quitButton; }; <a name="f204"></a>UicManager::UicManager() { // Layout - output = new <a href="qtextview.html">TQTextView</a>( this ); - quitButton = new <a href="qpushbutton.html">TQPushButton</a>( <a href="qobject.html#tr">tr</a>("Quit"), this ); - <a href="qobject.html#connect">connect</a>( quitButton, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), - qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) ); - <a href="qwidget.html#resize">resize</a>( 500, 500 ); + output = new <a href="ntqtextview.html">TQTextView</a>( this ); + quitButton = new <a href="ntqpushbutton.html">TQPushButton</a>( <a href="ntqobject.html#tr">tr</a>("Quit"), this ); + <a href="ntqobject.html#connect">connect</a>( quitButton, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), + qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); + <a href="ntqwidget.html#resize">resize</a>( 500, 500 ); // TQProcess related code - proc = new <a href="qprocess.html">TQProcess</a>( this ); + proc = new <a href="ntqprocess.html">TQProcess</a>( this ); // Set up the command and arguments. // On the command line you would do: // uic -tr <a href="i18n.html#i18n">i18n</a> "small_dialog.ui" -<a name="x97"></a> proc-><a href="qprocess.html#addArgument">addArgument</a>( "uic" ); - proc-><a href="qprocess.html#addArgument">addArgument</a>( "-tr" ); - proc-><a href="qprocess.html#addArgument">addArgument</a>( "i18n" ); - proc-><a href="qprocess.html#addArgument">addArgument</a>( "small_dialog.ui" ); +<a name="x97"></a> proc-><a href="ntqprocess.html#addArgument">addArgument</a>( "uic" ); + proc-><a href="ntqprocess.html#addArgument">addArgument</a>( "-tr" ); + proc-><a href="ntqprocess.html#addArgument">addArgument</a>( "i18n" ); + proc-><a href="ntqprocess.html#addArgument">addArgument</a>( "small_dialog.ui" ); -<a name="x100"></a> <a href="qobject.html#connect">connect</a>( proc, SIGNAL(<a href="qprocess.html#readyReadStdout">readyReadStdout</a>()), +<a name="x100"></a> <a href="ntqobject.html#connect">connect</a>( proc, SIGNAL(<a href="ntqprocess.html#readyReadStdout">readyReadStdout</a>()), this, SLOT(readFromStdout()) ); -<a name="x98"></a> <a href="qobject.html#connect">connect</a>( proc, SIGNAL(<a href="qprocess.html#processExited">processExited</a>()), +<a name="x98"></a> <a href="ntqobject.html#connect">connect</a>( proc, SIGNAL(<a href="ntqprocess.html#processExited">processExited</a>()), this, SLOT(scrollToTop()) ); -<a name="x101"></a> if ( !proc-><a href="qprocess.html#start">start</a>() ) { +<a name="x101"></a> if ( !proc-><a href="ntqprocess.html#start">start</a>() ) { // error handling -<a name="x96"></a> TQMessageBox::<a href="qmessagebox.html#critical">critical</a>( 0, - <a href="qobject.html#tr">tr</a>("Fatal error"), - <a href="qobject.html#tr">tr</a>("Could not start the uic command."), - <a href="qobject.html#tr">tr</a>("Quit") ); +<a name="x96"></a> TQMessageBox::<a href="ntqmessagebox.html#critical">critical</a>( 0, + <a href="ntqobject.html#tr">tr</a>("Fatal error"), + <a href="ntqobject.html#tr">tr</a>("Could not start the uic command."), + <a href="ntqobject.html#tr">tr</a>("Quit") ); exit( -1 ); } } @@ -116,21 +116,21 @@ void <a name="f205"></a>UicManager::readFromStdout() { // Read and process the data. // Bear in mind that the data might be output in chunks. -<a name="x99"></a><a name="x103"></a> output-><a href="qtextedit.html#append">append</a>( proc-><a href="qprocess.html#readStdout">readStdout</a>() ); +<a name="x99"></a><a name="x103"></a> output-><a href="ntqtextedit.html#append">append</a>( proc-><a href="ntqprocess.html#readStdout">readStdout</a>() ); } void <a name="f206"></a>UicManager::scrollToTop() { -<a name="x102"></a> output-><a href="qscrollview.html#setContentsPos">setContentsPos</a>( 0, 0 ); +<a name="x102"></a> output-><a href="ntqscrollview.html#setContentsPos">setContentsPos</a>( 0, 0 ); } int main( int argc, char **argv ) { - <a href="qapplication.html">TQApplication</a> a( argc, argv ); + <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); UicManager manager; - a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &manager ); - manager.<a href="qwidget.html#show">show</a>(); - return a.<a href="qapplication.html#exec">exec</a>(); + a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &manager ); + manager.<a href="ntqwidget.html#show">show</a>(); + return a.<a href="ntqapplication.html#exec">exec</a>(); } #include "process.moc" |