<trbgcolor=#f0f0f0><td><b><ahref="tqbutton.html">TQButton</a></b><td>The abstract base class of button widgets, providing functionality common to buttons
<trbgcolor=#f0f0f0><td><b><ahref="tqbuttongroup.html">TQButtonGroup</a></b><td>Organizes TQButton widgets in a group
<trbgcolor=#f0f0f0><td><b><ahref="tqbytearray.html">TQByteArray</a></b><td>Array of bytes
<trbgcolor=#f0f0f0><td><b><ahref="ntqcdestyle.html">TQCDEStyle</a></b><td>CDE look and feel
<trbgcolor=#f0f0f0><td><b><ahref="tqcdestyle.html">TQCDEStyle</a></b><td>CDE look and feel
<trbgcolor=#f0f0f0><td><b><ahref="tqcstring.html">TQCString</a></b><td>Abstraction of the classic C zero-terminated char array (char *)
<trbgcolor=#f0f0f0><td><b><ahref="tqcache.html">TQCache</a></b><td>Template class that provides a cache based on TQString keys
<trbgcolor=#f0f0f0><td><b><ahref="tqcacheiterator.html">TQCacheIterator</a></b><td>Iterator for TQCache collections
<trbgcolor=#f0f0f0><td><b><ahref="qmetaproperty.html">TQMetaProperty</a></b><td>Stores meta data about a property
<trbgcolor=#f0f0f0><td><b><ahref="tqmimesource.html">TQMimeSource</a></b><td>Abstraction of objects which provide formatted data of a certain MIME type
<trbgcolor=#f0f0f0><td><b><ahref="tqmimesourcefactory.html">TQMimeSourceFactory</a></b><td>Extensible provider of mime-typed data
<trbgcolor=#f0f0f0><td><b><ahref="qmotif.html">TQMotif</a></b><td>The basis of the <ahref="motif-extension.html#Motif">Motif</a> Extension
<trbgcolor=#f0f0f0><td><b><ahref="qmotifdialog.html">TQMotifDialog</a></b><td>The TQDialog API for Motif-based dialogs
<trbgcolor=#f0f0f0><td><b><ahref="ntqmotifplusstyle.html">TQMotifPlusStyle</a></b><td>More sophisticated Motif-ish look and feel
<trbgcolor=#f0f0f0><td><b><ahref="ntqmotifstyle.html">TQMotifStyle</a></b><td>Motif look and feel
<trbgcolor=#f0f0f0><td><b><ahref="qmotifwidget.html">TQMotifWidget</a></b><td>The TQWidget API for Xt/Motif widgets
<trbgcolor=#f0f0f0><td><b><ahref="tqmotif.html">TQMotif</a></b><td>The basis of the <ahref="motif-extension.html#Motif">Motif</a> Extension
<trbgcolor=#f0f0f0><td><b><ahref="tqmotifdialog.html">TQMotifDialog</a></b><td>The TQDialog API for Motif-based dialogs
<trbgcolor=#f0f0f0><td><b><ahref="tqmotifplusstyle.html">TQMotifPlusStyle</a></b><td>More sophisticated Motif-ish look and feel
<trbgcolor=#f0f0f0><td><b><ahref="tqmotifstyle.html">TQMotifStyle</a></b><td>Motif look and feel
<trbgcolor=#f0f0f0><td><b><ahref="tqmotifwidget.html">TQMotifWidget</a></b><td>The TQWidget API for Xt/Motif widgets
<trbgcolor=#f0f0f0><td><b><ahref="qmouseevent.html">TQMouseEvent</a></b><td>Parameters that describe a mouse event
<trbgcolor=#f0f0f0><td><b><ahref="qmoveevent.html">TQMoveEvent</a></b><td>Event parameters for move events
<trbgcolor=#f0f0f0><td><b><ahref="tqmovie.html">TQMovie</a></b><td>Incremental loading of animations or images, signalling as it progresses
<trbgcolor=#f0f0f0><td><b><ahref="tqregexpvalidator.html">TQRegExpValidator</a></b><td>Used to check a string against a <ahref="tqregexp.html#regular-expression">regular expression</a>
<trbgcolor=#f0f0f0><td><b><ahref="tqregion.html">TQRegion</a></b><td>Clip region for a painter
<trbgcolor=#f0f0f0><td><b><ahref="qresizeevent.html">TQResizeEvent</a></b><td>Event parameters for resize events
<trbgcolor=#f0f0f0><td><b><ahref="ntqsgistyle.html">TQSGIStyle</a></b><td>SGI/Irix look and feel
<trbgcolor=#f0f0f0><td><b><ahref="tqsgistyle.html">TQSGIStyle</a></b><td>SGI/Irix look and feel
<trbgcolor=#f0f0f0><td><b><ahref="tqscrollbar.html">TQScrollBar</a></b><td>Vertical or horizontal scroll bar
<trbgcolor=#f0f0f0><td><b><ahref="tqscrollview.html">TQScrollView</a></b><td>Scrolling area with on-demand scroll bars
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>TQMotif Support Extension</h1>
<p> The following example programs illustrate the use of the <ahref="qmotif.html">TQMotif</a> Extension
<p> The following example programs illustrate the use of the <ahref="tqmotif.html">TQMotif</a> Extension
assisting in the migration process of old Xt and <ahref="motif-extension.html#Motif">Motif</a> based code
to the more comfortable TQt toolkit.
<p> For more information see the <ahref="motif-extension.html">TQMotif
<aname="2-3"></a><p><ahref="qmotifwidget.html">TQMotifWidget</a> can be used together with <ahref="tqdesktopwidget.html">TQDesktopWidget</a> to create
<aname="2-3"></a><p><ahref="tqmotifwidget.html">TQMotifWidget</a> can be used together with <ahref="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:
@ -48,7 +48,7 @@ provide useful static convenience functions.
<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 <ahref="qmotifwidget.html">TQMotifWidget</a> create our <tt>XmMainWindow</tt>, and we
window. We can have <ahref="tqmotifwidget.html">TQMotifWidget</a> create our <tt>XmMainWindow</tt>, and we
can then use this class as the parent for both <ahref="motif-extension.html#Motif">Motif</a> dialogs and TQt
dialogs.
<p> We need to include the appropriate headers for TQMotifWidget and
@ -57,9 +57,9 @@ dialogs.
<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 <ahref="qmotif.html">TQMotif</a> can do this for us.
initialized. We could initialize Xt/Motif and create the <tt>XtAppContext</tt> ourselves, but <ahref="tqmotif.html">TQMotif</a> can do this for us.
We also let <ahref="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 <ahref="qmotifwidget.html#motifWidget">TQMotifWidget::motifWidget</a>()
we create a TQMotifWidget, passing <tt>xmMainWindowWidgetClass</tt> as the <em>widgetclass</em> argument. We can now use the <ahref="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
@ -79,7 +79,7 @@ and <tt>Save()</tt> functions.
<p><pre></pre>
<p> We also change the arguments to the callbacks. We pass the top-level
<ahref="qmotifwidget.html">TQMotifWidget</a> as the <tt>client_data</tt> to these functions, since we will
<ahref="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>
@ -123,7 +123,7 @@ the correct symbols for these functions.
<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 <ahref="qmotifwidget.html">TQMotifWidget</a> as the
<p> Next, we change <tt>todo.cpp</tt> to pass the top-level <ahref="tqmotifwidget.html">TQMotifWidget</a> as the
<tt>client_data</tt> tot he <tt>DeletePage()</tt> function.
@ -41,7 +41,7 @@ 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
<ahref="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 <ahref="tqdialog.html">TQDialog</a> replacement.
Instead, we will keep the <ahref="motif-extension.html#Motif">Motif</a> based dialog and use <ahref="qmotifdialog.html">TQMotifDialog</a> to
Instead, we will keep the <ahref="motif-extension.html#Motif">Motif</a> based dialog and use <ahref="tqmotifdialog.html">TQMotifDialog</a> to
integrate the dialog with the application.
<p><h2> Modality Requirements
</h2>
@ -74,7 +74,7 @@ function:
<p><pre></pre>
<p><h2> Integrating the <em>Print</em> Dialog
</h2>
<aname="2"></a><p> Now that the <em>Print</em> dialog has the appropriate <em>accept</em> and <em>reject</em> callbacks, we can use <ahref="qmotifdialog.html">TQMotifDialog</a>. First we need to include
<aname="2"></a><p> Now that the <em>Print</em> dialog has the appropriate <em>accept</em> and <em>reject</em> callbacks, we can use <ahref="tqmotifdialog.html">TQMotifDialog</a>. First we need to include
the TQMotifDialog header in <tt>todo.cpp</tt>.
<p>
@ -82,19 +82,19 @@ the TQMotifDialog header in <tt>todo.cpp</tt>.
<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 <ahref="qmotifwidget.html">TQMotifWidget</a>, which
<p> We change the <em>Print</em> menu item callback to call the new <tt>ShowPrintDialog()</tt> function. We pass the top-level <ahref="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 <ahref="qmotifdialog.html#acceptCallback">TQMotifDialog::acceptCallback</a>() and
<ahref="qmotifdialog.html#rejectCallback">TQMotifDialog::rejectCallback</a>() functions, respectively. We also
can do this easily by using the <ahref="tqmotifdialog.html#acceptCallback">TQMotifDialog::acceptCallback</a>() and
<ahref="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 <ahref="qmotifdialog.html">TQMotifDialog</a>.
the <em>Print</em> dialog is using <ahref="tqmotifdialog.html">TQMotifDialog</a>.
<p> [ <ahref="motif-walkthrough-4.html">Previous: Using Custom TQDialogs</a> ]
[ <ahref="motif-walkthrough.html">Home</a> ]
[ <ahref="motif-walkthrough-6.html">Next: Using TQt Main Window Classes</a> ]
@ -53,7 +53,7 @@ is then compiled and linked into our application.
add the implementation for our <em>Main Window</em> to this skeleton
implementation.
<p> We begin by adding the necessary includes for <ahref="ntqapplication.html">TQApplication</a>
and <ahref="qmotifwidget.html">TQMotifWidget</a>.
and <ahref="tqmotifwidget.html">TQMotifWidget</a>.
<p>
<p><pre></pre>
@ -103,7 +103,7 @@ needed.
<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 <ahref="qmotifwidget.html">TQMotifWidget</a> with <tt>XmMainWindow</tt>.
<p> In <tt>main()</tt>, we make the large changes. First, we use our new <tt>MainWindow</tt> instead of <ahref="tqmotifwidget.html">TQMotifWidget</a> with <tt>XmMainWindow</tt>.
<p> Now that we have implemented our new <em>View</em> widget, we need to remove
the old <ahref="motif-extension.html#Motif">Motif</a> based view widget from <tt>todo.cpp</tt>.
<p> Since we will not be using any Motif widgets, we remove all Motif <tt>#include</tt> statements, including <ahref="qmotifwidget-h.html">qmotifwidget.h</a>.
<p> Since we will not be using any Motif widgets, we remove all Motif <tt>#include</tt> statements, including <ahref="tqmotifwidget-h.html">tqmotifwidget.h</a>.
<p>
<pre></pre><pre></pre>
<p> We also remove the forward declarations of the <tt>ReadDB()</tt> function
and the <tt>notebook</tt>, <tt>textw</tt> and <tt>labelw</tt> global variables.
<p><pre></pre>
<p> Next, we remove the <tt>center</tt> widget, which uses <ahref="qmotifwidget.html">TQMotifWidget</a>. The <em>Main Window</em> widget and <em>View</em> widget are contained entirely in our
<p> Next, we remove the <tt>center</tt> widget, which uses <ahref="tqmotifwidget.html">TQMotifWidget</a>. The <em>Main Window</em> widget and <em>View</em> widget are contained entirely in our
<tt>MainWindow</tt> class, so no extra initialization is needed after
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQCDEStyle</h1>
<p>This is the complete list of member functions for
<ahref="ntqcdestyle.html">TQCDEStyle</a>, including inherited members.
<ahref="tqcdestyle.html">TQCDEStyle</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQCommonStyle</h1>
<p>This is the complete list of member functions for
<ahref="ntqcommonstyle.html">TQCommonStyle</a>, including inherited members.
<ahref="tqcommonstyle.html">TQCommonStyle</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQMotif</h1>
<p>This is the complete list of member functions for
<ahref="qmotif.html">TQMotif</a>, including inherited members.
<ahref="tqmotif.html">TQMotif</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQMotifDialog</h1>
<p>This is the complete list of member functions for
<ahref="qmotifdialog.html">TQMotifDialog</a>, including inherited members.
<ahref="tqmotifdialog.html">TQMotifDialog</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQMotifPlusStyle</h1>
<p>This is the complete list of member functions for
<ahref="ntqmotifplusstyle.html">TQMotifPlusStyle</a>, including inherited members.
<ahref="tqmotifplusstyle.html">TQMotifPlusStyle</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQMotifStyle</h1>
<p>This is the complete list of member functions for
<ahref="ntqmotifstyle.html">TQMotifStyle</a>, including inherited members.
<ahref="tqmotifstyle.html">TQMotifStyle</a>, including inherited members.
<p>Inherited by <ahref="ntqcdestyle.html">TQCDEStyle</a>, <ahref="ntqmotifplusstyle.html">TQMotifPlusStyle</a>, and <ahref="ntqsgistyle.html">TQSGIStyle</a>.
<p><ahref="qmotifstyle-members.html">List of all member functions.</a>
<p>Inherited by <ahref="tqcdestyle.html">TQCDEStyle</a>, <ahref="tqmotifplusstyle.html">TQMotifPlusStyle</a>, and <ahref="tqsgistyle.html">TQSGIStyle</a>.
<p><ahref="tqmotifstyle-members.html">List of all member functions.</a>
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQMotifWidget</h1>
<p>This is the complete list of member functions for
<ahref="qmotifwidget.html">TQMotifWidget</a>, including inherited members.
<ahref="tqmotifwidget.html">TQMotifWidget</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQPlatinumStyle</h1>
<p>This is the complete list of member functions for
<ahref="ntqplatinumstyle.html">TQPlatinumStyle</a>, including inherited members.
<ahref="tqplatinumstyle.html">TQPlatinumStyle</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQSGIStyle</h1>
<p>This is the complete list of member functions for
<ahref="ntqsgistyle.html">TQSGIStyle</a>, including inherited members.
<ahref="tqsgistyle.html">TQSGIStyle</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQWindowsStyle</h1>
<p>This is the complete list of member functions for
<ahref="ntqwindowsstyle.html">TQWindowsStyle</a>, including inherited members.
<ahref="tqwindowsstyle.html">TQWindowsStyle</a>, including inherited members.
The TQCDEStyle class provides a CDE look and feel.
.PP
This style provides a slightly improved Motif look similar to some versions of the Common Desktop Environment (CDE). The main differences are thinner frames and more modern radio buttons and checkboxes. Together with a dark background and a bright text/foreground color, the style looks quite attractive (at least for Motif fans).
.PP
Note that the functions provided by QCDEStyle are reimplementations of TQStyle functions; see TQStyle for their documentation.
Note that the functions provided by TQCDEStyle are reimplementations of TQStyle functions; see TQStyle for their documentation.
If \fIuseHighlightCols\fR is FALSE (the default), then the style will polish the application's color palette to emulate the Motif way of highlighting, which is a simple inversion between the base and the text color.
.SH "QCDEStyle::~QCDEStyle ()\fC [virtual]\fR"
.SH "TQCDEStyle::~TQCDEStyle ()\fC [virtual]\fR"
Destroys the style.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/ntqcdestyle.html
.BR http://doc.trolltech.com/tqcdestyle.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
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 QMotif class provides the basis of the Motif Extension.
The TQMotif class provides the basis of the Motif Extension.
.PP
QMotif only provides a few public functions, but it is at the heart of the integration. QMotif 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.
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 QMotif that depends on an X server connection is QMotif::initialize(). QMotif must be created before QApplication.
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 QMotif and QApplication:
Example usage of TQMotif and QApplication:
.PP
.nf
.br
@ -57,7 +57,7 @@ Example usage of QMotif and QApplication:
Creates TQMotif, which allows TQt and Xt/Motif integration.
.PP
If \fIcontext\fR is 0, QMotif creates a default application context itself. The context is accessible through applicationContext().
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.
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 QMotifDialog class provides the TQDialog API for Motif-based dialogs.
The TQMotifDialog class provides the TQDialog API for Motif-based dialogs.
.PP
QMotifDialog provides two separate modes of operation. The application programmer can use QMotifDialog with an existing Motif-based dialog and a TQWidget parent, or the application programmer can use QMotifDialog with a custom Qt-based dialog and a Motif-based parent. Modality continues to work as expected.
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 QMotifDialog should be passed as the \fCclient_data\fR argument to the callback.
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 QMotifDialog 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.
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 "QMotifDialog::DialogType"
.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.
\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 QMotifDialog using one of the predefined Motif dialog types. The \fIname\fR, \fImodal\fR and \fIflags\fR arguments are passed to the TQDialog constructor.
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 QMotifDialog takes ownership of the child widget and destroys it during destruction. You should not destroy the dialog widget yourself.
\fBWarning:\fR TQMotifDialog takes ownership of the child widget and destroys it during destruction. You should not destroy the dialog widget yourself.
\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 QMotifDialog 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.
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. QMotifDialog will take ownership of your custom dialog, and you can access it with the dialog() member function.
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 QMotifDialog takes ownership of the child widget and destroys it during destruction. You should not destroy the dialog widget yourself.
\fBWarning:\fR TQMotifDialog takes ownership of the child widget and destroys it during destruction. You should not destroy the dialog widget yourself.
Creates a QMotifDialog 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.
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.
Creates a QMotifDialog 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.
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. QMotifDialog will take ownership of your custom dialog, and you can access it with the dialog() member function.
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 QMotifDialog takes ownership of the child widget and destroys it during destruction. You should not destroy the dialog widget yourself.
\fBWarning:\fR TQMotifDialog takes ownership of the child widget and destroys it during destruction. You should not destroy the dialog widget yourself.
@ -28,30 +28,30 @@ Inherited by QCDEStyle, QMotifPlusStyle, and QSGIStyle.
.br
.in -1c
.SH DESCRIPTION
The QMotifStyle class provides Motif look and feel.
The TQMotifStyle class provides Motif look and feel.
.PP
This class implements the Motif look and feel. It closely resembles the original Motif look as defined by the Open Group, but with some minor improvements. The Motif style is Qt's default GUI style on UNIX platforms.
If \fIuseHighlightCols\fR is FALSE (the default), the style will polish the application's color palette to emulate the Motif way of highlighting, which is a simple inversion between the base and the text color.
If \fIarg\fR is FALSE, the style will polish the application's color palette to emulate the Motif way of highlighting, which is a simple inversion between the base and the text color.
.PP
The effect will show up the next time an application palette is set via QApplication::setPalette(). The current color palette of the application remains unchanged.
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 QMotifWidget class provides the TQWidget API for Xt/Motif widgets.
The TQMotifWidget class provides the TQWidget API for Xt/Motif widgets.
.PP
QMotifWidget exists to provide a TQWidget that can act as a parent for any Xt/Motif widget. Since the QMotifWidget 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 QMotifWidget acts as a parent for Xt/Motif widgets, you should not create TQWidgets with a QMotifWidget parent.
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 QMotifWidget parent can begin using the standard TQt dialogs and custom TQDialogs while keeping the main Xt/Motif interface of the application. Using a QMotifWidget as the parent for the various TQDialogs will ensure that modality and stacking works properly throughout the entire application.
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 QMotifWidget with TQWidget parents. This allows the application's interface to be replaced gradually.
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 QMotifWidget 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().
\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().
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 QMotifWidget, 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 QMotifDialogs.
Destroys the QMotifWidget. The special TopLevelShell is also destroyed, if it was created during construction.
.SH "Widget QMotifWidget::motifWidget () const"
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.
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@ -7,16 +7,16 @@
.ad l
.nh
.SH NAME
QPlatinumStyle \- Mac/Platinum look and feel
TQPlatinumStyle \- Mac/Platinum look and feel
.SH SYNOPSIS
\fC#include <ntqplatinumstyle.h>\fR
\fC#include <tqplatinumstyle.h>\fR
.PP
Inherits QWindowsStyle.
Inherits TQWindowsStyle.
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQPlatinumStyle\fR ()"
.BI "\fBTQPlatinumStyle\fR ()"
.br
.in -1c
.SS "Protected Members"
@ -29,21 +29,21 @@ Inherits QWindowsStyle.
.br
.in -1c
.SH DESCRIPTION
The QPlatinumStyle class provides Mac/Platinum look and feel.
The TQPlatinumStyle class provides Mac/Platinum look and feel.
.PP
This class implements the Platinum look and feel. It's an experimental class that tries to resemble a Macinosh-like GUI style with the TQStyle system. The emulation is currently far from perfect.
.PP
See also QAquaStyle and Widget Appearance and Style.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QPlatinumStyle::QPlatinumStyle ()"
Constructs a QPlatinumStyle
.SH "void QPlatinumStyle::drawRiffles ( TQPainter * p, int x, int y, int w, int h, const TQColorGroup & g, bool horizontal ) const\fC [protected]\fR"
.SH "TQPlatinumStyle::TQPlatinumStyle ()"
Constructs a TQPlatinumStyle
.SH "void TQPlatinumStyle::drawRiffles ( TQPainter * p, int x, int y, int w, int h, const TQColorGroup & g, bool horizontal ) const\fC [protected]\fR"
Draws the nifty Macintosh decoration used on sliders using painter \fIp\fR and colorgroup \fIg\fR. \fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR and \fIhorizontal\fR specify the geometry and orientation of the riffles.
If \fIuseHighlightCols\fR is FALSE (default value), the style will polish the application's color palette to emulate the Motif way of highlighting, which is a simple inversion between the base and the text color.
.PP
See also QMotifStyle::useHighlightColors().
.SH "QSGIStyle::~QSGIStyle ()\fC [virtual]\fR"
See also TQMotifStyle::useHighlightColors().
.SH "TQSGIStyle::~TQSGIStyle ()\fC [virtual]\fR"
Destroys the style.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/ntqsgistyle.html
.BR http://doc.trolltech.com/tqsgistyle.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the