diff options
Diffstat (limited to 'doc/html/motif-walkthrough-3.html')
-rw-r--r-- | doc/html/motif-walkthrough-3.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/motif-walkthrough-3.html b/doc/html/motif-walkthrough-3.html index 8427c5cf4..0ea97f2c3 100644 --- a/doc/html/motif-walkthrough-3.html +++ b/doc/html/motif-walkthrough-3.html @@ -37,7 +37,7 @@ body { background: #ffffff; color: black; } [ <a href="motif-walkthrough.html">Home</a> ] [ <a href="motif-walkthrough-4.html">Next: Using Custom TQDialogs</a> ] <p> We start by using two of the <a href="dialogs.html">TQt Standard -Dialogs</a>: <a href="qfiledialog.html">TQFileDialog</a> and <a href="qmessagebox.html">TQMessageBox</a>. Both of these classes +Dialogs</a>: <a href="ntqfiledialog.html">TQFileDialog</a> and <a href="ntqmessagebox.html">TQMessageBox</a>. Both of these classes provide useful static convenience functions. <p> <center><table cellpadding="4" cellspacing="2" border="0"> <tr bgcolor="#f0f0f0"> <td valign="top">TQFileDialog::getOpenFileName() <td valign="top">replacement for the <em>Open</em> dialog @@ -52,13 +52,13 @@ window. We can have <a href="qmotifwidget.html">TQMotifWidget</a> create our <tt can then use this class as the parent for both <a href="motif-extension.html#Motif">Motif</a> dialogs and TQt dialogs. <p> We need to include the appropriate headers for TQMotifWidget and -<a href="qfiledialog.html">TQFileDialog</a> in <tt>todo.cpp</tt>. +<a href="ntqfiledialog.html">TQFileDialog</a> in <tt>todo.cpp</tt>. <p> <pre></pre> <p> Next, we make a few modifications to how the application is initialized. We could initialize Xt/Motif and create the <tt>XtAppContext</tt> ourselves, but <a href="qmotif.html">TQMotif</a> can do this for us. -We also let <a href="qapplication.html">TQApplication</a> open the connection to the X server. Next, +We also let <a href="ntqapplication.html">TQApplication</a> open the connection to the X server. Next, we create a TQMotifWidget, passing <tt>xmMainWindowWidgetClass</tt> as the <em>widgetclass</em> argument. We can now use the <a href="qmotifwidget.html#motifWidget">TQMotifWidget::motifWidget</a>() function to access the Motif widget. The shell widget is created automatically by TQMotifWidget. We use <tt>XtParent()</tt> to access it. @@ -70,7 +70,7 @@ as the parent for the TQt Standard Dialogs. <a name="1"></a><p> First, we completely remove all use of the existing Motif file selection dialog. We remove the <tt>Xm/FileSB.h</tt> include, the global <tt>file_dialog</tt> variable, and the code to create the dialog. We also remove the <tt>PresentFDialog()</tt> callback function. None of this code -is needed to use <a href="qfiledialog.html">TQFileDialog</a>. +is needed to use <a href="ntqfiledialog.html">TQFileDialog</a>. <p> After removing the <tt>PresentFDialog()</tt> callback function, we need to make <em>Open</em> and <em>Save As</em> popup-menu callbacks call the <tt>Open()</tt> and <tt>Save()</tt> functions. @@ -88,13 +88,13 @@ be using it as the parent for the TQFileDialog. <p> <pre></pre> <p> Next, we modify the <tt>Save()</tt> function to use -<a href="qfiledialog.html#getSaveFileName">TQFileDialog::getSaveFileName</a>(). +<a href="ntqfiledialog.html#getSaveFileName">TQFileDialog::getSaveFileName</a>(). <p> <pre></pre> -<p> ... and the <tt>Open()</tt> function to use <a href="qfiledialog.html#getOpenFileName">TQFileDialog::getOpenFileName</a>(). +<p> ... and the <tt>Open()</tt> function to use <a href="ntqfiledialog.html#getOpenFileName">TQFileDialog::getOpenFileName</a>(). <p> <pre></pre> <p> After we build the project, the application runs and operates as expected. The difference is that the <em>Open</em> and <em>Save As</em> dialogs -now use <a href="qfiledialog.html">TQFileDialog</a>. +now use <a href="ntqfiledialog.html">TQFileDialog</a>. <p> <h2> Replacing the <em>Page Delete</em> and <em>IO Error</em> Dialogs </h2> <a name="2"></a><p> The <em>Page Delete</em> dialog is created and used in <tt>actions.c</tt>. We @@ -112,9 +112,9 @@ the correct symbols for these functions. <p> <pre></pre> <p> And we need to change the variable named <em>new</em> to <em>newstr</em> in the <tt>Trim()</tt> function. <p> We can now change the <tt>DeletePage()</tt> function to use -<a href="qmessagebox.html#information">TQMessageBox::information</a>(). +<a href="ntqmessagebox.html#information">TQMessageBox::information</a>(). <p> First, we need to make sure we include the proper header for -<a href="qmessagebox.html">TQMessageBox</a>. +<a href="ntqmessagebox.html">TQMessageBox</a>. <p> <pre></pre> @@ -147,8 +147,8 @@ functions. C++. <p> <pre></pre> <p> We can now change the <tt>ReadDB()</tt> and <tt>SaveDB()</tt> functions to use -<a href="qmessagebox.html#warning">TQMessageBox::warning</a>(). -<p> First, we need to make sure we include the proper header for <a href="qmessagebox.html">TQMessageBox</a>. +<a href="ntqmessagebox.html#warning">TQMessageBox::warning</a>(). +<p> First, we need to make sure we include the proper header for <a href="ntqmessagebox.html">TQMessageBox</a>. <p> <pre></pre> |