1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
'\" 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).
|