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-dialog-example.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/motif-dialog-example.html') diff --git a/doc/html/motif-dialog-example.html b/doc/html/motif-dialog-example.html index 8a72d6847..470b1a0da 100644 --- a/doc/html/motif-dialog-example.html +++ b/doc/html/motif-dialog-example.html @@ -39,10 +39,10 @@ body { background: #ffffff; color: black; }

#ifndef MAINWINDOW_H
 #define MAINWINDOW_H
 
-#include <qmotifwidget.h>
+#include <tqmotifwidget.h>
 
 
-class MainWindow : public TQMotifWidget
+class MainWindow : public TQMotifWidget
 {
 public:
     MainWindow();
@@ -57,7 +57,7 @@ public:
 


Implementation:

#include <ntqapplication.h>
-#include <qmotif.h>
+#include <tqmotif.h>
 
 #include "mainwindow.h"
 
@@ -66,7 +66,7 @@ int main( int argc, char **argv )
 {
     XtSetLanguageProc( NULL, NULL, NULL );
 
-    TQMotif integrator( "dialog" );
+    TQMotif integrator( "dialog" );
     TQApplication app( argc, argv );
 
     MainWindow *mainwindow = new MainWindow;
@@ -114,9 +114,9 @@ static void quitCallback( Widget, XtPointer client_data, XtPointer )
 
 
 MainWindow::MainWindow()
-    : TQMotifWidget( 0, xmMainWindowWidgetClass, NULL, 0, "mainwindow" )
+    : TQMotifWidget( 0, xmMainWindowWidgetClass, NULL, 0, "mainwindow" )
 {
-    Widget menubar = XmCreateMenuBar( motifWidget(), "menubar", NULL, 0 );
+    Widget menubar = XmCreateMenuBar( motifWidget(), "menubar", NULL, 0 );
     Widget filemenu = XmCreatePulldownMenu( menubar, "filemenu", NULL, 0 );
     Widget item;
 
@@ -154,14 +154,14 @@ static void quitCallback( Widget, XtPointer client_data, XtPointer )
     Arg args[2];
     XtSetArg( args[0], XmNeditMode, XmMULTI_LINE_EDIT );
     Widget texteditor =
-        XmCreateScrolledText( motifWidget(), "texteditor",
+        XmCreateScrolledText( motifWidget(), "texteditor",
                               args, 1 );
 
     XtManageChild( menubar );
     XtManageChild( texteditor );
 
     // pick a nice default size
-    XtVaSetValues( motifWidget(),
+    XtVaSetValues( motifWidget(),
                    XmNwidth, 400,
                    XmNheight, 300,
                    NULL );
@@ -172,10 +172,10 @@ static void quitCallback( Widget, XtPointer client_data, XtPointer )
 
 void MainWindow::showMotifDialog()
 {
-    TQMotifDialog dialog( this, "custom dialog", TRUE );
+    TQMotifDialog dialog( this, "custom dialog", TRUE );
     dialog.setCaption( tr("Custom Motif Dialog") );
 
-    Widget form = XmCreateForm( dialog.shell(), "custom motif dialog", NULL, 0 );
+    Widget form = XmCreateForm( dialog.shell(), "custom motif dialog", NULL, 0 );
 
     XmString str;
     Arg args[9];
@@ -220,7 +220,7 @@ void MainWindow::showMotifDialog()
 void MainWindow::showTQtDialog()
 {
     // custom TQt-based dialog using a Motif-based parent
-    CustomDialog customdialog( motifWidget(), "custom dialog", TRUE );
+    CustomDialog customdialog( motifWidget(), "custom dialog", TRUE );
     customdialog.exec();
 }
 
-- cgit v1.2.1