From 4161606c301841f973f0319f46e6853c4a3fe906 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 3 Oct 2024 20:48:26 +0900 Subject: Remove documentation for Motif extension classes. Those classes are not included in tqt3 source code Signed-off-by: Michele Calgaro --- doc/html/motif-customwidget-example.html | 148 ------------------------------- 1 file changed, 148 deletions(-) delete mode 100644 doc/html/motif-customwidget-example.html (limited to 'doc/html/motif-customwidget-example.html') diff --git a/doc/html/motif-customwidget-example.html b/doc/html/motif-customwidget-example.html deleted file mode 100644 index 613b03302..000000000 --- a/doc/html/motif-customwidget-example.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - -Using the Motif Event Loop - - - - - - - -
- -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

Using the Motif Event Loop

- - -

-

-


-

Header -

#ifndef MAINWINDOW_H
-#define MAINWINDOW_H
-
-#include <tqmainwindow.h>
-
-
-class TQMotifWidget;
-
-class MainWindow : public TQMainWindow
-{
-public:
-    MainWindow();
-
-private:
-    TQMotifWidget *customwidget;
-};
-
-#endif // MAINWINDOW_H
-
- -


-

Implementation: -

#include "mainwindow.h"
-
-#include <ntqapplication.h>
-#include <tqmotif.h>
-
-
-int main( int argc, char **argv )
-{
-    XtSetLanguageProc( NULL, NULL, NULL );
-
-    TQMotif integrator( "customwidget" );
-    TQApplication app( argc, argv );
-
-    MainWindow mainwindow;
-    app.setMainWidget( &mainwindow );
-    mainwindow.show();
-
-    return app.exec();
-}
-
- -

#include "mainwindow.h"
-
-#include <ntqapplication.h>
-#include <tqmenubar.h>
-#include <tqpopupmenu.h>
-#include <tqstatusbar.h>
-
-#include <tqmotifwidget.h>
-
-#include <Xm/Form.h>
-#include <Xm/PushB.h>
-#include <Xm/Text.h>
-
-
-MainWindow::MainWindow()
-    : TQMainWindow( 0, "mainwindow" )
-{
-    TQPopupMenu *filemenu = new TQPopupMenu( this );
-    filemenu->insertItem( tr("&Quit"), tqApp, TQ_SLOT(quit()) );
-
-    menuBar()->insertItem( tr("&File"), filemenu );
-    statusBar()->message( tr("This is a TQMainWindow with an XmText widget.") );
-
-    customwidget =
-        new TQMotifWidget( this, xmFormWidgetClass, NULL, 0, "form" );
-
-    XmString str;
-    Arg args[6];
-
-    str = XmStringCreateLocalized( "Push Button (XmPushButton)" );
-    XtSetArg( args[0], XmNlabelString, str );
-    XtSetArg( args[1], XmNleftAttachment, XmATTACH_FORM );
-    XtSetArg( args[2], XmNrightAttachment, XmATTACH_FORM );
-    XtSetArg( args[3], XmNbottomAttachment, XmATTACH_FORM );
-    Widget button =
-        XmCreatePushButton( customwidget->motifWidget(), "Push Button", args, 4 );
-    XmStringFree( str );
-
-    XtSetArg( args[0], XmNeditMode, XmMULTI_LINE_EDIT );
-    XtSetArg( args[1], XmNleftAttachment, XmATTACH_FORM );
-    XtSetArg( args[2], XmNrightAttachment, XmATTACH_FORM );
-    XtSetArg( args[3], XmNtopAttachment, XmATTACH_FORM );
-    XtSetArg( args[4], XmNbottomAttachment, XmATTACH_WIDGET );
-    XtSetArg( args[5], XmNbottomWidget, button );
-    Widget texteditor =
-        XmCreateScrolledText( customwidget->motifWidget(), "Text Editor", args, 6 );
-
-    XtManageChild( texteditor );
-    XtManageChild( button );
-
-    setCentralWidget( customwidget );
-
-    resize( 400, 600 );
-}
-
-
- -

See also TQMotif Support Extension. - - -


- -
Copyright © 2007 -TrolltechTrademarks -
TQt 3.3.8
-
- -- cgit v1.2.1