source: trunk/doc/html/qmotif.html@ 208

Last change on this file since 208 was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 5.0 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/src/qmotif.cpp:351 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QMotif Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QMotif Class Reference</h1>
33
34<p>The QMotif class provides the basis of the Motif Extension.
35<a href="#details">More...</a>
36<p>This class is part of the <b>Qt Motif Extension</b>.
37<p><tt>#include &lt;<a href="qmotif-h.html">qmotif.h</a>&gt;</tt>
38<p>Inherits <a href="qeventloop.html">QEventLoop</a>.
39<p><a href="qmotif-members.html">List of all member functions.</a>
40<h2>Public Members</h2>
41<ul>
42<li class=fn><a href="#QMotif"><b>QMotif</b></a> ( const&nbsp;char&nbsp;*&nbsp;applicationClass, XtAppContext&nbsp;context = NULL, XrmOptionDescRec&nbsp;*&nbsp;options = 0, int&nbsp;numOptions = 0 )</li>
43<li class=fn><a href="#~QMotif"><b>~QMotif</b></a> ()</li>
44<li class=fn>XtAppContext <a href="#applicationContext"><b>applicationContext</b></a> () const</li>
45</ul>
46<h2>Static Public Members</h2>
47<ul>
48<li class=fn>Display * <a href="#x11Display"><b>x11Display</b></a> ()</li>
49</ul>
50<hr><a name="details"></a><h2>Detailed Description</h2>
51<p> This class is defined in the <b>Qt <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 Qt API.
52<p>
53
54The QMotif class provides the basis of the Motif Extension.
55
56<p>
57<p> QMotif only provides a few public functions, but it is at the
58heart of the integration. QMotif is responsible for initializing
59the Xt toolkit and the Xt application context. It does not open a
60connection to the X server, that is done by <a href="qapplication.html">QApplication</a>.
61<p> The only member function in QMotif that depends on an X server
62connection is QMotif::initialize(). QMotif must be created before
63QApplication.
64<p> Example usage of QMotif and QApplication:
65<pre>
66 static char *resources[] = {
67 ...
68 };
69
70 int main(int argc, char **argv)
71 {
72 QMotif integrator( "AppClass" );
73 XtAppSetFallbackResources( integrator.<a href="#applicationContext">applicationContext</a>(),
74 resources );
75 <a href="qapplication.html">QApplication</a> app( argc, argv );
76
77 ...
78
79 return app.<a href="qapplication.html#exec">exec</a>();
80 }
81 </pre>
82
83
84<hr><h2>Member Function Documentation</h2>
85<h3 class=fn><a name="QMotif"></a>QMotif::QMotif ( const&nbsp;char&nbsp;*&nbsp;applicationClass, XtAppContext&nbsp;context = NULL, XrmOptionDescRec&nbsp;*&nbsp;options = 0, int&nbsp;numOptions = 0 )
86</h3>
87Creates QMotif, which allows Qt and Xt/Motif integration.
88<p> If <em>context</em> is 0, QMotif creates a default application context
89itself. The context is accessible through <a href="#applicationContext">applicationContext</a>().
90<p> All arguments passed to this function (<em>applicationClass</em>, <em>options</em> and <em>numOptions</em>) are used to call XtDisplayInitialize()
91after <a href="qapplication.html">QApplication</a> has been constructed.
92
93<h3 class=fn><a name="~QMotif"></a>QMotif::~QMotif ()
94</h3>
95Destroys QMotif.
96
97<h3 class=fn>XtAppContext <a name="applicationContext"></a>QMotif::applicationContext () const
98</h3>
99Returns the application context.
100
101<h3 class=fn>Display * <a name="x11Display"></a>QMotif::x11Display ()<tt> [static]</tt>
102</h3>
103Returns the X11 display connection used by the Qt <a href="motif-extension.html#Motif">Motif</a> Extension.
104
105<!-- eof -->
106<hr><p>
107This file is part of the <a href="index.html">Qt toolkit</a>.
108Copyright &copy; 1995-2007
109<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
110<table width=100% cellspacing=0 border=0><tr>
111<td>Copyright &copy; 2007
112<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
113<td align=right><div align=right>Qt 3.3.8</div>
114</table></div></address></body>
115</html>
Note: See TracBrowser for help on using the repository browser.