From d35eedcd87d59e716c6d49bbb6b634ef1a7660c5 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 24 Aug 2024 20:19:50 +0900 Subject: Rename style nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/motif-walkthrough-3.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/html/motif-walkthrough-3.html') diff --git a/doc/html/motif-walkthrough-3.html b/doc/html/motif-walkthrough-3.html index 2ad589fc4..d579c8618 100644 --- a/doc/html/motif-walkthrough-3.html +++ b/doc/html/motif-walkthrough-3.html @@ -48,7 +48,7 @@ provide useful static convenience functions.

Each of these functions takes a TQWidget *parent argument. If we pass zero as the parent argument, then we will have dialogs that are centered on the screen, instead of being centered over our main -window. We can have TQMotifWidget create our XmMainWindow, and we +window. We can have TQMotifWidget create our XmMainWindow, and we can then use this class as the parent for both Motif dialogs and TQt dialogs.

We need to include the appropriate headers for TQMotifWidget and @@ -57,9 +57,9 @@ dialogs.


 

Next, we make a few modifications to how the application is -initialized. We could initialize Xt/Motif and create the XtAppContext ourselves, but TQMotif can do this for us. +initialized. We could initialize Xt/Motif and create the XtAppContext ourselves, but TQMotif can do this for us. We also let TQApplication open the connection to the X server. Next, -we create a TQMotifWidget, passing xmMainWindowWidgetClass as the widgetclass argument. We can now use the TQMotifWidget::motifWidget() +we create a TQMotifWidget, passing xmMainWindowWidgetClass as the widgetclass argument. We can now use the TQMotifWidget::motifWidget() function to access the Motif widget. The shell widget is created automatically by TQMotifWidget. We use XtParent() to access it. The top-level window is now a TQMotifWidget, which means we can use it @@ -79,7 +79,7 @@ and Save() functions.


 

We also change the arguments to the callbacks. We pass the top-level -TQMotifWidget as the client_data to these functions, since we will +TQMotifWidget as the client_data to these functions, since we will be using it as the parent for the TQFileDialog.


 

@@ -123,7 +123,7 @@ the correct symbols for these functions.
 

At this point in the code, the page should be deleted. The code to do this is in the DoDeletePage() function. We move the contents of DoDeletePage() to this point and remove the DoDeletePage() function completely. -

Next, we change todo.cpp to pass the top-level TQMotifWidget as the +

Next, we change todo.cpp to pass the top-level TQMotifWidget as the client_data tot he DeletePage() function.

-- cgit v1.2.3