diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/motif-dialog-example.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/motif-dialog-example.html')
-rw-r--r-- | doc/html/motif-dialog-example.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/motif-dialog-example.html b/doc/html/motif-dialog-example.html index b30ffda91..87b861801 100644 --- a/doc/html/motif-dialog-example.html +++ b/doc/html/motif-dialog-example.html @@ -56,7 +56,7 @@ public: <p> <hr> <p> Implementation: -<p> <pre>#include <<a href="qapplication-h.html">qapplication.h</a>> +<p> <pre>#include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="qmotif-h.html">qmotif.h</a>> #include "mainwindow.h" @@ -67,13 +67,13 @@ int main( int argc, char **argv ) XtSetLanguageProc( NULL, NULL, NULL ); <a href="qmotif.html">TQMotif</a> integrator( "dialog" ); - <a href="qapplication.html">TQApplication</a> app( argc, argv ); + <a href="ntqapplication.html">TQApplication</a> app( argc, argv ); MainWindow *mainwindow = new MainWindow; - app.<a href="qapplication.html#setMainWidget">setMainWidget</a>( mainwindow ); - mainwindow-><a href="qwidget.html#show">show</a>(); + app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( mainwindow ); + mainwindow-><a href="ntqwidget.html#show">show</a>(); - return app.<a href="qapplication.html#exec">exec</a>(); + return app.<a href="ntqapplication.html#exec">exec</a>(); } </pre> @@ -91,7 +91,7 @@ int main( int argc, char **argv ) #include <Xm/Form.h> #include <Xm/LabelG.h> -#include <<a href="qapplication-h.html">qapplication.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> static void motifDialogCallback( Widget, XtPointer client_data, XtPointer ) @@ -109,7 +109,7 @@ static void qtDialogCallback( Widget, XtPointer client_data, XtPointer ) static void quitCallback( Widget, XtPointer client_data, XtPointer ) { MainWindow *mw = (MainWindow *) client_data; -<a name="x2708"></a> mw-><a href="qwidget.html#close">close</a>(); +<a name="x2708"></a> mw-><a href="ntqwidget.html#close">close</a>(); } @@ -166,14 +166,14 @@ static void quitCallback( Widget, XtPointer client_data, XtPointer ) XmNheight, 300, NULL ); - <a href="qwidget.html#setCaption">setCaption</a>( <a href="qobject.html#tr">tr</a>("TQMotif Dialog Example") ); + <a href="ntqwidget.html#setCaption">setCaption</a>( <a href="ntqobject.html#tr">tr</a>("TQMotif Dialog Example") ); } void <a name="f561"></a>MainWindow::showMotifDialog() { <a href="qmotifdialog.html">TQMotifDialog</a> dialog( this, "custom dialog", TRUE ); - dialog.<a href="qwidget.html#setCaption">setCaption</a>( <a href="qobject.html#tr">tr</a>("Custom <a href="motif-extension.html#Motif">Motif</a> Dialog") ); + dialog.<a href="ntqwidget.html#setCaption">setCaption</a>( <a href="ntqobject.html#tr">tr</a>("Custom <a href="motif-extension.html#Motif">Motif</a> Dialog") ); <a name="x2707"></a> Widget form = XmCreateForm( dialog.<a href="qmotifdialog.html#shell">shell</a>(), "custom motif dialog", NULL, 0 ); @@ -214,14 +214,14 @@ void <a name="f561"></a>MainWindow::showMotifDialog() XtAddCallback( button, XmNactivateCallback, (XtCallbackProc) TQMotifDialog::acceptCallback, &dialog ); -<a name="x2706"></a> dialog.<a href="qdialog.html#exec">exec</a>(); +<a name="x2706"></a> dialog.<a href="ntqdialog.html#exec">exec</a>(); } void <a name="f562"></a>MainWindow::showTQtDialog() { // custom TQt-based dialog using a Motif-based parent CustomDialog customdialog( <a href="qmotifwidget.html#motifWidget">motifWidget</a>(), "custom dialog", TRUE ); - customdialog.<a href="qdialog.html#exec">exec</a>(); + customdialog.<a href="ntqdialog.html#exec">exec</a>(); } </pre> |