Remove documentation for Motif extension classes. Those classes are not included in tqt3 source code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>pull/193/head
parent
6964feed83
commit
4161606c30
@ -1,148 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/examples/customwidget/customwidget.doc:1 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>Using the Motif Event Loop</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Using the Motif Event Loop</h1>
|
|
||||||
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<p>
|
|
||||||
<p> <hr>
|
|
||||||
<p> Header
|
|
||||||
<p> <pre>#ifndef MAINWINDOW_H
|
|
||||||
#define MAINWINDOW_H
|
|
||||||
|
|
||||||
#include <<a href="tqmainwindow-h.html">tqmainwindow.h</a>>
|
|
||||||
|
|
||||||
|
|
||||||
class TQMotifWidget;
|
|
||||||
|
|
||||||
class MainWindow : public <a href="tqmainwindow.html">TQMainWindow</a>
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
MainWindow();
|
|
||||||
|
|
||||||
private:
|
|
||||||
<a href="tqmotifwidget.html">TQMotifWidget</a> *customwidget;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // MAINWINDOW_H
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> <hr>
|
|
||||||
<p> Implementation:
|
|
||||||
<p> <pre>#include "mainwindow.h"
|
|
||||||
|
|
||||||
#include <<a href="qapplication-h.html">ntqapplication.h</a>>
|
|
||||||
#include <<a href="tqmotif-h.html">tqmotif.h</a>>
|
|
||||||
|
|
||||||
|
|
||||||
int main( int argc, char **argv )
|
|
||||||
{
|
|
||||||
XtSetLanguageProc( NULL, NULL, NULL );
|
|
||||||
|
|
||||||
<a href="tqmotif.html">TQMotif</a> integrator( "customwidget" );
|
|
||||||
<a href="ntqapplication.html">TQApplication</a> app( argc, argv );
|
|
||||||
|
|
||||||
MainWindow mainwindow;
|
|
||||||
app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &mainwindow );
|
|
||||||
mainwindow.<a href="tqwidget.html#show">show</a>();
|
|
||||||
|
|
||||||
return app.<a href="ntqapplication.html#exec">exec</a>();
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> <pre>#include "mainwindow.h"
|
|
||||||
|
|
||||||
#include <<a href="qapplication-h.html">ntqapplication.h</a>>
|
|
||||||
#include <<a href="tqmenubar-h.html">tqmenubar.h</a>>
|
|
||||||
#include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>>
|
|
||||||
#include <<a href="tqstatusbar-h.html">tqstatusbar.h</a>>
|
|
||||||
|
|
||||||
#include <<a href="tqmotifwidget-h.html">tqmotifwidget.h</a>>
|
|
||||||
|
|
||||||
#include <Xm/Form.h>
|
|
||||||
#include <Xm/PushB.h>
|
|
||||||
#include <Xm/Text.h>
|
|
||||||
|
|
||||||
|
|
||||||
<a name="f563"></a>MainWindow::MainWindow()
|
|
||||||
: <a href="tqmainwindow.html">TQMainWindow</a>( 0, "mainwindow" )
|
|
||||||
{
|
|
||||||
<a href="tqpopupmenu.html">TQPopupMenu</a> *filemenu = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
|
|
||||||
filemenu-><a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&Quit"), tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
|
|
||||||
|
|
||||||
<a href="tqmainwindow.html#menuBar">menuBar</a>()->insertItem( <a href="tqobject.html#tr">tr</a>("&File"), filemenu );
|
|
||||||
<a href="tqmainwindow.html#statusBar">statusBar</a>()->message( <a href="tqobject.html#tr">tr</a>("This is a TQMainWindow with an XmText widget.") );
|
|
||||||
|
|
||||||
customwidget =
|
|
||||||
new <a href="tqmotifwidget.html">TQMotifWidget</a>( 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 );
|
|
||||||
|
|
||||||
<a href="tqmainwindow.html#setCentralWidget">setCentralWidget</a>( customwidget );
|
|
||||||
|
|
||||||
<a href="tqwidget.html#resize">resize</a>( 400, 600 );
|
|
||||||
}
|
|
||||||
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> <p>See also <a href="motif-examples.html">TQMotif Support Extension</a>.
|
|
||||||
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,237 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/examples/dialog/dialog.doc:1 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>A Motif Dialog</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>A Motif Dialog</h1>
|
|
||||||
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<p>
|
|
||||||
<p> <hr>
|
|
||||||
<p> Header
|
|
||||||
<p> <pre>#ifndef MAINWINDOW_H
|
|
||||||
#define MAINWINDOW_H
|
|
||||||
|
|
||||||
#include <<a href="tqmotifwidget-h.html">tqmotifwidget.h</a>>
|
|
||||||
|
|
||||||
|
|
||||||
class MainWindow : public <a href="tqmotifwidget.html">TQMotifWidget</a>
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
MainWindow();
|
|
||||||
|
|
||||||
void showMotifDialog();
|
|
||||||
void showTQtDialog();
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // MAINWINDOW_H
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> <hr>
|
|
||||||
<p> Implementation:
|
|
||||||
<p> <pre>#include <<a href="qapplication-h.html">ntqapplication.h</a>>
|
|
||||||
#include <<a href="tqmotif-h.html">tqmotif.h</a>>
|
|
||||||
|
|
||||||
#include "mainwindow.h"
|
|
||||||
|
|
||||||
|
|
||||||
int main( int argc, char **argv )
|
|
||||||
{
|
|
||||||
XtSetLanguageProc( NULL, NULL, NULL );
|
|
||||||
|
|
||||||
<a href="tqmotif.html">TQMotif</a> integrator( "dialog" );
|
|
||||||
<a href="ntqapplication.html">TQApplication</a> app( argc, argv );
|
|
||||||
|
|
||||||
MainWindow *mainwindow = new MainWindow;
|
|
||||||
app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( mainwindow );
|
|
||||||
mainwindow-><a href="tqwidget.html#show">show</a>();
|
|
||||||
|
|
||||||
return app.<a href="ntqapplication.html#exec">exec</a>();
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> <pre>#include "mainwindow.h"
|
|
||||||
#include "dialog.h"
|
|
||||||
|
|
||||||
#include <Xm/MainW.h>
|
|
||||||
#include <Xm/RowColumn.h>
|
|
||||||
#include <Xm/CascadeB.h>
|
|
||||||
#include <Xm/PushB.h>
|
|
||||||
#include <Xm/PushBG.h>
|
|
||||||
#include <Xm/SeparatoG.h>
|
|
||||||
#include <Xm/Text.h>
|
|
||||||
#include <Xm/MessageB.h>
|
|
||||||
#include <Xm/Form.h>
|
|
||||||
#include <Xm/LabelG.h>
|
|
||||||
|
|
||||||
#include <<a href="qapplication-h.html">ntqapplication.h</a>>
|
|
||||||
|
|
||||||
|
|
||||||
static void motifDialogCallback( Widget, XtPointer client_data, XtPointer )
|
|
||||||
{
|
|
||||||
MainWindow *mw = (MainWindow *) client_data;
|
|
||||||
mw->showMotifDialog();
|
|
||||||
}
|
|
||||||
|
|
||||||
static void qtDialogCallback( Widget, XtPointer client_data, XtPointer )
|
|
||||||
{
|
|
||||||
MainWindow *mw = (MainWindow *) client_data;
|
|
||||||
mw->showTQtDialog();
|
|
||||||
}
|
|
||||||
|
|
||||||
static void quitCallback( Widget, XtPointer client_data, XtPointer )
|
|
||||||
{
|
|
||||||
MainWindow *mw = (MainWindow *) client_data;
|
|
||||||
<a name="x2708"></a> mw-><a href="tqwidget.html#close">close</a>();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
<a name="f560"></a>MainWindow::MainWindow()
|
|
||||||
: <a href="tqmotifwidget.html">TQMotifWidget</a>( 0, xmMainWindowWidgetClass, NULL, 0, "mainwindow" )
|
|
||||||
{
|
|
||||||
Widget menubar = XmCreateMenuBar( <a href="tqmotifwidget.html#motifWidget">motifWidget</a>(), "menubar", NULL, 0 );
|
|
||||||
Widget filemenu = XmCreatePulldownMenu( menubar, "filemenu", NULL, 0 );
|
|
||||||
Widget item;
|
|
||||||
|
|
||||||
item = XtVaCreateManagedWidget( "Motif Dialog...",
|
|
||||||
xmPushButtonGadgetClass, filemenu,
|
|
||||||
XmNmnemonic, 'C',
|
|
||||||
NULL );
|
|
||||||
XtAddCallback( item, XmNactivateCallback, motifDialogCallback, this );
|
|
||||||
|
|
||||||
item = XtVaCreateManagedWidget( "TQt Dialog...",
|
|
||||||
xmPushButtonGadgetClass, filemenu,
|
|
||||||
XmNmnemonic, 'Q',
|
|
||||||
NULL );
|
|
||||||
XtAddCallback( item, XmNactivateCallback, qtDialogCallback, this );
|
|
||||||
|
|
||||||
item = XtVaCreateManagedWidget( "sep",
|
|
||||||
xmSeparatorGadgetClass, filemenu,
|
|
||||||
NULL );
|
|
||||||
|
|
||||||
item = XtVaCreateManagedWidget( "Exit",
|
|
||||||
xmPushButtonGadgetClass, filemenu,
|
|
||||||
XmNmnemonic, 'x',
|
|
||||||
NULL );
|
|
||||||
XtAddCallback( item, XmNactivateCallback, quitCallback, this );
|
|
||||||
|
|
||||||
XmString str = XmStringCreateLocalized( "File" );
|
|
||||||
item = XtVaCreateManagedWidget( "File",
|
|
||||||
xmCascadeButtonWidgetClass, menubar,
|
|
||||||
XmNlabelString, str,
|
|
||||||
XmNmnemonic, 'F',
|
|
||||||
XmNsubMenuId, filemenu,
|
|
||||||
NULL );
|
|
||||||
XmStringFree( str );
|
|
||||||
|
|
||||||
Arg args[2];
|
|
||||||
XtSetArg( args[0], XmNeditMode, XmMULTI_LINE_EDIT );
|
|
||||||
Widget texteditor =
|
|
||||||
XmCreateScrolledText( <a href="tqmotifwidget.html#motifWidget">motifWidget</a>(), "texteditor",
|
|
||||||
args, 1 );
|
|
||||||
|
|
||||||
XtManageChild( menubar );
|
|
||||||
XtManageChild( texteditor );
|
|
||||||
|
|
||||||
// pick a nice default size
|
|
||||||
XtVaSetValues( <a href="tqmotifwidget.html#motifWidget">motifWidget</a>(),
|
|
||||||
XmNwidth, 400,
|
|
||||||
XmNheight, 300,
|
|
||||||
NULL );
|
|
||||||
|
|
||||||
<a href="tqwidget.html#setCaption">setCaption</a>( <a href="tqobject.html#tr">tr</a>("TQMotif Dialog Example") );
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void <a name="f561"></a>MainWindow::showMotifDialog()
|
|
||||||
{
|
|
||||||
<a href="tqmotifdialog.html">TQMotifDialog</a> dialog( this, "custom dialog", TRUE );
|
|
||||||
dialog.<a href="tqwidget.html#setCaption">setCaption</a>( <a href="tqobject.html#tr">tr</a>("Custom <a href="motif-extension.html#Motif">Motif</a> Dialog") );
|
|
||||||
|
|
||||||
<a name="x2707"></a> Widget form = XmCreateForm( dialog.<a href="tqmotifdialog.html#shell">shell</a>(), "custom motif dialog", NULL, 0 );
|
|
||||||
|
|
||||||
XmString str;
|
|
||||||
Arg args[9];
|
|
||||||
|
|
||||||
str = XmStringCreateLocalized( "Close" );
|
|
||||||
XtSetArg( args[0], XmNlabelString, str );
|
|
||||||
XtSetArg( args[1], XmNshowAsDefault, True );
|
|
||||||
XtSetArg( args[2], XmNleftAttachment, XmATTACH_POSITION );
|
|
||||||
XtSetArg( args[3], XmNleftPosition, 40 );
|
|
||||||
XtSetArg( args[4], XmNrightAttachment, XmATTACH_POSITION );
|
|
||||||
XtSetArg( args[5], XmNrightPosition, 60 );
|
|
||||||
XtSetArg( args[7], XmNbottomAttachment, XmATTACH_FORM );
|
|
||||||
XtSetArg( args[6], XmNtopOffset, 10 );
|
|
||||||
XtSetArg( args[8], XmNbottomOffset, 10 );
|
|
||||||
Widget button = XmCreatePushButton( form, "Close", args, 9 );
|
|
||||||
XmStringFree( str );
|
|
||||||
|
|
||||||
str =
|
|
||||||
XmStringCreateLocalized( "This is a custom Motif-based dialog using\n"
|
|
||||||
"TQMotifDialog with a TQWidget-based parent." );
|
|
||||||
XtSetArg( args[0], XmNlabelString, str );
|
|
||||||
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 );
|
|
||||||
XtSetArg( args[6], XmNtopOffset, 10 );
|
|
||||||
XtSetArg( args[7], XmNbottomOffset, 10 );
|
|
||||||
Widget label = XmCreateLabelGadget( form, "label", args, 8 );
|
|
||||||
XmStringFree( str );
|
|
||||||
|
|
||||||
XtManageChild( button );
|
|
||||||
XtManageChild( label );
|
|
||||||
XtManageChild( form );
|
|
||||||
|
|
||||||
XtAddCallback( button, XmNactivateCallback,
|
|
||||||
(XtCallbackProc) TQMotifDialog::acceptCallback, &dialog );
|
|
||||||
|
|
||||||
<a name="x2706"></a> dialog.<a href="tqdialog.html#exec">exec</a>();
|
|
||||||
}
|
|
||||||
|
|
||||||
void <a name="f562"></a>MainWindow::showTQtDialog()
|
|
||||||
{
|
|
||||||
// custom TQt-based dialog using a Motif-based parent
|
|
||||||
CustomDialog customdialog( <a href="tqmotifwidget.html#motifWidget">motifWidget</a>(), "custom dialog", TRUE );
|
|
||||||
customdialog.<a href="tqdialog.html#exec">exec</a>();
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> <p>See also <a href="motif-examples.html">TQMotif Support Extension</a>.
|
|
||||||
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,52 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/doc/indices.doc:471 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>TQMotif Support Extension</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>TQMotif Support Extension</h1>
|
|
||||||
|
|
||||||
|
|
||||||
<p> The following example programs illustrate the use of the <a href="tqmotif.html">TQMotif</a> Extension
|
|
||||||
assisting in the migration process of old Xt and <a href="motif-extension.html#Motif">Motif</a> based code
|
|
||||||
to the more comfortable TQt toolkit.
|
|
||||||
<p> For more information see the <a href="motif-extension.html">TQMotif
|
|
||||||
Support Extension documentation.</a>
|
|
||||||
|
|
||||||
<p><table width="100%">
|
|
||||||
<tr bgcolor=#f0f0f0><td><b><a href="motif-customwidget-example.html">Using the Motif Event Loop</a></b>
|
|
||||||
<tr bgcolor=#f0f0f0><td><b><a href="motif-dialog-example.html">A Motif Dialog</a></b>
|
|
||||||
</table>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,127 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/doc/index.doc:3 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>TQt Motif Extension</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>TQt Motif Extension</h1>
|
|
||||||
|
|
||||||
|
|
||||||
<p> <!-- index Motif --><a name="Motif"></a>
|
|
||||||
<p> This module is part of the <a href="commercialeditions.html">TQt Enterprise
|
|
||||||
Edition</a> and is <em>not</em> part of the Free or Non-Commercial
|
|
||||||
Editions.
|
|
||||||
<p> <h2> Introduction
|
|
||||||
</h2>
|
|
||||||
<a name="1"></a><p> The TQt Motif Extension assists the migration of old Xt and Motif based
|
|
||||||
applications to the more comfortable TQt toolkit. This extension
|
|
||||||
replaces the older Xt/Motif Support Extension included with earlier
|
|
||||||
versions of TQt.
|
|
||||||
<p> The TQt Motif Extension consists of the following classes:
|
|
||||||
<p> <ul>
|
|
||||||
<li> <a href="tqmotif.html">TQMotif</a> - Provides the basis of the TQt Motif Extension.
|
|
||||||
<li> <a href="tqmotifwidget.html">TQMotifWidget</a> - Provides the <a href="tqwidget.html">TQWidget</a> API for Motif widgets.
|
|
||||||
<li> <a href="tqmotifdialog.html">TQMotifDialog</a> - Provides the <a href="tqdialog.html">TQDialog</a> API for Motif dialogs.
|
|
||||||
<li> <a href="qxtwidget.html">TQXtWidget</a> - The Xt/Motif integration widget from the previous
|
|
||||||
Xt/Motif extension. This class is unsupported and has many known
|
|
||||||
problems and limitations. It is provided only to keep existing source
|
|
||||||
working; it should not be used in new code.
|
|
||||||
</ul>
|
|
||||||
<p> <h3> Additional Documentation
|
|
||||||
</h3>
|
|
||||||
<a name="1-1"></a><p> <ul>
|
|
||||||
<p> <li> <a href="motif-examples.html">Examples</a>
|
|
||||||
<li> <a href="motif-walkthrough.html">Migration Walkthrough</a> - A
|
|
||||||
complete migration of a Motif based program to the TQt toolkit.
|
|
||||||
<p> </ul>
|
|
||||||
<p> <h2> Common Problems
|
|
||||||
</h2>
|
|
||||||
<a name="2"></a><p> <h3> Incorrect CDE Color Scheme
|
|
||||||
</h3>
|
|
||||||
<a name="2-1"></a><p> <a href="tqmotifwidget.html">TQMotifWidget</a> and <a href="tqmotifdialog.html">TQMotifDialog</a> will use the same Visual, Colormap
|
|
||||||
and color depth that <a href="ntqapplication.html">TQApplication</a> uses. When using CDE, the color
|
|
||||||
scheme may be incorrect when using a Visual, Colormap and color depth
|
|
||||||
that is not the default. To work around this problem, add the
|
|
||||||
following resource string to your startup files (for example,
|
|
||||||
<tt>$HOME/.dt/sessions/current/dt.resources</tt>):
|
|
||||||
<p> <pre>
|
|
||||||
*userColorObj: false
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> <h3> X11 Header Conflicts
|
|
||||||
</h3>
|
|
||||||
<a name="2-2"></a><p> The X11 headers define some constants that conflict with the TQt
|
|
||||||
headers. The solution is to include all TQt headers first, followed by
|
|
||||||
headers from this extension, and all Xt/Motif and X11 headers last.
|
|
||||||
For example:
|
|
||||||
<p> <pre>
|
|
||||||
// TQt headers first
|
|
||||||
#include <<a href="qapplication-h.html">ntqapplication.h</a>>
|
|
||||||
#include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>>
|
|
||||||
#include <<a href="tqsocket-h.html">tqsocket.h</a>>
|
|
||||||
...
|
|
||||||
|
|
||||||
// TQMotif* headers next
|
|
||||||
#include <<a href="tqmotif-h.html">tqmotif.h</a>>
|
|
||||||
#include <<a href="tqmotifdialog-h.html">tqmotifdialog.h</a>>
|
|
||||||
#include <<a href="tqmotifwidget-h.html">tqmotifwidget.h</a>>
|
|
||||||
|
|
||||||
// Xt/Motif and X11 headers last
|
|
||||||
#include <X11/Xlib.h>
|
|
||||||
#include <Xt/Intrinsic.h>
|
|
||||||
#include <Xm/Xm.h>
|
|
||||||
...
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> <h3> Multiple Screen Support
|
|
||||||
</h3>
|
|
||||||
<a name="2-3"></a><p> <a href="tqmotifwidget.html">TQMotifWidget</a> can be used together with <a href="tqdesktopwidget.html">TQDesktopWidget</a> to create
|
|
||||||
top-level windows on multiple screens. A common mistake is to create
|
|
||||||
a TQMotifWidget on a non-default screen while the Xt/Motif widgets are
|
|
||||||
created on the default screen. The solution is to specify the screen
|
|
||||||
to both TQMotifWidget and the Xt/Motif child. For example:
|
|
||||||
<p> <pre>
|
|
||||||
Display *dpy = TQMotif::<a href="tqmotif.html#x11Display">x11Display</a>();
|
|
||||||
Arg args[1];
|
|
||||||
|
|
||||||
// make sure both TQMotifWidget and the XmMainWindow are on screen 1
|
|
||||||
XtSetArg(args[0], XtNscreen, ScreenOfDisplay(dpy, 1));
|
|
||||||
<a href="tqmotifwidget.html">TQMotifWidget</a> *toplevel =
|
|
||||||
new <a href="tqmotifwidget.html">TQMotifWidget</a>(TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()->screen(1),
|
|
||||||
xmMainWindowWidgetClass, args, 1, "mainwindow");
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
Before Width: | Height: | Size: 4.3 KiB |
@ -1,98 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/doc/walkthrough.doc:147 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>Getting Started</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Getting Started</h1>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-2.html">Next: Preparing to Migrate the User Interface</a> ]
|
|
||||||
<p> <h2> Starting with <a href="tqmotif.html">TQMotif</a> and <a href="ntqapplication.html">TQApplication</a>
|
|
||||||
</h2>
|
|
||||||
<a name="1"></a><p> To be able to use TQt, we need to create a TQApplication object. The
|
|
||||||
TQApplication class controls all the event delivery and display
|
|
||||||
management for all other TQt objects and widgets. We need to use the
|
|
||||||
TQMotif class from the <em>TQt <a href="motif-extension.html#Motif">Motif</a> Extension</em> to allow TQApplication
|
|
||||||
and the <tt>XtAppContext</tt> to coexist.
|
|
||||||
<p> The TQApplication object must be created in the <tt>main()</tt> function.
|
|
||||||
We will need to modify <tt>todo.c</tt> to compile with a C++ compiler, so we
|
|
||||||
rename <tt>todo.c</tt> to <tt>todo.cpp</tt>.
|
|
||||||
<p> Next, we add the appropriate includes for the TQMotif and TQApplication
|
|
||||||
classes.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<pre></pre>
|
|
||||||
<p> Next, we create the TQMotif and TQApplication objects. We create TQMotif
|
|
||||||
with a foreign <tt>XtAppContext</tt>, and we create TQApplication with a
|
|
||||||
foreign <tt>Display</tt>.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> The next change is not yet necessary, but it is included to show that
|
|
||||||
the <em>TQt Motif Extension</em> provides a complete integration.
|
|
||||||
Normally, a Motif based program would use the <tt>XtAppMainLoop()</tt>
|
|
||||||
function to run the application's event loop. This is still possible,
|
|
||||||
but since we are migrating to the TQt toolkit, we prefer to use the
|
|
||||||
<a href="ntqapplication.html#exec">TQApplication::exec</a>() function for running the event loop.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> Since we renamed <tt>todo.c</tt> to <tt>todo.cpp</tt>, we must change the
|
|
||||||
project file and rerun <em>qmake</em> to regenerate our <tt>Makefile</tt>. When we
|
|
||||||
build our project, there are compile and link errors: we will fix
|
|
||||||
these in the following section.
|
|
||||||
<p> <h2> Migrating to C++
|
|
||||||
</h2>
|
|
||||||
<a name="2"></a><p> We need to convert the code in this file to proper C++ code.
|
|
||||||
Fortunately, the changes are not too large. Most files included from
|
|
||||||
existing C projects are not C++ compatible, so we make them compatible
|
|
||||||
by wrapping them in an <tt>extern "C"</tt> block.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> Global C functions that are forward declared must also be wrapped into
|
|
||||||
an <tt>extern "C"</tt> block.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> The <tt>manageCB()</tt> function needs to be converted to proper C++.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> And we need to fix two invalid casts. One is in the <tt>Save()</tt> function.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> The other invalid cast is in the <tt>Open()</tt> function.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> After these changes, the project compiles and links, and the
|
|
||||||
application runs and operates correctly.
|
|
||||||
<p> [ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-2.html">Next: Preparing to Migrate the User Interface</a> ]
|
|
||||||
<p>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,103 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/doc/walkthrough.doc:1579 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>Continuing Development</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Continuing Development</h1>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[ <a href="motif-walkthrough-9.html">Previous: Replacing the Print Dialog</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
<p> We have not quite finished with the migration to TQt, even though our
|
|
||||||
project does not use <a href="motif-extension.html#Motif">Motif</a> any more. TQt provides many useful features
|
|
||||||
that we can begin using immediately. Some of the most interesting
|
|
||||||
ones are presented below as a guide for where to start extending your
|
|
||||||
existing projects.
|
|
||||||
<p> <h2> Using Unicode
|
|
||||||
</h2>
|
|
||||||
<a name="1"></a><p> Support for <a href="i18n.html">internationalization</a> is very easy
|
|
||||||
with TQt. Using <a href="tqstring.html">TQString</a> instead of <tt>char*</tt> for storing text gives
|
|
||||||
us support for most of the written languages around the world. Our <tt>Page</tt> and <tt>Options</tt> structs look much simpler now.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> All functions that use the <tt>Page</tt> and <tt>Options</tt> structs need to be
|
|
||||||
updated to use TQString properly. Since TQString is also an <a href="shclass.html#implicitly-shared">implicitly shared</a> class, we no longer have to do any memory management with our
|
|
||||||
strings. We can remove all occurences of the <a href="tqcstring.html#qstrdup">tqstrdup</a>() function,
|
|
||||||
and we never need to use <em>new</em> or <em>delete</em> when done with a string.
|
|
||||||
TQString will allocate and delete data when needed.
|
|
||||||
<p> Here are the <tt>MainWindow::fileOpen()</tt> and <tt>MainWindow::pageChange()</tt>
|
|
||||||
functions from <tt>mainwindow.ui.h</tt>. Notice that the code no longer
|
|
||||||
uses <em>delete</em> or <a href="tqcstring.html#qstrdup">tqstrdup</a>() when storing text.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> <pre>
|
|
||||||
...
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> Almost all of the functions in our application are affected by this
|
|
||||||
change. In most cases, we end up removing more code than we are
|
|
||||||
adding. To keep the size of this walkthrough reasonable, we've only
|
|
||||||
shown a small portion of the required changes, since the changes are
|
|
||||||
very similar to those shown above.
|
|
||||||
<p> <h2> Writing Platform-Independent Code
|
|
||||||
</h2>
|
|
||||||
<a name="2"></a><p> TQt provides many <a href="io.html">input and output</a> classes. We
|
|
||||||
can use these in <tt>MainWindow::readDB()</tt> and <tt>MainWindow::saveDB()</tt>.
|
|
||||||
Currently, these functions use functions only found on UNIX machines.
|
|
||||||
Using <a href="tqfile.html">TQFile</a> and <a href="tqtextstream.html">TQTextStream</a> removes this dependency on UNIX, and we can
|
|
||||||
begin building and testing our application on Microsoft Windows and
|
|
||||||
Apple Mac OS X.
|
|
||||||
<p> The platform-independent versions of the <tt>MainWindow::readDB()</tt> and
|
|
||||||
<tt>MainWindow::saveDB()</tt> functions can be found in the <tt>io.cpp</tt> file.
|
|
||||||
<p> <h2> Designing a Modern User Interface
|
|
||||||
</h2>
|
|
||||||
<a name="3"></a><p> Since we used the <em>TQt Designer</em> to design the <em>Main Window</em>
|
|
||||||
widget, we can extend the interface easily. We can use some of the
|
|
||||||
more advanced features of <a href="tqmainwindow.html">TQMainWindow</a>, which includes dockable
|
|
||||||
toolbars. Adding these is simple with the <em>TQt Designer</em>. The
|
|
||||||
final version of our project includes a toolbar, which provides quick
|
|
||||||
access to the <em>Open</em>, <em>Save</em>, <em>Print</em>, <em>New Page</em> and <em>Delete to Trash</em> actions.
|
|
||||||
<p> The possibilities are endless. An <em>Edit</em> menu, with the common <em>Cut</em>, <em>Copy</em> and <em>Paste</em> actions, could be added in a relatively
|
|
||||||
short period of time.
|
|
||||||
<p> [ <a href="motif-walkthrough-9.html">Previous: Replacing the Print Dialog</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
<p>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,101 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/doc/walkthrough.doc:243 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>Preparing to Migrate the User Interface</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Preparing to Migrate the User Interface</h1>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[ <a href="motif-walkthrough-1.html">Previous: Getting Started</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-3.html">Next: Using TQt Standard Dialogs</a> ]
|
|
||||||
<p> We are ready to start migrating the user interface for our project.
|
|
||||||
As mentioned in the introduction, we do this in steps, ensuring that
|
|
||||||
our application is still usable at every step of the migration process.
|
|
||||||
<p> The user interface can be viewed as a hierarchy; each top-level window
|
|
||||||
and dialog depends upon a parent (which is another top-level window or
|
|
||||||
dialog). When using <a href="motif-extension.html#Motif">Motif</a> <tt>XmMainWindow</tt> widgets, these should be
|
|
||||||
viewed as two separate entities: the <em>Main Window</em> widget with the
|
|
||||||
popup-menu hierarchy and the <em>View</em> widget contained in the <em>Main Window</em> widget. The <em>View</em> widget depends on the <em>Main Window</em>
|
|
||||||
widget.
|
|
||||||
<p> We begin migrating the pieces that have no dependencies, and work our
|
|
||||||
way up the dependency tree until all the pieces have been migrated.
|
|
||||||
<p> The hierarchy for this project looks something like this:
|
|
||||||
<p> <center><img src="motif-todo.png" alt="Motif Todo Hierarchy"></center>
|
|
||||||
<p> We will begin by migrating and replacing all of the dialogs, then the
|
|
||||||
<em>Main Window</em> widget with popup-menu hierarchy, and finally the <em>View</em> widget.
|
|
||||||
<p> However, we are not ready to begin just yet. The migration process can
|
|
||||||
be long, but it does not have to be difficult. The <em>Open</em>, <em>Save As</em>, <em>Page Delete</em> and <em>IO Error</em> dialogs use Motif <tt>XmFileSelectionBox</tt> and <tt>XmMessageBox</tt> dialogs. TQt provides similar
|
|
||||||
functionality with <a href="tqfiledialog.html">TQFileDialog</a> and <a href="tqmessagebox.html">TQMessageBox</a>, which we can begin
|
|
||||||
using immediately.
|
|
||||||
<p> The <em>Print</em> dialog is special, however. The <em>Print</em> dialog cannot be
|
|
||||||
replaced until after we have replaced the <em>View</em> widget. TQt provides
|
|
||||||
a complete printing mechanism with <a href="tqprinter.html">TQPrinter</a>, but we cannot start using
|
|
||||||
it until we have replaced the <em>View</em> widget.
|
|
||||||
<p> <h2> Removing the <em>Help</em> Dialog
|
|
||||||
</h2>
|
|
||||||
<a name="1"></a><p> The <em>Help</em> dialog is also special. Instead of replacing the <em>Help</em>
|
|
||||||
dialog with a custom <a href="tqdialog.html">TQDialog</a>, we will use the <a href="helpsystem.html">TQt
|
|
||||||
Help System</a> classes to provide a more advanced online help.
|
|
||||||
However, we cannot start using classes like <a href="tqtooltip.html">TQToolTip</a> and <a href="tqwhatsthis.html">TQWhatsThis</a>
|
|
||||||
until we replace the <em>Main Window</em> and <em>View</em> widgets.
|
|
||||||
<p> The help text included with the original project is very small and
|
|
||||||
only contains information about the <tt>XmNoteBook</tt> widget. The use of
|
|
||||||
tooltips and whats-this text will suffice for this example. If your
|
|
||||||
migration project has a large online <a href="helpsystem.html#help-system">help system</a>, we recommend looking
|
|
||||||
at the <a href="helpviewer-example.html">Simple HTML Help Browser</a>
|
|
||||||
example for information on how to build an rich text help system with
|
|
||||||
hypertext navigation and full printing capabilities, or using <a href="assistant.html">TQt Assistant</a>.
|
|
||||||
<p> Removing the existing <em>Help</em> dialog is relatively simple. We remove
|
|
||||||
the <tt>Xmd/Help.h</tt>, <tt>Xmd/HelpP.h</tt> and <tt>Xmd/Help.c</tt> files from our
|
|
||||||
project file and regenerate our <tt>Makefile</tt>.
|
|
||||||
<p> The code to create the <em>Help</em> menu and <em>Help</em> dialog is in <tt>todo.cpp</tt>. We remove the <tt>Xmd/Help.h</tt> include, the <tt>*help_manager</tt>
|
|
||||||
resource string, the <tt>help_cb()</tt> function forward declaration and the
|
|
||||||
<tt>help_widget</tt> global variable. We also need to remove the code that
|
|
||||||
creates the <em>Help</em> dialog. We will also remove the code to create
|
|
||||||
the <em>Help</em> menu, since this menu is now empty. Finally, we remove
|
|
||||||
the <tt>help_cb()</tt> function implementation.
|
|
||||||
<p> The <em>Help</em> dialog is now removed from our project. We cannot add
|
|
||||||
<a href="tqtooltip.html">TQToolTip</a> and <a href="tqwhatsthis.html">TQWhatsThis</a> help at the moment, since we are still using
|
|
||||||
<tt>XmMainWindow</tt> for the <em>Main Window</em> widget. Once we have
|
|
||||||
migrated the <em>Main Window</em> and the popup-menu hierarchy, we can
|
|
||||||
begin using TQToolTip and TQWhatsThis for online help.
|
|
||||||
<p> [ <a href="motif-walkthrough-1.html">Previous: Getting Started</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-3.html">Next: Using TQt Standard Dialogs</a> ]
|
|
||||||
<p>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,178 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/doc/walkthrough.doc:334 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>Using TQt Standard Dialogs</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Using TQt Standard Dialogs</h1>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[ <a href="motif-walkthrough-2.html">Previous: Preparing to Migrate the User Interface</a> ]
|
|
||||||
[ <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="tqfiledialog.html">TQFileDialog</a> and <a href="tqmessagebox.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
|
|
||||||
<tr bgcolor="#d0d0d0"> <td valign="top">TQFileDialog::getSaveFileName() <td valign="top">replacement for the <em>Save As</em> dialog
|
|
||||||
<tr bgcolor="#f0f0f0"> <td valign="top">TQMessageBox::information() <td valign="top">replacement for <em>Page Delete</em> dialog
|
|
||||||
<tr bgcolor="#d0d0d0"> <td valign="top">TQMessageBox::warning() <td valign="top">replacement for <em>IO Error</em> dialog.
|
|
||||||
</table></center>
|
|
||||||
<p> Each of these functions takes a <em>TQWidget *parent</em> argument. If we
|
|
||||||
pass zero as the <em>parent</em> argument, then we will have dialogs that
|
|
||||||
are centered on the screen, instead of being centered over our main
|
|
||||||
window. We can have <a href="tqmotifwidget.html">TQMotifWidget</a> create our <tt>XmMainWindow</tt>, and we
|
|
||||||
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="tqfiledialog.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="tqmotif.html">TQMotif</a> can do this for us.
|
|
||||||
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="tqmotifwidget.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.
|
|
||||||
The top-level window is now a TQMotifWidget, which means we can use it
|
|
||||||
as the parent for the TQt Standard Dialogs.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> <h2> Replacing the <em>Open</em> and <em>Save As</em> Dialogs
|
|
||||||
</h2>
|
|
||||||
<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="tqfiledialog.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.
|
|
||||||
<p> First we must change the declaration of these two functions.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> We also change the arguments to the callbacks. We pass the top-level
|
|
||||||
<a href="tqmotifwidget.html">TQMotifWidget</a> as the <tt>client_data</tt> to these functions, since we will
|
|
||||||
be using it as the parent for the TQFileDialog.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> <pre>
|
|
||||||
...
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> Next, we modify the <tt>Save()</tt> function to use
|
|
||||||
<a href="tqfiledialog.html#getSaveFileName">TQFileDialog::getSaveFileName</a>().
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> ... and the <tt>Open()</tt> function to use <a href="tqfiledialog.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="tqfiledialog.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
|
|
||||||
need to migrate this file to C++. We rename it to <tt>actions.cpp</tt>,
|
|
||||||
modify the project file and regenerate the <tt>Makefile</tt>.
|
|
||||||
<p> The changes required to make <tt>actions.cpp</tt> compile are minimal. We
|
|
||||||
need to wrap more C header files and global variables in an <tt>extern "C"</tt> block.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> We need to forward declare the <tt>NewPage()</tt>, <tt>DeletePage()</tt>, <tt>EditPage()</tt> and <tt>SaveIt()</tt> functions so that the compiler generates
|
|
||||||
the correct symbols for these functions.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> We need to fix a single invalid pointer cast.
|
|
||||||
<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="tqmessagebox.html#information">TQMessageBox::information</a>().
|
|
||||||
<p> First, we need to make sure we include the proper header for
|
|
||||||
<a href="tqmessagebox.html">TQMessageBox</a>.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<pre></pre>
|
|
||||||
<p> The code for <tt>DeletePage()</tt> looks like this:
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> At this point in the code, the page should be deleted. The code to do
|
|
||||||
this is in the <tt>DoDeletePage()</tt> function. We move the contents of <tt>DoDeletePage()</tt> to this point and remove the <tt>DoDeletePage()</tt> function
|
|
||||||
completely.
|
|
||||||
<p> Next, we change <tt>todo.cpp</tt> to pass the top-level <a href="tqmotifwidget.html">TQMotifWidget</a> as the
|
|
||||||
<tt>client_data</tt> tot he <tt>DeletePage()</tt> function.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> The <em>IO Error</em> dialog is created and used in <tt>io.c</tt>. We need to
|
|
||||||
migrate this file to C++. We rename it to <tt>io.cpp</tt>, modify the
|
|
||||||
project file and regenerate the <tt>Makefile</tt>.
|
|
||||||
<p> The changes required to make <tt>io.cpp</tt> compile are minimal. We need
|
|
||||||
to wrap more C header files and global variables in an <tt>extern "C"</tt>
|
|
||||||
block.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> We need to forward declare the <tt>ReadDB()</tt> and <tt>SaveDB()</tt> functions
|
|
||||||
so that the compiler generates the correct symbols for these
|
|
||||||
functions.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> The <tt>ParseNewLines()</tt> function needs to be converted to proper C++.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> The <tt>PrintWithNewLines()</tt> function also needs to be converted to proper
|
|
||||||
C++.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> We can now change the <tt>ReadDB()</tt> and <tt>SaveDB()</tt> functions to use
|
|
||||||
<a href="tqmessagebox.html#warning">TQMessageBox::warning</a>().
|
|
||||||
<p> First, we need to make sure we include the proper header for <a href="tqmessagebox.html">TQMessageBox</a>.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<pre></pre>
|
|
||||||
<p> The code for <tt>ReadDB()</tt> looks like this:
|
|
||||||
<p> <pre></pre><pre>
|
|
||||||
...
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> The code for <tt>SaveDB()</tt> looks like this:
|
|
||||||
<p> <pre></pre><pre>
|
|
||||||
...
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> After we build the project, the application runs and operates as
|
|
||||||
expected. The difference is that the <em>Page Delete</em> and <em>IO Error</em> dialogs now use TQMessageBox.
|
|
||||||
<p> [ <a href="motif-walkthrough-2.html">Previous: Preparing to Migrate the User Interface</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-4.html">Next: Using Custom TQDialogs</a> ]
|
|
||||||
<p>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,102 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/doc/walkthrough.doc:561 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>Using Custom TQDialogs</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Using Custom TQDialogs</h1>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[ <a href="motif-walkthrough-3.html">Previous: Using TQt Standard Dialogs</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-5.html">Next: Using Existing Dialogs with TQMotifDialog</a> ]
|
|
||||||
<p> After we have replaced the standard dialogs, we move onto the custom
|
|
||||||
dialogs. This project has a single custom dialog: the <em>Page Edit</em>
|
|
||||||
dialog.
|
|
||||||
<p> Instead of writing the code ourselves, we use <a href="designer-manual.html">TQt Designer</a> to design our dialog.
|
|
||||||
Designing a custom dialog is beyond the scope of
|
|
||||||
this document: see the <a href="designer-manual.html">TQt Designer Manual</a> if you're unfamiliar
|
|
||||||
with TQt's visual design tool.
|
|
||||||
<p> <h2> Replacing the <em>Page Edit</em> Dialog
|
|
||||||
</h2>
|
|
||||||
<a name="1"></a><p> The custom <a href="tqdialog.html">TQDialog</a> description for the <em>Page Edit</em> dialog is saved
|
|
||||||
as <tt>pageeditdialog.ui</tt>. We add this file to the project file by
|
|
||||||
adding the line
|
|
||||||
<pre>
|
|
||||||
FORMS = pageeditdialog.ui
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
to the <tt>.pro</tt> file, and regenerate the <tt>Makefile</tt>. The <em>uic</em>
|
|
||||||
utility generates the code for our custom TQDialog, which is then
|
|
||||||
compiled and linked into our application. (<em>uic</em> is invoked
|
|
||||||
automatically from makefiles generated from <tt>.pro</tt> files.)
|
|
||||||
<p> We need to pass the top-level <a href="tqmotifwidget.html">TQMotifWidget</a> as the <em>client_data</em>
|
|
||||||
argument to the <tt>EditPage</tt> function, which we will use as the parent
|
|
||||||
for our new <tt>PageEditDialog</tt>. We do this the same way as we have
|
|
||||||
done for the <em>Open</em> and <em>Save As</em> dialogs in <tt>todo.cpp</tt>.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> The <tt>EditPage()</tt> function is implemented in <tt>actions.cpp</tt>. We start
|
|
||||||
by adding the includes needed for the <tt>PageEditDialog</tt> and <a href="tqlineedit.html">TQLineEdit</a>.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> In the <tt>EditPage()</tt> function, We create the <tt>PageEditDialog</tt>, set
|
|
||||||
the initial values of the three TQLineEdit widgets with values from the
|
|
||||||
current page and execute the dialog.
|
|
||||||
<p> <pre></pre><pre>
|
|
||||||
...
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> At this point in the code, the page properties should be modified. The
|
|
||||||
code to do this is in the <tt>DoEditPage()</tt> function. We move the
|
|
||||||
contents of <tt>DoEditPage()</tt> to this point and remove the <tt>DoEditPage()</tt> function completely.
|
|
||||||
<p> The <tt>Page</tt> struct defined in <tt>page.h</tt> stores strings in <tt>char*</tt>
|
|
||||||
arrays. Since the PageEditDialog and the data it contains will be
|
|
||||||
destroyed when we return from this function, we need to convert the
|
|
||||||
unicode <a href="tqstring.html">TQString</a> data into a <a href="tqcstring.html">TQCString</a> in the local encoding and
|
|
||||||
duplicate it with <a href="tqcstring.html#qstrdup">tqstrdup</a>().
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> The same process must be done for the minorTab text:
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> ... and for the majorTab text:
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> [ <a href="motif-walkthrough-3.html">Previous: Using TQt Standard Dialogs</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-5.html">Next: Using Existing Dialogs with TQMotifDialog</a> ]
|
|
||||||
<p>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,109 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/doc/walkthrough.doc:661 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>Using Existing Dialogs with TQMotifDialog</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Using Existing Dialogs with TQMotifDialog</h1>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[ <a href="motif-walkthrough-4.html">Previous: Using Custom TQDialogs</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-6.html">Next: Using TQt Main Window Classes</a> ]
|
|
||||||
<p> As mentioned earlier, the <em>Print</em> dialog cannot be replaced until we
|
|
||||||
have converted the <em>View</em> widget. The <em>Print</em> dialog will be
|
|
||||||
removed once we have finished our migration, since we will use
|
|
||||||
<a href="tqprinter.html">TQPrinter</a> instead. Based on this information, we decide that it is not
|
|
||||||
worth replacing the <em>Print</em> dialog with a custom <a href="tqdialog.html">TQDialog</a> replacement.
|
|
||||||
Instead, we will keep the <a href="motif-extension.html#Motif">Motif</a> based dialog and use <a href="tqmotifdialog.html">TQMotifDialog</a> to
|
|
||||||
integrate the dialog with the application.
|
|
||||||
<p> <h2> Modality Requirements
|
|
||||||
</h2>
|
|
||||||
<a name="1"></a><p> Modality with TQDialog is different from Motif. The <a href="tqdialog.html#exec">TQDialog::exec</a>()
|
|
||||||
function does not return until the dialog is finished. In Motif,
|
|
||||||
modality is simply a property of the shell, and the application
|
|
||||||
programmer must write TQDialog::exec() style functionality if they
|
|
||||||
want that behavior.
|
|
||||||
<p> Since we will be using TQMotifDialog (which is a TQDialog subclass), we
|
|
||||||
will need to have an <em>accept</em> and a <em>reject</em> callback for each
|
|
||||||
dialog we integrate with TQMotifDialog. The predefined Motif dialogs
|
|
||||||
have these already: the <tt>XmNokCallback</tt> and <tt>XmNcancelCallback</tt>
|
|
||||||
callbacks. However, the <em>Print</em> dialog only has an <em>accept</em> callback
|
|
||||||
(the <tt>XmdNprintCallback</tt>), but it does not have a <em>reject</em> callback.
|
|
||||||
We need to add this.
|
|
||||||
<p> This is easily done. We add an <tt>XtCallbackList</tt> for the <tt>XmNcancelCallback</tt> callback in <tt>Xmd/PrintP.h</tt>:
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<pre></pre>
|
|
||||||
<p> We add the <tt>XmNcancelCallback</tt> callback to the list of resources for
|
|
||||||
the <tt>XmdPrint</tt> widget class in <tt>Xmd/Print.c</tt>:
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<pre></pre>
|
|
||||||
<p> We need to activate this callback whenever we unmanage the widget and
|
|
||||||
do not activate the <em>print</em> callback, which is in the <tt>do_help_cb()</tt>
|
|
||||||
function:
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> ... and in the unmanage_cb() function:
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> <h2> Integrating the <em>Print</em> Dialog
|
|
||||||
</h2>
|
|
||||||
<a name="2"></a><p> Now that the <em>Print</em> dialog has the appropriate <em>accept</em> and <em>reject</em> callbacks, we can use <a href="tqmotifdialog.html">TQMotifDialog</a>. First we need to include
|
|
||||||
the TQMotifDialog header in <tt>todo.cpp</tt>.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> We add a <tt>ShowPrintDialog()</tt> function which will create and execute the
|
|
||||||
print dialog.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> We change the <em>Print</em> menu item callback to call the new <tt>ShowPrintDialog()</tt> function. We pass the top-level <a href="tqmotifwidget.html">TQMotifWidget</a>, which
|
|
||||||
we will use as the parent for the dialog.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> The <tt>ShowPrintDialog()</tt> function creates the <em>Print</em> dialog and
|
|
||||||
executes it. We use the <tt>XmdNprintCallback</tt> callback to accept the
|
|
||||||
dialog and the <tt>XmNcancelCallback</tt> callback to reject the dialog. We
|
|
||||||
can do this easily by using the <a href="tqmotifdialog.html#acceptCallback">TQMotifDialog::acceptCallback</a>() and
|
|
||||||
<a href="tqmotifdialog.html#rejectCallback">TQMotifDialog::rejectCallback</a>() functions, respectively. We also
|
|
||||||
ensure that the <em>print</em> callback continues to call the <tt>Print()</tt> function as before.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> After we build the project, the application runs and operates as
|
|
||||||
expected. There is no visual or behavioral difference, even though
|
|
||||||
the <em>Print</em> dialog is using <a href="tqmotifdialog.html">TQMotifDialog</a>.
|
|
||||||
<p> [ <a href="motif-walkthrough-4.html">Previous: Using Custom TQDialogs</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-6.html">Next: Using TQt Main Window Classes</a> ]
|
|
||||||
<p>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,129 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/doc/walkthrough.doc:776 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>Using TQt Main Window Classes</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Using TQt Main Window Classes</h1>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[ <a href="motif-walkthrough-5.html">Previous: Using Existing Dialogs with TQMotifDialog</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-7.html">Next: Refactoring Existing Code</a> ]
|
|
||||||
<p> After we have replaced all the dialogs, we are ready to begin replacing
|
|
||||||
the <em>Main Window</em>. <a href="motif-walkthrough.html#4">As mentioned
|
|
||||||
above</a>, we will replace the existing <tt>XmMainWindow</tt> and
|
|
||||||
popup-menu heirarchy with <a href="application.html">TQt Main Window
|
|
||||||
Classes</a>.
|
|
||||||
<p> We will use <a href="designer-manual.html">TQt Designer</a> to design
|
|
||||||
our new main window.
|
|
||||||
<p> <h2> Implementing the <em>Main Window</em>
|
|
||||||
</h2>
|
|
||||||
<a name="1"></a><p> The description for the <em>Main Window</em> is saved as <tt>mainwindow.ui</tt>.
|
|
||||||
We add this file to the project file and regenerate the <tt>Makefile</tt>.
|
|
||||||
The <em>uic</em> utility generates the code for our <em>Main Window</em>, which
|
|
||||||
is then compiled and linked into our application.
|
|
||||||
<p> <em>TQt Designer</em> also created the <tt>mainwindow.ui.h</tt> file. We need to
|
|
||||||
add the implementation for our <em>Main Window</em> to this skeleton
|
|
||||||
implementation.
|
|
||||||
<p> We begin by adding the necessary includes for <a href="ntqapplication.html">TQApplication</a>
|
|
||||||
and <a href="tqmotifwidget.html">TQMotifWidget</a>.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> We need includes for the <a href="motif-extension.html#Motif">Motif</a> callback structs and the <tt>XmdPrint</tt>
|
|
||||||
widget.
|
|
||||||
<p> <pre></pre><pre></pre>
|
|
||||||
<p> We are now ready to add implementations for the slots in our <em>Main Window</em>. We have one slot per menu item. Each slot will call the
|
|
||||||
existing callback functions found in <tt>todo.cpp</tt> and <tt>actions.cpp</tt>.
|
|
||||||
<p> <center><table cellpadding="4" cellspacing="2" border="0">
|
|
||||||
<tr bgcolor="#a2c511"> <th valign="top" colspan="3" rowspan="1"> File menu
|
|
||||||
<tr bgcolor="#f0f0f0"> <td valign="top">New <td valign="top"><tt>MainWindow::fileNew()</tt> <td valign="top">calls the <tt>New()</tt> callback
|
|
||||||
<tr bgcolor="#d0d0d0"> <td valign="top">Open <td valign="top"><tt>MainWindow::fileOpen()</tt> <td valign="top">calls the <tt>Open()</tt> callback
|
|
||||||
<tr bgcolor="#f0f0f0"> <td valign="top">Save <td valign="top"><tt>MainWindow::fileSave()</tt> <td valign="top">calls the <tt>SaveIt()</tt> callback
|
|
||||||
<tr bgcolor="#d0d0d0"> <td valign="top">Save As <td valign="top"><tt>MainWindow::fileSaveAs()</tt> <td valign="top">calls the <tt>Save()</tt> callback
|
|
||||||
<tr bgcolor="#f0f0f0"> <td valign="top">Print <td valign="top"><tt>MainWindow::filePrint()</tt> <td valign="top">calls the <tt>ShowPrintDialog()</tt> callback
|
|
||||||
<tr bgcolor="#d0d0d0"> <td valign="top">Exit <td valign="top"><tt>MainWindow::fileExit()</tt> <td valign="top">calls <a href="ntqapplication.html#quit">TQApplication::quit</a>()
|
|
||||||
<tr bgcolor="#a2c511"> <th valign="top" colspan="3" rowspan="1"> Selected menu
|
|
||||||
<tr bgcolor="#f0f0f0"> <td valign="top">Properties <td valign="top"><tt>MainWindow::selProperties()</tt> <td valign="top">calls the <tt>EditPage()</tt> callback
|
|
||||||
<tr bgcolor="#d0d0d0"> <td valign="top">New <td valign="top"><tt>MainWindow::selNewPage()</tt> <td valign="top">calls the <tt>NewPage()</tt> callback
|
|
||||||
<tr bgcolor="#f0f0f0"> <td valign="top">Delete to Trash <td valign="top"><tt>MainWindow::selDeletePage()</tt> <td valign="top">calls the <tt>DeletePage()</tt> callback
|
|
||||||
</table></center>
|
|
||||||
<p> We need to add forward declarations for these callbacks before we can
|
|
||||||
use them.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> Each of the existing callback functions takes three arguments. We pass
|
|
||||||
<em>NULL</em> to all of the arguments in this example (with a few exceptions,
|
|
||||||
see below). The existing code does not rely on any of the arguments.
|
|
||||||
Each slot implementation is a single line calling the related callback
|
|
||||||
function. The code is not very interesting and would just take up
|
|
||||||
space, so we've omitted it.
|
|
||||||
<p> There are four exceptions to the above. The <tt>Open()</tt>, <tt>Save()</tt>, <tt>EditPage()</tt> and <tt>DeletePage()</tt> callbacks accept a pointer to the
|
|
||||||
toplevel <a href="tqwidget.html">TQWidget</a> as argument 2 (the <em>client_data</em> argument). For
|
|
||||||
these four functions, we pass <em>this</em> as the second argument, which is
|
|
||||||
a toplevel <tt>MainWindow</tt> derived from <a href="tqmainwindow.html">TQMainWindow</a>.
|
|
||||||
<p> <h2> Replacing the <em>Main Window</em>
|
|
||||||
</h2>
|
|
||||||
<a name="2"></a><p> The next step is to use the new <em>Main Window</em> in our application.
|
|
||||||
The changes needed in <tt>todo.cpp</tt> are large due to the large amount of
|
|
||||||
code being removed.
|
|
||||||
<p> First, we add the include for our new <em>Main Window</em>.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> We can cleanup the Motif includes, since many of them are no longer
|
|
||||||
needed.
|
|
||||||
<p> <pre></pre><pre></pre><pre></pre>
|
|
||||||
<p> The <tt>QuitAppl()</tt> and <tt>manageCB()</tt> callbacks are not needed any more,
|
|
||||||
so we remove them. We do not need the global <tt>shell</tt> variable
|
|
||||||
either. We remove it and all references to it in the <tt>New()</tt>, <tt>Save()</tt> and <tt>Open()</tt> callbacks.
|
|
||||||
<p> In <tt>main()</tt>, we make the large changes. First, we use our new <tt>MainWindow</tt> instead of <a href="tqmotifwidget.html">TQMotifWidget</a> with <tt>XmMainWindow</tt>.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> We will now use TQMotifWidget to create the <tt>XmNotebook</tt> widget.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> We remove all of the code used to create the Motif menus. The
|
|
||||||
remaining code in <tt>main()</tt> is self-explanatory.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> Our application is now using <a href="tqmainwindow.html">TQMainWindow</a> instead of <tt>XmMainWindow</tt>.
|
|
||||||
After we build the project, the application runs and operates as
|
|
||||||
expected.
|
|
||||||
<p> [ <a href="motif-walkthrough-5.html">Previous: Using Existing Dialogs with TQMotifDialog</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-7.html">Next: Refactoring Existing Code</a> ]
|
|
||||||
<p>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,214 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/doc/walkthrough.doc:921 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>Refactoring Existing Code</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Refactoring Existing Code</h1>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[ <a href="motif-walkthrough-6.html">Previous: Using TQt Main Window Classes</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-8.html">Next: Replacing the View Widget</a> ]
|
|
||||||
<p> In the author's view, the existing code is slightly disorganized.
|
|
||||||
Even though the code <em>does</em> work, some cleanups and reorganization
|
|
||||||
can only help with readability and maintainability. The steps
|
|
||||||
described below are not necessary during the migration process but are
|
|
||||||
included for completeness.
|
|
||||||
<p> <h2> Migrating Data Structures to C++
|
|
||||||
</h2>
|
|
||||||
<a name="1"></a><p> The <tt>Page</tt> data structure is an opaque data type. The real data
|
|
||||||
structure is called <tt>PageRec</tt>; <tt>Page</tt> defined to be a pointer to a
|
|
||||||
<tt>PageRec</tt>. In addition, we have the <tt>AllocPage()</tt> function that
|
|
||||||
allocates and initializes memory for a <tt>PageRec</tt> struct.
|
|
||||||
<p> With C++, we can do this in the constructor. We can also write a
|
|
||||||
destructor which automatically frees all resources in the <tt>PageRec</tt>,
|
|
||||||
instead of having to do it in several different places.
|
|
||||||
<p> The <tt>PageRec</tt> struct declaration is removed from <tt>page.h</tt>. We
|
|
||||||
declare a <tt>Page</tt> struct with the same data members as <tt>PageRec</tt>, a
|
|
||||||
constructor and a destructor.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<pre></pre>
|
|
||||||
<p> The existing <tt>pages</tt>, <tt>currentPage</tt> and <tt>maxpages</tt> global variables
|
|
||||||
are removed from the source files. We replace them with <tt>extern</tt>
|
|
||||||
declarations in <tt>page.h</tt>.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> The global variable instantiations are placed in <tt>todo.cpp</tt>.
|
|
||||||
<p> Each source file contains function declarations that deal with the
|
|
||||||
global <tt>Page</tt> related variables. We remove these declarations from
|
|
||||||
the source files and declare them once in the <tt>page.h</tt> header file.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> Now that <tt>Page</tt> has a constructor, we remove the <tt>AllocPage()</tt>
|
|
||||||
function. It is no longer needed. The calls to <tt>AllocPage()</tt> are
|
|
||||||
replaced with <tt>'new Page()'</tt> in the <tt>NewPage()</tt>, <tt>DeletePage()</tt>
|
|
||||||
and <tt>ReadDB()</tt> functions. We also replace the code to deallocate
|
|
||||||
pages with <tt>delete pages[X]</tt>, where <em>X</em> is the appropriate index
|
|
||||||
value. This is done in the <tt>ReadDB</tt> and <tt>DeletePage()</tt> functions.
|
|
||||||
<p> Code that accesses the global <tt>pages</tt> variable does not need to be
|
|
||||||
modified since the data members of the <tt>Page</tt> struct did not change.
|
|
||||||
The existing code will continue to work.
|
|
||||||
<p> The <tt>OptionsRec</tt> struct declared in <tt>page.h</tt> is also updated,
|
|
||||||
following the same pattern as the <tt>Page</tt> struct above.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> The global variable instantiation is also placed in <tt>todo.cpp</tt>.
|
|
||||||
<p> Code that accesses the global <tt>options</tt> variable does not need to be
|
|
||||||
modified since the data members of the <tt>Options</tt> struct did not
|
|
||||||
change. The existing code will continue to work.
|
|
||||||
<p> <h2> Using <em>new</em> and <em>delete</em>
|
|
||||||
</h2>
|
|
||||||
<a name="2"></a><p> The destructors of the <tt>Page</tt> and <tt>Options</tt> structs use <em>delete</em>
|
|
||||||
instead of <tt>XtFree()</tt> to deallocate all <tt>char*</tt> members. This is a
|
|
||||||
necessary change since we are migrating away from Xt/Motif. We need
|
|
||||||
to fix existing code that modifies the <tt>Page</tt> struct members to use
|
|
||||||
<em>new</em> and <em>delete</em> ( instead of <tt>XtMalloc()</tt>, <tt>XtNewString()</tt> and
|
|
||||||
<tt>XtFree()</tt> ).
|
|
||||||
<p> The <tt>PageChange()</tt> function in <tt>todo.cpp</tt> simply saves the contents
|
|
||||||
and cursor position of current page before calling <tt>SetPage()</tt>. We
|
|
||||||
use <em>new</em> and <em>delete</em> when modifying members of the <tt>Page</tt> struct.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<pre></pre>
|
|
||||||
<p> When storing the context of the <tt>XmText</tt> widget, we use <a href="tqcstring.html#qstrdup">tqstrdup</a>()
|
|
||||||
to make a copy of the string returned by the <tt>XmTextGetString()</tt>
|
|
||||||
function.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> The <tt>ReadDB()</tt> function in <tt>io.cpp</tt> needs similar changes. We
|
|
||||||
replace all use of <tt>XtMalloc()</tt> and <tt>XtNewString()</tt> with <em>new</em> and
|
|
||||||
<a href="tqcstring.html#qstrdup">tqstrdup</a>(), respectively.
|
|
||||||
<p> This needs to be done just after opening the file.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<pre></pre>
|
|
||||||
<p> ... when starting a new page ...
|
|
||||||
<p> <pre>
|
|
||||||
...
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<pre></pre>
|
|
||||||
<p> ... and when reading in the label and tab texts/
|
|
||||||
<p> <pre>
|
|
||||||
...
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<pre></pre><pre>
|
|
||||||
...
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<pre></pre><pre>
|
|
||||||
...
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<pre></pre>
|
|
||||||
<p> The <tt>ReadDB()</tt> function uses <tt>XtRealloc()</tt> to expand the data
|
|
||||||
storage buffer. Unfortunately, C++ does not provide a way to
|
|
||||||
reallocate an existing block of data, so we have to do this ourselves.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> There is also one occurence in <tt>ReadDB()</tt> where we call <tt>XtMalloc()</tt>
|
|
||||||
with an argument of 2. This was done when a file could not be read.
|
|
||||||
Creating an empty string is not necessary, so we remove this code
|
|
||||||
instead of using <em>new</em>.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> The <tt>SaveDB()</tt> function in <tt>io.cpp</tt> also needs these changes. We
|
|
||||||
change one occurence of <tt>XtFree()</tt> to <em>delete</em>.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> Finally, We need to replace two occurences of <tt>XtNewString()</tt> in the <tt>main()</tt> function in <tt>todo.cpp</tt>.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<pre></pre>
|
|
||||||
<p> <h2> Moving Existing Code
|
|
||||||
</h2>
|
|
||||||
<a name="3"></a><p> The rest of the refactoring process involves moving existing code into
|
|
||||||
new places. Currently, each function in the <tt>mainwindow.ui.h</tt> file
|
|
||||||
simply calls the old callback handlers present in the other files.
|
|
||||||
Instead of calling the old callback functions, the implementations are
|
|
||||||
moved accordingly.
|
|
||||||
<p> <center><table cellpadding="4" cellspacing="2" border="0">
|
|
||||||
<tr bgcolor="#a2c511"> <th valign="top">Function <th valign="top">Original File <th valign="top">Moved to Function
|
|
||||||
<tr bgcolor="#f0f0f0"> <td valign="top"><tt>New()</tt> <td valign="top"><tt>todo.cpp</tt> <td valign="top"><tt>MainWindow::fileNew()</tt>
|
|
||||||
<tr bgcolor="#d0d0d0"> <td valign="top"><tt>Open()</tt> <td valign="top"><tt>todo.cpp</tt> <td valign="top"><tt>MainWindow::fileOpen()</tt>
|
|
||||||
<tr bgcolor="#f0f0f0"> <td valign="top"><tt>SaveIt()</tt> <td valign="top"><tt>actions.cpp</tt> <td valign="top"><tt>MainWindow::fileSave()</tt>
|
|
||||||
<tr bgcolor="#d0d0d0"> <td valign="top"><tt>Save()</tt> <td valign="top"><tt>todo.cpp</tt> <td valign="top"><tt>MainWindow::fileSaveAs()</tt>
|
|
||||||
<tr bgcolor="#f0f0f0"> <td valign="top"><tt>ShowPrintDialog()</tt> <td valign="top"><tt>todo.cpp</tt> <td valign="top"><tt>MainWindow::filePrint()</tt>
|
|
||||||
<tr bgcolor="#d0d0d0"> <td valign="top"><tt>EditPage()</tt> <td valign="top"><tt>actions.cpp</tt> <td valign="top"><tt>MainWindow::selProperties()</tt>
|
|
||||||
<tr bgcolor="#f0f0f0"> <td valign="top"><tt>NewPage()</tt> <td valign="top"><tt>actions.cpp</tt> <td valign="top"><tt>MainWindow::selNewPage()</tt>
|
|
||||||
<tr bgcolor="#d0d0d0"> <td valign="top"><tt>DeletePage()</tt> <td valign="top"><tt>actions.cpp</tt> <td valign="top"><tt>MainWindow::selDeletePage()</tt>
|
|
||||||
</table></center>
|
|
||||||
<p> The <tt>Print()</tt> callback function is still used by the <em>Print</em>
|
|
||||||
dialog, so we move it into <tt>mainwindow.ui.h</tt> and make it <tt>static</tt>.
|
|
||||||
<p> Previously, the <tt>Open()</tt>, <tt>Save()</tt>, <tt>EditPage()</tt> and <tt>DeletePage()</tt>
|
|
||||||
functions created dialogs with <em>client_data</em> as the parent argument.
|
|
||||||
Since we have moved the code directly into the <em>Main Window</em>
|
|
||||||
implementation, we create these dialogs with <em>this</em> as the parent
|
|
||||||
argument.
|
|
||||||
<p> The <tt>PageChange()</tt> callback function is moved from <tt>actions.cpp</tt>
|
|
||||||
to <tt>todo.cpp</tt> and made <tt>static</tt> since it is not used anywhere else.
|
|
||||||
<p> Earlier modifications to <tt>actions.cpp</tt> caused the <tt>Trim()</tt> function
|
|
||||||
to become redundant, so we remove it.
|
|
||||||
<p> The <tt>MIN()</tt> and <tt>MAX()</tt> macros in <tt>todo.cpp</tt> are redundant. TQt
|
|
||||||
provides the <tt>TQMIN()</tt> and <tt>TQMAX()</tt> macros which we will use.
|
|
||||||
<p> Earlier modifications caused the <tt>fallback_resources</tt> array to become
|
|
||||||
redundant, so we remove it.
|
|
||||||
<p> In the near future, our program will not use <a href="motif-extension.html#Motif">Motif</a> any more, and we
|
|
||||||
will no longer need to use <a href="tqmotif.html">TQMotif</a>. To prepare for this, we remove the
|
|
||||||
<tt>resources</tt> and <tt>optionDesc</tt> arrays and create the TQMotif instance
|
|
||||||
with just the <em>APP_CLASS</em> argument.
|
|
||||||
<p> The <tt>#include</tt> statements in the source files are mostly incorrect
|
|
||||||
due to the refactoring changes. Many of the <tt>#include</tt> statements
|
|
||||||
are no longer needed. The <tt>#include</tt> statements from each file are
|
|
||||||
listed below, instead of describing which includes are removed and
|
|
||||||
added to each file.
|
|
||||||
<p> Includes for <tt>actions.cpp</tt>:
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<pre></pre>
|
|
||||||
<p> Includes for <tt>io.cpp</tt>:
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<pre></pre><pre></pre><pre></pre>
|
|
||||||
<p> Includes for <tt>todo.cpp</tt>:
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<pre></pre><pre></pre><pre></pre>
|
|
||||||
<p> Includes for <tt>mainwindow.ui.h</tt>:
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<pre></pre><pre></pre><pre></pre><pre></pre><pre></pre>
|
|
||||||
<p> [ <a href="motif-walkthrough-6.html">Previous: Using TQt Main Window Classes</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-8.html">Next: Replacing the View Widget</a> ]
|
|
||||||
<p>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,104 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/doc/walkthrough.doc:1477 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>Replacing the Print Dialog</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Replacing the Print Dialog</h1>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[ <a href="motif-walkthrough-8.html">Previous: Replacing the View Widget</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-10.html">Next: Continuing Development</a> ]
|
|
||||||
<p> The <em>Print</em> dialog is the last component in our application that
|
|
||||||
uses <a href="motif-extension.html#Motif">Motif</a>. The current <tt>Print()</tt> function does nothing more than
|
|
||||||
write the plain text to a temporary file, and then executes 'lpr' to
|
|
||||||
send the text to the printer. Since we will use <a href="tqprinter.html">TQPrinter</a>, we do not
|
|
||||||
this function any more, so we remove it. The current <tt>MainWindow::filePrint()</tt> implementation is removed as well. We will
|
|
||||||
write a new <tt>MainWindow::filePrint()</tt> implementation in <tt>mainwindow.ui.h</tt>.
|
|
||||||
<p> Note: The steps involved in using the TQPrinter class are beyond the
|
|
||||||
scope of this walkthrough and will not be discussed here. The
|
|
||||||
TQPrinter Class Reference, <a href="tqsimplerichtext.html">TQSimpleRichText</a> Class Reference and the
|
|
||||||
<a href="simple-application.html">Simple Application Walkthrough</a>
|
|
||||||
contain information on the use of TQPrinter.
|
|
||||||
<p> For completeness, the code to initialize a TQPrinter object is included below.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<pre></pre>
|
|
||||||
<p> <h2> Using Rich Text for Printing
|
|
||||||
</h2>
|
|
||||||
<a name="1"></a><p> TQt provides rich text using a subset of HTML. The TQSimpleRichText
|
|
||||||
class makes rich-text printing simple. All we need to do is create a
|
|
||||||
string with the proper format tags inserted at the appropriate
|
|
||||||
places. For our example, we will keep the printing output similar to
|
|
||||||
previous versions.
|
|
||||||
<p> First, we create the format tags that we will use.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> Next we just loop over all pages, appending the page label, contents
|
|
||||||
and formatting characters to a <tt>printtext</tt> variable (which is a
|
|
||||||
<a href="tqstring.html">TQString</a>).
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> The rest of the <tt>MainWindow::filePrint()</tt> function is the actual
|
|
||||||
printing code. Here we simply create a <a href="tqsimplerichtext.html">TQSimpleRichText</a> object using
|
|
||||||
the string we created above, and draw this string on the <a href="tqprinter.html">TQPrinter</a>
|
|
||||||
object using <a href="tqpainter.html">TQPainter</a>.
|
|
||||||
<p> <pre></pre>
|
|
||||||
<p> <h2> Removing the Dependency on Xt/Motif
|
|
||||||
</h2>
|
|
||||||
<a name="2"></a><p> Our application no longer uses any Xt or Motif widgets. We can now
|
|
||||||
finish removing the dependencies on Xt and Motif.
|
|
||||||
<p> First, we cleanup the <tt>#include</tt> statements in <tt>mainwindow.ui.h</tt>.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
<p> <pre></pre><pre></pre>
|
|
||||||
<p> The <tt>MainWindow::fileNew()</tt> function uses the <tt>Boolean</tt> and <tt>False</tt>
|
|
||||||
keywords from the Xt library. C++ has these built into the language,
|
|
||||||
so we use <tt>bool</tt> and <tt>false</tt> instead.
|
|
||||||
<p> The last modification needed to completely remove Xt and Motif from
|
|
||||||
our application is to stop using the <a href="tqmotif.html">TQMotif</a> class. We remove the
|
|
||||||
tqmotif.h <tt>#include</tt> statement from <tt>todo.cpp</tt>, and remove the
|
|
||||||
instantiation from the <tt>main()</tt> function.
|
|
||||||
<p> After doing this, we can remove the <tt>-lXm</tt> and <tt>-lqmotif</tt> from the
|
|
||||||
<tt>LIBS</tt> variable in our project file. Our project file also contains
|
|
||||||
source and headers for the the old custom Motif widgets previously
|
|
||||||
used in our application. We remove these as well.
|
|
||||||
<p> After regenerating the <tt>Makefile</tt> and building our project, we
|
|
||||||
confirm that the application works correctly.
|
|
||||||
<p> [ <a href="motif-walkthrough-8.html">Previous: Replacing the View Widget</a> ]
|
|
||||||
[ <a href="motif-walkthrough.html">Home</a> ]
|
|
||||||
[ <a href="motif-walkthrough-10.html">Next: Continuing Development</a> ]
|
|
||||||
<p>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,150 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/doc/walkthrough.doc:2 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>TQt Motif Extension - A Migration Walkthrough</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>TQt Motif Extension - A Migration Walkthrough</h1>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[ <a href="motif-walkthrough-1.html">Next: Getting Started</a> ]
|
|
||||||
<p> This walkthrough covers a complete migration of a <a href="motif-extension.html#Motif">Motif</a> based program
|
|
||||||
to the TQt toolkit using the <em>TQt Motif Extension</em>.
|
|
||||||
<p> It is rarely practical for a large project with hundreds of thousands
|
|
||||||
or even millions of lines of code to be migrated all at once; such an
|
|
||||||
endeavor would require too many development resources and would incur
|
|
||||||
significant risks. Every line of code would have to be rewritten,
|
|
||||||
every user interface redesigned, and quality assurance tests and
|
|
||||||
procedures all rewritten. The <em>TQt Motif Extension</em> provides a
|
|
||||||
complete and working solution for incremental migration that can be
|
|
||||||
paced to suit each individual project and the available resources. The
|
|
||||||
user interface and related code can be migrated in steps while the
|
|
||||||
rest of the project need not be changed at all.
|
|
||||||
<p> This walkthrough is intended for programmers who will be migrating an
|
|
||||||
existing Motif based project to the TQt toolkit. We assume that they
|
|
||||||
have experience with C/C++ and Xt/Motif. Some experience with the TQt
|
|
||||||
toolkit is also necessary. For developers completely new to TQt we
|
|
||||||
recommend following the learning plan outlined in <a href="how-to-learn-tqt.html">How to Learn TQt</a>; or to go on a TQt
|
|
||||||
training course. (See <a href="http://www.trolltech.com">http://www.trolltech.com</a> for
|
|
||||||
details of training courses.)
|
|
||||||
<p> <h2> Goals for the Walkthrough
|
|
||||||
</h2>
|
|
||||||
<a name="1"></a><p> The goal of this walkthrough is to provide the reader with enough
|
|
||||||
knowledge to migrate Motif applications to the TQt toolkit. We will do
|
|
||||||
this by example: We will convert a real-world Motif based program
|
|
||||||
step-by-step. This walkthrough will discuss both techniques and their
|
|
||||||
rationales throughout the process. This walkthrough is broken down
|
|
||||||
into individual chapters which cover a specific topic:
|
|
||||||
<p> <ul>
|
|
||||||
<li> Chapter 1: <a href="motif-walkthrough-1.html">Getting Started</a>
|
|
||||||
<li> Chapter 2: <a href="motif-walkthrough-2.html">Preparing to Migrate the User Interface</a>
|
|
||||||
<li> Chapter 3: <a href="motif-walkthrough-3.html">Using TQt Standard Dialogs</a>
|
|
||||||
<li> Chapter 4: <a href="motif-walkthrough-4.html">Using Custom TQDialogs</a>
|
|
||||||
<li> Chapter 5: <a href="motif-walkthrough-5.html">Using Existing Dialogs with TQMotifDialog</a>
|
|
||||||
<li> Chapter 6: <a href="motif-walkthrough-6.html">Using TQt Main Window Classes</a>
|
|
||||||
<li> Chapter 7: <a href="motif-walkthrough-7.html">Refactoring Existing Code</a>
|
|
||||||
<li> Chapter 8: <a href="motif-walkthrough-8.html">Replacing the View Widget</a>
|
|
||||||
<li> Chapter 9: <a href="motif-walkthrough-9.html">Replacing the Print Dialog</a>
|
|
||||||
<li> Chapter 10: <a href="motif-walkthrough-10.html">Continuing Development</a>
|
|
||||||
</ul>
|
|
||||||
<p> We will use the <em>todo</em> demo program included with the Motif 2.x
|
|
||||||
distribution as our migration project. This walkthrough contains
|
|
||||||
references to the source code, which is included in the <tt>extensions/motif/examples/walkthrough</tt> subdirectory.
|
|
||||||
<p> <h2> Prerequisites
|
|
||||||
</h2>
|
|
||||||
<a name="2"></a><p> Before we can start using the <em>TQt Motif Extension</em>, we must satisfy
|
|
||||||
these requirements:
|
|
||||||
<p> <ol type=1>
|
|
||||||
<li> We are using the X11R6.x and Motif 2.x libraries.
|
|
||||||
<li> The project is compilable by a C++ compiler.
|
|
||||||
<li> We have built and installed the <em>TQt Motif Extension</em>.
|
|
||||||
<li> We have built and linked the project with the TQt toolkit and the <em>TQt Motif Extension</em>
|
|
||||||
</ol>
|
|
||||||
<p> <h3> X11R6.x and Motif 2.x Libraries
|
|
||||||
</h3>
|
|
||||||
<a name="2-1"></a><p> The mechanisms used by the <em>TQt Motif Extension</em> require development
|
|
||||||
headers and libraries from the X11R6 release and the Motif 2.0
|
|
||||||
release. Newer versions of these can also be used.
|
|
||||||
<p> <h3> C++ Compiler
|
|
||||||
</h3>
|
|
||||||
<a name="2-2"></a><p> Since TQt is a C++ toolkit, all new code will be written in C++. In
|
|
||||||
order for existing code to coexist with new code, a C++ compiler must
|
|
||||||
be able to compile the existing code.
|
|
||||||
<p> It is possible to keep existing code and new code separate, and only
|
|
||||||
convert or rewrite existing code as needed. This is a normal part
|
|
||||||
of the migration process, and does not need to be done before the
|
|
||||||
migration process begins. This is the most common scenario, and we
|
|
||||||
will demonstrate it by migrating existing C code to C++ as needed in
|
|
||||||
this walkthrough.
|
|
||||||
<p> <h3> Build and Install the TQt Motif Extension
|
|
||||||
</h3>
|
|
||||||
<a name="2-3"></a><p> The <em>TQt Motif Extension</em> is not built and installed along with the
|
|
||||||
TQt toolkit. The extension resides in the <tt>extensions/motif</tt>
|
|
||||||
subdirectory. Run <em>make</em> in this directory to build the extension
|
|
||||||
and the examples. Once the extension has been built, run <em>make install</em>.
|
|
||||||
<p> <pre>
|
|
||||||
$ cd extensions/motif
|
|
||||||
$ make
|
|
||||||
$ make install
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> The <em>TQt Motif Extension</em> is now installed and ready to use.
|
|
||||||
<p> <h3> Build and Link the Project with the TQt Toolkit and the TQt Motif Extension
|
|
||||||
</h3>
|
|
||||||
<a name="2-4"></a><p> For simplicity, we use <em>qmake</em> to create the <tt>Makefile</tt>. The <tt>-project</tt> option causes <em>qmake</em> to automatically generate a project
|
|
||||||
file. After <em>qmake -project</em> has generated our project file, we
|
|
||||||
run <em>qmake</em> again to generate a <tt>Makefile</tt>. Now, we can just run <em>make</em> to build our project.
|
|
||||||
<p> <pre>
|
|
||||||
$ qmake -project
|
|
||||||
$ qmake
|
|
||||||
$ make
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> Everything builds correctly, but fails to link because we don't link
|
|
||||||
with the Motif library. We tell <em>qmake</em> to do this by adding the <tt>-lXm</tt> to the <tt>LIBS</tt> variable in our project file. Since we are
|
|
||||||
planning to use the <em>TQt Motif Extension</em> in this project as well,
|
|
||||||
we should also add <tt>-lqmotif</tt> to the list of libraries.
|
|
||||||
<p> <pre>
|
|
||||||
LIBS += -lXm -lqmotif
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p> Now we regenerate our <tt>Makefile</tt> by running <tt>qmake</tt> again, and
|
|
||||||
rebuild using <tt>make</tt>. This time, our project successfully links, and
|
|
||||||
the application runs as expected.
|
|
||||||
<p> We are now ready to start using the <em>TQt Motif Extension</em>.
|
|
||||||
<p> [ <a href="motif-walkthrough-1.html">Next: Getting Started</a> ]
|
|
||||||
<p>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,110 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/include/qxtwidget.h:1 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>qxtwidget.h Include File</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>qxtwidget.h</h1>
|
|
||||||
|
|
||||||
<p>This is the verbatim text of the qxtwidget.h include file. It is provided only for illustration; the copyright remains with Trolltech.
|
|
||||||
<hr>
|
|
||||||
<pre>
|
|
||||||
/****************************************************************************
|
|
||||||
** $Id: qt/qxtwidget.h 3.3.8 edited Jan 11 14:37 $
|
|
||||||
**
|
|
||||||
** Definition of TQt extension classes for Xt/Motif support.
|
|
||||||
**
|
|
||||||
** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
|
|
||||||
**
|
|
||||||
** This file is part of the TQt extension for Xt/Motif support.
|
|
||||||
**
|
|
||||||
** Licensees holding valid TQt Enterprise Edition licenses for X11 may use
|
|
||||||
** this file in accordance with the TQt Commercial License Agreement provided
|
|
||||||
** with the Software.
|
|
||||||
**
|
|
||||||
** This file is not available for use under any other license without
|
|
||||||
** express written permission from the copyright holder.
|
|
||||||
**
|
|
||||||
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
|
||||||
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
**
|
|
||||||
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
|
||||||
** information about TQt Commercial License Agreements.
|
|
||||||
**
|
|
||||||
** Contact info@trolltech.com if any conditions of this licensing are
|
|
||||||
** not clear to you.
|
|
||||||
**
|
|
||||||
**********************************************************************/
|
|
||||||
|
|
||||||
#ifndef TQXTWIDGET_H
|
|
||||||
#define TQXTWIDGET_H
|
|
||||||
|
|
||||||
#include <tqwidget.h>
|
|
||||||
|
|
||||||
#include <X11/Intrinsic.h>
|
|
||||||
|
|
||||||
|
|
||||||
class TQXtWidget : public TQWidget {
|
|
||||||
TQ_OBJECT
|
|
||||||
Widget xtw;
|
|
||||||
Widget xtparent;
|
|
||||||
bool need_reroot;
|
|
||||||
void init(const char* name, WidgetClass widget_class,
|
|
||||||
Widget parent, TQWidget* qparent,
|
|
||||||
ArgList args, Cardinal num_args,
|
|
||||||
bool managed);
|
|
||||||
friend void tqwidget_realize( Widget widget, XtValueMask* mask,
|
|
||||||
XSetWindowAttributes* attributes );
|
|
||||||
|
|
||||||
public:
|
|
||||||
TQXtWidget(const char* name, Widget parent, bool managed=FALSE);
|
|
||||||
TQXtWidget(const char* name, WidgetClass widget_class,
|
|
||||||
TQWidget *parent=0, ArgList args=0, Cardinal num_args=0,
|
|
||||||
bool managed=FALSE);
|
|
||||||
~TQXtWidget();
|
|
||||||
|
|
||||||
Widget xtWidget() const { return xtw; }
|
|
||||||
bool isActiveWindow() const;
|
|
||||||
void setActiveWindow();
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void moveEvent( TQMoveEvent* );
|
|
||||||
void resizeEvent( TQResizeEvent* );
|
|
||||||
bool x11Event( XEvent * );
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // TQXTWIDGET_H
|
|
||||||
</pre>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,338 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/include/qxtwidget.h:36 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>TQXtWidget Member List</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Complete Member List for TQXtWidget</h1>
|
|
||||||
|
|
||||||
<p>This is the complete list of member functions for
|
|
||||||
<a href="qxtwidget.html">TQXtWidget</a>, including inherited members.
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li><a href="qxtwidget.html#TQXtWidget">TQXtWidget</a>()
|
|
||||||
<li><a href="qxtwidget.html#~TQXtWidget">~TQXtWidget</a>()
|
|
||||||
<li><a href="tqwidget.html#acceptDrops">acceptDrops</a>()
|
|
||||||
<li><a href="tqwidget.html#adjustSize">adjustSize</a>()
|
|
||||||
<li><a href="tqwidget.html#autoMask">autoMask</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundBrush">backgroundBrush</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundColor">backgroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundMode">backgroundMode</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundOrigin">backgroundOrigin</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundPixmap">backgroundPixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#baseSize">baseSize</a>()
|
|
||||||
<li><a href="tqobject.html#blockSignals">blockSignals</a>()
|
|
||||||
<li><a href="tqwidget.html#caption">caption</a>()
|
|
||||||
<li><a href="tqobject.html#checkConnectArgs">checkConnectArgs</a>()
|
|
||||||
<li><a href="tqobject.html#child">child</a>()
|
|
||||||
<li><a href="tqwidget.html#childAt">childAt</a>()
|
|
||||||
<li><a href="tqobject.html#childEvent">childEvent</a>()
|
|
||||||
<li><a href="tqobject.html#children">children</a>()
|
|
||||||
<li><a href="tqwidget.html#childrenRect">childrenRect</a>()
|
|
||||||
<li><a href="tqwidget.html#childrenRegion">childrenRegion</a>()
|
|
||||||
<li><a href="tqobject.html#className">className</a>()
|
|
||||||
<li><a href="tqwidget.html#clearFocus">clearFocus</a>()
|
|
||||||
<li><a href="tqwidget.html#clearMask">clearMask</a>()
|
|
||||||
<li><a href="tqwidget.html#clearWFlags">clearWFlags</a>()
|
|
||||||
<li><a href="tqwidget.html#clipRegion">clipRegion</a>()
|
|
||||||
<li><a href="tqwidget.html#close">close</a>()
|
|
||||||
<li><a href="tqwidget.html#closeEvent">closeEvent</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#cmd">cmd</a>()
|
|
||||||
<li><a href="tqwidget.html#colorGroup">colorGroup</a>()
|
|
||||||
<li><a href="tqobject.html#connect">connect</a>()
|
|
||||||
<li><a href="tqobject.html#connectNotify">connectNotify</a>()
|
|
||||||
<li><a href="tqwidget.html#constPolish">constPolish</a>()
|
|
||||||
<li><a href="tqwidget.html#contextMenuEvent">contextMenuEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#create">create</a>()
|
|
||||||
<li><a href="tqwidget.html#cursor">cursor</a>()
|
|
||||||
<li><a href="tqobject.html#customEvent">customEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#customWhatsThis">customWhatsThis</a>()
|
|
||||||
<li><a href="tqobject.html#deleteLater">deleteLater</a>()
|
|
||||||
<li><a href="tqwidget.html#destroy">destroy</a>()
|
|
||||||
<li><a href="tqobject.html#destroyed">destroyed</a>()
|
|
||||||
<li><a href="tqobject.html#disconnect">disconnect</a>()
|
|
||||||
<li><a href="tqobject.html#disconnectNotify">disconnectNotify</a>()
|
|
||||||
<li><a href="tqwidget.html#dragEnterEvent">dragEnterEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#dragLeaveEvent">dragLeaveEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#dragMoveEvent">dragMoveEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#drawText">drawText</a>()
|
|
||||||
<li><a href="tqwidget.html#dropEvent">dropEvent</a>()
|
|
||||||
<li><a href="tqobject.html#dumpObjectInfo">dumpObjectInfo</a>()
|
|
||||||
<li><a href="tqobject.html#dumpObjectTree">dumpObjectTree</a>()
|
|
||||||
<li><a href="tqwidget.html#enabledChange">enabledChange</a>()
|
|
||||||
<li><a href="tqwidget.html#enterEvent">enterEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#erase">erase</a>()
|
|
||||||
<li><a href="tqwidget.html#eraseColor">eraseColor</a>()
|
|
||||||
<li><a href="tqwidget.html#erasePixmap">erasePixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#event">event</a>()
|
|
||||||
<li><a href="tqobject.html#eventFilter">eventFilter</a>()
|
|
||||||
<li><a href="tqwidget.html#find">find</a>()
|
|
||||||
<li><a href="tqwidget.html#focusData">focusData</a>()
|
|
||||||
<li><a href="tqwidget.html#focusInEvent">focusInEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#focusNextPrevChild">focusNextPrevChild</a>()
|
|
||||||
<li><a href="tqwidget.html#focusOutEvent">focusOutEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#focusPolicy">focusPolicy</a>()
|
|
||||||
<li><a href="tqwidget.html#focusProxy">focusProxy</a>()
|
|
||||||
<li><a href="tqwidget.html#focusWidget">focusWidget</a>()
|
|
||||||
<li><a href="tqwidget.html#font">font</a>()
|
|
||||||
<li><a href="tqwidget.html#fontChange">fontChange</a>()
|
|
||||||
<li><a href="tqwidget.html#fontInfo">fontInfo</a>()
|
|
||||||
<li><a href="tqwidget.html#fontMetrics">fontMetrics</a>()
|
|
||||||
<li><a href="tqwidget.html#foregroundColor">foregroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#frameGeometry">frameGeometry</a>()
|
|
||||||
<li><a href="tqwidget.html#frameSize">frameSize</a>()
|
|
||||||
<li><a href="tqwidget.html#geometry">geometry</a>()
|
|
||||||
<li><a href="tqwidget.html#getWFlags">getWFlags</a>()
|
|
||||||
<li><a href="tqwidget.html#grabKeyboard">grabKeyboard</a>()
|
|
||||||
<li><a href="tqwidget.html#grabMouse">grabMouse</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#handle">handle</a>()
|
|
||||||
<li><a href="tqwidget.html#hasFocus">hasFocus</a>()
|
|
||||||
<li><a href="tqwidget.html#hasMouse">hasMouse</a>()
|
|
||||||
<li><a href="tqwidget.html#hasMouseTracking">hasMouseTracking</a>()
|
|
||||||
<li><a href="tqwidget.html#height">height</a>()
|
|
||||||
<li><a href="tqwidget.html#heightForWidth">heightForWidth</a>()
|
|
||||||
<li><a href="tqwidget.html#hide">hide</a>()
|
|
||||||
<li><a href="tqwidget.html#hideEvent">hideEvent</a>()
|
|
||||||
<li><a href="tqobject.html#highPriority">highPriority</a>()
|
|
||||||
<li><a href="tqwidget.html#icon">icon</a>()
|
|
||||||
<li><a href="tqwidget.html#iconText">iconText</a>()
|
|
||||||
<li><a href="tqwidget.html#iconify">iconify</a>()
|
|
||||||
<li><a href="tqwidget.html#imComposeEvent">imComposeEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#imEndEvent">imEndEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#imStartEvent">imStartEvent</a>()
|
|
||||||
<li><a href="tqobject.html#inherits">inherits</a>()
|
|
||||||
<li><a href="tqobject.html#insertChild">insertChild</a>()
|
|
||||||
<li><a href="tqobject.html#installEventFilter">installEventFilter</a>()
|
|
||||||
<li><a href="tqobject.html#isA">isA</a>()
|
|
||||||
<li><a href="qxtwidget.html#isActiveWindow">isActiveWindow</a>()
|
|
||||||
<li><a href="tqwidget.html#isDesktop">isDesktop</a>()
|
|
||||||
<li><a href="tqwidget.html#isDialog">isDialog</a>()
|
|
||||||
<li><a href="tqwidget.html#isEnabled">isEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#isEnabledTo">isEnabledTo</a>()
|
|
||||||
<li><a href="tqwidget.html#isEnabledToTLW">isEnabledToTLW</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#isExtDev">isExtDev</a>()
|
|
||||||
<li><a href="tqwidget.html#isFocusEnabled">isFocusEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#isFullScreen">isFullScreen</a>()
|
|
||||||
<li><a href="tqwidget.html#isHidden">isHidden</a>()
|
|
||||||
<li><a href="tqwidget.html#isInputMethodEnabled">isInputMethodEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#isMaximized">isMaximized</a>()
|
|
||||||
<li><a href="tqwidget.html#isMinimized">isMinimized</a>()
|
|
||||||
<li><a href="tqwidget.html#isModal">isModal</a>()
|
|
||||||
<li><a href="tqwidget.html#isPopup">isPopup</a>()
|
|
||||||
<li><a href="tqwidget.html#isShown">isShown</a>()
|
|
||||||
<li><a href="tqwidget.html#isTopLevel">isTopLevel</a>()
|
|
||||||
<li><a href="tqwidget.html#isUpdatesEnabled">isUpdatesEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#isVisible">isVisible</a>()
|
|
||||||
<li><a href="tqwidget.html#isVisibleTo">isVisibleTo</a>()
|
|
||||||
<li><a href="tqwidget.html#isVisibleToTLW">isVisibleToTLW</a>()
|
|
||||||
<li><a href="tqobject.html#isWidgetType">isWidgetType</a>()
|
|
||||||
<li><a href="tqwidget.html#keyPressEvent">keyPressEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#keyReleaseEvent">keyReleaseEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#keyboardGrabber">keyboardGrabber</a>()
|
|
||||||
<li><a href="tqobject.html#killTimer">killTimer</a>()
|
|
||||||
<li><a href="tqobject.html#killTimers">killTimers</a>()
|
|
||||||
<li><a href="tqwidget.html#layout">layout</a>()
|
|
||||||
<li><a href="tqwidget.html#leaveEvent">leaveEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#lower">lower</a>()
|
|
||||||
<li><a href="tqwidget.html#macEvent">macEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#mapFrom">mapFrom</a>()
|
|
||||||
<li><a href="tqwidget.html#mapFromGlobal">mapFromGlobal</a>()
|
|
||||||
<li><a href="tqwidget.html#mapFromParent">mapFromParent</a>()
|
|
||||||
<li><a href="tqwidget.html#mapTo">mapTo</a>()
|
|
||||||
<li><a href="tqwidget.html#mapToGlobal">mapToGlobal</a>()
|
|
||||||
<li><a href="tqwidget.html#mapToParent">mapToParent</a>()
|
|
||||||
<li><a href="tqwidget.html#maximumHeight">maximumHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#maximumSize">maximumSize</a>()
|
|
||||||
<li><a href="tqwidget.html#maximumWidth">maximumWidth</a>()
|
|
||||||
<li><a href="tqobject.html#metaObject">metaObject</a>()
|
|
||||||
<li><a href="tqwidget.html#metric">metric</a>()
|
|
||||||
<li><a href="tqwidget.html#microFocusHint">microFocusHint</a>()
|
|
||||||
<li><a href="tqwidget.html#minimumHeight">minimumHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#minimumSize">minimumSize</a>()
|
|
||||||
<li><a href="tqwidget.html#minimumSizeHint">minimumSizeHint</a>()
|
|
||||||
<li><a href="tqwidget.html#minimumWidth">minimumWidth</a>()
|
|
||||||
<li><a href="tqwidget.html#mouseDoubleClickEvent">mouseDoubleClickEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#mouseGrabber">mouseGrabber</a>()
|
|
||||||
<li><a href="tqwidget.html#mouseMoveEvent">mouseMoveEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#mousePressEvent">mousePressEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#move">move</a>()
|
|
||||||
<li><a href="tqwidget.html#moveEvent">moveEvent</a>()
|
|
||||||
<li><a href="tqobject.html#name">name</a>()
|
|
||||||
<li><a href="tqobject.html#normalizeSignalSlot">normalizeSignalSlot</a>()
|
|
||||||
<li><a href="tqobject.html#objectTrees">objectTrees</a>()
|
|
||||||
<li><a href="tqwidget.html#ownCursor">ownCursor</a>()
|
|
||||||
<li><a href="tqwidget.html#ownFont">ownFont</a>()
|
|
||||||
<li><a href="tqwidget.html#ownPalette">ownPalette</a>()
|
|
||||||
<li><a href="tqwidget.html#paintEvent">paintEvent</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#paintingActive">paintingActive</a>()
|
|
||||||
<li><a href="tqwidget.html#palette">palette</a>()
|
|
||||||
<li><a href="tqwidget.html#paletteBackgroundColor">paletteBackgroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#paletteBackgroundPixmap">paletteBackgroundPixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#paletteChange">paletteChange</a>()
|
|
||||||
<li><a href="tqwidget.html#paletteForegroundColor">paletteForegroundColor</a>()
|
|
||||||
<li><a href="tqobject.html#parent">parent</a>()
|
|
||||||
<li><a href="tqwidget.html#parentWidget">parentWidget</a>()
|
|
||||||
<li><a href="tqwidget.html#polish">polish</a>()
|
|
||||||
<li><a href="tqwidget.html#pos">pos</a>()
|
|
||||||
<li><a href="tqobject.html#property">property</a>()
|
|
||||||
<li><a href="tqobject.html#queryList">queryList</a>()
|
|
||||||
<li><a href="tqwidget.html#raise">raise</a>()
|
|
||||||
<li><a href="tqwidget.html#recreate">recreate</a>()
|
|
||||||
<li><a href="tqwidget.html#rect">rect</a>()
|
|
||||||
<li><a href="tqwidget.html#releaseKeyboard">releaseKeyboard</a>()
|
|
||||||
<li><a href="tqwidget.html#releaseMouse">releaseMouse</a>()
|
|
||||||
<li><a href="tqobject.html#removeChild">removeChild</a>()
|
|
||||||
<li><a href="tqobject.html#removeEventFilter">removeEventFilter</a>()
|
|
||||||
<li><a href="tqwidget.html#repaint">repaint</a>()
|
|
||||||
<li><a href="tqwidget.html#reparent">reparent</a>()
|
|
||||||
<li><a href="tqwidget.html#resetInputContext">resetInputContext</a>()
|
|
||||||
<li><a href="tqwidget.html#resize">resize</a>()
|
|
||||||
<li><a href="tqwidget.html#resizeEvent">resizeEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#scroll">scroll</a>()
|
|
||||||
<li><a href="tqobject.html#sender">sender</a>()
|
|
||||||
<li><a href="tqwidget.html#setAcceptDrops">setAcceptDrops</a>()
|
|
||||||
<li><a href="qxtwidget.html#setActiveWindow">setActiveWindow</a>()
|
|
||||||
<li><a href="tqwidget.html#setAutoMask">setAutoMask</a>()
|
|
||||||
<li><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#setBackgroundMode">setBackgroundMode</a>()
|
|
||||||
<li><a href="tqwidget.html#setBackgroundOrigin">setBackgroundOrigin</a>()
|
|
||||||
<li><a href="tqwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#setBaseSize">setBaseSize</a>()
|
|
||||||
<li><a href="tqwidget.html#setCaption">setCaption</a>()
|
|
||||||
<li><a href="tqwidget.html#setCursor">setCursor</a>()
|
|
||||||
<li><a href="tqwidget.html#setDisabled">setDisabled</a>()
|
|
||||||
<li><a href="tqwidget.html#setEnabled">setEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#setEraseColor">setEraseColor</a>()
|
|
||||||
<li><a href="tqwidget.html#setErasePixmap">setErasePixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#setFixedHeight">setFixedHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#setFixedSize">setFixedSize</a>()
|
|
||||||
<li><a href="tqwidget.html#setFixedWidth">setFixedWidth</a>()
|
|
||||||
<li><a href="tqwidget.html#setFocus">setFocus</a>()
|
|
||||||
<li><a href="tqwidget.html#setFocusPolicy">setFocusPolicy</a>()
|
|
||||||
<li><a href="tqwidget.html#setFocusProxy">setFocusProxy</a>()
|
|
||||||
<li><a href="tqwidget.html#setFont">setFont</a>()
|
|
||||||
<li><a href="tqwidget.html#setGeometry">setGeometry</a>()
|
|
||||||
<li><a href="tqwidget.html#setHidden">setHidden</a>()
|
|
||||||
<li><a href="tqwidget.html#setIcon">setIcon</a>()
|
|
||||||
<li><a href="tqwidget.html#setIconText">setIconText</a>()
|
|
||||||
<li><a href="tqwidget.html#setInputMethodEnabled">setInputMethodEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#setKeyCompression">setKeyCompression</a>()
|
|
||||||
<li><a href="tqwidget.html#setMask">setMask</a>()
|
|
||||||
<li><a href="tqwidget.html#setMaximumHeight">setMaximumHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#setMaximumSize">setMaximumSize</a>()
|
|
||||||
<li><a href="tqwidget.html#setMaximumWidth">setMaximumWidth</a>()
|
|
||||||
<li><a href="tqwidget.html#setMicroFocusHint">setMicroFocusHint</a>()
|
|
||||||
<li><a href="tqwidget.html#setMinimumHeight">setMinimumHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#setMinimumSize">setMinimumSize</a>()
|
|
||||||
<li><a href="tqwidget.html#setMinimumWidth">setMinimumWidth</a>()
|
|
||||||
<li><a href="tqwidget.html#setMouseTracking">setMouseTracking</a>()
|
|
||||||
<li><a href="tqobject.html#setName">setName</a>()
|
|
||||||
<li><a href="tqwidget.html#setPalette">setPalette</a>()
|
|
||||||
<li><a href="tqwidget.html#setPaletteBackgroundColor">setPaletteBackgroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#setPaletteBackgroundPixmap">setPaletteBackgroundPixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#setPaletteForegroundColor">setPaletteForegroundColor</a>()
|
|
||||||
<li><a href="tqobject.html#setProperty">setProperty</a>()
|
|
||||||
<li><a href="tqwidget.html#setShown">setShown</a>()
|
|
||||||
<li><a href="tqwidget.html#setSizeIncrement">setSizeIncrement</a>()
|
|
||||||
<li><a href="tqwidget.html#setSizePolicy">setSizePolicy</a>()
|
|
||||||
<li><a href="tqwidget.html#setStyle">setStyle</a>()
|
|
||||||
<li><a href="tqwidget.html#setTabOrder">setTabOrder</a>()
|
|
||||||
<li><a href="tqwidget.html#setUpdatesEnabled">setUpdatesEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#setWFlags">setWFlags</a>()
|
|
||||||
<li><a href="tqwidget.html#setWindowOpacity">setWindowOpacity</a>()
|
|
||||||
<li><a href="tqwidget.html#setWindowState">setWindowState</a>()
|
|
||||||
<li><a href="tqwidget.html#show">show</a>()
|
|
||||||
<li><a href="tqwidget.html#showEvent">showEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#showFullScreen">showFullScreen</a>()
|
|
||||||
<li><a href="tqwidget.html#showMaximized">showMaximized</a>()
|
|
||||||
<li><a href="tqwidget.html#showMinimized">showMinimized</a>()
|
|
||||||
<li><a href="tqwidget.html#showNormal">showNormal</a>()
|
|
||||||
<li><a href="tqobject.html#signalsBlocked">signalsBlocked</a>()
|
|
||||||
<li><a href="tqwidget.html#size">size</a>()
|
|
||||||
<li><a href="tqwidget.html#sizeHint">sizeHint</a>()
|
|
||||||
<li><a href="tqwidget.html#sizeIncrement">sizeIncrement</a>()
|
|
||||||
<li><a href="tqwidget.html#sizePolicy">sizePolicy</a>()
|
|
||||||
<li><a href="tqwidget.html#stackUnder">stackUnder</a>()
|
|
||||||
<li><a href="tqobject.html#startTimer">startTimer</a>()
|
|
||||||
<li><a href="tqwidget.html#style">style</a>()
|
|
||||||
<li><a href="tqwidget.html#styleChange">styleChange</a>()
|
|
||||||
<li><a href="tqwidget.html#tabletEvent">tabletEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#testWFlags">testWFlags</a>()
|
|
||||||
<li><a href="tqobject.html#timerEvent">timerEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#topLevelWidget">topLevelWidget</a>()
|
|
||||||
<li><a href="tqobject.html#tr">tr</a>()
|
|
||||||
<li><a href="tqobject.html#trUtf8">trUtf8</a>()
|
|
||||||
<li><a href="tqwidget.html#unsetCursor">unsetCursor</a>()
|
|
||||||
<li><a href="tqwidget.html#unsetFont">unsetFont</a>()
|
|
||||||
<li><a href="tqwidget.html#unsetPalette">unsetPalette</a>()
|
|
||||||
<li><a href="tqwidget.html#update">update</a>()
|
|
||||||
<li><a href="tqwidget.html#updateGeometry">updateGeometry</a>()
|
|
||||||
<li><a href="tqwidget.html#updateMask">updateMask</a>()
|
|
||||||
<li><a href="tqwidget.html#visibleRect">visibleRect</a>()
|
|
||||||
<li><a href="tqwidget.html#wheelEvent">wheelEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#width">width</a>()
|
|
||||||
<li><a href="tqwidget.html#winEvent">winEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#winId">winId</a>()
|
|
||||||
<li><a href="tqwidget.html#windowActivationChange">windowActivationChange</a>()
|
|
||||||
<li><a href="tqwidget.html#windowOpacity">windowOpacity</a>()
|
|
||||||
<li><a href="tqwidget.html#windowState">windowState</a>()
|
|
||||||
<li><a href="tqwidget.html#x">x</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppCells">x11AppCells</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppColormap">x11AppColormap</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDefaultColormap">x11AppDefaultColormap</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDefaultVisual">x11AppDefaultVisual</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDepth">x11AppDepth</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDisplay">x11AppDisplay</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDpiX">x11AppDpiX</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDpiY">x11AppDpiY</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppRootWindow">x11AppRootWindow</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppScreen">x11AppScreen</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppVisual">x11AppVisual</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Cells">x11Cells</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Colormap">x11Colormap</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11DefaultColormap">x11DefaultColormap</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11DefaultVisual">x11DefaultVisual</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Depth">x11Depth</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Display">x11Display</a>()
|
|
||||||
<li><a href="qxtwidget.html#x11Event">x11Event</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Screen">x11Screen</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11SetAppDpiX">x11SetAppDpiX</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11SetAppDpiY">x11SetAppDpiY</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Visual">x11Visual</a>()
|
|
||||||
<li><a href="qxtwidget.html#xtWidget">xtWidget</a>()
|
|
||||||
<li><a href="tqwidget.html#y">y</a>()
|
|
||||||
</ul>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,147 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/src/qxtwidget.cpp:144 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>TQXtWidget Class</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>TQXtWidget Class Reference<br><small>[obsolete]</small></h1>
|
|
||||||
|
|
||||||
<p>The TQXtWidget class allows mixing of Xt/Motif and TQt widgets.
|
|
||||||
<b>This class is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
|
||||||
<a href="#details">More...</a>
|
|
||||||
<p>This class is part of the <b>TQt Motif Extension</b>.
|
|
||||||
<p><tt>#include <<a href="qxtwidget-h.html">qxtwidget.h</a>></tt>
|
|
||||||
<p>Inherits <a href="tqwidget.html">TQWidget</a>.
|
|
||||||
<p><a href="qxtwidget-members.html">List of all member functions.</a>
|
|
||||||
<h2>Public Members</h2>
|
|
||||||
<ul>
|
|
||||||
<li class=fn><a href="#TQXtWidget"><b>TQXtWidget</b></a> ( const char * name, Widget parent, bool managed = FALSE )</li>
|
|
||||||
<li class=fn><a href="#TQXtWidget-2"><b>TQXtWidget</b></a> ( const char * name, WidgetClass widget_class, TQWidget * parent = 0, ArgList args = 0, Cardinal num_args = 0, bool managed = FALSE )</li>
|
|
||||||
<li class=fn><a href="#~TQXtWidget"><b>~TQXtWidget</b></a> ()</li>
|
|
||||||
<li class=fn>Widget <a href="#xtWidget"><b>xtWidget</b></a> () const</li>
|
|
||||||
<li class=fn>bool <a href="#isActiveWindow"><b>isActiveWindow</b></a> () const</li>
|
|
||||||
<li class=fn>virtual void <a href="#setActiveWindow"><b>setActiveWindow</b></a> ()</li>
|
|
||||||
</ul>
|
|
||||||
<h2>Protected Members</h2>
|
|
||||||
<ul>
|
|
||||||
<li class=fn>virtual bool <a href="#x11Event"><b>x11Event</b></a> ( XEvent * e )</li>
|
|
||||||
</ul>
|
|
||||||
<hr><a name="details"></a><h2>Detailed Description</h2>
|
|
||||||
<p> This class is defined in the <b>TQt <a href="motif-extension.html#Motif">Motif</a> Extension</b>, which can be found in the <tt>qt/extensions</tt> directory. It is not included in the main TQt API.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
The TQXtWidget class allows mixing of Xt/Motif and TQt widgets.
|
|
||||||
<b>This class is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
|
||||||
<p>
|
|
||||||
<p> TQXtWidget acts as a bridge between Xt and TQt. For utilizing old Xt
|
|
||||||
widgets, it can be a <a href="tqwidget.html">TQWidget</a> based on a Xt widget class. For
|
|
||||||
including TQt widgets in an existing Xt/Motif application, it can be
|
|
||||||
a special Xt widget class that is a TQWidget. See the constructors
|
|
||||||
for the different behaviors.
|
|
||||||
<p> <h4> Known TQXtWidget Problems
|
|
||||||
</h4>
|
|
||||||
<a name="1"></a><p> This class is unsupported and has many known problems and
|
|
||||||
limitations. It is provided only to keep existing source working;
|
|
||||||
it should not be used in new code. Note: These problems will <em>not</em>
|
|
||||||
be fixed in future releases.
|
|
||||||
<p> Below is an imcomplete list of know issues:
|
|
||||||
<p> <ol type=1>
|
|
||||||
<p> <li> <a href="focus.html#keyboard-focus">Keyboard focus</a> navigation is impossible when using TQXtWidget.
|
|
||||||
The mouse must be used to focus widgets in both TQt and Xt/Motif
|
|
||||||
widgets. For example, when embedding a TQXtWidget into an Xt/Motif
|
|
||||||
widget, key events will go to the TQXtWidget (and its children) while
|
|
||||||
the mouse is over the TQXtWidget, regardless of where Xt/Motif has
|
|
||||||
placed the focus.
|
|
||||||
<p> <li> Reparenting does not work. You cannot use
|
|
||||||
<a href="tqwidget.html#reparent">TQWidget::reparent</a>(). This includes the functions
|
|
||||||
<a href="tqwidget.html#showFullScreen">TQWidget::showFullScreen</a>() and <a href="tqwidget.html#showNormal">TQWidget::showNormal</a>(), which use
|
|
||||||
TQWidget::reparent().
|
|
||||||
<p> </ol>
|
|
||||||
|
|
||||||
<hr><h2>Member Function Documentation</h2>
|
|
||||||
<h3 class=fn><a name="TQXtWidget"></a>TQXtWidget::TQXtWidget ( const char * name, Widget parent, bool managed = FALSE )
|
|
||||||
</h3>
|
|
||||||
Constructs a TQXtWidget of the special Xt widget class known as
|
|
||||||
"TQWidget" to the resource manager.
|
|
||||||
<p> Use this constructor to utilize TQt widgets in an Xt/Motif
|
|
||||||
application. The TQXtWidget is a <a href="tqwidget.html">TQWidget</a>, so you can create
|
|
||||||
subwidgets, layouts, etc. using TQt functionality.
|
|
||||||
<p> The <em>name</em> is the object name passed to the TQWidget constructor.
|
|
||||||
The widget's parent is <em>parent</em>.
|
|
||||||
<p> If the <em>managed</em> parameter is TRUE and <em>parent</em> in not null,
|
|
||||||
XtManageChild it used to manage the child.
|
|
||||||
|
|
||||||
<h3 class=fn><a name="TQXtWidget-2"></a>TQXtWidget::TQXtWidget ( const char * name, WidgetClass widget_class, <a href="tqwidget.html">TQWidget</a> * parent = 0, ArgList args = 0, Cardinal num_args = 0, bool managed = FALSE )
|
|
||||||
</h3>
|
|
||||||
Constructs a TQXtWidget of the given <em>widget_class</em> called <em>name</em>.
|
|
||||||
<p> Use this constructor to utilize Xt or <a href="motif-extension.html#Motif">Motif</a> widgets in a TQt
|
|
||||||
application. The TQXtWidget looks and behaves
|
|
||||||
like the Xt class, but can be used like any <a href="tqwidget.html">TQWidget</a>.
|
|
||||||
<p> Note that Xt requires that the most top level Xt widget is a shell.
|
|
||||||
This means, if <em>parent</em> is a TQXtWidget, the <em>widget_class</em> can be
|
|
||||||
of any kind. If there isn't a parent or the parent is just a normal
|
|
||||||
TQWidget, <em>widget_class</em> should be something like <tt>topLevelShellWidgetClass</tt>.
|
|
||||||
<p> The arguments, <em>args</em>, <em>num_args</em> are passed on to XtCreateWidget.
|
|
||||||
<p> If the <em>managed</em> parameter is TRUE and <em>parent</em> in not null,
|
|
||||||
XtManageChild it used to manage the child.
|
|
||||||
|
|
||||||
<h3 class=fn><a name="~TQXtWidget"></a>TQXtWidget::~TQXtWidget ()
|
|
||||||
</h3>
|
|
||||||
Destructs the TQXtWidget.
|
|
||||||
|
|
||||||
<h3 class=fn>bool <a name="isActiveWindow"></a>TQXtWidget::isActiveWindow () const
|
|
||||||
</h3>
|
|
||||||
Different from <a href="tqwidget.html#isActiveWindow">TQWidget::isActiveWindow</a>()
|
|
||||||
|
|
||||||
<h3 class=fn>void <a name="setActiveWindow"></a>TQXtWidget::setActiveWindow ()<tt> [virtual]</tt>
|
|
||||||
</h3>
|
|
||||||
Implement a degree of focus handling for Xt widgets.
|
|
||||||
|
|
||||||
<p>Reimplemented from <a href="tqwidget.html#setActiveWindow">TQWidget</a>.
|
|
||||||
<h3 class=fn>bool <a name="x11Event"></a>TQXtWidget::x11Event ( XEvent * e )<tt> [virtual protected]</tt>
|
|
||||||
</h3>
|
|
||||||
Reimplemented to produce the Xt effect of getting focus when the
|
|
||||||
mouse enters the widget. The event is passed in <em>e</em>.
|
|
||||||
|
|
||||||
<p>Reimplemented from <a href="tqwidget.html#x11Event">TQWidget</a>.
|
|
||||||
<h3 class=fn>Widget <a name="xtWidget"></a>TQXtWidget::xtWidget () const
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<p> Returns the Xt widget equivalent for the TQt widget.
|
|
||||||
|
|
||||||
<!-- eof -->
|
|
||||||
<hr><p>
|
|
||||||
This file is part of the <a href="index.html">TQt toolkit</a>.
|
|
||||||
Copyright © 1995-2007
|
|
||||||
<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,112 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/include/tqmotif.h:1 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>tqmotif.h Include File</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>tqmotif.h</h1>
|
|
||||||
|
|
||||||
<p>This is the verbatim text of the tqmotif.h include file. It is provided only for illustration; the copyright remains with Trolltech.
|
|
||||||
<hr>
|
|
||||||
<pre>
|
|
||||||
/****************************************************************************
|
|
||||||
** $Id: qt/tqmotif.h 3.3.8 edited Jan 11 14:37 $
|
|
||||||
**
|
|
||||||
** Definition of TQt extension classes for Xt/Motif support.
|
|
||||||
**
|
|
||||||
** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
|
|
||||||
**
|
|
||||||
** This file is part of the TQt extension for Xt/Motif support.
|
|
||||||
**
|
|
||||||
** Licensees holding valid TQt Enterprise Edition licenses for X11 may use
|
|
||||||
** this file in accordance with the TQt Commercial License Agreement provided
|
|
||||||
** with the Software.
|
|
||||||
**
|
|
||||||
** This file is not available for use under any other license without
|
|
||||||
** express written permission from the copyright holder.
|
|
||||||
**
|
|
||||||
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
|
||||||
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
**
|
|
||||||
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
|
||||||
** information about TQt Commercial License Agreements.
|
|
||||||
**
|
|
||||||
** Contact info@trolltech.com if any conditions of this licensing are
|
|
||||||
** not clear to you.
|
|
||||||
**
|
|
||||||
**********************************************************************/
|
|
||||||
|
|
||||||
#ifndef TQMOTIF_H
|
|
||||||
#define TQMOTIF_H
|
|
||||||
|
|
||||||
#include <tqeventloop.h>
|
|
||||||
|
|
||||||
#include <X11/Intrinsic.h>
|
|
||||||
|
|
||||||
class TQMotifPrivate;
|
|
||||||
|
|
||||||
class TQMotif : public TQEventLoop
|
|
||||||
{
|
|
||||||
TQ_OBJECT
|
|
||||||
|
|
||||||
public:
|
|
||||||
TQMotif( const char *applicationClass, XtAppContext context = NULL, XrmOptionDescRec *options = 0, int numOptions = 0);
|
|
||||||
~TQMotif();
|
|
||||||
|
|
||||||
XtAppContext applicationContext() const;
|
|
||||||
|
|
||||||
void registerSocketNotifier( TQSocketNotifier * );
|
|
||||||
void unregisterSocketNotifier( TQSocketNotifier * );
|
|
||||||
void wakeUp();
|
|
||||||
|
|
||||||
static void registerWidget( TQWidget* );
|
|
||||||
static void unregisterWidget( TQWidget* );
|
|
||||||
static bool redeliverEvent( XEvent *event );
|
|
||||||
|
|
||||||
static Display *x11Display();
|
|
||||||
static XEvent* lastEvent();
|
|
||||||
|
|
||||||
protected:
|
|
||||||
bool processEvents( ProcessEventsFlags flags );
|
|
||||||
|
|
||||||
private:
|
|
||||||
void appStartingUp();
|
|
||||||
void appClosingDown();
|
|
||||||
TQMotifPrivate *d;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // TQMOTIF_H
|
|
||||||
</pre>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,108 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/include/tqmotif.h:37 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>TQMotif Member List</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Complete Member List for TQMotif</h1>
|
|
||||||
|
|
||||||
<p>This is the complete list of member functions for
|
|
||||||
<a href="tqmotif.html">TQMotif</a>, including inherited members.
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li><a href="tqmotif.html#TQMotif">TQMotif</a>()
|
|
||||||
<li><a href="tqmotif.html#~TQMotif">~TQMotif</a>()
|
|
||||||
<li><a href="tqeventloop.html#aboutToBlock">aboutToBlock</a>()
|
|
||||||
<li><a href="tqeventloop.html#activateSocketNotifiers">activateSocketNotifiers</a>()
|
|
||||||
<li><a href="tqeventloop.html#activateTimers">activateTimers</a>()
|
|
||||||
<li><a href="tqmotif.html#applicationContext">applicationContext</a>()
|
|
||||||
<li><a href="tqeventloop.html#awake">awake</a>()
|
|
||||||
<li><a href="tqobject.html#blockSignals">blockSignals</a>()
|
|
||||||
<li><a href="tqobject.html#checkConnectArgs">checkConnectArgs</a>()
|
|
||||||
<li><a href="tqobject.html#child">child</a>()
|
|
||||||
<li><a href="tqobject.html#childEvent">childEvent</a>()
|
|
||||||
<li><a href="tqobject.html#children">children</a>()
|
|
||||||
<li><a href="tqobject.html#className">className</a>()
|
|
||||||
<li><a href="tqobject.html#connect">connect</a>()
|
|
||||||
<li><a href="tqobject.html#connectNotify">connectNotify</a>()
|
|
||||||
<li><a href="tqobject.html#customEvent">customEvent</a>()
|
|
||||||
<li><a href="tqobject.html#deleteLater">deleteLater</a>()
|
|
||||||
<li><a href="tqobject.html#destroyed">destroyed</a>()
|
|
||||||
<li><a href="tqobject.html#disconnect">disconnect</a>()
|
|
||||||
<li><a href="tqobject.html#disconnectNotify">disconnectNotify</a>()
|
|
||||||
<li><a href="tqobject.html#dumpObjectInfo">dumpObjectInfo</a>()
|
|
||||||
<li><a href="tqobject.html#dumpObjectTree">dumpObjectTree</a>()
|
|
||||||
<li><a href="tqeventloop.html#enterLoop">enterLoop</a>()
|
|
||||||
<li><a href="tqobject.html#event">event</a>()
|
|
||||||
<li><a href="tqobject.html#eventFilter">eventFilter</a>()
|
|
||||||
<li><a href="tqeventloop.html#exec">exec</a>()
|
|
||||||
<li><a href="tqeventloop.html#exit">exit</a>()
|
|
||||||
<li><a href="tqeventloop.html#exitLoop">exitLoop</a>()
|
|
||||||
<li><a href="tqeventloop.html#hasPendingEvents">hasPendingEvents</a>()
|
|
||||||
<li><a href="tqobject.html#highPriority">highPriority</a>()
|
|
||||||
<li><a href="tqobject.html#inherits">inherits</a>()
|
|
||||||
<li><a href="tqobject.html#insertChild">insertChild</a>()
|
|
||||||
<li><a href="tqobject.html#installEventFilter">installEventFilter</a>()
|
|
||||||
<li><a href="tqobject.html#isA">isA</a>()
|
|
||||||
<li><a href="tqobject.html#isWidgetType">isWidgetType</a>()
|
|
||||||
<li><a href="tqobject.html#killTimer">killTimer</a>()
|
|
||||||
<li><a href="tqobject.html#killTimers">killTimers</a>()
|
|
||||||
<li><a href="tqeventloop.html#loopLevel">loopLevel</a>()
|
|
||||||
<li><a href="tqobject.html#metaObject">metaObject</a>()
|
|
||||||
<li><a href="tqobject.html#name">name</a>()
|
|
||||||
<li><a href="tqobject.html#normalizeSignalSlot">normalizeSignalSlot</a>()
|
|
||||||
<li><a href="tqobject.html#objectTrees">objectTrees</a>()
|
|
||||||
<li><a href="tqobject.html#parent">parent</a>()
|
|
||||||
<li><a href="tqeventloop.html#processEvents">processEvents</a>()
|
|
||||||
<li><a href="tqobject.html#property">property</a>()
|
|
||||||
<li><a href="tqobject.html#queryList">queryList</a>()
|
|
||||||
<li><a href="tqeventloop.html#registerSocketNotifier">registerSocketNotifier</a>()
|
|
||||||
<li><a href="tqobject.html#removeChild">removeChild</a>()
|
|
||||||
<li><a href="tqobject.html#removeEventFilter">removeEventFilter</a>()
|
|
||||||
<li><a href="tqobject.html#sender">sender</a>()
|
|
||||||
<li><a href="tqobject.html#setName">setName</a>()
|
|
||||||
<li><a href="tqobject.html#setProperty">setProperty</a>()
|
|
||||||
<li><a href="tqeventloop.html#setSocketNotifierPending">setSocketNotifierPending</a>()
|
|
||||||
<li><a href="tqobject.html#signalsBlocked">signalsBlocked</a>()
|
|
||||||
<li><a href="tqobject.html#startTimer">startTimer</a>()
|
|
||||||
<li><a href="tqeventloop.html#timeToWait">timeToWait</a>()
|
|
||||||
<li><a href="tqobject.html#timerEvent">timerEvent</a>()
|
|
||||||
<li><a href="tqobject.html#tr">tr</a>()
|
|
||||||
<li><a href="tqobject.html#trUtf8">trUtf8</a>()
|
|
||||||
<li><a href="tqeventloop.html#unregisterSocketNotifier">unregisterSocketNotifier</a>()
|
|
||||||
<li><a href="tqeventloop.html#wakeUp">wakeUp</a>()
|
|
||||||
<li><a href="tqmotif.html#x11Display">x11Display</a>()
|
|
||||||
</ul>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,115 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/src/tqmotif.cpp:351 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>TQMotif Class</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>TQMotif Class Reference</h1>
|
|
||||||
|
|
||||||
<p>The TQMotif class provides the basis of the Motif Extension.
|
|
||||||
<a href="#details">More...</a>
|
|
||||||
<p>This class is part of the <b>TQt Motif Extension</b>.
|
|
||||||
<p><tt>#include <<a href="tqmotif-h.html">tqmotif.h</a>></tt>
|
|
||||||
<p>Inherits <a href="tqeventloop.html">TQEventLoop</a>.
|
|
||||||
<p><a href="tqmotif-members.html">List of all member functions.</a>
|
|
||||||
<h2>Public Members</h2>
|
|
||||||
<ul>
|
|
||||||
<li class=fn><a href="#TQMotif"><b>TQMotif</b></a> ( const char * applicationClass, XtAppContext context = NULL, XrmOptionDescRec * options = 0, int numOptions = 0 )</li>
|
|
||||||
<li class=fn><a href="#~TQMotif"><b>~TQMotif</b></a> ()</li>
|
|
||||||
<li class=fn>XtAppContext <a href="#applicationContext"><b>applicationContext</b></a> () const</li>
|
|
||||||
</ul>
|
|
||||||
<h2>Static Public Members</h2>
|
|
||||||
<ul>
|
|
||||||
<li class=fn>Display * <a href="#x11Display"><b>x11Display</b></a> ()</li>
|
|
||||||
</ul>
|
|
||||||
<hr><a name="details"></a><h2>Detailed Description</h2>
|
|
||||||
<p> This class is defined in the <b>TQt <a href="motif-extension.html#Motif">Motif</a> Extension</b>, which can be found in the <tt>qt/extensions</tt> directory. It is not included in the main TQt API.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
The TQMotif class provides the basis of the Motif Extension.
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<p> TQMotif only provides a few public functions, but it is at the
|
|
||||||
heart of the integration. TQMotif is responsible for initializing
|
|
||||||
the Xt toolkit and the Xt application context. It does not open a
|
|
||||||
connection to the X server, that is done by <a href="ntqapplication.html">TQApplication</a>.
|
|
||||||
<p> The only member function in TQMotif that depends on an X server
|
|
||||||
connection is TQMotif::initialize(). TQMotif must be created before
|
|
||||||
TQApplication.
|
|
||||||
<p> Example usage of TQMotif and TQApplication:
|
|
||||||
<pre>
|
|
||||||
static char *resources[] = {
|
|
||||||
...
|
|
||||||
};
|
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
|
||||||
{
|
|
||||||
TQMotif integrator( "AppClass" );
|
|
||||||
XtAppSetFallbackResources( integrator.<a href="#applicationContext">applicationContext</a>(),
|
|
||||||
resources );
|
|
||||||
<a href="ntqapplication.html">TQApplication</a> app( argc, argv );
|
|
||||||
|
|
||||||
...
|
|
||||||
|
|
||||||
return app.<a href="ntqapplication.html#exec">exec</a>();
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
|
|
||||||
<hr><h2>Member Function Documentation</h2>
|
|
||||||
<h3 class=fn><a name="TQMotif"></a>TQMotif::TQMotif ( const char * applicationClass, XtAppContext context = NULL, XrmOptionDescRec * options = 0, int numOptions = 0 )
|
|
||||||
</h3>
|
|
||||||
Creates TQMotif, which allows TQt and Xt/Motif integration.
|
|
||||||
<p> If <em>context</em> is 0, TQMotif creates a default application context
|
|
||||||
itself. The context is accessible through <a href="#applicationContext">applicationContext</a>().
|
|
||||||
<p> All arguments passed to this function (<em>applicationClass</em>, <em>options</em> and <em>numOptions</em>) are used to call XtDisplayInitialize()
|
|
||||||
after <a href="ntqapplication.html">TQApplication</a> has been constructed.
|
|
||||||
|
|
||||||
<h3 class=fn><a name="~TQMotif"></a>TQMotif::~TQMotif ()
|
|
||||||
</h3>
|
|
||||||
Destroys TQMotif.
|
|
||||||
|
|
||||||
<h3 class=fn>XtAppContext <a name="applicationContext"></a>TQMotif::applicationContext () const
|
|
||||||
</h3>
|
|
||||||
Returns the application context.
|
|
||||||
|
|
||||||
<h3 class=fn>Display * <a name="x11Display"></a>TQMotif::x11Display ()<tt> [static]</tt>
|
|
||||||
</h3>
|
|
||||||
Returns the X11 display connection used by the TQt <a href="motif-extension.html#Motif">Motif</a> Extension.
|
|
||||||
|
|
||||||
<!-- eof -->
|
|
||||||
<hr><p>
|
|
||||||
This file is part of the <a href="index.html">TQt toolkit</a>.
|
|
||||||
Copyright © 1995-2007
|
|
||||||
<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,153 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/include/tqmotifdialog.h:1 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>tqmotifdialog.h Include File</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>tqmotifdialog.h</h1>
|
|
||||||
|
|
||||||
<p>This is the verbatim text of the tqmotifdialog.h include file. It is provided only for illustration; the copyright remains with Trolltech.
|
|
||||||
<hr>
|
|
||||||
<pre>
|
|
||||||
/****************************************************************************
|
|
||||||
** $Id: qt/tqmotifdialog.h 3.3.8 edited Jan 11 14:37 $
|
|
||||||
**
|
|
||||||
** Definition of TQt extension classes for Xt/Motif support.
|
|
||||||
**
|
|
||||||
** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
|
|
||||||
**
|
|
||||||
** This file is part of the TQt extension for Xt/Motif support.
|
|
||||||
**
|
|
||||||
** Licensees holding valid TQt Enterprise Edition licenses for X11 may use
|
|
||||||
** this file in accordance with the TQt Commercial License Agreement provided
|
|
||||||
** with the Software.
|
|
||||||
**
|
|
||||||
** This file is not available for use under any other license without
|
|
||||||
** express written permission from the copyright holder.
|
|
||||||
**
|
|
||||||
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
|
||||||
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
**
|
|
||||||
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
|
||||||
** information about TQt Commercial License Agreements.
|
|
||||||
**
|
|
||||||
** Contact info@trolltech.com if any conditions of this licensing are
|
|
||||||
** not clear to you.
|
|
||||||
**
|
|
||||||
**********************************************************************/
|
|
||||||
|
|
||||||
#ifndef TQMOTIFDIALOG_H
|
|
||||||
#define TQMOTIFDIALOG_H
|
|
||||||
|
|
||||||
#include <tqdialog.h>
|
|
||||||
|
|
||||||
#include <X11/Intrinsic.h>
|
|
||||||
#include <Xm/Xm.h>
|
|
||||||
|
|
||||||
class TQMotifWidget;
|
|
||||||
class TQMotifDialogPrivate;
|
|
||||||
|
|
||||||
class TQMotifDialog : public TQDialog
|
|
||||||
{
|
|
||||||
TQ_OBJECT
|
|
||||||
|
|
||||||
public:
|
|
||||||
// obsolete
|
|
||||||
enum DialogType {
|
|
||||||
Prompt,
|
|
||||||
Selection,
|
|
||||||
Command,
|
|
||||||
FileSelection,
|
|
||||||
Template,
|
|
||||||
Error,
|
|
||||||
Information,
|
|
||||||
Message,
|
|
||||||
Question,
|
|
||||||
Warning,
|
|
||||||
Working
|
|
||||||
};
|
|
||||||
// obsolete
|
|
||||||
TQMotifDialog( DialogType dialogtype,
|
|
||||||
Widget parent, ArgList args = NULL, Cardinal argcount = 0,
|
|
||||||
const char *name = 0, bool modal = FALSE, WFlags flags = 0 );
|
|
||||||
// obsolete
|
|
||||||
TQMotifDialog( Widget parent, ArgList args = NULL, Cardinal argcount = 0,
|
|
||||||
const char *name = 0, bool modal = FALSE, WFlags flags = 0 );
|
|
||||||
|
|
||||||
TQMotifDialog( Widget parent, const char *name = 0,
|
|
||||||
bool modal = FALSE, WFlags flags = 0 );
|
|
||||||
TQMotifDialog( TQWidget *parent, const char *name = 0,
|
|
||||||
bool modal = FALSE, WFlags flags = 0 );
|
|
||||||
|
|
||||||
virtual ~TQMotifDialog();
|
|
||||||
|
|
||||||
Widget shell() const;
|
|
||||||
Widget dialog() const;
|
|
||||||
|
|
||||||
void show();
|
|
||||||
void hide();
|
|
||||||
|
|
||||||
static void acceptCallback( Widget, XtPointer, XtPointer );
|
|
||||||
static void rejectCallback( Widget, XtPointer, XtPointer );
|
|
||||||
|
|
||||||
public slots:
|
|
||||||
void accept();
|
|
||||||
void reject();
|
|
||||||
|
|
||||||
protected:
|
|
||||||
bool event( TQEvent * );
|
|
||||||
|
|
||||||
#if !defined(Q_NO_USING_KEYWORD)
|
|
||||||
using TQObject::insertChild;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
private:
|
|
||||||
TQMotifDialogPrivate *d;
|
|
||||||
|
|
||||||
void init( Widget parent = NULL, ArgList args = NULL, Cardinal argcount = 0);
|
|
||||||
|
|
||||||
void realize( Widget w );
|
|
||||||
void insertChild( Widget w );
|
|
||||||
void deleteChild( Widget w );
|
|
||||||
|
|
||||||
friend void qmotif_dialog_realize( Widget, XtValueMask *, XSetWindowAttributes *);
|
|
||||||
friend void qmotif_dialog_insert_child( Widget );
|
|
||||||
friend void qmotif_dialog_delete_child( Widget );
|
|
||||||
friend void qmotif_dialog_change_managed( Widget );
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // TQMOTIFDIALOG_H
|
|
||||||
</pre>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,355 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/include/tqmotifdialog.h:39 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>TQMotifDialog Member List</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Complete Member List for TQMotifDialog</h1>
|
|
||||||
|
|
||||||
<p>This is the complete list of member functions for
|
|
||||||
<a href="tqmotifdialog.html">TQMotifDialog</a>, including inherited members.
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li><a href="tqmotifdialog.html#TQMotifDialog">TQMotifDialog</a>()
|
|
||||||
<li><a href="tqmotifdialog.html#~TQMotifDialog">~TQMotifDialog</a>()
|
|
||||||
<li><a href="tqdialog.html#accept">accept</a>()
|
|
||||||
<li><a href="tqmotifdialog.html#acceptCallback">acceptCallback</a>()
|
|
||||||
<li><a href="tqwidget.html#acceptDrops">acceptDrops</a>()
|
|
||||||
<li><a href="tqwidget.html#adjustSize">adjustSize</a>()
|
|
||||||
<li><a href="tqwidget.html#autoMask">autoMask</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundBrush">backgroundBrush</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundColor">backgroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundMode">backgroundMode</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundOrigin">backgroundOrigin</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundPixmap">backgroundPixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#baseSize">baseSize</a>()
|
|
||||||
<li><a href="tqobject.html#blockSignals">blockSignals</a>()
|
|
||||||
<li><a href="tqwidget.html#caption">caption</a>()
|
|
||||||
<li><a href="tqobject.html#checkConnectArgs">checkConnectArgs</a>()
|
|
||||||
<li><a href="tqobject.html#child">child</a>()
|
|
||||||
<li><a href="tqwidget.html#childAt">childAt</a>()
|
|
||||||
<li><a href="tqobject.html#childEvent">childEvent</a>()
|
|
||||||
<li><a href="tqobject.html#children">children</a>()
|
|
||||||
<li><a href="tqwidget.html#childrenRect">childrenRect</a>()
|
|
||||||
<li><a href="tqwidget.html#childrenRegion">childrenRegion</a>()
|
|
||||||
<li><a href="tqobject.html#className">className</a>()
|
|
||||||
<li><a href="tqwidget.html#clearFocus">clearFocus</a>()
|
|
||||||
<li><a href="tqwidget.html#clearMask">clearMask</a>()
|
|
||||||
<li><a href="tqwidget.html#clearWFlags">clearWFlags</a>()
|
|
||||||
<li><a href="tqwidget.html#clipRegion">clipRegion</a>()
|
|
||||||
<li><a href="tqwidget.html#close">close</a>()
|
|
||||||
<li><a href="tqwidget.html#closeEvent">closeEvent</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#cmd">cmd</a>()
|
|
||||||
<li><a href="tqwidget.html#colorGroup">colorGroup</a>()
|
|
||||||
<li><a href="tqobject.html#connect">connect</a>()
|
|
||||||
<li><a href="tqobject.html#connectNotify">connectNotify</a>()
|
|
||||||
<li><a href="tqwidget.html#constPolish">constPolish</a>()
|
|
||||||
<li><a href="tqwidget.html#contextMenuEvent">contextMenuEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#create">create</a>()
|
|
||||||
<li><a href="tqwidget.html#cursor">cursor</a>()
|
|
||||||
<li><a href="tqobject.html#customEvent">customEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#customWhatsThis">customWhatsThis</a>()
|
|
||||||
<li><a href="tqobject.html#deleteLater">deleteLater</a>()
|
|
||||||
<li><a href="tqwidget.html#destroy">destroy</a>()
|
|
||||||
<li><a href="tqobject.html#destroyed">destroyed</a>()
|
|
||||||
<li><a href="tqmotifdialog.html#dialog">dialog</a>()
|
|
||||||
<li><a href="tqobject.html#disconnect">disconnect</a>()
|
|
||||||
<li><a href="tqobject.html#disconnectNotify">disconnectNotify</a>()
|
|
||||||
<li><a href="tqdialog.html#done">done</a>()
|
|
||||||
<li><a href="tqwidget.html#dragEnterEvent">dragEnterEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#dragLeaveEvent">dragLeaveEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#dragMoveEvent">dragMoveEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#drawText">drawText</a>()
|
|
||||||
<li><a href="tqwidget.html#dropEvent">dropEvent</a>()
|
|
||||||
<li><a href="tqobject.html#dumpObjectInfo">dumpObjectInfo</a>()
|
|
||||||
<li><a href="tqobject.html#dumpObjectTree">dumpObjectTree</a>()
|
|
||||||
<li><a href="tqwidget.html#enabledChange">enabledChange</a>()
|
|
||||||
<li><a href="tqwidget.html#enterEvent">enterEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#erase">erase</a>()
|
|
||||||
<li><a href="tqwidget.html#eraseColor">eraseColor</a>()
|
|
||||||
<li><a href="tqwidget.html#erasePixmap">erasePixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#event">event</a>()
|
|
||||||
<li><a href="tqobject.html#eventFilter">eventFilter</a>()
|
|
||||||
<li><a href="tqdialog.html#exec">exec</a>()
|
|
||||||
<li><a href="tqdialog.html#extension">extension</a>()
|
|
||||||
<li><a href="tqwidget.html#find">find</a>()
|
|
||||||
<li><a href="tqwidget.html#focusData">focusData</a>()
|
|
||||||
<li><a href="tqwidget.html#focusInEvent">focusInEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#focusNextPrevChild">focusNextPrevChild</a>()
|
|
||||||
<li><a href="tqwidget.html#focusOutEvent">focusOutEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#focusPolicy">focusPolicy</a>()
|
|
||||||
<li><a href="tqwidget.html#focusProxy">focusProxy</a>()
|
|
||||||
<li><a href="tqwidget.html#focusWidget">focusWidget</a>()
|
|
||||||
<li><a href="tqwidget.html#font">font</a>()
|
|
||||||
<li><a href="tqwidget.html#fontChange">fontChange</a>()
|
|
||||||
<li><a href="tqwidget.html#fontInfo">fontInfo</a>()
|
|
||||||
<li><a href="tqwidget.html#fontMetrics">fontMetrics</a>()
|
|
||||||
<li><a href="tqwidget.html#foregroundColor">foregroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#frameGeometry">frameGeometry</a>()
|
|
||||||
<li><a href="tqwidget.html#frameSize">frameSize</a>()
|
|
||||||
<li><a href="tqwidget.html#geometry">geometry</a>()
|
|
||||||
<li><a href="tqwidget.html#getWFlags">getWFlags</a>()
|
|
||||||
<li><a href="tqwidget.html#grabKeyboard">grabKeyboard</a>()
|
|
||||||
<li><a href="tqwidget.html#grabMouse">grabMouse</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#handle">handle</a>()
|
|
||||||
<li><a href="tqwidget.html#hasFocus">hasFocus</a>()
|
|
||||||
<li><a href="tqwidget.html#hasMouse">hasMouse</a>()
|
|
||||||
<li><a href="tqwidget.html#hasMouseTracking">hasMouseTracking</a>()
|
|
||||||
<li><a href="tqwidget.html#height">height</a>()
|
|
||||||
<li><a href="tqwidget.html#heightForWidth">heightForWidth</a>()
|
|
||||||
<li><a href="tqwidget.html#hide">hide</a>()
|
|
||||||
<li><a href="tqwidget.html#hideEvent">hideEvent</a>()
|
|
||||||
<li><a href="tqobject.html#highPriority">highPriority</a>()
|
|
||||||
<li><a href="tqwidget.html#icon">icon</a>()
|
|
||||||
<li><a href="tqwidget.html#iconText">iconText</a>()
|
|
||||||
<li><a href="tqwidget.html#iconify">iconify</a>()
|
|
||||||
<li><a href="tqwidget.html#imComposeEvent">imComposeEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#imEndEvent">imEndEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#imStartEvent">imStartEvent</a>()
|
|
||||||
<li><a href="tqobject.html#inherits">inherits</a>()
|
|
||||||
<li><a href="tqobject.html#insertChild">insertChild</a>()
|
|
||||||
<li><a href="tqobject.html#installEventFilter">installEventFilter</a>()
|
|
||||||
<li><a href="tqobject.html#isA">isA</a>()
|
|
||||||
<li><a href="tqwidget.html#isActiveWindow">isActiveWindow</a>()
|
|
||||||
<li><a href="tqwidget.html#isDesktop">isDesktop</a>()
|
|
||||||
<li><a href="tqwidget.html#isDialog">isDialog</a>()
|
|
||||||
<li><a href="tqwidget.html#isEnabled">isEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#isEnabledTo">isEnabledTo</a>()
|
|
||||||
<li><a href="tqwidget.html#isEnabledToTLW">isEnabledToTLW</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#isExtDev">isExtDev</a>()
|
|
||||||
<li><a href="tqwidget.html#isFocusEnabled">isFocusEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#isFullScreen">isFullScreen</a>()
|
|
||||||
<li><a href="tqwidget.html#isHidden">isHidden</a>()
|
|
||||||
<li><a href="tqwidget.html#isInputMethodEnabled">isInputMethodEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#isMaximized">isMaximized</a>()
|
|
||||||
<li><a href="tqwidget.html#isMinimized">isMinimized</a>()
|
|
||||||
<li><a href="tqdialog.html#isModal">isModal</a>()
|
|
||||||
<li><a href="tqwidget.html#isPopup">isPopup</a>()
|
|
||||||
<li><a href="tqwidget.html#isShown">isShown</a>()
|
|
||||||
<li><a href="tqdialog.html#isSizeGripEnabled">isSizeGripEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#isTopLevel">isTopLevel</a>()
|
|
||||||
<li><a href="tqwidget.html#isUpdatesEnabled">isUpdatesEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#isVisible">isVisible</a>()
|
|
||||||
<li><a href="tqwidget.html#isVisibleTo">isVisibleTo</a>()
|
|
||||||
<li><a href="tqwidget.html#isVisibleToTLW">isVisibleToTLW</a>()
|
|
||||||
<li><a href="tqobject.html#isWidgetType">isWidgetType</a>()
|
|
||||||
<li><a href="tqwidget.html#keyPressEvent">keyPressEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#keyReleaseEvent">keyReleaseEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#keyboardGrabber">keyboardGrabber</a>()
|
|
||||||
<li><a href="tqobject.html#killTimer">killTimer</a>()
|
|
||||||
<li><a href="tqobject.html#killTimers">killTimers</a>()
|
|
||||||
<li><a href="tqwidget.html#layout">layout</a>()
|
|
||||||
<li><a href="tqwidget.html#leaveEvent">leaveEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#lower">lower</a>()
|
|
||||||
<li><a href="tqwidget.html#macEvent">macEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#mapFrom">mapFrom</a>()
|
|
||||||
<li><a href="tqwidget.html#mapFromGlobal">mapFromGlobal</a>()
|
|
||||||
<li><a href="tqwidget.html#mapFromParent">mapFromParent</a>()
|
|
||||||
<li><a href="tqwidget.html#mapTo">mapTo</a>()
|
|
||||||
<li><a href="tqwidget.html#mapToGlobal">mapToGlobal</a>()
|
|
||||||
<li><a href="tqwidget.html#mapToParent">mapToParent</a>()
|
|
||||||
<li><a href="tqwidget.html#maximumHeight">maximumHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#maximumSize">maximumSize</a>()
|
|
||||||
<li><a href="tqwidget.html#maximumWidth">maximumWidth</a>()
|
|
||||||
<li><a href="tqobject.html#metaObject">metaObject</a>()
|
|
||||||
<li><a href="tqwidget.html#metric">metric</a>()
|
|
||||||
<li><a href="tqwidget.html#microFocusHint">microFocusHint</a>()
|
|
||||||
<li><a href="tqwidget.html#minimumHeight">minimumHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#minimumSize">minimumSize</a>()
|
|
||||||
<li><a href="tqwidget.html#minimumSizeHint">minimumSizeHint</a>()
|
|
||||||
<li><a href="tqwidget.html#minimumWidth">minimumWidth</a>()
|
|
||||||
<li><a href="tqwidget.html#mouseDoubleClickEvent">mouseDoubleClickEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#mouseGrabber">mouseGrabber</a>()
|
|
||||||
<li><a href="tqwidget.html#mouseMoveEvent">mouseMoveEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#mousePressEvent">mousePressEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#move">move</a>()
|
|
||||||
<li><a href="tqwidget.html#moveEvent">moveEvent</a>()
|
|
||||||
<li><a href="tqobject.html#name">name</a>()
|
|
||||||
<li><a href="tqobject.html#normalizeSignalSlot">normalizeSignalSlot</a>()
|
|
||||||
<li><a href="tqobject.html#objectTrees">objectTrees</a>()
|
|
||||||
<li><a href="tqdialog.html#orientation">orientation</a>()
|
|
||||||
<li><a href="tqwidget.html#ownCursor">ownCursor</a>()
|
|
||||||
<li><a href="tqwidget.html#ownFont">ownFont</a>()
|
|
||||||
<li><a href="tqwidget.html#ownPalette">ownPalette</a>()
|
|
||||||
<li><a href="tqwidget.html#paintEvent">paintEvent</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#paintingActive">paintingActive</a>()
|
|
||||||
<li><a href="tqwidget.html#palette">palette</a>()
|
|
||||||
<li><a href="tqwidget.html#paletteBackgroundColor">paletteBackgroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#paletteBackgroundPixmap">paletteBackgroundPixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#paletteChange">paletteChange</a>()
|
|
||||||
<li><a href="tqwidget.html#paletteForegroundColor">paletteForegroundColor</a>()
|
|
||||||
<li><a href="tqobject.html#parent">parent</a>()
|
|
||||||
<li><a href="tqwidget.html#parentWidget">parentWidget</a>()
|
|
||||||
<li><a href="tqwidget.html#polish">polish</a>()
|
|
||||||
<li><a href="tqwidget.html#pos">pos</a>()
|
|
||||||
<li><a href="tqobject.html#property">property</a>()
|
|
||||||
<li><a href="tqobject.html#queryList">queryList</a>()
|
|
||||||
<li><a href="tqwidget.html#raise">raise</a>()
|
|
||||||
<li><a href="tqwidget.html#recreate">recreate</a>()
|
|
||||||
<li><a href="tqwidget.html#rect">rect</a>()
|
|
||||||
<li><a href="tqdialog.html#reject">reject</a>()
|
|
||||||
<li><a href="tqmotifdialog.html#rejectCallback">rejectCallback</a>()
|
|
||||||
<li><a href="tqwidget.html#releaseKeyboard">releaseKeyboard</a>()
|
|
||||||
<li><a href="tqwidget.html#releaseMouse">releaseMouse</a>()
|
|
||||||
<li><a href="tqobject.html#removeChild">removeChild</a>()
|
|
||||||
<li><a href="tqobject.html#removeEventFilter">removeEventFilter</a>()
|
|
||||||
<li><a href="tqwidget.html#repaint">repaint</a>()
|
|
||||||
<li><a href="tqwidget.html#reparent">reparent</a>()
|
|
||||||
<li><a href="tqwidget.html#resetInputContext">resetInputContext</a>()
|
|
||||||
<li><a href="tqwidget.html#resize">resize</a>()
|
|
||||||
<li><a href="tqwidget.html#resizeEvent">resizeEvent</a>()
|
|
||||||
<li><a href="tqdialog.html#result">result</a>()
|
|
||||||
<li><a href="tqwidget.html#scroll">scroll</a>()
|
|
||||||
<li><a href="tqobject.html#sender">sender</a>()
|
|
||||||
<li><a href="tqwidget.html#setAcceptDrops">setAcceptDrops</a>()
|
|
||||||
<li><a href="tqwidget.html#setActiveWindow">setActiveWindow</a>()
|
|
||||||
<li><a href="tqwidget.html#setAutoMask">setAutoMask</a>()
|
|
||||||
<li><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#setBackgroundMode">setBackgroundMode</a>()
|
|
||||||
<li><a href="tqwidget.html#setBackgroundOrigin">setBackgroundOrigin</a>()
|
|
||||||
<li><a href="tqwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#setBaseSize">setBaseSize</a>()
|
|
||||||
<li><a href="tqwidget.html#setCaption">setCaption</a>()
|
|
||||||
<li><a href="tqwidget.html#setCursor">setCursor</a>()
|
|
||||||
<li><a href="tqwidget.html#setDisabled">setDisabled</a>()
|
|
||||||
<li><a href="tqwidget.html#setEnabled">setEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#setEraseColor">setEraseColor</a>()
|
|
||||||
<li><a href="tqwidget.html#setErasePixmap">setErasePixmap</a>()
|
|
||||||
<li><a href="tqdialog.html#setExtension">setExtension</a>()
|
|
||||||
<li><a href="tqwidget.html#setFixedHeight">setFixedHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#setFixedSize">setFixedSize</a>()
|
|
||||||
<li><a href="tqwidget.html#setFixedWidth">setFixedWidth</a>()
|
|
||||||
<li><a href="tqwidget.html#setFocus">setFocus</a>()
|
|
||||||
<li><a href="tqwidget.html#setFocusPolicy">setFocusPolicy</a>()
|
|
||||||
<li><a href="tqwidget.html#setFocusProxy">setFocusProxy</a>()
|
|
||||||
<li><a href="tqwidget.html#setFont">setFont</a>()
|
|
||||||
<li><a href="tqwidget.html#setGeometry">setGeometry</a>()
|
|
||||||
<li><a href="tqwidget.html#setHidden">setHidden</a>()
|
|
||||||
<li><a href="tqwidget.html#setIcon">setIcon</a>()
|
|
||||||
<li><a href="tqwidget.html#setIconText">setIconText</a>()
|
|
||||||
<li><a href="tqwidget.html#setInputMethodEnabled">setInputMethodEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#setKeyCompression">setKeyCompression</a>()
|
|
||||||
<li><a href="tqwidget.html#setMask">setMask</a>()
|
|
||||||
<li><a href="tqwidget.html#setMaximumHeight">setMaximumHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#setMaximumSize">setMaximumSize</a>()
|
|
||||||
<li><a href="tqwidget.html#setMaximumWidth">setMaximumWidth</a>()
|
|
||||||
<li><a href="tqwidget.html#setMicroFocusHint">setMicroFocusHint</a>()
|
|
||||||
<li><a href="tqwidget.html#setMinimumHeight">setMinimumHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#setMinimumSize">setMinimumSize</a>()
|
|
||||||
<li><a href="tqwidget.html#setMinimumWidth">setMinimumWidth</a>()
|
|
||||||
<li><a href="tqdialog.html#setModal">setModal</a>()
|
|
||||||
<li><a href="tqwidget.html#setMouseTracking">setMouseTracking</a>()
|
|
||||||
<li><a href="tqobject.html#setName">setName</a>()
|
|
||||||
<li><a href="tqdialog.html#setOrientation">setOrientation</a>()
|
|
||||||
<li><a href="tqwidget.html#setPalette">setPalette</a>()
|
|
||||||
<li><a href="tqwidget.html#setPaletteBackgroundColor">setPaletteBackgroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#setPaletteBackgroundPixmap">setPaletteBackgroundPixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#setPaletteForegroundColor">setPaletteForegroundColor</a>()
|
|
||||||
<li><a href="tqobject.html#setProperty">setProperty</a>()
|
|
||||||
<li><a href="tqdialog.html#setResult">setResult</a>()
|
|
||||||
<li><a href="tqwidget.html#setShown">setShown</a>()
|
|
||||||
<li><a href="tqdialog.html#setSizeGripEnabled">setSizeGripEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#setSizeIncrement">setSizeIncrement</a>()
|
|
||||||
<li><a href="tqwidget.html#setSizePolicy">setSizePolicy</a>()
|
|
||||||
<li><a href="tqwidget.html#setStyle">setStyle</a>()
|
|
||||||
<li><a href="tqwidget.html#setTabOrder">setTabOrder</a>()
|
|
||||||
<li><a href="tqwidget.html#setUpdatesEnabled">setUpdatesEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#setWFlags">setWFlags</a>()
|
|
||||||
<li><a href="tqwidget.html#setWindowOpacity">setWindowOpacity</a>()
|
|
||||||
<li><a href="tqwidget.html#setWindowState">setWindowState</a>()
|
|
||||||
<li><a href="tqmotifdialog.html#shell">shell</a>()
|
|
||||||
<li><a href="tqdialog.html#show">show</a>()
|
|
||||||
<li><a href="tqwidget.html#showEvent">showEvent</a>()
|
|
||||||
<li><a href="tqdialog.html#showExtension">showExtension</a>()
|
|
||||||
<li><a href="tqwidget.html#showFullScreen">showFullScreen</a>()
|
|
||||||
<li><a href="tqwidget.html#showMaximized">showMaximized</a>()
|
|
||||||
<li><a href="tqwidget.html#showMinimized">showMinimized</a>()
|
|
||||||
<li><a href="tqwidget.html#showNormal">showNormal</a>()
|
|
||||||
<li><a href="tqobject.html#signalsBlocked">signalsBlocked</a>()
|
|
||||||
<li><a href="tqwidget.html#size">size</a>()
|
|
||||||
<li><a href="tqwidget.html#sizeHint">sizeHint</a>()
|
|
||||||
<li><a href="tqwidget.html#sizeIncrement">sizeIncrement</a>()
|
|
||||||
<li><a href="tqwidget.html#sizePolicy">sizePolicy</a>()
|
|
||||||
<li><a href="tqwidget.html#stackUnder">stackUnder</a>()
|
|
||||||
<li><a href="tqobject.html#startTimer">startTimer</a>()
|
|
||||||
<li><a href="tqwidget.html#style">style</a>()
|
|
||||||
<li><a href="tqwidget.html#styleChange">styleChange</a>()
|
|
||||||
<li><a href="tqwidget.html#tabletEvent">tabletEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#testWFlags">testWFlags</a>()
|
|
||||||
<li><a href="tqobject.html#timerEvent">timerEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#topLevelWidget">topLevelWidget</a>()
|
|
||||||
<li><a href="tqobject.html#tr">tr</a>()
|
|
||||||
<li><a href="tqobject.html#trUtf8">trUtf8</a>()
|
|
||||||
<li><a href="tqwidget.html#unsetCursor">unsetCursor</a>()
|
|
||||||
<li><a href="tqwidget.html#unsetFont">unsetFont</a>()
|
|
||||||
<li><a href="tqwidget.html#unsetPalette">unsetPalette</a>()
|
|
||||||
<li><a href="tqwidget.html#update">update</a>()
|
|
||||||
<li><a href="tqwidget.html#updateGeometry">updateGeometry</a>()
|
|
||||||
<li><a href="tqwidget.html#updateMask">updateMask</a>()
|
|
||||||
<li><a href="tqwidget.html#visibleRect">visibleRect</a>()
|
|
||||||
<li><a href="tqwidget.html#wheelEvent">wheelEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#width">width</a>()
|
|
||||||
<li><a href="tqwidget.html#winEvent">winEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#winId">winId</a>()
|
|
||||||
<li><a href="tqwidget.html#windowActivationChange">windowActivationChange</a>()
|
|
||||||
<li><a href="tqwidget.html#windowOpacity">windowOpacity</a>()
|
|
||||||
<li><a href="tqwidget.html#windowState">windowState</a>()
|
|
||||||
<li><a href="tqwidget.html#x">x</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppCells">x11AppCells</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppColormap">x11AppColormap</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDefaultColormap">x11AppDefaultColormap</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDefaultVisual">x11AppDefaultVisual</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDepth">x11AppDepth</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDisplay">x11AppDisplay</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDpiX">x11AppDpiX</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDpiY">x11AppDpiY</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppRootWindow">x11AppRootWindow</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppScreen">x11AppScreen</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppVisual">x11AppVisual</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Cells">x11Cells</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Colormap">x11Colormap</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11DefaultColormap">x11DefaultColormap</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11DefaultVisual">x11DefaultVisual</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Depth">x11Depth</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Display">x11Display</a>()
|
|
||||||
<li><a href="tqwidget.html#x11Event">x11Event</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Screen">x11Screen</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11SetAppDpiX">x11SetAppDpiX</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11SetAppDpiY">x11SetAppDpiY</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Visual">x11Visual</a>()
|
|
||||||
<li><a href="tqwidget.html#y">y</a>()
|
|
||||||
</ul>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,205 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/src/tqmotifdialog.cpp:167 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>TQMotifDialog Class</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>TQMotifDialog Class Reference</h1>
|
|
||||||
|
|
||||||
<p>The TQMotifDialog class provides the TQDialog API for Motif-based dialogs.
|
|
||||||
<a href="#details">More...</a>
|
|
||||||
<p>This class is part of the <b>TQt Motif Extension</b>.
|
|
||||||
<p><tt>#include <<a href="tqmotifdialog-h.html">tqmotifdialog.h</a>></tt>
|
|
||||||
<p>Inherits <a href="tqdialog.html">TQDialog</a>.
|
|
||||||
<p><a href="tqmotifdialog-members.html">List of all member functions.</a>
|
|
||||||
<h2>Public Members</h2>
|
|
||||||
<ul>
|
|
||||||
<li class=fn>enum DialogType { Prompt, Selection, Command, FileSelection, Template, Error, Information, Message, Question, Warning, Working } <em>(obsolete)</em></li>
|
|
||||||
<li class=fn>TQMotifDialog ( DialogType dialogtype, Widget parent, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, bool modal = FALSE, WFlags flags = 0 ) <em>(obsolete)</em></li>
|
|
||||||
<li class=fn>TQMotifDialog ( Widget parent, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, bool modal = FALSE, WFlags flags = 0 ) <em>(obsolete)</em></li>
|
|
||||||
<li class=fn><a href="#TQMotifDialog-3"><b>TQMotifDialog</b></a> ( Widget parent, const char * name = 0, bool modal = FALSE, WFlags flags = 0 )</li>
|
|
||||||
<li class=fn><a href="#TQMotifDialog-4"><b>TQMotifDialog</b></a> ( TQWidget * parent, const char * name = 0, bool modal = FALSE, WFlags flags = 0 )</li>
|
|
||||||
<li class=fn>virtual <a href="#~TQMotifDialog"><b>~TQMotifDialog</b></a> ()</li>
|
|
||||||
<li class=fn>Widget <a href="#shell"><b>shell</b></a> () const</li>
|
|
||||||
<li class=fn>Widget <a href="#dialog"><b>dialog</b></a> () const</li>
|
|
||||||
</ul>
|
|
||||||
<h2>Static Public Members</h2>
|
|
||||||
<ul>
|
|
||||||
<li class=fn>void <a href="#acceptCallback"><b>acceptCallback</b></a> ( Widget, XtPointer client_data, XtPointer )</li>
|
|
||||||
<li class=fn>void <a href="#rejectCallback"><b>rejectCallback</b></a> ( Widget, XtPointer client_data, XtPointer )</li>
|
|
||||||
</ul>
|
|
||||||
<hr><a name="details"></a><h2>Detailed Description</h2>
|
|
||||||
<p> This class is defined in the <b>TQt <a href="motif-extension.html#Motif">Motif</a> Extension</b>, which can be found in the <tt>qt/extensions</tt> directory. It is not included in the main TQt API.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
The TQMotifDialog class provides the <a href="tqdialog.html">TQDialog</a> API for Motif-based dialogs.
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<p> TQMotifDialog provides two separate modes of operation. The
|
|
||||||
application programmer can use TQMotifDialog with an existing
|
|
||||||
Motif-based dialog and a <a href="tqwidget.html">TQWidget</a> parent, or the application
|
|
||||||
programmer can use TQMotifDialog with a custom TQt-based dialog and
|
|
||||||
a Motif-based parent. Modality continues to work as expected.
|
|
||||||
<p> Motif-based dialogs must have a <tt>Shell</tt> widget parent with a
|
|
||||||
single child, due to requirements of the Motif toolkit. The <tt>Shell</tt> widget, which is a special subclass of <tt>XmDialogShell</tt>, is
|
|
||||||
created during construction. It can be accessed using the <a href="#shell">shell</a>()
|
|
||||||
member function.
|
|
||||||
<p> The single child of the <tt>Shell</tt> can be accessed using the
|
|
||||||
<a href="#dialog">dialog</a>() member function <em>after</em> it has been created.
|
|
||||||
<p> The <a href="#acceptCallback">acceptCallback</a>() and <a href="#rejectCallback">rejectCallback</a>() functions provide a
|
|
||||||
convenient way to call <a href="tqdialog.html#accept">TQDialog::accept</a>() and <a href="tqdialog.html#reject">TQDialog::reject</a>()
|
|
||||||
through callbacks. A pointer to the TQMotifDialog should be passed
|
|
||||||
as the <tt>client_data</tt> argument to the callback.
|
|
||||||
<p> The API and behavior TQMotifDialog is identical to that of <a href="tqdialog.html">TQDialog</a>
|
|
||||||
when using a custom TQt-based dialog with a Motif-based parent.
|
|
||||||
The only difference is that a Motif-based <em>parent</em> argument is
|
|
||||||
passed to the constructor, instead of a <a href="tqwidget.html">TQWidget</a> parent.
|
|
||||||
|
|
||||||
<hr><h2>Member Type Documentation</h2>
|
|
||||||
<h3 class=fn><a name="DialogType-enum"></a>TQMotifDialog::DialogType</h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
|
||||||
<p>
|
|
||||||
<p> This enum lists the predefined <a href="motif-extension.html#Motif">Motif</a> dialog types.
|
|
||||||
<ul>
|
|
||||||
<li><tt>TQMotifDialog::Prompt</tt>
|
|
||||||
<li><tt>TQMotifDialog::Selection</tt>
|
|
||||||
<li><tt>TQMotifDialog::Command</tt>
|
|
||||||
<li><tt>TQMotifDialog::FileSelection</tt>
|
|
||||||
<li><tt>TQMotifDialog::Template</tt>
|
|
||||||
<li><tt>TQMotifDialog::Error</tt>
|
|
||||||
<li><tt>TQMotifDialog::Information</tt>
|
|
||||||
<li><tt>TQMotifDialog::Message</tt>
|
|
||||||
<li><tt>TQMotifDialog::Question</tt>
|
|
||||||
<li><tt>TQMotifDialog::Warning</tt>
|
|
||||||
<li><tt>TQMotifDialog::Working</tt>
|
|
||||||
</ul>
|
|
||||||
<hr><h2>Member Function Documentation</h2>
|
|
||||||
<h3 class=fn><a name="TQMotifDialog"></a>TQMotifDialog::TQMotifDialog ( <a href="tqmotifdialog.html#DialogType-enum">DialogType</a> dialogtype, Widget parent, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, bool modal = FALSE, WFlags flags = 0 )
|
|
||||||
</h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
|
||||||
<p> Creates a TQMotifDialog using one of the predefined <a href="motif-extension.html#Motif">Motif</a> dialog
|
|
||||||
types. The <em>name</em>, <em>modal</em> and <em>flags</em> arguments are passed to
|
|
||||||
the <a href="tqdialog.html">TQDialog</a> constructor.
|
|
||||||
<p> This constructor creates a Shell widget, which is a special
|
|
||||||
subclass of XmDialogShell. The <em>parent</em>, <em>args</em> and <em>argcount</em>
|
|
||||||
arguments are passed to XtCreatePopupShell() when creating the
|
|
||||||
subclass. You can access the Shell widget with the <a href="#shell">shell</a>() member
|
|
||||||
function.
|
|
||||||
<p> This constructor also creates the dialog widget with the Shell
|
|
||||||
widget as its parent. The type of the dialog created is specified
|
|
||||||
by the <em>dialogtype</em> argument. See the DialogType enum for a list
|
|
||||||
of available dialog types. You can access the dialog widget with
|
|
||||||
the <a href="#dialog">dialog</a>() member function.
|
|
||||||
<p> <b>Warning:</b> TQMotifDialog takes ownership of the child widget and
|
|
||||||
destroys it during destruction. You should not destroy the dialog
|
|
||||||
widget yourself.
|
|
||||||
<p> <p>See also <a href="#DialogType-enum">DialogType</a>, <a href="#shell">shell</a>(), and <a href="#dialog">dialog</a>().
|
|
||||||
|
|
||||||
<h3 class=fn><a name="TQMotifDialog-2"></a>TQMotifDialog::TQMotifDialog ( Widget parent, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, bool modal = FALSE, WFlags flags = 0 )
|
|
||||||
</h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
|
||||||
<p> Creates a TQMotifDialog which allows the application programmer to
|
|
||||||
use the <a href="motif-extension.html#Motif">Motif</a>-based <em>parent</em> for a custom <a href="tqdialog.html">TQDialog</a>. The <em>name</em>,
|
|
||||||
<em>modal</em> and <em>flags</em> arguments are passed to the TQDialog
|
|
||||||
constructor.
|
|
||||||
<p> This constructor creates a Shell widget, which is a special
|
|
||||||
subclass of XmDialogShell. The <em>args</em> and <em>argcount</em> arguments
|
|
||||||
are passed to XtCreatePopupShell() when creating the subclass.
|
|
||||||
You can access the Shell widget with the <a href="#shell">shell</a>() member function.
|
|
||||||
<p> The dialog widget is not created by the constructor. You must
|
|
||||||
create the dialog widget as a child of the the widget returned by
|
|
||||||
shell(). You can access the child widget with the <a href="#dialog">dialog</a>() member
|
|
||||||
function.
|
|
||||||
<p> A dialog widget is not created by this constructor. Instead, you
|
|
||||||
should create the dialog widget as a child of this
|
|
||||||
dialog. TQMotifDialog will take ownership of your custom dialog,
|
|
||||||
and you can access it with the dialog() member function.
|
|
||||||
<p> <b>Warning:</b> TQMotifDialog takes ownership of the child widget and
|
|
||||||
destroys it during destruction. You should not destroy the dialog
|
|
||||||
widget yourself.
|
|
||||||
<p> <p>See also <a href="#shell">shell</a>() and <a href="#dialog">dialog</a>().
|
|
||||||
|
|
||||||
<h3 class=fn><a name="TQMotifDialog-3"></a>TQMotifDialog::TQMotifDialog ( Widget parent, const char * name = 0, bool modal = FALSE, WFlags flags = 0 )
|
|
||||||
</h3>
|
|
||||||
Creates a TQMotifDialog which allows the application programmer to
|
|
||||||
use the <a href="motif-extension.html#Motif">Motif</a>-based <em>parent</em> for a custom <a href="tqdialog.html">TQDialog</a>. The <em>name</em>,
|
|
||||||
<em>modal</em> and <em>flags</em> arguments are passed to the TQDialog
|
|
||||||
constructor.
|
|
||||||
<p> This constructor creates a <tt>Shell</tt> widget, which is a special
|
|
||||||
subclass of <tt>XmDialogShell</tt>. You can access the <tt>Shell</tt> widget
|
|
||||||
with the <a href="#shell">shell</a>() member function.
|
|
||||||
<p> <p>See also <a href="#shell">shell</a>().
|
|
||||||
|
|
||||||
<h3 class=fn><a name="TQMotifDialog-4"></a>TQMotifDialog::TQMotifDialog ( <a href="tqwidget.html">TQWidget</a> * parent, const char * name = 0, bool modal = FALSE, WFlags flags = 0 )
|
|
||||||
</h3>
|
|
||||||
Creates a TQMotifDialog which allows the application programmer to
|
|
||||||
use a <a href="tqwidget.html">TQWidget</a> parent for an existing <a href="motif-extension.html#Motif">Motif</a>-based dialog. The <em>parent</em>, <em>name</em>, <em>modal</em> and <em>flags</em> arguments are passed to the
|
|
||||||
<a href="tqdialog.html">TQDialog</a> constructor.
|
|
||||||
<p> This constructor creates a <tt>Shell</tt> widget, which is a special
|
|
||||||
subclass of <tt>XmDialogShell</tt>. You can access the <tt>Shell</tt> widget
|
|
||||||
with the <a href="#shell">shell</a>() member functon.
|
|
||||||
<p> A dialog widget is not created by this constructor. Instead, you
|
|
||||||
should create the dialog widget as a child of this
|
|
||||||
dialog. TQMotifDialog will take ownership of your custom dialog,
|
|
||||||
and you can access it with the <a href="#dialog">dialog</a>() member function.
|
|
||||||
<p> <b>Warning:</b> TQMotifDialog takes ownership of the child widget and
|
|
||||||
destroys it during destruction. You should not destroy the dialog
|
|
||||||
widget yourself.
|
|
||||||
<p> <p>See also <a href="#shell">shell</a>() and <a href="#dialog">dialog</a>().
|
|
||||||
|
|
||||||
<h3 class=fn><a name="~TQMotifDialog"></a>TQMotifDialog::~TQMotifDialog ()<tt> [virtual]</tt>
|
|
||||||
</h3>
|
|
||||||
Destroys the <a href="tqdialog.html">TQDialog</a>, dialog widget and <tt>Shell</tt> widget.
|
|
||||||
|
|
||||||
<h3 class=fn>void <a name="acceptCallback"></a>TQMotifDialog::acceptCallback ( Widget, XtPointer client_data, XtPointer )<tt> [static]</tt>
|
|
||||||
</h3>
|
|
||||||
Convenient Xt/Motif callback to accept the TQMotifDialog.
|
|
||||||
<p> The data is passed in <em>client_data</em>.
|
|
||||||
|
|
||||||
<h3 class=fn>Widget <a name="dialog"></a>TQMotifDialog::dialog () const
|
|
||||||
</h3>
|
|
||||||
Returns the <a href="motif-extension.html#Motif">Motif</a> widget embedded in this dialog.
|
|
||||||
|
|
||||||
<h3 class=fn>void <a name="rejectCallback"></a>TQMotifDialog::rejectCallback ( Widget, XtPointer client_data, XtPointer )<tt> [static]</tt>
|
|
||||||
</h3>
|
|
||||||
Convenient Xt/Motif callback to reject the TQMotifDialog.
|
|
||||||
<p> The data is passed in <em>client_data</em>.
|
|
||||||
|
|
||||||
<h3 class=fn>Widget <a name="shell"></a>TQMotifDialog::shell () const
|
|
||||||
</h3>
|
|
||||||
Returns the <tt>Shell</tt> widget embedded in this dialog.
|
|
||||||
|
|
||||||
<p>Example: <a href="motif-dialog-example.html#x2707">dialog/mainwindow.cpp</a>.
|
|
||||||
<!-- eof -->
|
|
||||||
<hr><p>
|
|
||||||
This file is part of the <a href="index.html">TQt toolkit</a>.
|
|
||||||
Copyright © 1995-2007
|
|
||||||
<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,115 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/include/tqmotifwidget.h:1 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>tqmotifwidget.h Include File</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>tqmotifwidget.h</h1>
|
|
||||||
|
|
||||||
<p>This is the verbatim text of the tqmotifwidget.h include file. It is provided only for illustration; the copyright remains with Trolltech.
|
|
||||||
<hr>
|
|
||||||
<pre>
|
|
||||||
/****************************************************************************
|
|
||||||
** $Id: qt/tqmotifwidget.h 3.3.8 edited Jan 11 14:37 $
|
|
||||||
**
|
|
||||||
** Definition of TQt extension classes for Xt/Motif support.
|
|
||||||
**
|
|
||||||
** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
|
|
||||||
**
|
|
||||||
** This file is part of the TQt extension for Xt/Motif support.
|
|
||||||
**
|
|
||||||
** Licensees holding valid TQt Enterprise Edition licenses for X11 may use
|
|
||||||
** this file in accordance with the TQt Commercial License Agreement provided
|
|
||||||
** with the Software.
|
|
||||||
**
|
|
||||||
** This file is not available for use under any other license without
|
|
||||||
** express written permission from the copyright holder.
|
|
||||||
**
|
|
||||||
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
|
||||||
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
**
|
|
||||||
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
|
||||||
** information about TQt Commercial License Agreements.
|
|
||||||
**
|
|
||||||
** Contact info@trolltech.com if any conditions of this licensing are
|
|
||||||
** not clear to you.
|
|
||||||
**
|
|
||||||
**********************************************************************/
|
|
||||||
|
|
||||||
#ifndef TQMOTIFWIDGET_H
|
|
||||||
#define TQMOTIFWIDGET_H
|
|
||||||
|
|
||||||
#include <tqwidget.h>
|
|
||||||
|
|
||||||
#include <X11/Intrinsic.h>
|
|
||||||
|
|
||||||
class TQMotifWidgetPrivate;
|
|
||||||
class TQKeyEvent;
|
|
||||||
|
|
||||||
class TQMotifWidget : public TQWidget
|
|
||||||
{
|
|
||||||
TQ_OBJECT
|
|
||||||
|
|
||||||
public:
|
|
||||||
TQMotifWidget( TQWidget *, WidgetClass, ArgList = NULL, Cardinal = 0,
|
|
||||||
const char * = 0, WFlags = 0 );
|
|
||||||
virtual ~TQMotifWidget();
|
|
||||||
|
|
||||||
Widget motifWidget() const;
|
|
||||||
|
|
||||||
void show();
|
|
||||||
void hide();
|
|
||||||
|
|
||||||
protected:
|
|
||||||
bool event( TQEvent * );
|
|
||||||
bool eventFilter( TQObject *object, TQEvent *event );
|
|
||||||
bool x11Event(XEvent *event);
|
|
||||||
|
|
||||||
private:
|
|
||||||
TQMotifWidgetPrivate *d;
|
|
||||||
|
|
||||||
void realize( Widget );
|
|
||||||
|
|
||||||
friend void qmotif_widget_shell_destroy(Widget w);
|
|
||||||
friend void qmotif_widget_shell_realize( Widget, XtValueMask *,
|
|
||||||
XSetWindowAttributes *);
|
|
||||||
friend void qmotif_widget_shell_change_managed( Widget );
|
|
||||||
static bool dispatchTQEvent( TQEvent*, TQWidget*);
|
|
||||||
friend class TQMotifDialog;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // TQMOTIFWIDGET_H
|
|
||||||
</pre>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,338 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/include/tqmotifwidget.h:38 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>TQMotifWidget Member List</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Complete Member List for TQMotifWidget</h1>
|
|
||||||
|
|
||||||
<p>This is the complete list of member functions for
|
|
||||||
<a href="tqmotifwidget.html">TQMotifWidget</a>, including inherited members.
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li><a href="tqmotifwidget.html#TQMotifWidget">TQMotifWidget</a>()
|
|
||||||
<li><a href="tqmotifwidget.html#~TQMotifWidget">~TQMotifWidget</a>()
|
|
||||||
<li><a href="tqwidget.html#acceptDrops">acceptDrops</a>()
|
|
||||||
<li><a href="tqwidget.html#adjustSize">adjustSize</a>()
|
|
||||||
<li><a href="tqwidget.html#autoMask">autoMask</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundBrush">backgroundBrush</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundColor">backgroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundMode">backgroundMode</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundOrigin">backgroundOrigin</a>()
|
|
||||||
<li><a href="tqwidget.html#backgroundPixmap">backgroundPixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#baseSize">baseSize</a>()
|
|
||||||
<li><a href="tqobject.html#blockSignals">blockSignals</a>()
|
|
||||||
<li><a href="tqwidget.html#caption">caption</a>()
|
|
||||||
<li><a href="tqobject.html#checkConnectArgs">checkConnectArgs</a>()
|
|
||||||
<li><a href="tqobject.html#child">child</a>()
|
|
||||||
<li><a href="tqwidget.html#childAt">childAt</a>()
|
|
||||||
<li><a href="tqobject.html#childEvent">childEvent</a>()
|
|
||||||
<li><a href="tqobject.html#children">children</a>()
|
|
||||||
<li><a href="tqwidget.html#childrenRect">childrenRect</a>()
|
|
||||||
<li><a href="tqwidget.html#childrenRegion">childrenRegion</a>()
|
|
||||||
<li><a href="tqobject.html#className">className</a>()
|
|
||||||
<li><a href="tqwidget.html#clearFocus">clearFocus</a>()
|
|
||||||
<li><a href="tqwidget.html#clearMask">clearMask</a>()
|
|
||||||
<li><a href="tqwidget.html#clearWFlags">clearWFlags</a>()
|
|
||||||
<li><a href="tqwidget.html#clipRegion">clipRegion</a>()
|
|
||||||
<li><a href="tqwidget.html#close">close</a>()
|
|
||||||
<li><a href="tqwidget.html#closeEvent">closeEvent</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#cmd">cmd</a>()
|
|
||||||
<li><a href="tqwidget.html#colorGroup">colorGroup</a>()
|
|
||||||
<li><a href="tqobject.html#connect">connect</a>()
|
|
||||||
<li><a href="tqobject.html#connectNotify">connectNotify</a>()
|
|
||||||
<li><a href="tqwidget.html#constPolish">constPolish</a>()
|
|
||||||
<li><a href="tqwidget.html#contextMenuEvent">contextMenuEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#create">create</a>()
|
|
||||||
<li><a href="tqwidget.html#cursor">cursor</a>()
|
|
||||||
<li><a href="tqobject.html#customEvent">customEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#customWhatsThis">customWhatsThis</a>()
|
|
||||||
<li><a href="tqobject.html#deleteLater">deleteLater</a>()
|
|
||||||
<li><a href="tqwidget.html#destroy">destroy</a>()
|
|
||||||
<li><a href="tqobject.html#destroyed">destroyed</a>()
|
|
||||||
<li><a href="tqobject.html#disconnect">disconnect</a>()
|
|
||||||
<li><a href="tqobject.html#disconnectNotify">disconnectNotify</a>()
|
|
||||||
<li><a href="tqwidget.html#dragEnterEvent">dragEnterEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#dragLeaveEvent">dragLeaveEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#dragMoveEvent">dragMoveEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#drawText">drawText</a>()
|
|
||||||
<li><a href="tqwidget.html#dropEvent">dropEvent</a>()
|
|
||||||
<li><a href="tqobject.html#dumpObjectInfo">dumpObjectInfo</a>()
|
|
||||||
<li><a href="tqobject.html#dumpObjectTree">dumpObjectTree</a>()
|
|
||||||
<li><a href="tqwidget.html#enabledChange">enabledChange</a>()
|
|
||||||
<li><a href="tqwidget.html#enterEvent">enterEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#erase">erase</a>()
|
|
||||||
<li><a href="tqwidget.html#eraseColor">eraseColor</a>()
|
|
||||||
<li><a href="tqwidget.html#erasePixmap">erasePixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#event">event</a>()
|
|
||||||
<li><a href="tqobject.html#eventFilter">eventFilter</a>()
|
|
||||||
<li><a href="tqwidget.html#find">find</a>()
|
|
||||||
<li><a href="tqwidget.html#focusData">focusData</a>()
|
|
||||||
<li><a href="tqwidget.html#focusInEvent">focusInEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#focusNextPrevChild">focusNextPrevChild</a>()
|
|
||||||
<li><a href="tqwidget.html#focusOutEvent">focusOutEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#focusPolicy">focusPolicy</a>()
|
|
||||||
<li><a href="tqwidget.html#focusProxy">focusProxy</a>()
|
|
||||||
<li><a href="tqwidget.html#focusWidget">focusWidget</a>()
|
|
||||||
<li><a href="tqwidget.html#font">font</a>()
|
|
||||||
<li><a href="tqwidget.html#fontChange">fontChange</a>()
|
|
||||||
<li><a href="tqwidget.html#fontInfo">fontInfo</a>()
|
|
||||||
<li><a href="tqwidget.html#fontMetrics">fontMetrics</a>()
|
|
||||||
<li><a href="tqwidget.html#foregroundColor">foregroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#frameGeometry">frameGeometry</a>()
|
|
||||||
<li><a href="tqwidget.html#frameSize">frameSize</a>()
|
|
||||||
<li><a href="tqwidget.html#geometry">geometry</a>()
|
|
||||||
<li><a href="tqwidget.html#getWFlags">getWFlags</a>()
|
|
||||||
<li><a href="tqwidget.html#grabKeyboard">grabKeyboard</a>()
|
|
||||||
<li><a href="tqwidget.html#grabMouse">grabMouse</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#handle">handle</a>()
|
|
||||||
<li><a href="tqwidget.html#hasFocus">hasFocus</a>()
|
|
||||||
<li><a href="tqwidget.html#hasMouse">hasMouse</a>()
|
|
||||||
<li><a href="tqwidget.html#hasMouseTracking">hasMouseTracking</a>()
|
|
||||||
<li><a href="tqwidget.html#height">height</a>()
|
|
||||||
<li><a href="tqwidget.html#heightForWidth">heightForWidth</a>()
|
|
||||||
<li><a href="tqwidget.html#hide">hide</a>()
|
|
||||||
<li><a href="tqwidget.html#hideEvent">hideEvent</a>()
|
|
||||||
<li><a href="tqobject.html#highPriority">highPriority</a>()
|
|
||||||
<li><a href="tqwidget.html#icon">icon</a>()
|
|
||||||
<li><a href="tqwidget.html#iconText">iconText</a>()
|
|
||||||
<li><a href="tqwidget.html#iconify">iconify</a>()
|
|
||||||
<li><a href="tqwidget.html#imComposeEvent">imComposeEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#imEndEvent">imEndEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#imStartEvent">imStartEvent</a>()
|
|
||||||
<li><a href="tqobject.html#inherits">inherits</a>()
|
|
||||||
<li><a href="tqobject.html#insertChild">insertChild</a>()
|
|
||||||
<li><a href="tqobject.html#installEventFilter">installEventFilter</a>()
|
|
||||||
<li><a href="tqobject.html#isA">isA</a>()
|
|
||||||
<li><a href="tqwidget.html#isActiveWindow">isActiveWindow</a>()
|
|
||||||
<li><a href="tqwidget.html#isDesktop">isDesktop</a>()
|
|
||||||
<li><a href="tqwidget.html#isDialog">isDialog</a>()
|
|
||||||
<li><a href="tqwidget.html#isEnabled">isEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#isEnabledTo">isEnabledTo</a>()
|
|
||||||
<li><a href="tqwidget.html#isEnabledToTLW">isEnabledToTLW</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#isExtDev">isExtDev</a>()
|
|
||||||
<li><a href="tqwidget.html#isFocusEnabled">isFocusEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#isFullScreen">isFullScreen</a>()
|
|
||||||
<li><a href="tqwidget.html#isHidden">isHidden</a>()
|
|
||||||
<li><a href="tqwidget.html#isInputMethodEnabled">isInputMethodEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#isMaximized">isMaximized</a>()
|
|
||||||
<li><a href="tqwidget.html#isMinimized">isMinimized</a>()
|
|
||||||
<li><a href="tqwidget.html#isModal">isModal</a>()
|
|
||||||
<li><a href="tqwidget.html#isPopup">isPopup</a>()
|
|
||||||
<li><a href="tqwidget.html#isShown">isShown</a>()
|
|
||||||
<li><a href="tqwidget.html#isTopLevel">isTopLevel</a>()
|
|
||||||
<li><a href="tqwidget.html#isUpdatesEnabled">isUpdatesEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#isVisible">isVisible</a>()
|
|
||||||
<li><a href="tqwidget.html#isVisibleTo">isVisibleTo</a>()
|
|
||||||
<li><a href="tqwidget.html#isVisibleToTLW">isVisibleToTLW</a>()
|
|
||||||
<li><a href="tqobject.html#isWidgetType">isWidgetType</a>()
|
|
||||||
<li><a href="tqwidget.html#keyPressEvent">keyPressEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#keyReleaseEvent">keyReleaseEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#keyboardGrabber">keyboardGrabber</a>()
|
|
||||||
<li><a href="tqobject.html#killTimer">killTimer</a>()
|
|
||||||
<li><a href="tqobject.html#killTimers">killTimers</a>()
|
|
||||||
<li><a href="tqwidget.html#layout">layout</a>()
|
|
||||||
<li><a href="tqwidget.html#leaveEvent">leaveEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#lower">lower</a>()
|
|
||||||
<li><a href="tqwidget.html#macEvent">macEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#mapFrom">mapFrom</a>()
|
|
||||||
<li><a href="tqwidget.html#mapFromGlobal">mapFromGlobal</a>()
|
|
||||||
<li><a href="tqwidget.html#mapFromParent">mapFromParent</a>()
|
|
||||||
<li><a href="tqwidget.html#mapTo">mapTo</a>()
|
|
||||||
<li><a href="tqwidget.html#mapToGlobal">mapToGlobal</a>()
|
|
||||||
<li><a href="tqwidget.html#mapToParent">mapToParent</a>()
|
|
||||||
<li><a href="tqwidget.html#maximumHeight">maximumHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#maximumSize">maximumSize</a>()
|
|
||||||
<li><a href="tqwidget.html#maximumWidth">maximumWidth</a>()
|
|
||||||
<li><a href="tqobject.html#metaObject">metaObject</a>()
|
|
||||||
<li><a href="tqwidget.html#metric">metric</a>()
|
|
||||||
<li><a href="tqwidget.html#microFocusHint">microFocusHint</a>()
|
|
||||||
<li><a href="tqwidget.html#minimumHeight">minimumHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#minimumSize">minimumSize</a>()
|
|
||||||
<li><a href="tqwidget.html#minimumSizeHint">minimumSizeHint</a>()
|
|
||||||
<li><a href="tqwidget.html#minimumWidth">minimumWidth</a>()
|
|
||||||
<li><a href="tqmotifwidget.html#motifWidget">motifWidget</a>()
|
|
||||||
<li><a href="tqwidget.html#mouseDoubleClickEvent">mouseDoubleClickEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#mouseGrabber">mouseGrabber</a>()
|
|
||||||
<li><a href="tqwidget.html#mouseMoveEvent">mouseMoveEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#mousePressEvent">mousePressEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#move">move</a>()
|
|
||||||
<li><a href="tqwidget.html#moveEvent">moveEvent</a>()
|
|
||||||
<li><a href="tqobject.html#name">name</a>()
|
|
||||||
<li><a href="tqobject.html#normalizeSignalSlot">normalizeSignalSlot</a>()
|
|
||||||
<li><a href="tqobject.html#objectTrees">objectTrees</a>()
|
|
||||||
<li><a href="tqwidget.html#ownCursor">ownCursor</a>()
|
|
||||||
<li><a href="tqwidget.html#ownFont">ownFont</a>()
|
|
||||||
<li><a href="tqwidget.html#ownPalette">ownPalette</a>()
|
|
||||||
<li><a href="tqwidget.html#paintEvent">paintEvent</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#paintingActive">paintingActive</a>()
|
|
||||||
<li><a href="tqwidget.html#palette">palette</a>()
|
|
||||||
<li><a href="tqwidget.html#paletteBackgroundColor">paletteBackgroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#paletteBackgroundPixmap">paletteBackgroundPixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#paletteChange">paletteChange</a>()
|
|
||||||
<li><a href="tqwidget.html#paletteForegroundColor">paletteForegroundColor</a>()
|
|
||||||
<li><a href="tqobject.html#parent">parent</a>()
|
|
||||||
<li><a href="tqwidget.html#parentWidget">parentWidget</a>()
|
|
||||||
<li><a href="tqwidget.html#polish">polish</a>()
|
|
||||||
<li><a href="tqwidget.html#pos">pos</a>()
|
|
||||||
<li><a href="tqobject.html#property">property</a>()
|
|
||||||
<li><a href="tqobject.html#queryList">queryList</a>()
|
|
||||||
<li><a href="tqwidget.html#raise">raise</a>()
|
|
||||||
<li><a href="tqwidget.html#recreate">recreate</a>()
|
|
||||||
<li><a href="tqwidget.html#rect">rect</a>()
|
|
||||||
<li><a href="tqwidget.html#releaseKeyboard">releaseKeyboard</a>()
|
|
||||||
<li><a href="tqwidget.html#releaseMouse">releaseMouse</a>()
|
|
||||||
<li><a href="tqobject.html#removeChild">removeChild</a>()
|
|
||||||
<li><a href="tqobject.html#removeEventFilter">removeEventFilter</a>()
|
|
||||||
<li><a href="tqwidget.html#repaint">repaint</a>()
|
|
||||||
<li><a href="tqwidget.html#reparent">reparent</a>()
|
|
||||||
<li><a href="tqwidget.html#resetInputContext">resetInputContext</a>()
|
|
||||||
<li><a href="tqwidget.html#resize">resize</a>()
|
|
||||||
<li><a href="tqwidget.html#resizeEvent">resizeEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#scroll">scroll</a>()
|
|
||||||
<li><a href="tqobject.html#sender">sender</a>()
|
|
||||||
<li><a href="tqwidget.html#setAcceptDrops">setAcceptDrops</a>()
|
|
||||||
<li><a href="tqwidget.html#setActiveWindow">setActiveWindow</a>()
|
|
||||||
<li><a href="tqwidget.html#setAutoMask">setAutoMask</a>()
|
|
||||||
<li><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#setBackgroundMode">setBackgroundMode</a>()
|
|
||||||
<li><a href="tqwidget.html#setBackgroundOrigin">setBackgroundOrigin</a>()
|
|
||||||
<li><a href="tqwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#setBaseSize">setBaseSize</a>()
|
|
||||||
<li><a href="tqwidget.html#setCaption">setCaption</a>()
|
|
||||||
<li><a href="tqwidget.html#setCursor">setCursor</a>()
|
|
||||||
<li><a href="tqwidget.html#setDisabled">setDisabled</a>()
|
|
||||||
<li><a href="tqwidget.html#setEnabled">setEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#setEraseColor">setEraseColor</a>()
|
|
||||||
<li><a href="tqwidget.html#setErasePixmap">setErasePixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#setFixedHeight">setFixedHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#setFixedSize">setFixedSize</a>()
|
|
||||||
<li><a href="tqwidget.html#setFixedWidth">setFixedWidth</a>()
|
|
||||||
<li><a href="tqwidget.html#setFocus">setFocus</a>()
|
|
||||||
<li><a href="tqwidget.html#setFocusPolicy">setFocusPolicy</a>()
|
|
||||||
<li><a href="tqwidget.html#setFocusProxy">setFocusProxy</a>()
|
|
||||||
<li><a href="tqwidget.html#setFont">setFont</a>()
|
|
||||||
<li><a href="tqwidget.html#setGeometry">setGeometry</a>()
|
|
||||||
<li><a href="tqwidget.html#setHidden">setHidden</a>()
|
|
||||||
<li><a href="tqwidget.html#setIcon">setIcon</a>()
|
|
||||||
<li><a href="tqwidget.html#setIconText">setIconText</a>()
|
|
||||||
<li><a href="tqwidget.html#setInputMethodEnabled">setInputMethodEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#setKeyCompression">setKeyCompression</a>()
|
|
||||||
<li><a href="tqwidget.html#setMask">setMask</a>()
|
|
||||||
<li><a href="tqwidget.html#setMaximumHeight">setMaximumHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#setMaximumSize">setMaximumSize</a>()
|
|
||||||
<li><a href="tqwidget.html#setMaximumWidth">setMaximumWidth</a>()
|
|
||||||
<li><a href="tqwidget.html#setMicroFocusHint">setMicroFocusHint</a>()
|
|
||||||
<li><a href="tqwidget.html#setMinimumHeight">setMinimumHeight</a>()
|
|
||||||
<li><a href="tqwidget.html#setMinimumSize">setMinimumSize</a>()
|
|
||||||
<li><a href="tqwidget.html#setMinimumWidth">setMinimumWidth</a>()
|
|
||||||
<li><a href="tqwidget.html#setMouseTracking">setMouseTracking</a>()
|
|
||||||
<li><a href="tqobject.html#setName">setName</a>()
|
|
||||||
<li><a href="tqwidget.html#setPalette">setPalette</a>()
|
|
||||||
<li><a href="tqwidget.html#setPaletteBackgroundColor">setPaletteBackgroundColor</a>()
|
|
||||||
<li><a href="tqwidget.html#setPaletteBackgroundPixmap">setPaletteBackgroundPixmap</a>()
|
|
||||||
<li><a href="tqwidget.html#setPaletteForegroundColor">setPaletteForegroundColor</a>()
|
|
||||||
<li><a href="tqobject.html#setProperty">setProperty</a>()
|
|
||||||
<li><a href="tqwidget.html#setShown">setShown</a>()
|
|
||||||
<li><a href="tqwidget.html#setSizeIncrement">setSizeIncrement</a>()
|
|
||||||
<li><a href="tqwidget.html#setSizePolicy">setSizePolicy</a>()
|
|
||||||
<li><a href="tqwidget.html#setStyle">setStyle</a>()
|
|
||||||
<li><a href="tqwidget.html#setTabOrder">setTabOrder</a>()
|
|
||||||
<li><a href="tqwidget.html#setUpdatesEnabled">setUpdatesEnabled</a>()
|
|
||||||
<li><a href="tqwidget.html#setWFlags">setWFlags</a>()
|
|
||||||
<li><a href="tqwidget.html#setWindowOpacity">setWindowOpacity</a>()
|
|
||||||
<li><a href="tqwidget.html#setWindowState">setWindowState</a>()
|
|
||||||
<li><a href="tqwidget.html#show">show</a>()
|
|
||||||
<li><a href="tqwidget.html#showEvent">showEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#showFullScreen">showFullScreen</a>()
|
|
||||||
<li><a href="tqwidget.html#showMaximized">showMaximized</a>()
|
|
||||||
<li><a href="tqwidget.html#showMinimized">showMinimized</a>()
|
|
||||||
<li><a href="tqwidget.html#showNormal">showNormal</a>()
|
|
||||||
<li><a href="tqobject.html#signalsBlocked">signalsBlocked</a>()
|
|
||||||
<li><a href="tqwidget.html#size">size</a>()
|
|
||||||
<li><a href="tqwidget.html#sizeHint">sizeHint</a>()
|
|
||||||
<li><a href="tqwidget.html#sizeIncrement">sizeIncrement</a>()
|
|
||||||
<li><a href="tqwidget.html#sizePolicy">sizePolicy</a>()
|
|
||||||
<li><a href="tqwidget.html#stackUnder">stackUnder</a>()
|
|
||||||
<li><a href="tqobject.html#startTimer">startTimer</a>()
|
|
||||||
<li><a href="tqwidget.html#style">style</a>()
|
|
||||||
<li><a href="tqwidget.html#styleChange">styleChange</a>()
|
|
||||||
<li><a href="tqwidget.html#tabletEvent">tabletEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#testWFlags">testWFlags</a>()
|
|
||||||
<li><a href="tqobject.html#timerEvent">timerEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#topLevelWidget">topLevelWidget</a>()
|
|
||||||
<li><a href="tqobject.html#tr">tr</a>()
|
|
||||||
<li><a href="tqobject.html#trUtf8">trUtf8</a>()
|
|
||||||
<li><a href="tqwidget.html#unsetCursor">unsetCursor</a>()
|
|
||||||
<li><a href="tqwidget.html#unsetFont">unsetFont</a>()
|
|
||||||
<li><a href="tqwidget.html#unsetPalette">unsetPalette</a>()
|
|
||||||
<li><a href="tqwidget.html#update">update</a>()
|
|
||||||
<li><a href="tqwidget.html#updateGeometry">updateGeometry</a>()
|
|
||||||
<li><a href="tqwidget.html#updateMask">updateMask</a>()
|
|
||||||
<li><a href="tqwidget.html#visibleRect">visibleRect</a>()
|
|
||||||
<li><a href="tqwidget.html#wheelEvent">wheelEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#width">width</a>()
|
|
||||||
<li><a href="tqwidget.html#winEvent">winEvent</a>()
|
|
||||||
<li><a href="tqwidget.html#winId">winId</a>()
|
|
||||||
<li><a href="tqwidget.html#windowActivationChange">windowActivationChange</a>()
|
|
||||||
<li><a href="tqwidget.html#windowOpacity">windowOpacity</a>()
|
|
||||||
<li><a href="tqwidget.html#windowState">windowState</a>()
|
|
||||||
<li><a href="tqwidget.html#x">x</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppCells">x11AppCells</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppColormap">x11AppColormap</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDefaultColormap">x11AppDefaultColormap</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDefaultVisual">x11AppDefaultVisual</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDepth">x11AppDepth</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDisplay">x11AppDisplay</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDpiX">x11AppDpiX</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppDpiY">x11AppDpiY</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppRootWindow">x11AppRootWindow</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppScreen">x11AppScreen</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11AppVisual">x11AppVisual</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Cells">x11Cells</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Colormap">x11Colormap</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11DefaultColormap">x11DefaultColormap</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11DefaultVisual">x11DefaultVisual</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Depth">x11Depth</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Display">x11Display</a>()
|
|
||||||
<li><a href="tqwidget.html#x11Event">x11Event</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Screen">x11Screen</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11SetAppDpiX">x11SetAppDpiX</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11SetAppDpiY">x11SetAppDpiY</a>()
|
|
||||||
<li><a href="tqpaintdevice.html#x11Visual">x11Visual</a>()
|
|
||||||
<li><a href="tqwidget.html#y">y</a>()
|
|
||||||
</ul>
|
|
||||||
<!-- eof -->
|
|
||||||
<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1,115 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/src/tqmotifwidget.cpp:272 -->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
||||||
<title>TQMotifWidget Class</title>
|
|
||||||
<style type="text/css"><!--
|
|
||||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
||||||
a:link { color: #004faf; text-decoration: none }
|
|
||||||
a:visited { color: #672967; text-decoration: none }
|
|
||||||
body { background: #ffffff; color: black; }
|
|
||||||
--></style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
||||||
<tr bgcolor="#E5E5E5">
|
|
||||||
<td valign=center>
|
|
||||||
<a href="index.html">
|
|
||||||
<font color="#004faf">Home</font></a>
|
|
||||||
| <a href="classes.html">
|
|
||||||
<font color="#004faf">All Classes</font></a>
|
|
||||||
| <a href="mainclasses.html">
|
|
||||||
<font color="#004faf">Main Classes</font></a>
|
|
||||||
| <a href="annotated.html">
|
|
||||||
<font color="#004faf">Annotated</font></a>
|
|
||||||
| <a href="groups.html">
|
|
||||||
<font color="#004faf">Grouped Classes</font></a>
|
|
||||||
| <a href="functions.html">
|
|
||||||
<font color="#004faf">Functions</font></a>
|
|
||||||
</td>
|
|
||||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>TQMotifWidget Class Reference</h1>
|
|
||||||
|
|
||||||
<p>The TQMotifWidget class provides the TQWidget API for Xt/Motif widgets.
|
|
||||||
<a href="#details">More...</a>
|
|
||||||
<p>This class is part of the <b>TQt Motif Extension</b>.
|
|
||||||
<p><tt>#include <<a href="tqmotifwidget-h.html">tqmotifwidget.h</a>></tt>
|
|
||||||
<p>Inherits <a href="tqwidget.html">TQWidget</a>.
|
|
||||||
<p><a href="tqmotifwidget-members.html">List of all member functions.</a>
|
|
||||||
<h2>Public Members</h2>
|
|
||||||
<ul>
|
|
||||||
<li class=fn><a href="#TQMotifWidget"><b>TQMotifWidget</b></a> ( TQWidget * parent, WidgetClass widgetclass, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, WFlags flags = 0 )</li>
|
|
||||||
<li class=fn>virtual <a href="#~TQMotifWidget"><b>~TQMotifWidget</b></a> ()</li>
|
|
||||||
<li class=fn>Widget <a href="#motifWidget"><b>motifWidget</b></a> () const</li>
|
|
||||||
</ul>
|
|
||||||
<h2>Protected Members</h2>
|
|
||||||
<ul>
|
|
||||||
<li class=fn>virtual bool <b>x11Event</b> ( XEvent * event )</li>
|
|
||||||
</ul>
|
|
||||||
<hr><a name="details"></a><h2>Detailed Description</h2>
|
|
||||||
<p> This class is defined in the <b>TQt <a href="motif-extension.html#Motif">Motif</a> Extension</b>, which can be found in the <tt>qt/extensions</tt> directory. It is not included in the main TQt API.
|
|
||||||
<p>
|
|
||||||
|
|
||||||
The TQMotifWidget class provides the <a href="tqwidget.html">TQWidget</a> API for Xt/Motif widgets.
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<p> TQMotifWidget exists to provide a TQWidget that can act as a parent
|
|
||||||
for any Xt/Motif widget. Since the TQMotifWidget is a proper
|
|
||||||
TQWidget, it can be used as a top-level widget (e.g. 0 parent) or
|
|
||||||
as a child of any other TQWidget. Note: Since TQMotifWidget acts as
|
|
||||||
a parent for Xt/Motif widgets, you should not create TQWidgets with
|
|
||||||
a TQMotifWidget parent.
|
|
||||||
<p> An Xt/Motif widget with a top-level TQMotifWidget parent can begin
|
|
||||||
using the standard TQt dialogs and custom TQDialogs while keeping
|
|
||||||
the main Xt/Motif interface of the application. Using a
|
|
||||||
TQMotifWidget as the parent for the various TQDialogs will ensure
|
|
||||||
that modality and stacking works properly throughout the entire
|
|
||||||
application.
|
|
||||||
<p> Applications moving to TQt may have custom Xt/Motif widgets that
|
|
||||||
will take time to rewrite with TQt. Such applications can use
|
|
||||||
these custom widgets as TQMotifWidget with TQWidget parents. This
|
|
||||||
allows the application's interface to be replaced gradually.
|
|
||||||
<p> <b>Warning:</b> TQMotifWidget uses the X11 window ID of the Motif widget
|
|
||||||
directly, instead of creating its own. Because ot this,
|
|
||||||
<a href="tqwidget.html#reparent">TQWidget::reparent</a>() will not work. This includes the functions
|
|
||||||
<a href="tqwidget.html#showFullScreen">TQWidget::showFullScreen</a>() and <a href="tqwidget.html#showNormal">TQWidget::showNormal</a>(), which use
|
|
||||||
TQWidget::reparent().
|
|
||||||
|
|
||||||
<hr><h2>Member Function Documentation</h2>
|
|
||||||
<h3 class=fn><a name="TQMotifWidget"></a>TQMotifWidget::TQMotifWidget ( <a href="tqwidget.html">TQWidget</a> * parent, WidgetClass widgetclass, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, WFlags flags = 0 )
|
|
||||||
</h3>
|
|
||||||
Creates a TQMotifWidget of the given <em>widgetclass</em> as a child of
|
|
||||||
<em>parent</em>, with the name <em>name</em> and widget flags <em>flags</em>.
|
|
||||||
<p> The <em>args</em> and <em>argcount</em> arguments are passed on to
|
|
||||||
XtCreateWidget.
|
|
||||||
<p> The <a href="#motifWidget">motifWidget</a>() function returns the resulting Xt/Motif widget.
|
|
||||||
This widget can be used as a parent for any other Xt/Motif widget.
|
|
||||||
<p> If <em>parent</em> is a TQMotifWidget, the Xt/Motif widget is created as
|
|
||||||
a child of the parent's motifWidget(). If \ parent is 0 or a
|
|
||||||
normal <a href="tqwidget.html">TQWidget</a>, the Xt/Motif widget is created as a child of a
|
|
||||||
special TopLevelShell widget. Xt/Motif widgets can use this
|
|
||||||
special TopLevelShell parent as the parent for existing
|
|
||||||
Xt/Motif dialogs or TQMotifDialogs.
|
|
||||||
|
|
||||||
<h3 class=fn><a name="~TQMotifWidget"></a>TQMotifWidget::~TQMotifWidget ()<tt> [virtual]</tt>
|
|
||||||
</h3>
|
|
||||||
Destroys the TQMotifWidget. The special TopLevelShell is also
|
|
||||||
destroyed, if it was created during construction.
|
|
||||||
|
|
||||||
<h3 class=fn>Widget <a name="motifWidget"></a>TQMotifWidget::motifWidget () const
|
|
||||||
</h3>
|
|
||||||
Returns the embedded Xt/Motif widget. If a Shell widget was
|
|
||||||
created by the constructor, you can access it with XtParent().
|
|
||||||
|
|
||||||
<!-- eof -->
|
|
||||||
<hr><p>
|
|
||||||
This file is part of the <a href="index.html">TQt toolkit</a>.
|
|
||||||
Copyright © 1995-2007
|
|
||||||
<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
|
||||||
<table width=100% cellspacing=0 border=0><tr>
|
|
||||||
<td>Copyright © 2007
|
|
||||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
||||||
<td align=right><div align=right>TQt 3.3.8</div>
|
|
||||||
</table></div></address></body>
|
|
||||||
</html>
|
|
@ -1 +0,0 @@
|
|||||||
.so man3/tqmotif.3qt
|
|
@ -1 +0,0 @@
|
|||||||
.so man3/tqmotifdialog.3qt
|
|
@ -1 +0,0 @@
|
|||||||
.so man3/tqmotifwidget.3qt
|
|
@ -1,114 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.TH TQMotif 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
|
|
||||||
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
|
|
||||||
.\" license file included in the distribution for a complete license
|
|
||||||
.\" statement.
|
|
||||||
.\"
|
|
||||||
.ad l
|
|
||||||
.nh
|
|
||||||
.SH NAME
|
|
||||||
TQMotif \- The basis of the
|
|
||||||
.SH SYNOPSIS
|
|
||||||
This class is part of the \fBQt Motif Extension\fR.
|
|
||||||
.PP
|
|
||||||
\fC#include <tqmotif.h>\fR
|
|
||||||
.PP
|
|
||||||
Inherits TQEventLoop.
|
|
||||||
.PP
|
|
||||||
.SS "Public Members"
|
|
||||||
.in +1c
|
|
||||||
.ti -1c
|
|
||||||
.BI "\fBTQMotif\fR ( const char * applicationClass, XtAppContext context = NULL, XrmOptionDescRec * options = 0, int numOptions = 0 )"
|
|
||||||
.br
|
|
||||||
.ti -1c
|
|
||||||
.BI "\fB~TQMotif\fR ()"
|
|
||||||
.br
|
|
||||||
.ti -1c
|
|
||||||
.BI "XtAppContext \fBapplicationContext\fR () const"
|
|
||||||
.br
|
|
||||||
.in -1c
|
|
||||||
.SS "Static Public Members"
|
|
||||||
.in +1c
|
|
||||||
.ti -1c
|
|
||||||
.BI "Display * \fBx11Display\fR ()"
|
|
||||||
.br
|
|
||||||
.in -1c
|
|
||||||
.SH DESCRIPTION
|
|
||||||
This class is defined in the \fBQt Motif Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API.
|
|
||||||
.PP
|
|
||||||
The TQMotif class provides the basis of the Motif Extension.
|
|
||||||
.PP
|
|
||||||
TQMotif only provides a few public functions, but it is at the heart of the integration. TQMotif is responsible for initializing the Xt toolkit and the Xt application context. It does not open a connection to the X server, that is done by QApplication.
|
|
||||||
.PP
|
|
||||||
The only member function in TQMotif that depends on an X server connection is TQMotif::initialize(). TQMotif must be created before QApplication.
|
|
||||||
.PP
|
|
||||||
Example usage of TQMotif and QApplication:
|
|
||||||
.PP
|
|
||||||
.nf
|
|
||||||
.br
|
|
||||||
static char *resources[] = {
|
|
||||||
.br
|
|
||||||
...
|
|
||||||
.br
|
|
||||||
};
|
|
||||||
.br
|
|
||||||
.br
|
|
||||||
int main(int argc, char **argv)
|
|
||||||
.br
|
|
||||||
{
|
|
||||||
.br
|
|
||||||
TQMotif integrator( "AppClass" );
|
|
||||||
.br
|
|
||||||
XtAppSetFallbackResources( integrator.applicationContext(),
|
|
||||||
.br
|
|
||||||
resources );
|
|
||||||
.br
|
|
||||||
QApplication app( argc, argv );
|
|
||||||
.br
|
|
||||||
.br
|
|
||||||
...
|
|
||||||
.br
|
|
||||||
.br
|
|
||||||
return app.exec();
|
|
||||||
.br
|
|
||||||
}
|
|
||||||
.br
|
|
||||||
.fi
|
|
||||||
.SH MEMBER FUNCTION DOCUMENTATION
|
|
||||||
.SH "TQMotif::TQMotif ( const char * applicationClass, XtAppContext context = NULL, XrmOptionDescRec * options = 0, int numOptions = 0 )"
|
|
||||||
Creates TQMotif, which allows TQt and Xt/Motif integration.
|
|
||||||
.PP
|
|
||||||
If \fIcontext\fR is 0, TQMotif creates a default application context itself. The context is accessible through applicationContext().
|
|
||||||
.PP
|
|
||||||
All arguments passed to this function (\fIapplicationClass\fR, \fIoptions\fR and \fInumOptions\fR) are used to call XtDisplayInitialize() after QApplication has been constructed.
|
|
||||||
.SH "TQMotif::~TQMotif ()"
|
|
||||||
Destroys TQMotif.
|
|
||||||
.SH "XtAppContext TQMotif::applicationContext () const"
|
|
||||||
Returns the application context.
|
|
||||||
.SH "Display * TQMotif::x11Display ()\fC [static]\fR"
|
|
||||||
Returns the X11 display connection used by the TQt Motif Extension.
|
|
||||||
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.BR http://doc.trolltech.com/tqmotif.html
|
|
||||||
.BR http://www.trolltech.com/faq/tech.html
|
|
||||||
.SH COPYRIGHT
|
|
||||||
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
|
|
||||||
license file included in the distribution for a complete license
|
|
||||||
statement.
|
|
||||||
.SH AUTHOR
|
|
||||||
Generated automatically from the source code.
|
|
||||||
.SH BUGS
|
|
||||||
If you find a bug in Qt, please report it as described in
|
|
||||||
.BR http://doc.trolltech.com/bughowto.html .
|
|
||||||
Good bug reports help us to help you. Thank you.
|
|
||||||
.P
|
|
||||||
The definitive TQt documentation is provided in HTML format; it is
|
|
||||||
located at $TQTDIR/doc/html and can be read using TQt Assistant or with
|
|
||||||
a web browser. This man page is provided as a convenience for those
|
|
||||||
users who prefer man pages, although this format is not officially
|
|
||||||
supported by Trolltech.
|
|
||||||
.P
|
|
||||||
If you find errors in this manual page, please report them to
|
|
||||||
.BR qt-bugs@trolltech.com .
|
|
||||||
Please include the name of the manual page (tqmotif.3qt) and the Qt
|
|
||||||
version (3.3.8).
|
|
@ -1,178 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.TH TQMotifDialog 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
|
|
||||||
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
|
|
||||||
.\" license file included in the distribution for a complete license
|
|
||||||
.\" statement.
|
|
||||||
.\"
|
|
||||||
.ad l
|
|
||||||
.nh
|
|
||||||
.SH NAME
|
|
||||||
TQMotifDialog \- The TQDialog API for Motif-based dialogs
|
|
||||||
.SH SYNOPSIS
|
|
||||||
This class is part of the \fBQt Motif Extension\fR.
|
|
||||||
.PP
|
|
||||||
\fC#include <tqmotifdialog.h>\fR
|
|
||||||
.PP
|
|
||||||
Inherits TQDialog.
|
|
||||||
.PP
|
|
||||||
.SS "Public Members"
|
|
||||||
.in +1c
|
|
||||||
.ti -1c
|
|
||||||
.BI "enum DialogType { Prompt, Selection, Command, FileSelection, Template, Error, Information, Message, Question, Warning, Working } \fI(obsolete)\fR"
|
|
||||||
.br
|
|
||||||
.ti -1c
|
|
||||||
.BI "TQMotifDialog ( DialogType dialogtype, Widget parent, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, bool modal = FALSE, WFlags flags = 0 ) \fI(obsolete)\fR"
|
|
||||||
.br
|
|
||||||
.ti -1c
|
|
||||||
.BI "TQMotifDialog ( Widget parent, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, bool modal = FALSE, WFlags flags = 0 ) \fI(obsolete)\fR"
|
|
||||||
.br
|
|
||||||
.ti -1c
|
|
||||||
.BI "\fBTQMotifDialog\fR ( Widget parent, const char * name = 0, bool modal = FALSE, WFlags flags = 0 )"
|
|
||||||
.br
|
|
||||||
.ti -1c
|
|
||||||
.BI "\fBTQMotifDialog\fR ( TQWidget * parent, const char * name = 0, bool modal = FALSE, WFlags flags = 0 )"
|
|
||||||
.br
|
|
||||||
.ti -1c
|
|
||||||
.BI "virtual \fB~TQMotifDialog\fR ()"
|
|
||||||
.br
|
|
||||||
.ti -1c
|
|
||||||
.BI "Widget \fBshell\fR () const"
|
|
||||||
.br
|
|
||||||
.ti -1c
|
|
||||||
.BI "Widget \fBdialog\fR () const"
|
|
||||||
.br
|
|
||||||
.in -1c
|
|
||||||
.SS "Static Public Members"
|
|
||||||
.in +1c
|
|
||||||
.ti -1c
|
|
||||||
.BI "void \fBacceptCallback\fR ( Widget, XtPointer client_data, XtPointer )"
|
|
||||||
.br
|
|
||||||
.ti -1c
|
|
||||||
.BI "void \fBrejectCallback\fR ( Widget, XtPointer client_data, XtPointer )"
|
|
||||||
.br
|
|
||||||
.in -1c
|
|
||||||
.SH DESCRIPTION
|
|
||||||
This class is defined in the \fBQt Motif Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API.
|
|
||||||
.PP
|
|
||||||
The TQMotifDialog class provides the TQDialog API for Motif-based dialogs.
|
|
||||||
.PP
|
|
||||||
TQMotifDialog provides two separate modes of operation. The application programmer can use TQMotifDialog with an existing Motif-based dialog and a TQWidget parent, or the application programmer can use TQMotifDialog with a custom Qt-based dialog and a Motif-based parent. Modality continues to work as expected.
|
|
||||||
.PP
|
|
||||||
Motif-based dialogs must have a \fCShell\fR widget parent with a single child, due to requirements of the Motif toolkit. The \fCShell\fR widget, which is a special subclass of \fCXmDialogShell\fR, is created during construction. It can be accessed using the shell() member function.
|
|
||||||
.PP
|
|
||||||
The single child of the \fCShell\fR can be accessed using the dialog() member function \fIafter\fR it has been created.
|
|
||||||
.PP
|
|
||||||
The acceptCallback() and rejectCallback() functions provide a convenient way to call TQDialog::accept() and TQDialog::reject() through callbacks. A pointer to the TQMotifDialog should be passed as the \fCclient_data\fR argument to the callback.
|
|
||||||
.PP
|
|
||||||
The API and behavior TQMotifDialog is identical to that of TQDialog when using a custom Qt-based dialog with a Motif-based parent. The only difference is that a Motif-based \fIparent\fR argument is passed to the constructor, instead of a TQWidget parent.
|
|
||||||
.SS "Member Type Documentation"
|
|
||||||
.SH "TQMotifDialog::DialogType"
|
|
||||||
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
|
|
||||||
.PP
|
|
||||||
This enum lists the predefined Motif dialog types.
|
|
||||||
.TP
|
|
||||||
\fCTQMotifDialog::Prompt\fR
|
|
||||||
.TP
|
|
||||||
\fCTQMotifDialog::Selection\fR
|
|
||||||
.TP
|
|
||||||
\fCTQMotifDialog::Command\fR
|
|
||||||
.TP
|
|
||||||
\fCTQMotifDialog::FileSelection\fR
|
|
||||||
.TP
|
|
||||||
\fCTQMotifDialog::Template\fR
|
|
||||||
.TP
|
|
||||||
\fCTQMotifDialog::Error\fR
|
|
||||||
.TP
|
|
||||||
\fCTQMotifDialog::Information\fR
|
|
||||||
.TP
|
|
||||||
\fCTQMotifDialog::Message\fR
|
|
||||||
.TP
|
|
||||||
\fCTQMotifDialog::Question\fR
|
|
||||||
.TP
|
|
||||||
\fCTQMotifDialog::Warning\fR
|
|
||||||
.TP
|
|
||||||
\fCTQMotifDialog::Working\fR
|
|
||||||
.SH MEMBER FUNCTION DOCUMENTATION
|
|
||||||
.SH "TQMotifDialog::TQMotifDialog ( DialogType dialogtype, Widget parent, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, bool modal = FALSE, WFlags flags = 0 )"
|
|
||||||
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
|
|
||||||
.PP
|
|
||||||
Creates a TQMotifDialog using one of the predefined Motif dialog types. The \fIname\fR, \fImodal\fR and \fIflags\fR arguments are passed to the TQDialog constructor.
|
|
||||||
.PP
|
|
||||||
This constructor creates a Shell widget, which is a special subclass of XmDialogShell. The \fIparent\fR, \fIargs\fR and \fIargcount\fR arguments are passed to XtCreatePopupShell() when creating the subclass. You can access the Shell widget with the shell() member function.
|
|
||||||
.PP
|
|
||||||
This constructor also creates the dialog widget with the Shell widget as its parent. The type of the dialog created is specified by the \fIdialogtype\fR argument. See the DialogType enum for a list of available dialog types. You can access the dialog widget with the dialog() member function.
|
|
||||||
.PP
|
|
||||||
\fBWarning:\fR TQMotifDialog takes ownership of the child widget and destroys it during destruction. You should not destroy the dialog widget yourself.
|
|
||||||
.PP
|
|
||||||
See also DialogType, shell(), and dialog().
|
|
||||||
.SH "TQMotifDialog::TQMotifDialog ( Widget parent, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, bool modal = FALSE, WFlags flags = 0 )"
|
|
||||||
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
|
|
||||||
.PP
|
|
||||||
Creates a TQMotifDialog which allows the application programmer to use the Motif-based \fIparent\fR for a custom TQDialog. The \fIname\fR, \fImodal\fR and \fIflags\fR arguments are passed to the TQDialog constructor.
|
|
||||||
.PP
|
|
||||||
This constructor creates a Shell widget, which is a special subclass of XmDialogShell. The \fIargs\fR and \fIargcount\fR arguments are passed to XtCreatePopupShell() when creating the subclass. You can access the Shell widget with the shell() member function.
|
|
||||||
.PP
|
|
||||||
The dialog widget is not created by the constructor. You must create the dialog widget as a child of the the widget returned by shell(). You can access the child widget with the dialog() member function.
|
|
||||||
.PP
|
|
||||||
A dialog widget is not created by this constructor. Instead, you should create the dialog widget as a child of this dialog. TQMotifDialog will take ownership of your custom dialog, and you can access it with the dialog() member function.
|
|
||||||
.PP
|
|
||||||
\fBWarning:\fR TQMotifDialog takes ownership of the child widget and destroys it during destruction. You should not destroy the dialog widget yourself.
|
|
||||||
.PP
|
|
||||||
See also shell() and dialog().
|
|
||||||
.SH "TQMotifDialog::TQMotifDialog ( Widget parent, const char * name = 0, bool modal = FALSE, WFlags flags = 0 )"
|
|
||||||
Creates a TQMotifDialog which allows the application programmer to use the Motif-based \fIparent\fR for a custom TQDialog. The \fIname\fR, \fImodal\fR and \fIflags\fR arguments are passed to the TQDialog constructor.
|
|
||||||
.PP
|
|
||||||
This constructor creates a \fCShell\fR widget, which is a special subclass of \fCXmDialogShell\fR. You can access the \fCShell\fR widget with the shell() member function.
|
|
||||||
.PP
|
|
||||||
See also shell().
|
|
||||||
.SH "TQMotifDialog::TQMotifDialog ( TQWidget * parent, const char * name = 0, bool modal = FALSE, WFlags flags = 0 )"
|
|
||||||
Creates a TQMotifDialog which allows the application programmer to use a TQWidget parent for an existing Motif-based dialog. The \fIparent\fR, \fIname\fR, \fImodal\fR and \fIflags\fR arguments are passed to the TQDialog constructor.
|
|
||||||
.PP
|
|
||||||
This constructor creates a \fCShell\fR widget, which is a special subclass of \fCXmDialogShell\fR. You can access the \fCShell\fR widget with the shell() member functon.
|
|
||||||
.PP
|
|
||||||
A dialog widget is not created by this constructor. Instead, you should create the dialog widget as a child of this dialog. TQMotifDialog will take ownership of your custom dialog, and you can access it with the dialog() member function.
|
|
||||||
.PP
|
|
||||||
\fBWarning:\fR TQMotifDialog takes ownership of the child widget and destroys it during destruction. You should not destroy the dialog widget yourself.
|
|
||||||
.PP
|
|
||||||
See also shell() and dialog().
|
|
||||||
.SH "TQMotifDialog::~TQMotifDialog ()\fC [virtual]\fR"
|
|
||||||
Destroys the TQDialog, dialog widget and \fCShell\fR widget.
|
|
||||||
.SH "void TQMotifDialog::acceptCallback ( Widget, XtPointer client_data, XtPointer )\fC [static]\fR"
|
|
||||||
Convenient Xt/Motif callback to accept the TQMotifDialog.
|
|
||||||
.PP
|
|
||||||
The data is passed in \fIclient_data\fR.
|
|
||||||
.SH "Widget TQMotifDialog::dialog () const"
|
|
||||||
Returns the Motif widget embedded in this dialog.
|
|
||||||
.SH "void TQMotifDialog::rejectCallback ( Widget, XtPointer client_data, XtPointer )\fC [static]\fR"
|
|
||||||
Convenient Xt/Motif callback to reject the TQMotifDialog.
|
|
||||||
.PP
|
|
||||||
The data is passed in \fIclient_data\fR.
|
|
||||||
.SH "Widget TQMotifDialog::shell () const"
|
|
||||||
Returns the \fCShell\fR widget embedded in this dialog.
|
|
||||||
.PP
|
|
||||||
Example: dialog/mainwindow.cpp.
|
|
||||||
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.BR http://doc.trolltech.com/tqmotifdialog.html
|
|
||||||
.BR http://www.trolltech.com/faq/tech.html
|
|
||||||
.SH COPYRIGHT
|
|
||||||
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
|
|
||||||
license file included in the distribution for a complete license
|
|
||||||
statement.
|
|
||||||
.SH AUTHOR
|
|
||||||
Generated automatically from the source code.
|
|
||||||
.SH BUGS
|
|
||||||
If you find a bug in Qt, please report it as described in
|
|
||||||
.BR http://doc.trolltech.com/bughowto.html .
|
|
||||||
Good bug reports help us to help you. Thank you.
|
|
||||||
.P
|
|
||||||
The definitive TQt documentation is provided in HTML format; it is
|
|
||||||
located at $TQTDIR/doc/html and can be read using TQt Assistant or with
|
|
||||||
a web browser. This man page is provided as a convenience for those
|
|
||||||
users who prefer man pages, although this format is not officially
|
|
||||||
supported by Trolltech.
|
|
||||||
.P
|
|
||||||
If you find errors in this manual page, please report them to
|
|
||||||
.BR qt-bugs@trolltech.com .
|
|
||||||
Please include the name of the manual page (tqmotifdialog.3qt) and the Qt
|
|
||||||
version (3.3.8).
|
|
@ -1,86 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.TH TQMotifWidget 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
|
|
||||||
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
|
|
||||||
.\" license file included in the distribution for a complete license
|
|
||||||
.\" statement.
|
|
||||||
.\"
|
|
||||||
.ad l
|
|
||||||
.nh
|
|
||||||
.SH NAME
|
|
||||||
TQMotifWidget \- The TQWidget API for Xt/Motif widgets
|
|
||||||
.SH SYNOPSIS
|
|
||||||
This class is part of the \fBQt Motif Extension\fR.
|
|
||||||
.PP
|
|
||||||
\fC#include <tqmotifwidget.h>\fR
|
|
||||||
.PP
|
|
||||||
Inherits TQWidget.
|
|
||||||
.PP
|
|
||||||
.SS "Public Members"
|
|
||||||
.in +1c
|
|
||||||
.ti -1c
|
|
||||||
.BI "\fBTQMotifWidget\fR ( TQWidget * parent, WidgetClass widgetclass, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, WFlags flags = 0 )"
|
|
||||||
.br
|
|
||||||
.ti -1c
|
|
||||||
.BI "virtual \fB~TQMotifWidget\fR ()"
|
|
||||||
.br
|
|
||||||
.ti -1c
|
|
||||||
.BI "Widget \fBmotifWidget\fR () const"
|
|
||||||
.br
|
|
||||||
.in -1c
|
|
||||||
.SS "Protected Members"
|
|
||||||
.in +1c
|
|
||||||
.ti -1c
|
|
||||||
.BI "virtual bool \fBx11Event\fR ( XEvent * event )"
|
|
||||||
.br
|
|
||||||
.in -1c
|
|
||||||
.SH DESCRIPTION
|
|
||||||
This class is defined in the \fBQt Motif Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API.
|
|
||||||
.PP
|
|
||||||
The TQMotifWidget class provides the TQWidget API for Xt/Motif widgets.
|
|
||||||
.PP
|
|
||||||
TQMotifWidget exists to provide a TQWidget that can act as a parent for any Xt/Motif widget. Since the TQMotifWidget is a proper TQWidget, it can be used as a top-level widget (e.g. 0 parent) or as a child of any other TQWidget. Note: Since TQMotifWidget acts as a parent for Xt/Motif widgets, you should not create TQWidgets with a TQMotifWidget parent.
|
|
||||||
.PP
|
|
||||||
An Xt/Motif widget with a top-level TQMotifWidget parent can begin using the standard TQt dialogs and custom TQDialogs while keeping the main Xt/Motif interface of the application. Using a TQMotifWidget as the parent for the various TQDialogs will ensure that modality and stacking works properly throughout the entire application.
|
|
||||||
.PP
|
|
||||||
Applications moving to TQt may have custom Xt/Motif widgets that will take time to rewrite with Qt. Such applications can use these custom widgets as TQMotifWidget with TQWidget parents. This allows the application's interface to be replaced gradually.
|
|
||||||
.PP
|
|
||||||
\fBWarning:\fR TQMotifWidget uses the X11 window ID of the Motif widget directly, instead of creating its own. Because ot this, TQWidget::reparent() will not work. This includes the functions TQWidget::showFullScreen() and TQWidget::showNormal(), which use TQWidget::reparent().
|
|
||||||
.SH MEMBER FUNCTION DOCUMENTATION
|
|
||||||
.SH "TQMotifWidget::TQMotifWidget ( TQWidget * parent, WidgetClass widgetclass, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, WFlags flags = 0 )"
|
|
||||||
Creates a TQMotifWidget of the given \fIwidgetclass\fR as a child of \fIparent\fR, with the name \fIname\fR and widget flags \fIflags\fR.
|
|
||||||
.PP
|
|
||||||
The \fIargs\fR and \fIargcount\fR arguments are passed on to XtCreateWidget.
|
|
||||||
.PP
|
|
||||||
The motifWidget() function returns the resulting Xt/Motif widget. This widget can be used as a parent for any other Xt/Motif widget.
|
|
||||||
.PP
|
|
||||||
If \fIparent\fR is a TQMotifWidget, the Xt/Motif widget is created as a child of the parent's motifWidget(). If \ parent is 0 or a normal TQWidget, the Xt/Motif widget is created as a child of a special TopLevelShell widget. Xt/Motif widgets can use this special TopLevelShell parent as the parent for existing Xt/Motif dialogs or TQMotifDialogs.
|
|
||||||
.SH "TQMotifWidget::~TQMotifWidget ()\fC [virtual]\fR"
|
|
||||||
Destroys the TQMotifWidget. The special TopLevelShell is also destroyed, if it was created during construction.
|
|
||||||
.SH "Widget TQMotifWidget::motifWidget () const"
|
|
||||||
Returns the embedded Xt/Motif widget. If a Shell widget was
|
|
||||||
created by the constructor, you can access it with XtParent().
|
|
||||||
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.BR http://doc.trolltech.com/tqmotifwidget.html
|
|
||||||
.BR http://www.trolltech.com/faq/tech.html
|
|
||||||
.SH COPYRIGHT
|
|
||||||
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
|
|
||||||
license file included in the distribution for a complete license
|
|
||||||
statement.
|
|
||||||
.SH AUTHOR
|
|
||||||
Generated automatically from the source code.
|
|
||||||
.SH BUGS
|
|
||||||
If you find a bug in Qt, please report it as described in
|
|
||||||
.BR http://doc.trolltech.com/bughowto.html .
|
|
||||||
Good bug reports help us to help you. Thank you.
|
|
||||||
.P
|
|
||||||
The definitive TQt documentation is provided in HTML format; it is
|
|
||||||
located at $TQTDIR/doc/html and can be read using TQt Assistant or with
|
|
||||||
a web browser. This man page is provided as a convenience for those
|
|
||||||
users who prefer man pages, although this format is not officially
|
|
||||||
supported by Trolltech.
|
|
||||||
.P
|
|
||||||
If you find errors in this manual page, please report them to
|
|
||||||
.BR qt-bugs@trolltech.com .
|
|
||||||
Please include the name of the manual page (tqmotifwidget.3qt) and the Qt
|
|
||||||
version (3.3.8).
|
|
Loading…
Reference in new issue