<trbgcolor=#f0f0f0><td><b><ahref="tqdictiterator.html">TQDictIterator</a></b><td>Iterator for TQDict collections
<trbgcolor=#f0f0f0><td><b><ahref="tqdir.html">TQDir</a></b><td>Access to directory structures and their contents in a platform-independent way
<trbgcolor=#f0f0f0><td><b><ahref="tqdns.html">TQDns</a></b><td>Asynchronous DNS lookups
<trbgcolor=#f0f0f0><td><b><ahref="ntqdockarea.html">TQDockArea</a></b><td>Manages and lays out TQDockWindows
<trbgcolor=#f0f0f0><td><b><ahref="ntqdockwindow.html">TQDockWindow</a></b><td>Widget which can be docked inside a TQDockArea or floated as a top level window on the desktop
<trbgcolor=#f0f0f0><td><b><ahref="tqdockarea.html">TQDockArea</a></b><td>Manages and lays out TQDockWindows
<trbgcolor=#f0f0f0><td><b><ahref="tqdockwindow.html">TQDockWindow</a></b><td>Widget which can be docked inside a TQDockArea or floated as a top level window on the desktop
<trbgcolor=#f0f0f0><td><b><ahref="tqdomattr.html">TQDomAttr</a></b><td>Represents one attribute of a TQDomElement
<trbgcolor=#f0f0f0><td><b><ahref="tqdomcdatasection.html">TQDomCDATASection</a></b><td>Represents an XML CDATA section
<trbgcolor=#f0f0f0><td><b><ahref="tqdomcharacterdata.html">TQDomCharacterData</a></b><td>Represents a generic string in the DOM
<trbgcolor=#f0f0f0><td><b><ahref="tqdomnotation.html">TQDomNotation</a></b><td>Represents an XML notation
<trbgcolor=#f0f0f0><td><b><ahref="tqdomprocessinginstruction.html">TQDomProcessingInstruction</a></b><td>Represents an XML processing instruction
<trbgcolor=#f0f0f0><td><b><ahref="tqdomtext.html">TQDomText</a></b><td>Represents text data in the parsed XML document
<trbgcolor=#f0f0f0><td><b><ahref="qdoublevalidator.html">TQDoubleValidator</a></b><td>Range checking of floating-point numbers
<trbgcolor=#f0f0f0><td><b><ahref="tqdoublevalidator.html">TQDoubleValidator</a></b><td>Range checking of floating-point numbers
<trbgcolor=#f0f0f0><td><b><ahref="tqdragenterevent.html">TQDragEnterEvent</a></b><td>Event which is sent to the widget when a drag and drop first drags onto the widget
<trbgcolor=#f0f0f0><td><b><ahref="tqdragleaveevent.html">TQDragLeaveEvent</a></b><td>Event which is sent to the widget when a drag and drop leaves the widget
<trbgcolor=#f0f0f0><td><b><ahref="tqdragmoveevent.html">TQDragMoveEvent</a></b><td>Event which is sent while a drag and drop is in progress
<trbgcolor=#f0f0f0><td><b><ahref="tqdragobject.html">TQDragObject</a></b><td>Encapsulates MIME-based data transfer
<trbgcolor=#f0f0f0><td><b><ahref="tqdropevent.html">TQDropEvent</a></b><td>Event which is sent when a drag and drop is completed
<trbgcolor=#f0f0f0><td><b><ahref="tqeditorfactory.html">TQEditorFactory</a></b><td>Used to create editor widgets for TQVariant data types
<trbgcolor=#f0f0f0><td><b><ahref="tqaction.html">TQAction</a></b><td>Abstract user interface action that can appear both in menus and tool bars
<trbgcolor=#f0f0f0><td><b><ahref="tqactiongroup.html">TQActionGroup</a></b><td>Groups actions together
<trbgcolor=#f0f0f0><td><b><ahref="ntqapplication.html">TQApplication</a></b><td>Manages the GUI application's control flow and main settings
<trbgcolor=#f0f0f0><td><b><ahref="ntqdockarea.html">TQDockArea</a></b><td>Manages and lays out TQDockWindows
<trbgcolor=#f0f0f0><td><b><ahref="ntqdockwindow.html">TQDockWindow</a></b><td>Widget which can be docked inside a TQDockArea or floated as a top level window on the desktop
<trbgcolor=#f0f0f0><td><b><ahref="tqdockarea.html">TQDockArea</a></b><td>Manages and lays out TQDockWindows
<trbgcolor=#f0f0f0><td><b><ahref="tqdockwindow.html">TQDockWindow</a></b><td>Widget which can be docked inside a TQDockArea or floated as a top level window on the desktop
<trbgcolor=#f0f0f0><td><b><ahref="tqeventloop.html">TQEventLoop</a></b><td>Manages the event queue
<trbgcolor=#f0f0f0><td><b><ahref="tqmainwindow.html">TQMainWindow</a></b><td>Main application window, with a menu bar, dock windows (e.g. for toolbars), and a status bar
<trbgcolor=#f0f0f0><td><b><ahref="tqmenubar.html">TQMenuBar</a></b><td>Horizontal menu bar
<p>Next, we will implement the <tt>init()</tt> function which is called when the dialog is created.</p>
<pre> void ConversionForm::init()
{
numberLineEdit->setValidator( new <ahref="qdoublevalidator.html">TQDoubleValidator</a>( numberLineEdit ) );
numberLineEdit->setValidator( new <ahref="tqdoublevalidator.html">TQDoubleValidator</a>( numberLineEdit ) );
numberLineEdit->setText( "10" );
convert();
numberLineEdit->selectAll();
}
</pre>
<p>For this function, we set a validator on the numberLineEdit so that the user can only input numbers. To be able to do this, we also need to add <tt>#include <ntqvalidator.h></tt> at the top of the "conversionform.ui.h" file, before the <tt>init()</tt> function. Lastly, we set the initial input.</p>
<p>For this function, we set a validator on the numberLineEdit so that the user can only input numbers. To be able to do this, we also need to add <tt>#include <tqvalidator.h></tt> at the top of the "conversionform.ui.h" file, before the <tt>init()</tt> function. Lastly, we set the initial input.</p>
<p>We are almost ready to run the application. Before we compile the application, we need a <tt>main.cpp</tt> file.</p>
<ul><li><p>Click <b>File|New</b> to open the New File dialog.</p>
<li><p>Click C++ Main File (<tt>main.cpp</tt>) then click <b>OK</b>.</p>
<trbgcolor=#f0f0f0><td><b><ahref="tqaccessibleinterface.html">TQAccessibleInterface</a></b><td>Defines an interface that exposes information about accessible objects
<trbgcolor=#f0f0f0><td><b><ahref="tqaccessibleobject.html">TQAccessibleObject</a></b><td>Implements parts of the TQAccessibleInterface for TQObjects
<trbgcolor=#f0f0f0><td><b><ahref="tqcustommenuitem.html">TQCustomMenuItem</a></b><td>Abstract base class for custom menu items in popup menus
<trbgcolor=#f0f0f0><td><b><ahref="qdoublevalidator.html">TQDoubleValidator</a></b><td>Range checking of floating-point numbers
<trbgcolor=#f0f0f0><td><b><ahref="tqfileiconprovider.html">TQFileIconProvider</a></b><td>Icons for TQFileDialog to use
<trbgcolor=#f0f0f0><td><b><ahref="tqfilepreview.html">TQFilePreview</a></b><td>File previewing in TQFileDialog
<trbgcolor=#f0f0f0><td><b><ahref="ntqfocusdata.html">TQFocusData</a></b><td>Maintains the list of widgets in the focus chain
<trbgcolor=#f0f0f0><td><b><ahref="tqfocusdata.html">TQFocusData</a></b><td>Maintains the list of widgets in the focus chain
<trbgcolor=#f0f0f0><td><b><ahref="qintvalidator.html">TQIntValidator</a></b><td>Validator which ensures that a string contains a valid integer within a specified range
<trbgcolor=#f0f0f0><td><b><ahref="ntqkeysequence.html">TQKeySequence</a></b><td>Encapsulates a key sequence as used by accelerators
<trbgcolor=#f0f0f0><td><b><ahref="tqmacmime.html">TQMacMime</a></b><td>Maps open-standard MIME to Mac flavors
@ -974,98 +974,98 @@ property is enabled. By default, the size grip is disabled.
</doc>
</property>
<property>
<name>QDockArea::count</name>
<doc href="ntqdockarea.html#count-prop">
<name>TQDockArea::count</name>
<doc href="tqdockarea.html#count-prop">
<p>This property holds the number of dock windows in the dock area.
<p>
<p>Get this property's value with <a href="ntqdockarea.html#count">count</a>().
<p>Get this property's value with <a href="tqdockarea.html#count">count</a>().
</doc>
</property>
<property>
<name>QDockArea::empty</name>
<doc href="ntqdockarea.html#empty-prop">
<name>TQDockArea::empty</name>
<doc href="tqdockarea.html#empty-prop">
<p>This property holds whether the dock area is empty.
<p>
<p>Get this property's value with <a href="ntqdockarea.html#isEmpty">isEmpty</a>().
<p>Get this property's value with <a href="tqdockarea.html#isEmpty">isEmpty</a>().
</doc>
</property>
<property>
<name>QDockArea::handlePosition</name>
<doc href="ntqdockarea.html#handlePosition-prop">
<name>TQDockArea::handlePosition</name>
<doc href="tqdockarea.html#handlePosition-prop">
<p>This property holds where the dock window splitter handle is placed in the dock area.
<p>The default position is <a href="ntqdockarea.html#HandlePosition-enum">Normal</a>.
<p>The default position is <a href="tqdockarea.html#HandlePosition-enum">Normal</a>.
<p>Get this property's value with <a href="ntqdockarea.html#handlePosition">handlePosition</a>().
<p>Get this property's value with <a href="tqdockarea.html#handlePosition">handlePosition</a>().
</doc>
</property>
<property>
<name>QDockArea::orientation</name>
<doc href="ntqdockarea.html#orientation-prop">
<name>TQDockArea::orientation</name>
<doc href="tqdockarea.html#orientation-prop">
<p>This property holds the dock area's orientation.
<p>There is no default value; the orientation is specified in the
constructor.
<p>Get this property's value with <a href="ntqdockarea.html#orientation">orientation</a>().
<p>Get this property's value with <a href="tqdockarea.html#orientation">orientation</a>().
</doc>
</property>
<property>
<name>QDockWindow::closeMode</name>
<doc href="ntqdockwindow.html#closeMode-prop">
<name>TQDockWindow::closeMode</name>
<doc href="tqdockwindow.html#closeMode-prop">
<p>This property holds the close mode of a dock window.
<p>Defines when (if ever) the dock window has a close button. The
choices are <a href="ntqdockwindow.html#CloseMode-enum">Never</a>, <a href="ntqdockwindow.html#CloseMode-enum">Docked</a> (i.e. only when docked), <a href="ntqdockwindow.html#CloseMode-enum">Undocked</a> (only when undocked, i.e. floated) or <a href="ntqdockwindow.html#CloseMode-enum">Always</a>.
<p> The default is <a href="ntqdockwindow.html#CloseMode-enum">Never</a>.
choices are <a href="tqdockwindow.html#CloseMode-enum">Never</a>, <a href="tqdockwindow.html#CloseMode-enum">Docked</a> (i.e. only when docked), <a href="tqdockwindow.html#CloseMode-enum">Undocked</a> (only when undocked, i.e. floated) or <a href="tqdockwindow.html#CloseMode-enum">Always</a>.
<p> The default is <a href="tqdockwindow.html#CloseMode-enum">Never</a>.
<p>Set this property's value with <a href="ntqdockwindow.html#setCloseMode">setCloseMode</a>() and get this property's value with <a href="ntqdockwindow.html#closeMode">closeMode</a>().
<p>Set this property's value with <a href="tqdockwindow.html#setCloseMode">setCloseMode</a>() and get this property's value with <a href="tqdockwindow.html#closeMode">closeMode</a>().
<p>This property holds whether the dock window is horizontally stretchable.
<p>A dock window is horizontally stretchable if you call
<a href="ntqdockwindow.html#setHorizontallyStretchable">setHorizontallyStretchable</a>(TRUE) or <a href="ntqdockwindow.html#setResizeEnabled">setResizeEnabled</a>(TRUE).
<p> <p>See also <a href="ntqdockwindow.html#resizeEnabled-prop">resizeEnabled</a>.
<a href="tqdockwindow.html#setHorizontallyStretchable">setHorizontallyStretchable</a>(TRUE) or <a href="tqdockwindow.html#setResizeEnabled">setResizeEnabled</a>(TRUE).
<p> <p>See also <a href="tqdockwindow.html#resizeEnabled-prop">resizeEnabled</a>.
<p>Bugs and limitations:
<ul>
<li> Strecthability is broken. You must call setResizeEnabled(TRUE) to get
proper behavior and even then QDockWindow does not limit stretchablilty.
proper behavior and even then TQDockWindow does not limit stretchablilty.
</ul>
<p>Set this property's value with <a href="ntqdockwindow.html#setHorizontallyStretchable">setHorizontallyStretchable</a>() and get this property's value with <a href="ntqdockwindow.html#isHorizontallyStretchable">isHorizontallyStretchable</a>().
<p>Set this property's value with <a href="tqdockwindow.html#setHorizontallyStretchable">setHorizontallyStretchable</a>() and get this property's value with <a href="tqdockwindow.html#isHorizontallyStretchable">isHorizontallyStretchable</a>().
<p>This property holds whether the user can move the dock window within the dock area, move the dock window to another dock area, or float the dock window.
<p>This property is TRUE by default.
<p>Set this property's value with <a href="ntqdockwindow.html#setMovingEnabled">setMovingEnabled</a>() and get this property's value with <a href="ntqdockwindow.html#isMovingEnabled">isMovingEnabled</a>().
<p>Set this property's value with <a href="tqdockwindow.html#setMovingEnabled">setMovingEnabled</a>() and get this property's value with <a href="tqdockwindow.html#isMovingEnabled">isMovingEnabled</a>().
</doc>
</property>
<property>
<name>QDockWindow::newLine</name>
<doc href="ntqdockwindow.html#newLine-prop">
<name>TQDockWindow::newLine</name>
<doc href="tqdockwindow.html#newLine-prop">
<p>This property holds whether the dock window prefers to start a new line in the dock area.
<p>The default is FALSE, i.e. the dock window doesn't require a new
line in the dock area.
<p>Set this property's value with <a href="ntqdockwindow.html#setNewLine">setNewLine</a>() and get this property's value with <a href="ntqdockwindow.html#newLine">newLine</a>().
<p>Set this property's value with <a href="tqdockwindow.html#setNewLine">setNewLine</a>() and get this property's value with <a href="tqdockwindow.html#newLine">newLine</a>().
</doc>
</property>
<property>
<name>QDockWindow::offset</name>
<doc href="ntqdockwindow.html#offset-prop">
<name>TQDockWindow::offset</name>
<doc href="tqdockwindow.html#offset-prop">
<p>This property holds the dock window's preferred offset from the dock area's left edge (top edge for vertical dock areas).
<p>The default is 0.
<p>Set this property's value with <a href="ntqdockwindow.html#setOffset">setOffset</a>() and get this property's value with <a href="ntqdockwindow.html#offset">offset</a>().
<p>Set this property's value with <a href="tqdockwindow.html#setOffset">setOffset</a>() and get this property's value with <a href="tqdockwindow.html#offset">offset</a>().
</doc>
</property>
<property>
<name>QDockWindow::opaqueMoving</name>
<doc href="ntqdockwindow.html#opaqueMoving-prop">
<name>TQDockWindow::opaqueMoving</name>
<doc href="tqdockwindow.html#opaqueMoving-prop">
<p>This property holds whether the dock window will be shown normally whilst it is being moved.
<p>If this property is FALSE, (the default), the dock window will be
represented by an outline rectangle whilst it is being moved.
@ -1073,80 +1073,80 @@ represented by an outline rectangle whilst it is being moved.
recommend using it at this time. We expect to fix these problems
in a future release.
<p>Set this property's value with <a href="ntqdockwindow.html#setOpaqueMoving">setOpaqueMoving</a>() and get this property's value with <a href="ntqdockwindow.html#opaqueMoving">opaqueMoving</a>().
<p>Set this property's value with <a href="tqdockwindow.html#setOpaqueMoving">setOpaqueMoving</a>() and get this property's value with <a href="tqdockwindow.html#opaqueMoving">opaqueMoving</a>().
<p>This property holds whether the dock window is resizeable.
<p>A resizeable dock window can be resized using splitter-like
handles inside a dock area and like every other top level window
when floating.
<p> A dock window is both horizontally and vertically stretchable if
you call <a href="ntqdockwindow.html#setResizeEnabled">setResizeEnabled</a>(TRUE).
you call <a href="tqdockwindow.html#setResizeEnabled">setResizeEnabled</a>(TRUE).
<p> This property is FALSE by default.
<p> <p>See also <a href="ntqdockwindow.html#verticallyStretchable-prop">verticallyStretchable</a> and <a href="ntqdockwindow.html#horizontallyStretchable-prop">horizontallyStretchable</a>.
<p> <p>See also <a href="tqdockwindow.html#verticallyStretchable-prop">verticallyStretchable</a> and <a href="tqdockwindow.html#horizontallyStretchable-prop">horizontallyStretchable</a>.
<p>Set this property's value with <a href="ntqdockwindow.html#setResizeEnabled">setResizeEnabled</a>() and get this property's value with <a href="ntqdockwindow.html#isResizeEnabled">isResizeEnabled</a>().
<p>Set this property's value with <a href="tqdockwindow.html#setResizeEnabled">setResizeEnabled</a>() and get this property's value with <a href="tqdockwindow.html#isResizeEnabled">isResizeEnabled</a>().
</doc>
</property>
<property>
<name>QDockWindow::stretchable</name>
<doc href="ntqdockwindow.html#stretchable-prop">
<p>This property holds whether the dock window is stretchable in the current <a href="ntqdockwindow.html#orientation">orientation</a>().
<p>This property can be set using <a href="ntqdockwindow.html#setHorizontallyStretchable">setHorizontallyStretchable</a>() and
<a href="ntqdockwindow.html#setVerticallyStretchable">setVerticallyStretchable</a>(), or with <a href="ntqdockwindow.html#setResizeEnabled">setResizeEnabled</a>().
<p> <p>See also <a href="ntqdockwindow.html#resizeEnabled-prop">resizeEnabled</a>.
<name>TQDockWindow::stretchable</name>
<doc href="tqdockwindow.html#stretchable-prop">
<p>This property holds whether the dock window is stretchable in the current <a href="tqdockwindow.html#orientation">orientation</a>().
<p>This property can be set using <a href="tqdockwindow.html#setHorizontallyStretchable">setHorizontallyStretchable</a>() and
<a href="tqdockwindow.html#setVerticallyStretchable">setVerticallyStretchable</a>(), or with <a href="tqdockwindow.html#setResizeEnabled">setResizeEnabled</a>().
<p> <p>See also <a href="tqdockwindow.html#resizeEnabled-prop">resizeEnabled</a>.
<p>Bugs and limitations:
<ul>
<li> Strecthability is broken. You must call setResizeEnabled(TRUE) to get
proper behavior and even then QDockWindow does not limit stretchablilty.
proper behavior and even then TQDockWindow does not limit stretchablilty.
</ul>
<p>Get this property's value with <a href="ntqdockwindow.html#isStretchable">isStretchable</a>().
<p>Get this property's value with <a href="tqdockwindow.html#isStretchable">isStretchable</a>().
<p>This property holds whether the dock window is vertically stretchable.
<p>A dock window is vertically stretchable if you call
<a href="ntqdockwindow.html#setVerticallyStretchable">setVerticallyStretchable</a>(TRUE) or <a href="ntqdockwindow.html#setResizeEnabled">setResizeEnabled</a>(TRUE).
<p> <p>See also <a href="ntqdockwindow.html#resizeEnabled-prop">resizeEnabled</a>.
<a href="tqdockwindow.html#setVerticallyStretchable">setVerticallyStretchable</a>(TRUE) or <a href="tqdockwindow.html#setResizeEnabled">setResizeEnabled</a>(TRUE).
<p> <p>See also <a href="tqdockwindow.html#resizeEnabled-prop">resizeEnabled</a>.
<p>Bugs and limitations:
<ul>
<li> Strecthability is broken. You must call setResizeEnabled(TRUE) to get
proper behavior and even then QDockWindow does not limit stretchablilty.
proper behavior and even then TQDockWindow does not limit stretchablilty.
</ul>
<p>Set this property's value with <a href="ntqdockwindow.html#setVerticallyStretchable">setVerticallyStretchable</a>() and get this property's value with <a href="ntqdockwindow.html#isVerticallyStretchable">isVerticallyStretchable</a>().
<p>Set this property's value with <a href="tqdockwindow.html#setVerticallyStretchable">setVerticallyStretchable</a>() and get this property's value with <a href="tqdockwindow.html#isVerticallyStretchable">isVerticallyStretchable</a>().
</doc>
</property>
<property>
<name>QDoubleValidator::bottom</name>
<doc href="qdoublevalidator.html#bottom-prop">
<name>TQDoubleValidator::bottom</name>
<doc href="tqdoublevalidator.html#bottom-prop">
<p>This property holds the validator's minimum acceptable value.
<p>Set this property's value with <a href="qdoublevalidator.html#setBottom">setBottom</a>() and get this property's value with <a href="qdoublevalidator.html#bottom">bottom</a>().
<p><p>See also <a href="qdoublevalidator.html#setRange">setRange</a>().
<p>Set this property's value with <a href="tqdoublevalidator.html#setBottom">setBottom</a>() and get this property's value with <a href="tqdoublevalidator.html#bottom">bottom</a>().
<p><p>See also <a href="tqdoublevalidator.html#setRange">setRange</a>().
</doc>
</property>
<property>
<name>QDoubleValidator::decimals</name>
<doc href="qdoublevalidator.html#decimals-prop">
<name>TQDoubleValidator::decimals</name>
<doc href="tqdoublevalidator.html#decimals-prop">
<p>This property holds the validator's maximum number of digits after the decimal point.
<p>Set this property's value with <a href="qdoublevalidator.html#setDecimals">setDecimals</a>() and get this property's value with <a href="qdoublevalidator.html#decimals">decimals</a>().
<p><p>See also <a href="qdoublevalidator.html#setRange">setRange</a>().
<p>Set this property's value with <a href="tqdoublevalidator.html#setDecimals">setDecimals</a>() and get this property's value with <a href="tqdoublevalidator.html#decimals">decimals</a>().
<p><p>See also <a href="tqdoublevalidator.html#setRange">setRange</a>().
</doc>
</property>
<property>
<name>QDoubleValidator::top</name>
<doc href="qdoublevalidator.html#top-prop">
<name>TQDoubleValidator::top</name>
<doc href="tqdoublevalidator.html#top-prop">
<p>This property holds the validator's maximum acceptable value.
<p>Set this property's value with <a href="qdoublevalidator.html#setTop">setTop</a>() and get this property's value with <a href="qdoublevalidator.html#top">top</a>().
<p><p>See also <a href="qdoublevalidator.html#setRange">setRange</a>().
<p>Set this property's value with <a href="tqdoublevalidator.html#setTop">setTop</a>() and get this property's value with <a href="tqdoublevalidator.html#top">top</a>().
<p><p>See also <a href="tqdoublevalidator.html#setRange">setRange</a>().
</doc>
</property>
@ -2532,7 +2532,7 @@ need. Since most dock windows are not stretchable, this usually
results in an unjustified right edge (or unjustified bottom edge
for a vertical dock area). If enabled, the main window will
right-justify its dock windows.
<p> <p>See also <a href="ntqdockwindow.html#setVerticalStretchable">QDockWindow::setVerticalStretchable</a>() and <a href="ntqdockwindow.html#setHorizontalStretchable">QDockWindow::setHorizontalStretchable</a>().
<p> <p>See also <a href="tqdockwindow.html#setVerticalStretchable">TQDockWindow::setVerticalStretchable</a>() and <a href="tqdockwindow.html#setHorizontalStretchable">TQDockWindow::setHorizontalStretchable</a>().
<p>Set this property's value with <a href="tqmainwindow.html#setRightJustification">setRightJustification</a>() and get this property's value with <a href="tqmainwindow.html#rightJustification">rightJustification</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 TQDoubleValidator</h1>
<p>This is the complete list of member functions for
<ahref="qdoublevalidator.html">TQDoubleValidator</a>, including inherited members.
<ahref="tqdoublevalidator.html">TQDoubleValidator</a>, including inherited members.
</h3><p>Returns the validator's maximum acceptable value.
See the <ahref="qdoublevalidator.html#top-prop">"top"</a> property for details.
<h3class=fn><ahref="ntqvalidator.html#State-enum">TQValidator::State</a><aname="validate"></a>TQDoubleValidator::validate ( <ahref="tqstring.html">TQString</a> & input, int & ) const<tt> [virtual]</tt>
See the <ahref="tqdoublevalidator.html#top-prop">"top"</a> property for details.
<h3class=fn><ahref="tqvalidator.html#State-enum">TQValidator::State</a><aname="validate"></a>TQDoubleValidator::validate ( <ahref="tqstring.html">TQString</a> & input, int & ) const<tt> [virtual]</tt>
</h3>
Returns <ahref="ntqvalidator.html#State-enum">Acceptable</a> if the string <em>input</em> contains a double
Returns <ahref="tqvalidator.html#State-enum">Acceptable</a> if the string <em>input</em> contains a double
that is within the valid range and is in the correct format.
<p> Returns <ahref="ntqvalidator.html#State-enum">Intermediate</a> if <em>input</em> contains a double that is
<p> Returns <ahref="tqvalidator.html#State-enum">Intermediate</a> if <em>input</em> contains a double that is
outside the range or is in the wrong format, e.g. with too many
digits after the decimal point or is empty.
<p> Returns <ahref="ntqvalidator.html#State-enum">Invalid</a> if the <em>input</em> is not a double.
<p> Returns <ahref="tqvalidator.html#State-enum">Invalid</a> if the <em>input</em> is not a double.
<p> Note: If the valid range consists of just positive doubles (e.g. 0.0 - 100.0)
and <em>input</em> is a negative double then Invalid is returned.
<p>Reimplemented from <ahref="ntqvalidator.html#validate">TQValidator</a>.
<p>Reimplemented from <ahref="tqvalidator.html#validate">TQValidator</a>.
<p><ahref="qintvalidator-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
@ -62,7 +62,7 @@ that a string contains a valid integer within a specified range.
<p>
<p> Example of use:
<p><pre>
<ahref="ntqvalidator.html">TQValidator</a>* validator = new TQIntValidator( 100, 999, this );
<ahref="tqvalidator.html">TQValidator</a>* validator = new TQIntValidator( 100, 999, this );
<ahref="tqlineedit.html">TQLineEdit</a>* edit = new <ahref="tqlineedit.html">TQLineEdit</a>( this );
// the edit lineedit will only accept integers between 100 and 999
@ -98,7 +98,7 @@ normally be associated with a widget as in the example above.
<p> The minimum and maximum values are set in one call with <ahref="#setRange">setRange</a>()
or individually with <ahref="#setBottom">setBottom</a>() and <ahref="#setTop">setTop</a>().
<p><p>See also <ahref="qdoublevalidator.html">TQDoubleValidator</a>, <ahref="tqregexpvalidator.html">TQRegExpValidator</a>, and <ahref="misc.html">Miscellaneous Classes</a>.
<p><p>See also <ahref="tqdoublevalidator.html">TQDoubleValidator</a>, <ahref="tqregexpvalidator.html">TQRegExpValidator</a>, and <ahref="misc.html">Miscellaneous Classes</a>.
</h3><p>Returns the validator's highest acceptable value.
See the <ahref="qintvalidator.html#top-prop">"top"</a> property for details.
<h3class=fn><ahref="ntqvalidator.html#State-enum">TQValidator::State</a><aname="validate"></a>TQIntValidator::validate ( <ahref="tqstring.html">TQString</a> & input, int & ) const<tt> [virtual]</tt>
<h3class=fn><ahref="tqvalidator.html#State-enum">TQValidator::State</a><aname="validate"></a>TQIntValidator::validate ( <ahref="tqstring.html">TQString</a> & input, int & ) const<tt> [virtual]</tt>
</h3>
Returns <ahref="ntqvalidator.html#State-enum">Acceptable</a> if the <em>input</em> is an integer within the
valid range, <ahref="ntqvalidator.html#State-enum">Intermediate</a> if the <em>input</em> is an integer outside
the valid range and <ahref="ntqvalidator.html#State-enum">Invalid</a> if the <em>input</em> is not an integer.
Returns <ahref="tqvalidator.html#State-enum">Acceptable</a> if the <em>input</em> is an integer within the
valid range, <ahref="tqvalidator.html#State-enum">Intermediate</a> if the <em>input</em> is an integer outside
the valid range and <ahref="tqvalidator.html#State-enum">Invalid</a> if the <em>input</em> is not an integer.
<p> Note: If the valid range consists of just positive integers (e.g. 32 - 100)
and <em>input</em> is a negative integer then Invalid is returned.
<p><pre>
@ -151,7 +151,7 @@ and <em>input</em> is a negative integer then Invalid is returned.
</pre>
<p>Reimplemented from <ahref="ntqvalidator.html#validate">TQValidator</a>.
<p>Reimplemented from <ahref="tqvalidator.html#validate">TQValidator</a>.
<p><p>See also <ahref="qfocusevent.html">TQFocusEvent</a>, <ahref="tqwidget.html#grabKeyboard">TQWidget::grabKeyboard</a>(), and <ahref="events.html">Event Classes</a>.
<p><p>See also <ahref="tqfocusevent.html">TQFocusEvent</a>, <ahref="tqwidget.html#grabKeyboard">TQWidget::grabKeyboard</a>(), and <ahref="events.html">Event Classes</a>.
Returns the validator which constrains editing for this combobox
if there is one; otherwise returns 0.
<p><p>See also <ahref="#setValidator">setValidator</a>(), <ahref="#clearValidator">clearValidator</a>(), and <ahref="ntqvalidator.html">TQValidator</a>.
<p><p>See also <ahref="#setValidator">setValidator</a>(), <ahref="#clearValidator">clearValidator</a>(), and <ahref="tqvalidator.html">TQValidator</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 TQDockArea</h1>
<p>This is the complete list of member functions for
<ahref="ntqdockarea.html">TQDockArea</a>, including inherited members.
<ahref="tqdockarea.html">TQDockArea</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 TQDockWindow</h1>
<p>This is the complete list of member functions for
<ahref="ntqdockwindow.html">TQDockWindow</a>, including inherited members.
<ahref="tqdockwindow.html">TQDockWindow</a>, including inherited members.
The TQDockWindow class provides a widget which can be docked
inside a <ahref="ntqdockarea.html">TQDockArea</a> or floated as a top level window on the
inside a <ahref="tqdockarea.html">TQDockArea</a> or floated as a top level window on the
desktop.
<p>
@ -114,9 +114,9 @@ desktop.
windows. <ahref="tqtoolbar.html">TQToolBar</a> is a subclass of TQDockWindow so the
functionality provided for dock windows is available with the same
API for toolbars.
<p><center><imgsrc="tqmainwindow-qdockareas.png" alt="TQDockWindows in a TQDockArea"></center><blockquote><palign="center"><em> Two TQDockWindows (<ahref="tqtoolbar.html">TQToolBar</a>s) in a <ahref="ntqdockarea.html">TQDockArea</a>
<p><center><imgsrc="tqmainwindow-tqdockareas.png" alt="TQDockWindows in a TQDockArea"></center><blockquote><palign="center"><em> Two TQDockWindows (<ahref="tqtoolbar.html">TQToolBar</a>s) in a <ahref="tqdockarea.html">TQDockArea</a>
</em></p>
</blockquote><p><center><imgsrc="qdockwindow.png" alt="A TQDockWindow"></center><blockquote><palign="center"><em> A Floating TQDockWindow
</blockquote><p><center><imgsrc="tqdockwindow.png" alt="A TQDockWindow"></center><blockquote><palign="center"><em> A Floating TQDockWindow
</em></p>
</blockquote><p> If the user drags the dock window into the dock area the dock
window will be docked. If the user drags the dock area outside any
@ -132,12 +132,12 @@ disappear. You can control whether or not a dock window has a
close button with <ahref="#setCloseMode">setCloseMode</a>().
<p><ahref="tqmainwindow.html">TQMainWindow</a> provides four dock areas (top, left, right and bottom)
which can be used by dock windows. For many applications using the
dock areas provided by TQMainWindow is sufficient. (See the <ahref="ntqdockarea.html">TQDockArea</a> documentation if you want to create your own dock
dock areas provided by TQMainWindow is sufficient. (See the <ahref="tqdockarea.html">TQDockArea</a> documentation if you want to create your own dock
areas.) In TQMainWindow a right-click popup menu (the dock window
menu) is available which lists dock windows and can be used to
show or hide them. (The popup menu only lists dock windows that
have a <ahref="tqwidget.html#setCaption">caption</a>.)
<p> When you construct a dock window you <em>must</em> pass it a <ahref="ntqdockarea.html">TQDockArea</a>
<p> When you construct a dock window you <em>must</em> pass it a <ahref="tqdockarea.html">TQDockArea</a>
or a TQMainWindow as its parent if you want it docked. Pass 0 for
the parent if you want it floated.
<p><pre>
@ -170,13 +170,13 @@ become top level windows and can be resized like any other top
level windows, e.g. by dragging a corner or edge.
<p> Dock windows can be docked and undocked using <ahref="#dock">dock</a>() and <ahref="#undock">undock</a>().
A dock window's orientation can be set with setOrientation(). You
can also use <ahref="ntqdockarea.html#moveDockWindow">TQDockArea::moveDockWindow</a>(). If you're using a
can also use <ahref="tqdockarea.html#moveDockWindow">TQDockArea::moveDockWindow</a>(). If you're using a
<ahref="tqmainwindow.html">TQMainWindow</a>, <ahref="tqmainwindow.html#moveDockWindow">TQMainWindow::moveDockWindow</a>() and
<ahref="tqmainwindow.html#removeDockWindow">TQMainWindow::removeDockWindow</a>() are available.
<p> A dock window can have some preferred settings, for example, you
can set a preferred offset from the left edge (or top edge for
vertical dock areas) of the dock area using <ahref="#setOffset">setOffset</a>(). If you'd
prefer a dock window to start on a new <ahref="ntqdockarea.html#lines">line</a> when it is docked use <ahref="#setNewLine">setNewLine</a>(). The
prefer a dock window to start on a new <ahref="tqdockarea.html#lines">line</a> when it is docked use <ahref="#setNewLine">setNewLine</a>(). The
<ahref="#setFixedExtentWidth">setFixedExtentWidth</a>() and <ahref="#setFixedExtentHeight">setFixedExtentHeight</a>() functions can be
used to define the dock window's preferred size, and the
<ahref="#setHorizontallyStretchable">setHorizontallyStretchable</a>() and <ahref="#setVerticallyStretchable">setVerticallyStretchable</a>()
@ -210,16 +210,16 @@ floating.
<p> This enum specifies the possible locations for a TQDockWindow:
<ul>
<li><tt>TQDockWindow::InDock</tt> - Inside a <ahref="ntqdockarea.html">TQDockArea</a>.
<li><tt>TQDockWindow::InDock</tt> - Inside a <ahref="tqdockarea.html">TQDockArea</a>.
<li><tt>TQDockWindow::OutsideDock</tt> - Floating as a top level window on the desktop.
Constructs a TQDockWindow with parent <em>parent</em>, called <em>name</em> and
with widget flags <em>f</em>.
<p> If <em>p</em> is <ahref="#Place-enum">InDock</a>, the dock window is docked into a dock area
and <em>parent</em><em>must</em> be a <ahref="ntqdockarea.html">TQDockArea</a> or a <ahref="tqmainwindow.html">TQMainWindow</a>. If the <em>parent</em> is a TQMainWindow the dock window will be docked in the main
and <em>parent</em><em>must</em> be a <ahref="tqdockarea.html">TQDockArea</a> or a <ahref="tqmainwindow.html">TQMainWindow</a>. If the <em>parent</em> is a TQMainWindow the dock window will be docked in the main
window's <ahref="ntqt.html#Dock-enum">Top</a> dock area.
<p> If <em>p</em> is <ahref="#Place-enum">OutsideDock</a>, the dock window is created as a floating
window.
@ -232,7 +232,7 @@ dock window where you want it.
Constructs a TQDockWindow with parent <em>parent</em>, called <em>name</em> and
Docks the dock window into the last dock area in which it was
@ -260,8 +260,8 @@ floating window and has never been docked), or if the last dock
area it was docked in does not exist (e.g. the dock area has been
deleted), nothing happens.
<p> The dock window will dock with the dock area regardless of the return value
of <ahref="ntqdockarea.html#isDockWindowAccepted">TQDockArea::isDockWindowAccepted</a>().
<p><p>See also <ahref="#undock">undock</a>(), <ahref="ntqdockarea.html#moveDockWindow">TQDockArea::moveDockWindow</a>(), <ahref="ntqdockarea.html#removeDockWindow">TQDockArea::removeDockWindow</a>(), <ahref="tqmainwindow.html#moveDockWindow">TQMainWindow::moveDockWindow</a>(), <ahref="tqmainwindow.html#removeDockWindow">TQMainWindow::removeDockWindow</a>(), and <ahref="ntqdockarea.html#isDockWindowAccepted">TQDockArea::isDockWindowAccepted</a>().
of <ahref="tqdockarea.html#isDockWindowAccepted">TQDockArea::isDockWindowAccepted</a>().
<p><p>See also <ahref="#undock">undock</a>(), <ahref="tqdockarea.html#moveDockWindow">TQDockArea::moveDockWindow</a>(), <ahref="tqdockarea.html#removeDockWindow">TQDockArea::removeDockWindow</a>(), <ahref="tqmainwindow.html#moveDockWindow">TQMainWindow::moveDockWindow</a>(), <ahref="tqmainwindow.html#removeDockWindow">TQMainWindow::removeDockWindow</a>(), and <ahref="tqdockarea.html#isDockWindowAccepted">TQDockArea::isDockWindowAccepted</a>().
</h3><p>Returns TRUE if the user can move the dock window within the dock area, move the dock window to another dock area, or float the dock window; otherwise returns FALSE.
See the <ahref="ntqdockwindow.html#movingEnabled-prop">"movingEnabled"</a> property for details.
See the <ahref="tqdockwindow.html#movingEnabled-prop">"movingEnabled"</a> property for details.
<p> This function returns where the dock window is placed. This is
either <ahref="#Place-enum">InDock</a> or <ahref="#Place-enum">OutsideDock</a>.
<p><p>See also <ahref="ntqdockarea.html#moveDockWindow">TQDockArea::moveDockWindow</a>(), <ahref="ntqdockarea.html#removeDockWindow">TQDockArea::removeDockWindow</a>(), <ahref="tqmainwindow.html#moveDockWindow">TQMainWindow::moveDockWindow</a>(), and <ahref="tqmainwindow.html#removeDockWindow">TQMainWindow::removeDockWindow</a>().
<p><p>See also <ahref="tqdockarea.html#moveDockWindow">TQDockArea::moveDockWindow</a>(), <ahref="tqdockarea.html#removeDockWindow">TQDockArea::removeDockWindow</a>(), <ahref="tqmainwindow.html#moveDockWindow">TQMainWindow::moveDockWindow</a>(), and <ahref="tqmainwindow.html#removeDockWindow">TQMainWindow::removeDockWindow</a>().
<p> This signal is emitted when the dock window is docked (<em>p</em> is <ahref="#Place-enum">InDock</a>), undocked (<em>p</em> is <ahref="#Place-enum">OutsideDock</a>) or moved inside the
the dock area.
<p><p>See also <ahref="ntqdockarea.html#moveDockWindow">TQDockArea::moveDockWindow</a>(), <ahref="ntqdockarea.html#removeDockWindow">TQDockArea::removeDockWindow</a>(), <ahref="tqmainwindow.html#moveDockWindow">TQMainWindow::moveDockWindow</a>(), and <ahref="tqmainwindow.html#removeDockWindow">TQMainWindow::removeDockWindow</a>().
<p><p>See also <ahref="tqdockarea.html#moveDockWindow">TQDockArea::moveDockWindow</a>(), <ahref="tqdockarea.html#removeDockWindow">TQDockArea::removeDockWindow</a>(), <ahref="tqmainwindow.html#moveDockWindow">TQMainWindow::moveDockWindow</a>(), and <ahref="tqmainwindow.html#removeDockWindow">TQMainWindow::removeDockWindow</a>().
</h3><p>Sets whether the user can move the dock window within the dock area, move the dock window to another dock area, or float the dock window to <em>b</em>.
See the <ahref="ntqdockwindow.html#movingEnabled-prop">"movingEnabled"</a> property for details.
See the <ahref="tqdockwindow.html#movingEnabled-prop">"movingEnabled"</a> property for details.
@ -397,7 +397,7 @@ Sets the dock window's main widget to <em>w</em>.
<p> Undocks the TQDockWindow from its current dock area if it is
docked; otherwise does nothing.
<p><p>See also <ahref="#dock">dock</a>(), <ahref="ntqdockarea.html#moveDockWindow">TQDockArea::moveDockWindow</a>(), <ahref="ntqdockarea.html#removeDockWindow">TQDockArea::removeDockWindow</a>(), <ahref="tqmainwindow.html#moveDockWindow">TQMainWindow::moveDockWindow</a>(), and <ahref="tqmainwindow.html#removeDockWindow">TQMainWindow::removeDockWindow</a>().
<p><p>See also <ahref="#dock">dock</a>(), <ahref="tqdockarea.html#moveDockWindow">TQDockArea::moveDockWindow</a>(), <ahref="tqdockarea.html#removeDockWindow">TQDockArea::removeDockWindow</a>(), <ahref="tqmainwindow.html#moveDockWindow">TQMainWindow::moveDockWindow</a>(), and <ahref="tqmainwindow.html#removeDockWindow">TQMainWindow::removeDockWindow</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 TQErrorMessage</h1>
<p>This is the complete list of member functions for
<ahref="ntqerrormessage.html">TQErrorMessage</a>, including inherited members.
<ahref="tqerrormessage.html">TQErrorMessage</a>, including inherited members.
@ -69,7 +69,7 @@ that displays <a href="ntqapplication.html#qDebug">tqDebug</a>(), <a href="ntqap
<p> In both cases TQErrorMessage will queue pending messages, and display
them (or not) in order, as soon as the user presses Enter or clicks OK
after seeing each message.
<p><center><imgsrc="qerrormessage.png"></center>
<p><center><imgsrc="tqerrormessage.png"></center>
<p><p>See also <ahref="ntqmessagebox.html">TQMessageBox</a>, <ahref="tqstatusbar.html#message">TQStatusBar::message</a>(), <ahref="dialogs.html">Dialog Classes</a>, and <ahref="misc.html">Miscellaneous Classes</a>.
<hr><h2>Member Function Documentation</h2>
@ -87,7 +87,7 @@ that <em>m</em> not be shown, this function does nothing.
<p> Normally, <em>m</em> is shown at once, but if there are pending messages,
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQFocusData</h1>
<p>This is the complete list of member functions for
<ahref="ntqfocusdata.html">TQFocusData</a>, including inherited members.
<ahref="tqfocusdata.html">TQFocusData</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 TQFocusEvent</h1>
<p>This is the complete list of member functions for
<ahref="qfocusevent.html">TQFocusEvent</a>, including inherited members.
<ahref="tqfocusevent.html">TQFocusEvent</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 TQHideEvent</h1>
<p>This is the complete list of member functions for
<ahref="qhideevent.html">TQHideEvent</a>, including inherited members.
<ahref="tqhideevent.html">TQHideEvent</a>, including inherited members.
Sets this line edit to only accept input that the validator, <em>v</em>,
will accept. This allows you to place any arbitrary constraints on
@ -512,7 +512,7 @@ the text which may be entered.
<p> If <em>v</em> == 0, <ahref="#setValidator">setValidator</a>() removes the current input validator.
The initial setting is to have no input validator (i.e. any input
is accepted up to <ahref="#maxLength">maxLength</a>()).
<p><p>See also <ahref="#validator">validator</a>(), <ahref="qintvalidator.html">TQIntValidator</a>, <ahref="qdoublevalidator.html">TQDoubleValidator</a>, and <ahref="tqregexpvalidator.html">TQRegExpValidator</a>.
<p><p>See also <ahref="#validator">validator</a>(), <ahref="qintvalidator.html">TQIntValidator</a>, <ahref="tqdoublevalidator.html">TQDoubleValidator</a>, and <ahref="tqregexpvalidator.html">TQRegExpValidator</a>.
<p>Examples: <ahref="lineedits-example.html#x180">lineedits/lineedits.cpp</a> and <ahref="wizard-example.html#x7">wizard/wizard.cpp</a>.
@ -273,7 +273,7 @@ moving dock windows you can specify their 'edge' (dock area). The
currently available edges are: <ahref="ntqt.html#Dock-enum">Top</a>, <ahref="ntqt.html#Dock-enum">Left</a>, <ahref="ntqt.html#Dock-enum">Right</a>, <ahref="ntqt.html#Dock-enum">Bottom</a>, <ahref="ntqt.html#Dock-enum">Minimized</a> (effectively a 'hidden' dock area) and <ahref="ntqt.html#Dock-enum">TornOff</a> (floating). See <ahref="ntqt.html#Dock-enum">TQt::Dock</a> for an explanation of these
areas. Note that the *ToolBar functions are included for backward
compatibility; all new code should use the *DockWindow functions.
TQToolbar is a subclass of <ahref="ntqdockwindow.html">TQDockWindow</a> so all functions that work
TQToolbar is a subclass of <ahref="tqdockwindow.html">TQDockWindow</a> so all functions that work
with dock windows work on toolbars in the same way.
<p><aname="dwm"></a>
If the user clicks the close button, then the dock window is
@ -293,8 +293,8 @@ dock the floating dock window. (See also
<p><p>See also <ahref="tqtoolbar.html">TQToolBar</a>, <ahref="ntqdockwindow.html">TQDockWindow</a>, <ahref="tqstatusbar.html">TQStatusBar</a>, <ahref="tqaction.html">TQAction</a>, <ahref="tqmenubar.html">TQMenuBar</a>, <ahref="tqpopupmenu.html">TQPopupMenu</a>, <ahref="tqtooltipgroup.html">TQToolTipGroup</a>, <ahref="tqdialog.html">TQDialog</a>, and <ahref="application.html">Main Window and Related Classes</a>.
<p><p>See also <ahref="tqtoolbar.html">TQToolBar</a>, <ahref="tqdockwindow.html">TQDockWindow</a>, <ahref="tqstatusbar.html">TQStatusBar</a>, <ahref="tqaction.html">TQAction</a>, <ahref="tqmenubar.html">TQMenuBar</a>, <ahref="tqpopupmenu.html">TQPopupMenu</a>, <ahref="tqtooltipgroup.html">TQToolTipGroup</a>, <ahref="tqdialog.html">TQDialog</a>, and <ahref="application.html">Main Window and Related Classes</a>.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Returns TRUE if dock area <em>area</em> is enabled for the dock window
@ -610,7 +610,7 @@ will also have a "Customize" menu item if <a href="#isCustomizable">isCustomizab
TRUE.
<p><p>See also <ahref="#setDockEnabled">setDockEnabled</a>(), <ahref="#lineUpDockWindows">lineUpDockWindows</a>(), <ahref="#appropriate">appropriate</a>(), and <ahref="#setAppropriate">setAppropriate</a>().
Returns the <ahref="ntqt.html#Dock-enum">Top</a> dock area
<p><p>See also <ahref="#bottomDock">bottomDock</a>(), <ahref="#leftDock">leftDock</a>(), and <ahref="#rightDock">rightDock</a>().
@ -896,7 +896,7 @@ need. Since most dock windows are not stretchable, this usually
results in an unjustified right edge (or unjustified bottom edge
for a vertical dock area). If enabled, the main window will
right-justify its dock windows.
<p><p>See also <ahref="ntqdockwindow.html#setVerticalStretchable">TQDockWindow::setVerticalStretchable</a>() and <ahref="ntqdockwindow.html#setHorizontalStretchable">TQDockWindow::setHorizontalStretchable</a>().
<p><p>See also <ahref="tqdockwindow.html#setVerticalStretchable">TQDockWindow::setVerticalStretchable</a>() and <ahref="tqdockwindow.html#setHorizontalStretchable">TQDockWindow::setHorizontalStretchable</a>().
<p>Set this property's value with <ahref="#setRightJustification">setRightJustification</a>() and get this property's value with <ahref="#rightJustification">rightJustification</a>().
<p> Draws the shaded panel specified by (<em>x</em>, <em>y</em>, <em>w</em>, <em>h</em>) using
the painter <em>p</em>.
<p> The color group argument <em>g</em> specifies the shading colors (<ahref="tqcolorgroup.html#light">light</a>, <ahref="tqcolorgroup.html#dark">dark</a> and <ahref="tqcolorgroup.html#mid">middle</a> colors).
@ -1564,7 +1564,7 @@ widgets that follow the current GUI style.
<p> Draws the shaded rectangle specified by (<em>x</em>, <em>y</em>, <em>w</em>, <em>h</em>)
using the painter <em>p</em>.
<p> The color group argument <em>g</em> specifies the shading colors (<ahref="tqcolorgroup.html#light">light</a>, <ahref="tqcolorgroup.html#dark">dark</a> and <ahref="tqcolorgroup.html#mid">middle</a> colors).
@ -1585,7 +1585,7 @@ widgets that follow the current GUI style.
<p> Draws the Windows-style button specified by (<em>x</em>, <em>y</em>, <em>w</em>, <em>h</em>) using the painter <em>p</em>.
<p> The color group argument <em>g</em> specifies the shading colors (<ahref="tqcolorgroup.html#light">light</a>, <ahref="tqcolorgroup.html#dark">dark</a> and <ahref="tqcolorgroup.html#mid">middle</a> colors).
<p> The button appears sunken if <em>sunken</em> is TRUE, or raised if <em>sunken</em> is FALSE.
@ -1599,7 +1599,7 @@ widgets that follow the current GUI style.
<p><ahref="tqregexpvalidator-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
@ -53,7 +53,7 @@ The TQRegExpValidator class is used to check a string
against a <ahref="tqregexp.html#regular-expression">regular expression</a>.
<p>
<p> TQRegExpValidator contains a regular expression, "regexp", used to
determine whether an input string is <ahref="ntqvalidator.html#State-enum">Acceptable</a>, <ahref="ntqvalidator.html#State-enum">Intermediate</a> or <ahref="ntqvalidator.html#State-enum">Invalid</a>.
determine whether an input string is <ahref="tqvalidator.html#State-enum">Acceptable</a>, <ahref="tqvalidator.html#State-enum">Intermediate</a> or <ahref="tqvalidator.html#State-enum">Invalid</a>.
<p> The regexp is treated as if it begins with the start of string
assertion, <b>^</b>, and ends with the end of string assertion
<b>$</b> so the match is against the entire input string, or from
@ -63,7 +63,7 @@ the given position if a start position greater than zero is given.
<pre>
// regexp: optional '-' followed by between 1 and 3 digits
@ -105,7 +105,7 @@ normally be associated with a widget as in the example above.
s = "readm"; v.<ahref="#validate">validate</a>( s, pos ); // Returns Intermediate
</pre>
<p><p>See also <ahref="tqregexp.html">TQRegExp</a>, <ahref="qintvalidator.html">TQIntValidator</a>, <ahref="qdoublevalidator.html">TQDoubleValidator</a>, and <ahref="misc.html">Miscellaneous Classes</a>.
<p><p>See also <ahref="tqregexp.html">TQRegExp</a>, <ahref="qintvalidator.html">TQIntValidator</a>, <ahref="tqdoublevalidator.html">TQDoubleValidator</a>, and <ahref="misc.html">Miscellaneous Classes</a>.
Returns <ahref="ntqvalidator.html#State-enum">Acceptable</a> if <em>input</em> is matched by the <ahref="tqregexp.html#regular-expression">regular expression</a> for this validator, <ahref="ntqvalidator.html#State-enum">Intermediate</a> if it has matched
Returns <ahref="tqvalidator.html#State-enum">Acceptable</a> if <em>input</em> is matched by the <ahref="tqregexp.html#regular-expression">regular expression</a> for this validator, <ahref="tqvalidator.html#State-enum">Intermediate</a> if it has matched
partially (i.e. could be a valid match if additional valid
characters are added), and <ahref="ntqvalidator.html#State-enum">Invalid</a> if <em>input</em> is not matched.
characters are added), and <ahref="tqvalidator.html#State-enum">Invalid</a> if <em>input</em> is not matched.
<p> The <em>pos</em> parameter is set to the length of the <em>input</em> parameter.
<p> For example, if the regular expression is <b>\w\d\d</b> (that
is, word-character, digit, digit) then "A57" is <ahref="ntqvalidator.html#State-enum">Acceptable</a>,
"E5" is <ahref="ntqvalidator.html#State-enum">Intermediate</a> and "+9" is <ahref="ntqvalidator.html#State-enum">Invalid</a>.
is, word-character, digit, digit) then "A57" is <ahref="tqvalidator.html#State-enum">Acceptable</a>,
"E5" is <ahref="tqvalidator.html#State-enum">Intermediate</a> and "+9" is <ahref="tqvalidator.html#State-enum">Invalid</a>.
<p><p>See also <ahref="tqregexp.html#match">TQRegExp::match</a>() and <ahref="tqregexp.html#search">TQRegExp::search</a>().
<p>Reimplemented from <ahref="ntqvalidator.html#validate">TQValidator</a>.
<p>Reimplemented from <ahref="tqvalidator.html#validate">TQValidator</a>.
<!-- eof -->
<hr><p>
This file is part of the <ahref="index.html">TQt toolkit</a>.
<p><ahref="tqtoolbar-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
@ -64,9 +64,9 @@ widgets such as tool buttons.
represented by small icons. It's purpose is to provide quick
access to frequently used commands or options. Within a
<ahref="tqmainwindow.html">TQMainWindow</a> the user can drag toolbars within and between the
<ahref="ntqdockarea.html">dock areas</a>. Toolbars can also be dragged
<ahref="tqdockarea.html">dock areas</a>. Toolbars can also be dragged
out of any dock area to float freely as top-level windows.
<p> TQToolBar is a specialization of <ahref="ntqdockwindow.html">TQDockWindow</a>, and so provides all
<p> TQToolBar is a specialization of <ahref="tqdockwindow.html">TQDockWindow</a>, and so provides all
the functionality of a TQDockWindow.
<p> To use TQToolBar you simply create a TQToolBar as a child of a
TQMainWindow, create a number of <ahref="tqtoolbutton.html">TQToolButton</a> widgets (or other
@ -91,13 +91,13 @@ widget will automatically become visible without needing a <a href="tqwidget.htm
call. (This differs from every other TQt widget container. We
recommend calling show() anyway since we hope to fix this anomaly
in a future release.)
<p> TQToolBars, like TQDockWindows, are located in <ahref="ntqdockarea.html">TQDockArea</a>s or
<p> TQToolBars, like TQDockWindows, are located in <ahref="tqdockarea.html">TQDockArea</a>s or
float as top-level windows. TQMainWindow provides four TQDockAreas
(top, left, right and bottom). When you create a new toolbar (as
in the example above) as a child of a TQMainWindow the toolbar will
be added to the top dock area. You can move it to another dock
area (or float it) by calling <ahref="tqmainwindow.html#moveDockWindow">TQMainWindow::moveDockWindow</a>(). TQDock
areas lay out their windows in <ahref="ntqdockarea.html#lines">Lines</a>.
areas lay out their windows in <ahref="tqdockarea.html#lines">Lines</a>.
<p> If the main window is resized so that the area occupied by the
toolbar is too small to show all its widgets a little arrow button
(which looks like a right-pointing chevron, '»') will appear
@ -108,16 +108,16 @@ their textLabel property, other <a href="tqbutton.html">TQButton</a> subclasses
using their text property, and TQComboBoxes are represented as submenus,
with the caption text being used in the submenu item.
<p> Usually a toolbar will get precisely the space it needs. However,
with <ahref="ntqdockwindow.html#setHorizontalStretchable">setHorizontalStretchable</a>(), <ahref="ntqdockwindow.html#setVerticalStretchable">setVerticalStretchable</a>() or
with <ahref="tqdockwindow.html#setHorizontalStretchable">setHorizontalStretchable</a>(), <ahref="tqdockwindow.html#setVerticalStretchable">setVerticalStretchable</a>() or
<ahref="#setStretchableWidget">setStretchableWidget</a>() you can tell the main window to expand the
toolbar to fill all available space in the specified orientation.
<p> The toolbar arranges its buttons either horizontally or vertically
(see <ahref="ntqdockwindow.html#orientation">orientation</a>() for details). Generally, <ahref="ntqdockarea.html">TQDockArea</a> will set the
(see <ahref="tqdockwindow.html#orientation">orientation</a>() for details). Generally, <ahref="tqdockarea.html">TQDockArea</a> will set the
orientation correctly for you, but you can set it yourself with
<ahref="ntqdockwindow.html#setOrientation">setOrientation</a>() and track any changes by connecting to the
<p> You can use the <ahref="#clear">clear</a>() method to remove all items from a toolbar.
<p><center><imgsrc="qdockwindow.png" alt="Toolbar (dock window)"></center><blockquote><palign="center"><em> A floating TQToolbar (dock window)
<p><center><imgsrc="tqdockwindow.png" alt="Toolbar (dock window)"></center><blockquote><palign="center"><em> A floating TQToolbar (dock window)
</em></p>
</blockquote><p><p>See also <ahref="tqtoolbutton.html">TQToolButton</a>, <ahref="tqmainwindow.html">TQMainWindow</a>, <ahref="http://www.iarchitect.com/visual.htm">Parts of Isys on Visual Design</a>, <ahref="guibooks.html#fowler">GUI Design Handbook: Tool Bar</a>, and <ahref="application.html">Main Window and Related Classes</a>.
@ -133,7 +133,7 @@ Constructs an empty horizontal toolbar.
<p> The toolbar is called <em>name</em> and is a child of <em>parent</em> and is
managed by <em>mainWindow</em>. The <em>label</em> and <em>newLine</em> parameters
are passed straight to <ahref="tqmainwindow.html#addDockWindow">TQMainWindow::addDockWindow</a>(). <em>name</em> and
the widget flags <em>f</em> are passed on to the <ahref="ntqdockwindow.html">TQDockWindow</a> constructor.
the widget flags <em>f</em> are passed on to the <ahref="tqdockwindow.html">TQDockWindow</a> constructor.
<p> Use this constructor if you want to create torn-off (undocked,
floating) toolbars or toolbars in the <ahref="tqstatusbar.html">status
bar</a>.
@ -170,11 +170,11 @@ Sets the widget <em>w</em> to be expanded if this toolbar is requested
to stretch.
<p> The request to stretch might occur because <ahref="tqmainwindow.html">TQMainWindow</a>
right-justifies the dock area the toolbar is in, or because this
toolbar's <ahref="ntqdockwindow.html#isVerticalStretchable">isVerticalStretchable</a>() or <ahref="ntqdockwindow.html#isHorizontalStretchable">isHorizontalStretchable</a>() is
toolbar's <ahref="tqdockwindow.html#isVerticalStretchable">isVerticalStretchable</a>() or <ahref="tqdockwindow.html#isHorizontalStretchable">isHorizontalStretchable</a>() is
set to TRUE.
<p> If you call this function and the toolbar is not yet stretchable,
setStretchable() is called.
<p><p>See also <ahref="tqmainwindow.html#rightJustification-prop">TQMainWindow::rightJustification</a>, <ahref="ntqdockwindow.html#setVerticalStretchable">setVerticalStretchable</a>(), and <ahref="ntqdockwindow.html#setHorizontalStretchable">setHorizontalStretchable</a>().
<p><p>See also <ahref="tqmainwindow.html#rightJustification-prop">TQMainWindow::rightJustification</a>, <ahref="tqdockwindow.html#setVerticalStretchable">setVerticalStretchable</a>(), and <ahref="tqdockwindow.html#setHorizontalStretchable">setHorizontalStretchable</a>().
<p>Examples: <ahref="fileiconview-example.html#x896">fileiconview/mainwindow.cpp</a> and <ahref="helpviewer-example.html#x1034">helpviewer/helpwindow.cpp</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 TQValidator</h1>
<p>This is the complete list of member functions for
<ahref="ntqvalidator.html">TQValidator</a>, including inherited members.
<ahref="tqvalidator.html">TQValidator</a>, including inherited members.
<p>Inherited by <ahref="qintvalidator.html">TQIntValidator</a>, <ahref="qdoublevalidator.html">TQDoubleValidator</a>, and <ahref="tqregexpvalidator.html">TQRegExpValidator</a>.
<p><ahref="qvalidator-members.html">List of all member functions.</a>
<p>Inherited by <ahref="qintvalidator.html">TQIntValidator</a>, <ahref="tqdoublevalidator.html">TQDoubleValidator</a>, and <ahref="tqregexpvalidator.html">TQRegExpValidator</a>.
<p><ahref="tqvalidator-members.html">List of all member functions.</a>
@ -52,7 +52,7 @@ The TQValidator class provides validation of input text.
<p>
<p> The class itself is abstract. Two subclasses, <ahref="qintvalidator.html">TQIntValidator</a> and
<ahref="qdoublevalidator.html">TQDoubleValidator</a>, provide basic numeric-range checking, and <ahref="tqregexpvalidator.html">TQRegExpValidator</a> provides general checking using a custom <ahref="tqregexp.html#regular-expression">regular expression</a>.
<ahref="tqdoublevalidator.html">TQDoubleValidator</a>, provide basic numeric-range checking, and <ahref="tqregexpvalidator.html">TQRegExpValidator</a> provides general checking using a custom <ahref="tqregexp.html#regular-expression">regular expression</a>.
<p> If the built-in validators aren't sufficient, you can subclass
TQValidator. The class has two virtual functions: <ahref="#validate">validate</a>() and
<ahref="#fixup">fixup</a>().
@ -127,7 +127,7 @@ want to remove whitespace from the start and end of the string,
even if the resulting string is not in the list of accepted
<p> This pure virtual function returns <ahref="#State-enum">Invalid</a> if <em>input</em> is
@ -139,7 +139,7 @@ valid.
<p> The function can change <em>input</em> and <em>pos</em> (the cursor position)
if it wants to.
<p>Reimplemented in <ahref="qintvalidator.html#validate">TQIntValidator</a>, <ahref="qdoublevalidator.html#validate">TQDoubleValidator</a>, and <ahref="tqregexpvalidator.html#validate">TQRegExpValidator</a>.
<p>Reimplemented in <ahref="qintvalidator.html#validate">TQIntValidator</a>, <ahref="tqdoublevalidator.html#validate">TQDoubleValidator</a>, and <ahref="tqregexpvalidator.html#validate">TQRegExpValidator</a>.
<!-- eof -->
<hr><p>
This file is part of the <ahref="index.html">TQt toolkit</a>.
This event handler can be reimplemented in a subclass to receive
<ahref="focus.html#keyboard-focus">keyboard focus</a> events (focus received) for the widget.
@ -1069,7 +1069,7 @@ those that do not normally accept focus.)
widgets that do not specify a <ahref="#focusPolicy">focusPolicy</a>() ). It also calls
<ahref="#setMicroFocusHint">setMicroFocusHint</a>(), hinting any system-specific input tools about
the focus of the user's attention.
<p><p>See also <ahref="#focusOutEvent">focusOutEvent</a>(), <ahref="#focusPolicy-prop">focusPolicy</a>, <ahref="#keyPressEvent">keyPressEvent</a>(), <ahref="#keyReleaseEvent">keyReleaseEvent</a>(), <ahref="#event">event</a>(), and <ahref="qfocusevent.html">TQFocusEvent</a>.
<p><p>See also <ahref="#focusOutEvent">focusOutEvent</a>(), <ahref="#focusPolicy-prop">focusPolicy</a>, <ahref="#keyPressEvent">keyPressEvent</a>(), <ahref="#keyReleaseEvent">keyReleaseEvent</a>(), <ahref="#event">event</a>(), and <ahref="tqfocusevent.html">TQFocusEvent</a>.
This event handler can be reimplemented in a subclass to receive
<ahref="focus.html#keyboard-focus">keyboard focus</a> events (focus lost) for the widget.
@ -1106,7 +1106,7 @@ those that do not normally accept focus.)
widgets that do not specify a <ahref="#focusPolicy">focusPolicy</a>() ). It also calls
<ahref="#setMicroFocusHint">setMicroFocusHint</a>(), hinting any system-specific input tools about
the focus of the user's attention.
<p><p>See also <ahref="#focusInEvent">focusInEvent</a>(), <ahref="#focusPolicy-prop">focusPolicy</a>, <ahref="#keyPressEvent">keyPressEvent</a>(), <ahref="#keyReleaseEvent">keyReleaseEvent</a>(), <ahref="#event">event</a>(), and <ahref="qfocusevent.html">TQFocusEvent</a>.
<p><p>See also <ahref="#focusInEvent">focusInEvent</a>(), <ahref="#focusPolicy-prop">focusPolicy</a>, <ahref="#keyPressEvent">keyPressEvent</a>(), <ahref="#keyReleaseEvent">keyReleaseEvent</a>(), <ahref="#event">event</a>(), and <ahref="tqfocusevent.html">TQFocusEvent</a>.
@ -257,7 +257,7 @@ A combobox emits two signals, activated() and highlighted(), when a new item has
.PP
When the user enters a new string in an editable combobox, the widget may or may not insert it, and it can insert it in several locations. The default policy is is AtBottom but you can change this using setInsertionPolicy().
.PP
It is possible to constrain the input to an editable combobox using QValidator; see setValidator(). By default, any input is accepted.
It is possible to constrain the input to an editable combobox using TQValidator; see setValidator(). By default, any input is accepted.
.PP
If the combobox is not editable then it has a default focusPolicy() of TabFocus, i.e. it will not grab focus if clicked. This differs from both Windows and Motif. If the combobox is editable then it has a default focusPolicy() of StrongFocus, i.e. it will grab focus if clicked.
.PP
@ -486,12 +486,12 @@ Sets the palette for both the combobox button and the combobox popup list to \fI
Reimplemented from TQWidget.
.SH "void TQComboBox::setSizeLimit ( int )\fC [virtual]\fR"
Sets the maximum on-screen size of the combobox. See the "sizeLimit" property for details.
.SH "void TQComboBox::setValidator ( const QValidator * v )\fC [virtual]\fR"
.SH "void TQComboBox::setValidator ( const TQValidator * v )\fC [virtual]\fR"
Applies the validator \fIv\fR to the combobox so that only text which is valid according to \fIv\fR is accepted.
.PP
This function does nothing if the combobox is not editable.
.PP
See also validator(), clearValidator(), and QValidator.
See also validator(), clearValidator(), and TQValidator.
.SH "int TQComboBox::sizeLimit () const"
Returns the maximum on-screen size of the combobox. See the "sizeLimit" property for details.
.SH "TQString TQComboBox::text ( int index ) const"
@ -503,10 +503,10 @@ Examples:
.)l fileiconview/mainwindow.cpp and helpviewer/helpwindow.cpp.
The QDockArea class manages and lays out QDockWindows.
The TQDockArea class manages and lays out TQDockWindows.
.PP
A QDockArea is a container which manages a list of QDockWindows which it lays out within its area. In cooperation with the QDockWindows it is responsible for the docking and undocking of QDockWindows and moving them inside the dock area. QDockAreas also handle the wrapping of QDockWindows to fill the available space as compactly as possible. QDockAreas can contain TQToolBars since TQToolBar is a QDockWindow subclass.
A TQDockArea is a container which manages a list of TQDockWindows which it lays out within its area. In cooperation with the TQDockWindows it is responsible for the docking and undocking of TQDockWindows and moving them inside the dock area. TQDockAreas also handle the wrapping of TQDockWindows to fill the available space as compactly as possible. TQDockAreas can contain TQToolBars since TQToolBar is a TQDockWindow subclass.
.PP
TQMainWindow contains four QDockAreas which you can use for your TQToolBars and QDockWindows, so in most situations you do not need to use the QDockArea class directly. Although TQMainWindow contains support for its own dock areas it isn't convenient for adding new QDockAreas. If you need to create your own dock areas we suggest that you create a subclass of TQWidget and add your QDockAreas to your subclass.
TQMainWindow contains four TQDockAreas which you can use for your TQToolBars and TQDockWindows, so in most situations you do not need to use the TQDockArea class directly. Although TQMainWindow contains support for its own dock areas it isn't convenient for adding new TQDockAreas. If you need to create your own dock areas we suggest that you create a subclass of TQWidget and add your TQDockAreas to your subclass.
.PP
<center>
.ce 1
@ -101,11 +101,11 @@ TQMainWindow contains four QDockAreas which you can use for your TQToolBars and
.PP
</center>
.PP
\fILines\fR. QDockArea uses the concept of lines. A line is a horizontal region which may contain dock windows side-by-side. A dock area may have room for more than one line. When dock windows are docked into a dock area they are usually added at the right hand side of the top-most line that has room (unless manually placed by the user). When users move dock windows they may leave empty lines or gaps in non-empty lines. Dock windows can be lined up to minimize wasted space using the lineUp() function.
\fILines\fR. TQDockArea uses the concept of lines. A line is a horizontal region which may contain dock windows side-by-side. A dock area may have room for more than one line. When dock windows are docked into a dock area they are usually added at the right hand side of the top-most line that has room (unless manually placed by the user). When users move dock windows they may leave empty lines or gaps in non-empty lines. Dock windows can be lined up to minimize wasted space using the lineUp() function.
.PP
The QDockArea class maintains a position list of all its child dock windows. Dock windows are added to a dock area from position 0 onwards. Dock windows are laid out sequentially in position order from left to right, and in the case of multiple lines of dock windows, from top to bottom. If a dock window is floated it still retains its position since this is where the window will return if the user double clicks its caption. A dock window's position can be determined with hasDockWindow(). The position can be changed with moveDockWindow().
The TQDockArea class maintains a position list of all its child dock windows. Dock windows are added to a dock area from position 0 onwards. Dock windows are laid out sequentially in position order from left to right, and in the case of multiple lines of dock windows, from top to bottom. If a dock window is floated it still retains its position since this is where the window will return if the user double clicks its caption. A dock window's position can be determined with hasDockWindow(). The position can be changed with moveDockWindow().
.PP
To dock or undock a dock window use QDockWindow::dock() and QDockWindow::undock() respectively. If you want to control which dock windows can dock in a dock area use setAcceptDockWindow(). To see if a dock area contains a particular dock window use hasDockWindow(); to see how many dock windows a dock area contains use count().
To dock or undock a dock window use TQDockWindow::dock() and TQDockWindow::undock() respectively. If you want to control which dock windows can dock in a dock area use setAcceptDockWindow(). To see if a dock area contains a particular dock window use hasDockWindow(); to see how many dock windows a dock area contains use count().
.PP
The streaming operators can write the positions of the dock windows in the dock area to a TQTextStream. The positions can be read back later to restore the saved positions.
.PP
@ -127,52 +127,52 @@ Restore the positions from a TQTextStream:
.PP
See also Main Window and Related Classes.
.SS "Member Type Documentation"
.SH "QDockArea::HandlePosition"
.SH "TQDockArea::HandlePosition"
A dock window has two kinds of handles, the dock window handle used for dragging the dock window, and the splitter handle used to resize the dock window in relation to other dock windows using a splitter. (The splitter handle is only visible for docked windows.)
.PP
This enum specifies where the dock window splitter handle is placed in the dock area.
.TP
\fCQDockArea::Normal\fR - The splitter handles of dock windows are placed at the right or bottom.
\fCTQDockArea::Normal\fR - The splitter handles of dock windows are placed at the right or bottom.
.TP
\fCQDockArea::Reverse\fR - The splitter handles of dock windows are placed at the left or top.
\fCTQDockArea::Reverse\fR - The splitter handles of dock windows are placed at the left or top.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QDockArea::QDockArea ( Orientation o, HandlePosition h = Normal, TQWidget * parent = 0, const char * name = 0 )"
Constructs a QDockArea with orientation \fIo\fR, HandlePosition \fIh\fR, parent \fIparent\fR and called \fIname\fR.
.SH "QDockArea::~QDockArea ()"
.SH "TQDockArea::TQDockArea ( Orientation o, HandlePosition h = Normal, TQWidget * parent = 0, const char * name = 0 )"
Constructs a TQDockArea with orientation \fIo\fR, HandlePosition \fIh\fR, parent \fIparent\fR and called \fIname\fR.
.SH "TQDockArea::~TQDockArea ()"
Destroys the dock area and all the dock windows docked in the dock area.
.PP
Does not affect any floating dock windows or dock windows in other dock areas, even if they first appeared in this dock area. Floating dock windows are effectively top level windows and are not child windows of the dock area. When a floating dock window is docked (dragged into a dock area) its parent becomes the dock area.
.SH "int QDockArea::count () const"
.SH "int TQDockArea::count () const"
Returns the number of dock windows in the dock area. See the "count" property for details.
Returns where the dock window splitter handle is placed in the dock area. See the "handlePosition" property for details.
.SH "bool QDockArea::hasDockWindow ( QDockWindow * w, int * index = 0 )"
.SH "bool TQDockArea::hasDockWindow ( TQDockWindow * w, int * index = 0 )"
Returns TRUE if the dock area contains the dock window \fIw\fR; otherwise returns FALSE. If \fIindex\fR is not 0 it will be set as follows: if the dock area contains the dock window \fI*index\fR is set to \fIw\fR's index position; otherwise \fI*index\fR is set to -1.
Lines up the dock windows in this dock area to minimize wasted space. If \fIkeepNewLines\fR is TRUE, only space within lines is cleaned up. If \fIkeepNewLines\fR is FALSE the number of lines might be changed.
.SH "void QDockArea::moveDockWindow ( QDockWindow * w, int index = -1 )"
Moves the QDockWindow \fIw\fR within the dock area. If \fIw\fR is not already docked in this area, \fIw\fR is docked first. If \fIindex\fR is -1 or larger than the number of docked widgets, \fIw\fR is appended at the end, otherwise it is inserted at the position \fIindex\fR.
.SH "void TQDockArea::moveDockWindow ( TQDockWindow * w, int index = -1 )"
Moves the TQDockWindow \fIw\fR within the dock area. If \fIw\fR is not already docked in this area, \fIw\fR is docked first. If \fIindex\fR is -1 or larger than the number of docked widgets, \fIw\fR is appended at the end, otherwise it is inserted at the position \fIindex\fR.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Moves the dock window \fIw\fR inside the dock area where \fIp\fR is the new position (in global screen coordinates), \fIr\fR is the suggested rectangle of the dock window and \fIswap\fR specifies whether or not the orientation of the docked widget needs to be changed.
.PP
This function is used internally by QDockWindow. You shouldn't need to call it yourself.
.SH "Orientation QDockArea::orientation () const"
This function is used internally by TQDockWindow. You shouldn't need to call it yourself.
Removes the dock window \fIw\fR from the dock area. If \fImakeFloating\fR is TRUE, \fIw\fR gets floated, and if \fIswap\fR is TRUE, the orientation of \fIw\fR gets swapped. If \fIfixNewLines\fR is TRUE (the default) newlines in the area will be fixed.
.PP
You should never need to call this function yourself. Use QDockWindow::dock() and QDockWindow::undock() instead.
If \fIaccept\fR is TRUE, dock window \fIdw\fR can be docked in the dock area. If \fIaccept\fR is FALSE, dock window \fIdw\fR cannot be docked in the dock area.
.PP
See also isDockWindowAccepted().
@ -198,17 +198,17 @@ There is no default value; the orientation is specified in the constructor.
Reads the layout description of the dock windows in dock area \fIdockArea\fR from the text stream \fIts\fR and restores it. The layout description must have been previously written by the operator<<() function.
.PP
See also operator<<().
.SH "SEE ALSO"
.BR http://doc.trolltech.com/ntqdockarea.html
.BR http://doc.trolltech.com/tqdockarea.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
The QDockWindow class provides a widget which can be docked inside a QDockArea or floated as a top level window on the desktop.
The TQDockWindow class provides a widget which can be docked inside a TQDockArea or floated as a top level window on the desktop.
.PP
This class handles moving, resizing, docking and undocking dock windows. TQToolBar is a subclass of QDockWindow so the functionality provided for dock windows is available with the same API for toolbars.
This class handles moving, resizing, docking and undocking dock windows. TQToolBar is a subclass of TQDockWindow so the functionality provided for dock windows is available with the same API for toolbars.
.PP
<center>
.ce 1
.B "[Image Omitted]"
.PP
</center> <blockquote><p align="center">\fI Two QDockWindows (TQToolBars) in a QDockArea \fR</p> </blockquote>
</center> <blockquote><p align="center">\fI Two TQDockWindows (TQToolBars) in a TQDockArea \fR</p> </blockquote>
.PP
<center>
.ce 1
.B "[Image Omitted]"
.PP
</center> <blockquote><p align="center">\fI A Floating QDockWindow \fR</p> </blockquote>
</center> <blockquote><p align="center">\fI A Floating TQDockWindow \fR</p> </blockquote>
.PP
If the user drags the dock window into the dock area the dock window will be docked. If the user drags the dock area outside any dock areas the dock window will be undocked (floated) and will become a top level window. Double clicking a floating dock window's titlebar will dock the dock window to the last dock area it was docked in. Double clicking a docked dock window's handle will undock (float) the dock window. If the user clicks the close button (which does not appear on dock windows by default - see closeMode) the dock window will disappear. You can control whether or not a dock window has a close button with setCloseMode().
.PP
TQMainWindow provides four dock areas (top, left, right and bottom) which can be used by dock windows. For many applications using the dock areas provided by TQMainWindow is sufficient. (See the QDockArea documentation if you want to create your own dock areas.) In TQMainWindow a right-click popup menu (the dock window menu) is available which lists dock windows and can be used to show or hide them. (The popup menu only lists dock windows that have a caption.)
TQMainWindow provides four dock areas (top, left, right and bottom) which can be used by dock windows. For many applications using the dock areas provided by TQMainWindow is sufficient. (See the TQDockArea documentation if you want to create your own dock areas.) In TQMainWindow a right-click popup menu (the dock window menu) is available which lists dock windows and can be used to show or hide them. (The popup menu only lists dock windows that have a caption.)
.PP
When you construct a dock window you \fImust\fR pass it a QDockArea or a TQMainWindow as its parent if you want it docked. Pass 0 for the parent if you want it floated.
When you construct a dock window you \fImust\fR pass it a TQDockArea or a TQMainWindow as its parent if you want it docked. Pass 0 for the parent if you want it floated.
.PP
.nf
.br
@ -217,7 +217,7 @@ A dock window is often used to contain a single widget. In these cases the widge
.PP
Although a common use of dock windows is for toolbars, they can be used with any widgets. (See the TQt Designer and TQt Linguist applications, for example.) When using larger widgets it may make sense for the dock window to be resizable by calling setResizeEnabled(). Resizable dock windows are given splitter-like handles to allow the user to resize them within their dock area. When resizable dock windows are undocked they become top level windows and can be resized like any other top level windows, e.g. by dragging a corner or edge.
.PP
Dock windows can be docked and undocked using dock() and undock(). A dock window's orientation can be set with setOrientation(). You can also use QDockArea::moveDockWindow(). If you're using a TQMainWindow, TQMainWindow::moveDockWindow() and TQMainWindow::removeDockWindow() are available.
Dock windows can be docked and undocked using dock() and undock(). A dock window's orientation can be set with setOrientation(). You can also use TQDockArea::moveDockWindow(). If you're using a TQMainWindow, TQMainWindow::moveDockWindow() and TQMainWindow::removeDockWindow() are available.
.PP
A dock window can have some preferred settings, for example, you can set a preferred offset from the left edge (or top edge for vertical dock areas) of the dock area using setOffset(). If you'd prefer a dock window to start on a new line when it is docked use setNewLine(). The setFixedExtentWidth() and setFixedExtentHeight() functions can be used to define the dock window's preferred size, and the setHorizontallyStretchable() and setVerticallyStretchable() functions set whether the dock window can be stretched or not. Dock windows can be moved by default, but this can be changed with setMovingEnabled(). When a dock window is moved it is shown as a rectangular outline, but it can be shown normally using setOpaqueMoving().
.PP
@ -225,138 +225,138 @@ When a dock window's visibility changes, i.e. it is shown or hidden, the visibil
.PP
See also Main Window and Related Classes.
.SS "Member Type Documentation"
.SH "QDockWindow::CloseMode"
.SH "TQDockWindow::CloseMode"
This enum type specifies when (if ever) a dock window has a close button.
.TP
\fCQDockWindow::Never\fR - The dock window never has a close button and cannot be closed by the user.
\fCTQDockWindow::Never\fR - The dock window never has a close button and cannot be closed by the user.
.TP
\fCQDockWindow::Docked\fR - The dock window has a close button only when docked.
\fCTQDockWindow::Docked\fR - The dock window has a close button only when docked.
.TP
\fCQDockWindow::Undocked\fR - The dock window has a close button only when floating.
\fCTQDockWindow::Undocked\fR - The dock window has a close button only when floating.
.TP
\fCQDockWindow::Always\fR - The dock window always has a close button.
.SH "QDockWindow::Place"
This enum specifies the possible locations for a QDockWindow:
\fCTQDockWindow::Always\fR - The dock window always has a close button.
.SH "TQDockWindow::Place"
This enum specifies the possible locations for a TQDockWindow:
.TP
\fCQDockWindow::InDock\fR - Inside a QDockArea.
\fCTQDockWindow::InDock\fR - Inside a TQDockArea.
.TP
\fCQDockWindow::OutsideDock\fR - Floating as a top level window on the desktop.
\fCTQDockWindow::OutsideDock\fR - Floating as a top level window on the desktop.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QDockWindow::QDockWindow ( Place p = InDock, TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )"
Constructs a QDockWindow with parent \fIparent\fR, called \fIname\fR and with widget flags \fIf\fR.
.SH "TQDockWindow::TQDockWindow ( Place p = InDock, TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )"
Constructs a TQDockWindow with parent \fIparent\fR, called \fIname\fR and with widget flags \fIf\fR.
.PP
If \fIp\fR is InDock, the dock window is docked into a dock area and \fIparent\fR \fImust\fR be a QDockArea or a TQMainWindow. If the \fIparent\fR is a TQMainWindow the dock window will be docked in the main window's Top dock area.
If \fIp\fR is InDock, the dock window is docked into a dock area and \fIparent\fR \fImust\fR be a TQDockArea or a TQMainWindow. If the \fIparent\fR is a TQMainWindow the dock window will be docked in the main window's Top dock area.
.PP
If \fIp\fR is OutsideDock, the dock window is created as a floating window.
.PP
We recommend creating the dock area InDock with a TQMainWindow as parent then calling TQMainWindow::moveDockWindow() to move the dock window where you want it.
.SH "QDockWindow::QDockWindow ( TQWidget * parent, const char * name = 0, WFlags f = 0 )"
Constructs a QDockWindow with parent \fIparent\fR, called \fIname\fR and with widget flags \fIf\fR.
.SH "QDockArea * QDockWindow::area () const"
.SH "TQDockWindow::TQDockWindow ( TQWidget * parent, const char * name = 0, WFlags f = 0 )"
Constructs a TQDockWindow with parent \fIparent\fR, called \fIname\fR and with widget flags \fIf\fR.
.SH "TQDockArea * TQDockWindow::area () const"
Returns the dock area in which this dock window is docked, or 0 if the dock window is floating.
.SH "TQBoxLayout * QDockWindow::boxLayout ()"
.SH "TQBoxLayout * TQDockWindow::boxLayout ()"
Returns the layout which is used for adding widgets to the dock window. The layout's orientation is set automatically to match the orientation of the dock window. You can add widgets to the layout using the box layout's TQBoxLayout::addWidget() function.
.PP
If the dock window only needs to contain a single widget use setWidget() instead.
.PP
See also setWidget() and setOrientation().
.SH "int QDockWindow::closeMode () const"
.SH "int TQDockWindow::closeMode () const"
Returns the close mode of a dock window. See the "closeMode" property for details.
Docks the dock window into the last dock area in which it was docked.
.PP
If the dock window has no last dock area (e.g. it was created as a floating window and has never been docked), or if the last dock area it was docked in does not exist (e.g. the dock area has been deleted), nothing happens.
.PP
The dock window will dock with the dock area regardless of the return value of QDockArea::isDockWindowAccepted().
The dock window will dock with the dock area regardless of the return value of TQDockArea::isDockWindowAccepted().
.PP
See also undock(), QDockArea::moveDockWindow(), QDockArea::removeDockWindow(), TQMainWindow::moveDockWindow(), TQMainWindow::removeDockWindow(), and QDockArea::isDockWindowAccepted().
.SH "TQSize QDockWindow::fixedExtent () const"
See also undock(), TQDockArea::moveDockWindow(), TQDockArea::removeDockWindow(), TQMainWindow::moveDockWindow(), TQMainWindow::removeDockWindow(), and TQDockArea::isDockWindowAccepted().
.SH "TQSize TQDockWindow::fixedExtent () const"
Returns the dock window's preferred size (fixed extent).
.PP
See also setFixedExtentWidth() and setFixedExtentHeight().
.SH "bool QDockWindow::isCloseEnabled () const"
.SH "bool TQDockWindow::isCloseEnabled () const"
Returns TRUE if the dock window has a close button; otherwise returns FALSE. The result depends on the dock window's Place and its CloseMode.
Returns TRUE if the dock window is horizontally stretchable; otherwise returns FALSE. See the "horizontallyStretchable" property for details.
.SH "bool QDockWindow::isMovingEnabled () const"
.SH "bool TQDockWindow::isMovingEnabled () const"
Returns TRUE if the user can move the dock window within the dock area, move the dock window to another dock area, or float the dock window; otherwise returns FALSE. See the "movingEnabled" property for details.
.SH "bool QDockWindow::isResizeEnabled () const"
.SH "bool TQDockWindow::isResizeEnabled () const"
Returns TRUE if the dock window is resizeable; otherwise returns FALSE. See the "resizeEnabled" property for details.
.SH "bool QDockWindow::isStretchable () const"
.SH "bool TQDockWindow::isStretchable () const"
Returns TRUE if the dock window is stretchable in the current orientation(); otherwise returns FALSE. See the "stretchable" property for details.
.SH "void QDockWindow::orientationChanged ( Orientation o )\fC [signal]\fR"
.SH "void TQDockWindow::orientationChanged ( Orientation o )\fC [signal]\fR"
This signal is emitted when the orientation of the dock window is changed. The new orientation is \fIo\fR.
.SH "Place QDockWindow::place () const"
.SH "Place TQDockWindow::place () const"
This function returns where the dock window is placed. This is either InDock or OutsideDock.
.PP
See also QDockArea::moveDockWindow(), QDockArea::removeDockWindow(), TQMainWindow::moveDockWindow(), and TQMainWindow::removeDockWindow().
.SH "void QDockWindow::placeChanged ( QDockWindow::Place p )\fC [signal]\fR"
See also TQDockArea::moveDockWindow(), TQDockArea::removeDockWindow(), TQMainWindow::moveDockWindow(), and TQMainWindow::removeDockWindow().
.SH "void TQDockWindow::placeChanged ( TQDockWindow::Place p )\fC [signal]\fR"
This signal is emitted when the dock window is docked (\fIp\fR is InDock), undocked (\fIp\fR is OutsideDock) or moved inside the the dock area.
.PP
See also QDockArea::moveDockWindow(), QDockArea::removeDockWindow(), TQMainWindow::moveDockWindow(), and TQMainWindow::removeDockWindow().
.SH "void QDockWindow::setCloseMode ( int m )\fC [virtual]\fR"
See also TQDockArea::moveDockWindow(), TQDockArea::removeDockWindow(), TQMainWindow::moveDockWindow(), and TQMainWindow::removeDockWindow().
.SH "void TQDockWindow::setCloseMode ( int m )\fC [virtual]\fR"
Sets the close mode of a dock window to \fIm\fR. See the "closeMode" property for details.
.SH "void QDockWindow::setFixedExtentHeight ( int h )\fC [virtual]\fR"
.SH "void TQDockWindow::setFixedExtentHeight ( int h )\fC [virtual]\fR"
Sets the dock window's preferred height for its fixed extent (size) to \fIh\fR.
.PP
See also setFixedExtentWidth().
.SH "void QDockWindow::setFixedExtentWidth ( int w )\fC [virtual]\fR"
.SH "void TQDockWindow::setFixedExtentWidth ( int w )\fC [virtual]\fR"
Sets the dock window's preferred width for its fixed extent (size) to \fIw\fR.
.PP
See also setFixedExtentHeight().
.SH "void QDockWindow::setHorizontalStretchable ( bool b )"
.SH "void TQDockWindow::setHorizontalStretchable ( bool b )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.SH "void QDockWindow::setHorizontallyStretchable ( bool b )\fC [virtual]\fR"
.SH "void TQDockWindow::setHorizontallyStretchable ( bool b )\fC [virtual]\fR"
Sets whether the dock window is horizontally stretchable to \fIb\fR. See the "horizontallyStretchable" property for details.
.SH "void QDockWindow::setMovingEnabled ( bool b )\fC [virtual]\fR"
.SH "void TQDockWindow::setMovingEnabled ( bool b )\fC [virtual]\fR"
Sets whether the user can move the dock window within the dock area, move the dock window to another dock area, or float the dock window to \fIb\fR. See the "movingEnabled" property for details.
.SH "void QDockWindow::setNewLine ( bool b )\fC [virtual]\fR"
.SH "void TQDockWindow::setNewLine ( bool b )\fC [virtual]\fR"
Sets whether the dock window prefers to start a new line in the dock area to \fIb\fR. See the "newLine" property for details.
.SH "void QDockWindow::setOffset ( int o )\fC [virtual]\fR"
.SH "void TQDockWindow::setOffset ( int o )\fC [virtual]\fR"
Sets the dock window's preferred offset from the dock area's left edge (top edge for vertical dock areas) to \fIo\fR. See the "offset" property for details.
.SH "void QDockWindow::setOpaqueMoving ( bool b )\fC [virtual]\fR"
.SH "void TQDockWindow::setOpaqueMoving ( bool b )\fC [virtual]\fR"
Sets whether the dock window will be shown normally whilst it is being moved to \fIb\fR. See the "opaqueMoving" property for details.
.SH "void QDockWindow::setOrientation ( Orientation o )\fC [virtual slot]\fR"
.SH "void TQDockWindow::setOrientation ( Orientation o )\fC [virtual slot]\fR"
Sets the orientation of the dock window to \fIo\fR. The orientation is propagated to the layout boxLayout().
.PP
\fBWarning:\fR All undocked TQToolBars will always have a horizontal orientation.
.SH "void QDockWindow::setResizeEnabled ( bool b )\fC [virtual]\fR"
.SH "void TQDockWindow::setResizeEnabled ( bool b )\fC [virtual]\fR"
Sets whether the dock window is resizeable to \fIb\fR. See the "resizeEnabled" property for details.
.SH "void QDockWindow::setVerticalStretchable ( bool b )"
.SH "void TQDockWindow::setVerticalStretchable ( bool b )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.SH "void QDockWindow::setVerticallyStretchable ( bool b )\fC [virtual]\fR"
.SH "void TQDockWindow::setVerticallyStretchable ( bool b )\fC [virtual]\fR"
Sets whether the dock window is vertically stretchable to \fIb\fR. See the "verticallyStretchable" property for details.
.SH "void QDockWindow::setWidget ( TQWidget * w )\fC [virtual]\fR"
.SH "void TQDockWindow::setWidget ( TQWidget * w )\fC [virtual]\fR"
This signal is emitted when the visibility of the dock window relatively to its dock area is changed. If \fIvisible\fR is TRUE, the QDockWindow is now visible to the dock area, otherwise it has been hidden.
See also dock(), TQDockArea::moveDockWindow(), TQDockArea::removeDockWindow(), TQMainWindow::moveDockWindow(), and TQMainWindow::removeDockWindow().
This signal is emitted when the visibility of the dock window relatively to its dock area is changed. If \fIvisible\fR is TRUE, the TQDockWindow is now visible to the dock area, otherwise it has been hidden.
.PP
A dock window can be hidden if it has a close button which the user has clicked. In the case of a TQMainWindow a dock window can have its visibility changed (hidden or shown) by clicking its name in the dock window menu that lists the TQMainWindow's dock windows.
.SH "TQWidget * QDockWindow::widget () const"
.SH "TQWidget * TQDockWindow::widget () const"
Returns the dock window's main widget.
.PP
See also setWidget().
@ -378,7 +378,7 @@ See also resizeEnabled.
.PP
Bugs and limitations:
.TP
Strecthability is broken. You must call setResizeEnabled(TRUE) to get proper behavior and even then QDockWindow does not limit stretchablilty.
Strecthability is broken. You must call setResizeEnabled(TRUE) to get proper behavior and even then TQDockWindow does not limit stretchablilty.
.PP
Set this property's value with setHorizontallyStretchable() and get this property's value with isHorizontallyStretchable().
.SH "bool movingEnabled"
@ -428,7 +428,7 @@ See also resizeEnabled.
.PP
Bugs and limitations:
.TP
Strecthability is broken. You must call setResizeEnabled(TRUE) to get proper behavior and even then QDockWindow does not limit stretchablilty.
Strecthability is broken. You must call setResizeEnabled(TRUE) to get proper behavior and even then TQDockWindow does not limit stretchablilty.
.PP
Get this property's value with isStretchable().
.SH "bool verticallyStretchable"
@ -440,12 +440,12 @@ See also resizeEnabled.
.PP
Bugs and limitations:
.TP
Strecthability is broken. You must call setResizeEnabled(TRUE) to get proper behavior and even then QDockWindow does not limit stretchablilty.
Strecthability is broken. You must call setResizeEnabled(TRUE) to get proper behavior and even then TQDockWindow does not limit stretchablilty.
.PP
Set this property's value with setVerticallyStretchable() and get this property's value with isVerticallyStretchable().
.SH "SEE ALSO"
.BR http://doc.trolltech.com/ntqdockwindow.html
.BR http://doc.trolltech.com/tqdockwindow.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
The QDoubleValidator class provides range checking of floating-point numbers.
The TQDoubleValidator class provides range checking of floating-point numbers.
.PP
QDoubleValidator provides an upper bound, a lower bound and a limit on the number of digits after the decimal point. It does not provide a fixup() function.
TQDoubleValidator provides an upper bound, a lower bound and a limit on the number of digits after the decimal point. It does not provide a fixup() function.
.PP
You can set the acceptable range in one call with setRange(), or with setBottom() and setTop(). Set the number of decimal places with setDecimals(). The validate() function returns the validation state.
.PP
See also QIntValidator, TQRegExpValidator, and Miscellaneous Classes.
Constructs a validator object with parent \fIparent\fR, called \fIname\fR, which accepts any double.
.SH "QDoubleValidator::QDoubleValidator ( double bottom, double top, int decimals, TQObject * parent, const char * name = 0 )"
.SH "TQDoubleValidator::TQDoubleValidator ( double bottom, double top, int decimals, TQObject * parent, const char * name = 0 )"
Constructs a validator object with parent \fIparent\fR, called \fIname\fR. This validator will accept doubles from \fIbottom\fR to \fItop\fR inclusive, with up to \fIdecimals\fR digits after the decimal point.
.SH "QDoubleValidator::~QDoubleValidator ()"
.SH "TQDoubleValidator::~TQDoubleValidator ()"
Destroys the validator, freeing any resources used.
.SH "double QDoubleValidator::bottom () const"
.SH "double TQDoubleValidator::bottom () const"
Returns the validator's minimum acceptable value. See the "bottom" property for details.
.SH "int QDoubleValidator::decimals () const"
.SH "int TQDoubleValidator::decimals () const"
Returns the validator's maximum number of digits after the decimal point. See the "decimals" property for details.
Returns Acceptable if the string \fIinput\fR contains a double that is within the valid range and is in the correct format.
.PP
Returns Intermediate if \fIinput\fR contains a double that is outside the range or is in the wrong format, e.g. with too many digits after the decimal point or is empty.
@ -99,7 +99,7 @@ Returns Invalid if the \fIinput\fR is not a double.
.PP
Note: If the valid range consists of just positive doubles (e.g. 0.0 - 100.0) and \fIinput\fR is a negative double then Invalid is returned.
.PP
Reimplemented from QValidator.
Reimplemented from TQValidator.
.SS "Property Documentation"
.SH "double bottom"
This property holds the validator's minimum acceptable value.
@ -121,7 +121,7 @@ Set this property's value with setTop() and get this property's value with top()
The QErrorMessage class provides an error message display dialog.
The TQErrorMessage class provides an error message display dialog.
.PP
This is basically a TQLabel and a "show this message again" checkbox which remembers what not to show.
.PP
There are two ways to use this class: <ol type=1>
.IP 1
For production applications. In this context the class can be used to display messages which you don't need the user to see more than once. To use QErrorMessage like this, you create the dialog in the usual way and call the message() slot, or connect signals to it.
For production applications. In this context the class can be used to display messages which you don't need the user to see more than once. To use TQErrorMessage like this, you create the dialog in the usual way and call the message() slot, or connect signals to it.
.IP 2
For developers. In this context the static qtHandler() installs a message handler using qInstallMsgHandler() and creates a QErrorMessage that displays tqDebug(), tqWarning() and tqFatal() messages.
For developers. In this context the static qtHandler() installs a message handler using qInstallMsgHandler() and creates a TQErrorMessage that displays tqDebug(), tqWarning() and tqFatal() messages.
.PP
In both cases QErrorMessage will queue pending messages, and display them (or not) in order, as soon as the user presses Enter or clicks OK after seeing each message.
In both cases TQErrorMessage will queue pending messages, and display them (or not) in order, as soon as the user presses Enter or clicks OK after seeing each message.
.PP
<center>
.ce 1
@ -55,21 +55,21 @@ In both cases QErrorMessage will queue pending messages, and display them (or no
.PP
See also QMessageBox, TQStatusBar::message(), Dialog Classes, and Miscellaneous Classes.
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@ -7,9 +7,9 @@
.ad l
.nh
.SH NAME
QFocusData \- Maintains the list of widgets in the focus chain
TQFocusData \- Maintains the list of widgets in the focus chain
.SH SYNOPSIS
\fC#include <ntqfocusdata.h>\fR
\fC#include <tqfocusdata.h>\fR
.PP
.SS "Public Members"
.in +1c
@ -36,7 +36,7 @@ QFocusData \- Maintains the list of widgets in the focus chain
.br
.in -1c
.SH DESCRIPTION
The QFocusData class maintains the list of widgets in the focus chain.
The TQFocusData class maintains the list of widgets in the focus chain.
.PP
This read-only list always contains at least one widget (i.e. the top-level widget). It provides a simple cursor which can be reset to the current focus widget using home(), or moved to its neighboring widgets using next() and prev(). You can also retrieve the count() of the number of widgets in the list. The list is a loop, so if you keep iterating, for example using next(), you will never come to the end.
.PP
@ -50,24 +50,24 @@ This class is \fInot\fR thread-safe.
.PP
See also TQWidget::focusNextPrevChild(), TQWidget::setTabOrder(), TQWidget::focusPolicy, and Miscellaneous Classes.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "int QFocusData::count () const"
.SH "int TQFocusData::count () const"
Returns the number of widgets in the focus chain.
.SH "TQWidget * QFocusData::first () const"
.SH "TQWidget * TQFocusData::first () const"
Returns the first widget in the focus chain. The cursor is not modified.
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@ -7,7 +7,7 @@
.ad l
.nh
.SH NAME
QFocusEvent \- Event parameters for widget focus events
TQFocusEvent \- Event parameters for widget focus events
.SH SYNOPSIS
\fC#include <tqevent.h>\fR
.PP
@ -16,7 +16,7 @@ Inherits TQEvent.
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQFocusEvent\fR ( Type type )"
.BI "\fBTQFocusEvent\fR ( Type type )"
.br
.ti -1c
.BI "bool \fBgotFocus\fR () const"
@ -41,7 +41,7 @@ Inherits TQEvent.
.br
.in -1c
.SH DESCRIPTION
The QFocusEvent class contains event parameters for widget focus events.
The TQFocusEvent class contains event parameters for widget focus events.
.PP
Focus events are sent to widgets when the keyboard input focus changes. Focus events occur due to mouse actions, keypresses (e.g. Tab or Backtab), the window system, popup menus, keyboard shortcuts or other application specific reasons. The reason for a particular focus event is returned by reason() in the appropriate event handler.
.PP
@ -51,48 +51,48 @@ Use setReason() to set the reason for all focus events, and resetReason() to set
.PP
See also TQWidget::setFocus(), TQWidget::focusPolicy, and Event Classes.
.SS "Member Type Documentation"
.SH "QFocusEvent::Reason"
.SH "TQFocusEvent::Reason"
This enum specifies why the focus changed.
.TP
\fCQFocusEvent::Mouse\fR - because of a mouse action.
\fCTQFocusEvent::Mouse\fR - because of a mouse action.
.TP
\fCQFocusEvent::Tab\fR - because of a Tab press.
\fCTQFocusEvent::Tab\fR - because of a Tab press.
.TP
\fCQFocusEvent::Backtab\fR - because of a Backtab press (possibly including Shift/Control, e.g. Shift+Tab).
\fCTQFocusEvent::Backtab\fR - because of a Backtab press (possibly including Shift/Control, e.g. Shift+Tab).
.TP
\fCQFocusEvent::ActiveWindow\fR - because the window system made this window (in)active.
\fCTQFocusEvent::ActiveWindow\fR - because the window system made this window (in)active.
.TP
\fCQFocusEvent::Popup\fR - because the application opened/closed a popup that grabbed/released focus.
\fCTQFocusEvent::Popup\fR - because the application opened/closed a popup that grabbed/released focus.
.TP
\fCQFocusEvent::Shortcut\fR - because of a keyboard shortcut.
\fCTQFocusEvent::Shortcut\fR - because of a keyboard shortcut.
.TP
\fCQFocusEvent::Other\fR - any other reason, usually application-specific.
\fCTQFocusEvent::Other\fR - any other reason, usually application-specific.
.PP
See the keyboard focus overview for more about focus.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QFocusEvent::QFocusEvent ( Type type )"
.SH "TQFocusEvent::TQFocusEvent ( Type type )"
Constructs a focus event object.
.PP
The \fItype\fR parameter must be either TQEvent::FocusIn or TQEvent::FocusOut.
.SH "bool QFocusEvent::gotFocus () const"
.SH "bool TQFocusEvent::gotFocus () const"
Returns TRUE if the widget received the text input focus; otherwise returns FALSE.
.SH "bool QFocusEvent::lostFocus () const"
.SH "bool TQFocusEvent::lostFocus () const"
Returns TRUE if the widget lost the text input focus; otherwise returns FALSE.
@ -53,7 +53,7 @@ A TQImageDecoder is a machine that decodes images. It takes encoded image data v
.PP
TQImageFormatType and TQImageFormat are the classes that you might need to implement support for additional image formats.
.PP
Qt supports GIF reading if it is configured that way during installation (see ntqgif.h). If it is, we are required to state that" The Graphics Interchange Format(c) is the Copyright property of CompuServe Incorporated. GIF(sm) is a Service Mark property of CompuServe Incorporated."
Qt supports GIF reading if it is configured that way during installation (see tqgif.h). If it is, we are required to state that" The Graphics Interchange Format(c) is the Copyright property of CompuServe Incorporated. GIF(sm) is a Service Mark property of CompuServe Incorporated."
.PP
\fBWarning:\fR If you are in a country that recognizes software patents and in which Unisys holds a patent on LZW compression and/or decompression and you want to use GIF, Unisys may require you to license that technology. Such countries include Canada, Japan, the USA, France, Germany, Italy and the UK.
Returns Acceptable if the \fIinput\fR is an integer within the valid range, Intermediate if the \fIinput\fR is an integer outside the valid range and Invalid if the \fIinput\fR is not an integer.
.PP
Note: If the valid range consists of just positive integers (e.g. 32 - 100) and \fIinput\fR is a negative integer then Invalid is returned.
@ -162,7 +162,7 @@ Note: If the valid range consists of just positive integers (e.g. 32 - 100) and
.br
.fi
.PP
Reimplemented from QValidator.
Reimplemented from TQValidator.
.SS "Property Documentation"
.SH "int bottom"
This property holds the validator's lowest acceptable value.
Sets this line edit to only accept input that the validator, \fIv\fR, will accept. This allows you to place any arbitrary constraints on the text which may be entered.
.PP
If \fIv\fR == 0, setValidator() removes the current input validator. The initial setting is to have no input validator (i.e. any input is accepted up to maxLength()).
.PP
See also validator(), QIntValidator, QDoubleValidator, and TQRegExpValidator.
See also validator(), QIntValidator, TQDoubleValidator, and TQRegExpValidator.
.PP
Examples:
.)l lineedits/lineedits.cpp and wizard/wizard.cpp.
@ -537,7 +537,7 @@ Examples:
Undoes the last operation if undo is available. Deselects any current selection, and updates the selection start to the current cursor position.
.SH "bool TQLineEdit::validateAndSet ( const TQString & newText, int newPos, int newMarkAnchor, int newMarkDrag )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. Use setText(), setCursorPosition() and setSelection() instead.
@ -372,13 +372,13 @@ The main window will take care of the dock areas, and the geometry of the centra
.PP
TQMainWindow provides a TQToolTipGroup connected to the status bar. The function toolTipGroup() provides access to the default TQToolTipGroup. It isn't possible to set a different tool tip group.
.PP
New dock windows and toolbars can be added to a TQMainWindow using addDockWindow(). Dock windows can be moved using moveDockWindow() and removed with removeDockWindow(). TQMainWindow allows default dock window (toolbar) docking in all its dock areas (Top, Left, Right, Bottom). You can use setDockEnabled() to enable and disable docking areas for dock windows. When adding or moving dock windows you can specify their 'edge' (dock area). The currently available edges are: Top, Left, Right, Bottom, Minimized (effectively a 'hidden' dock area) and TornOff (floating). See TQt::Dock for an explanation of these areas. Note that the *ToolBar functions are included for backward compatibility; all new code should use the *DockWindow functions. TQToolbar is a subclass of QDockWindow so all functions that work with dock windows work on toolbars in the same way.
New dock windows and toolbars can be added to a TQMainWindow using addDockWindow(). Dock windows can be moved using moveDockWindow() and removed with removeDockWindow(). TQMainWindow allows default dock window (toolbar) docking in all its dock areas (Top, Left, Right, Bottom). You can use setDockEnabled() to enable and disable docking areas for dock windows. When adding or moving dock windows you can specify their 'edge' (dock area). The currently available edges are: Top, Left, Right, Bottom, Minimized (effectively a 'hidden' dock area) and TornOff (floating). See TQt::Dock for an explanation of these areas. Note that the *ToolBar functions are included for backward compatibility; all new code should use the *DockWindow functions. TQToolbar is a subclass of TQDockWindow so all functions that work with dock windows work on toolbars in the same way.
.PP
If the user clicks the close button, then the dock window is hidden. A dock window can be hidden or unhidden by the user by right clicking a dock area and clicking the name of the relevant dock window on the pop up dock window menu. This menu lists the names of every dock window; visible dock windows have a tick beside their names. The dock window menu is created automatically as required by createDockWindowMenu(). Since it may not always be appropriate for a dock window to appear on this menu the setAppropriate() function is used to inform the main window whether or not the dock window menu should include a particular dock window. Double clicking a dock window handle (usually on the left-hand side of the dock window) undocks (floats) the dock window. Double clicking a floating dock window's titlebar will dock the floating dock window. (See also TQMainWindow::DockWindows.)
.PP
Some functions change the appearance of a TQMainWindow globally:
.TP
QDockWindow::setHorizontalStretchable() and QDockWindow::setVerticalStretchable() are used to make specific dock windows or toolbars stretchable.
TQDockWindow::setHorizontalStretchable() and TQDockWindow::setVerticalStretchable() are used to make specific dock windows or toolbars stretchable.
.TP
setUsesBigPixmaps() is used to set whether tool buttons should draw small or large pixmaps (see TQIconSet for more information).
.TP
@ -386,7 +386,7 @@ setUsesTextLabel() is used to set whether tool buttons should display a textual
.PP
The user can drag dock windows into any enabled docking area. Dock windows can also be dragged \fIwithin\fR a docking area, for example to rearrange the order of some toolbars. Dock windows can also be dragged outside any docking area (undocked or 'floated'). Being able to drag dock windows can be enabled (the default) and disabled using setDockWindowsMovable().
.PP
The Minimized edge is a hidden dock area. If this dock area is enabled the user can hide (minimize) a dock window or show (restore) a minimized dock window by clicking the dock window handle. If the user hovers the mouse cursor over one of the handles, the caption of the dock window is displayed in a tool tip (see QDockWindow::caption() or TQToolBar::label()), so if you enable the Minimized dock area, it is best to specify a meaningful caption or label for each dock window. To minimize a dock window programmatically use moveDockWindow() with an edge of Minimized.
The Minimized edge is a hidden dock area. If this dock area is enabled the user can hide (minimize) a dock window or show (restore) a minimized dock window by clicking the dock window handle. If the user hovers the mouse cursor over one of the handles, the caption of the dock window is displayed in a tool tip (see TQDockWindow::caption() or TQToolBar::label()), so if you enable the Minimized dock area, it is best to specify a meaningful caption or label for each dock window. To minimize a dock window programmatically use moveDockWindow() with an edge of Minimized.
.PP
Dock windows are moved transparently by default, i.e. during the drag an outline rectangle is drawn on the screen representing the position of the dock window as it moves. If you want the dock window to be shown normally whilst it is moved use setOpaqueMoving().
.PP
@ -452,11 +452,11 @@ To restore the dock window positions and sizes (normally when the application is
.PP
The TQSettings class can be used in conjunction with the streaming operators to store the application's settings.
.PP
TQMainWindow's management of dock windows and toolbars is done transparently behind-the-scenes by QDockArea.
TQMainWindow's management of dock windows and toolbars is done transparently behind-the-scenes by TQDockArea.
.PP
For multi-document interfaces (MDI), use a TQWorkspace as the central widget.
.PP
Adding dock windows, e.g. toolbars, to TQMainWindow's dock areas is straightforward. If the supplied dock areas are not sufficient for your application we suggest that you create a TQWidget subclass and add your own dock areas (see QDockArea) to the subclass since TQMainWindow provides functionality specific to the standard dock areas it provides.
Adding dock windows, e.g. toolbars, to TQMainWindow's dock areas is straightforward. If the supplied dock areas are not sufficient for your application we suggest that you create a TQWidget subclass and add your own dock areas (see TQDockArea) to the subclass since TQMainWindow provides functionality specific to the standard dock areas it provides.
.PP
.ce 1
.B "[Image Omitted]"
@ -465,7 +465,7 @@ Adding dock windows, e.g. toolbars, to TQMainWindow's dock areas is straightforw
.ce 1
.B "[Image Omitted]"
.PP
See also TQToolBar, QDockWindow, TQStatusBar, TQAction, TQMenuBar, TQPopupMenu, TQToolTipGroup, TQDialog, and Main Window and Related Classes.
See also TQToolBar, TQDockWindow, TQStatusBar, TQAction, TQMenuBar, TQPopupMenu, TQToolTipGroup, TQDialog, and Main Window and Related Classes.
.SS "Member Type Documentation"
.SH "TQMainWindow::DockWindows"
Right-clicking a dock area will pop-up the dock window menu (createDockWindowMenu() is called automatically). When called in code you can specify what items should appear on the menu with this enum.
@ -482,13 +482,13 @@ Constructs an empty main window. The \fIparent\fR, \fIname\fR and widget flags \
By default, the widget flags are set to WType_TopLevel rather than 0 as they are with TQWidget. If you don't want your TQMainWindow to be a top level widget then you will need to set \fIf\fR to 0.
.SH "TQMainWindow::~TQMainWindow ()"
Destroys the object and frees any allocated resources.
Adds \fIdockWindow\fR to the \fIedge\fR dock area.
.PP
If \fInewLine\fR is FALSE (the default) then the \fIdockWindow\fR is added at the end of the \fIedge\fR. For vertical edges the end is at the bottom, for horizontal edges (including Minimized) the end is at the right. If \fInewLine\fR is TRUE a new line of dock windows is started with \fIdockWindow\fR as the first (left-most and top-most) dock window.
.PP
If \fIdockWindow\fR is managed by another main window, it is first removed from that window.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Adds \fIdockWindow\fR to the dock area with label \fIlabel\fR.
@ -496,13 +496,13 @@ Adds \fIdockWindow\fR to the dock area with label \fIlabel\fR.
If \fInewLine\fR is FALSE (the default) the \fIdockWindow\fR is added at the end of the \fIedge\fR. For vertical edges the end is at the bottom, for horizontal edges (including Minimized) the end is at the right. If \fInewLine\fR is TRUE a new line of dock windows is started with \fIdockWindow\fR as the first (left-most and top-most) dock window.
.PP
If \fIdockWindow\fR is managed by another main window, it is first removed from that window.
@ -550,21 +550,21 @@ The function is intended, for example, to provide the user with a means of telli
The default implementation does nothing and the Customize menu item is not shown on the right-click menu by default. If you want the item to appear then reimplement isCustomizable() to return TRUE, and reimplement this function to do whatever you want.
This signal is emitted when the \fIdockWindow\fR has changed its position. A change in position occurs when a dock window is moved within its dock area or moved to another dock area (including the Minimized and \fCTearOff\fR dock areas).
.PP
See also getLocation().
.SH "TQPtrList<QDockWindow> TQMainWindow::dockWindows ( Dock dock ) const"
.SH "TQPtrList<TQDockWindow> TQMainWindow::dockWindows ( Dock dock ) const"
Returns a list of all the dock windows which are in the \fIdock\fR dock area, regardless of their state.
.PP
For example, the DockTornOff dock area may contain closed dock windows but these are returned along with the visible dock windows.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the list of dock windows which belong to this main window, regardless of which dock area they are in or what their state is, (e.g. irrespective of whether they are visible or not).
Returns TRUE if the dock windows are movable; otherwise returns FALSE. See the "dockWindowsMovable" property for details.
.SH "bool TQMainWindow::getLocation ( QDockWindow * dw, Dock & dock, int & index, bool & nl, int & extraOffset ) const"
.SH "bool TQMainWindow::getLocation ( TQDockWindow * dw, Dock & dock, int & index, bool & nl, int & extraOffset ) const"
Finds the location of the dock window \fIdw\fR.
.PP
If the \fIdw\fR dock window is found in the main window the function returns TRUE and populates the \fIdock\fR variable with the dw's dock area and the \fIindex\fR with the dw's position within the dock area. It also sets \fInl\fR to TRUE if the \fIdw\fR begins a new line (otherwise FALSE), and \fIextraOffset\fR with the dock window's offset.
@ -574,7 +574,7 @@ If the \fIdw\fR dock window is not found then the function returns FALSE and the
If you want to save and restore dock window positions then use operator>>() and operator<<().
Returns TRUE if the dock area dock window menu includes the Customize menu item (which calls customize() when clicked). Returns FALSE by default, i.e. the popup menu will not contain a Customize menu item. You will need to reimplement this function and set it to return TRUE if you wish the user to be able to see the dock window menu.
@ -584,19 +584,19 @@ See also customize().
Returns TRUE if the \fIdock\fR dock area is enabled, i.e. it can accept user dragged dock windows; otherwise returns FALSE.
.PP
See also setDockEnabled().
.SH "bool TQMainWindow::isDockEnabled ( QDockArea * area ) const"
.SH "bool TQMainWindow::isDockEnabled ( TQDockArea * area ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns TRUE if dock area \fIarea\fR is enabled, i.e. it can accept user dragged dock windows; otherwise returns FALSE.
.PP
See also setDockEnabled().
.SH "bool TQMainWindow::isDockEnabled ( QDockWindow * tb, Dock dock ) const"
.SH "bool TQMainWindow::isDockEnabled ( TQDockWindow * tb, Dock dock ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns TRUE if dock area \fIdock\fR is enabled for the dock window \fItb\fR; otherwise returns FALSE.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns TRUE if dock area \fIarea\fR is enabled for the dock window \fIdw\fR; otherwise returns FALSE.
@ -608,7 +608,7 @@ Returns TRUE, if the dock window menu is enabled; otherwise returns FALSE.
The menu lists the (appropriate()) dock windows (which may be shown or hidden), and has a "Line Up Dock Windows" menu item. It will also have a "Customize" menu item if isCustomizable() returns TRUE.
.PP
See also setDockEnabled(), lineUpDockWindows(), appropriate(), and setAppropriate().
Moves \fIdockWindow\fR to the end of the \fIedge\fR.
.PP
For vertical edges the end is at the bottom, for horizontal edges (including Minimized) the end is at the right.
.PP
If \fIdockWindow\fR is managed by another main window, it is first removed from that window.
.SH "void TQMainWindow::moveDockWindow ( QDockWindow * dockWindow, Dock edge, bool nl, int index, int extraOffset = -1 )\fC [virtual]\fR"
.SH "void TQMainWindow::moveDockWindow ( TQDockWindow * dockWindow, Dock edge, bool nl, int index, int extraOffset = -1 )\fC [virtual]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Moves \fIdockWindow\fR to position \fIindex\fR within the \fIedge\fR dock area.
@ -646,9 +646,9 @@ If \fInl\fR is TRUE, a new dock window line is created below the line in which t
The \fIextraOffset\fR is the space to put between the left side of the dock area (top side for vertical dock areas) and the dock window. (This is mostly used for restoring dock windows to the positions the user has dragged them to.)
.PP
If \fIdockWindow\fR is managed by another main window, it is first removed from that window.
.SH "void TQMainWindow::moveToolBar ( QDockWindow *, Dock = DockTop )"
.SH "void TQMainWindow::moveToolBar ( TQDockWindow *, Dock = DockTop )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.SH "void TQMainWindow::moveToolBar ( QDockWindow *, Dock, bool nl, int index, int extraOffset = -1 )"
.SH "void TQMainWindow::moveToolBar ( TQDockWindow *, Dock, bool nl, int index, int extraOffset = -1 )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
@ -656,17 +656,17 @@ This is an overloaded member function, provided for convenience. It behaves esse
Returns TRUE if dock windows are moved opaquely; otherwise returns FALSE. See the "opaqueMoving" property for details.
This signal is emitted whenever the setUsesBigPixmaps() is called with a value different to the current setting. All widgets that should respond to such changes, e.g. toolbar buttons, must connect to this signal.
Use this function to control whether or not the \fIdw\fR dock window's caption should appear as a menu item on the dock window menu that lists the dock windows.
.PP
If \fIa\fR is TRUE then the \fIdw\fR will appear as a menu item on the dock window menu. The user is able to change the state (show or hide) a dock window that has a menu item by clicking the item; depending on the state of your application, this may or may not be appropriate. If \fIa\fR is FALSE the \fIdw\fR will not appear on the popup menu.
@ -682,7 +682,7 @@ See also centralWidget().
If \fIenable\fR is TRUE then users can dock windows in the \fIdock\fR area. If \fIenable\fR is FALSE users cannot dock windows in the \fIdock\fR dock area.
.PP
Users can dock (drag) dock windows into any enabled dock area.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
If \fIenable\fR is TRUE then users can dock the \fIdw\fR dock window in the \fIdock\fR area. If \fIenable\fR is FALSE users cannot dock the \fIdw\fR dock window in the \fIdock\fR area.
@ -732,7 +732,7 @@ See also dockWindows().
Returns this main window's tool tip group. If there isn't one, toolTipGroup() creates an empty tool tip group.
.PP
See also menuBar() and statusBar().
.SH "QDockArea * TQMainWindow::topDock () const"
.SH "TQDockArea * TQMainWindow::topDock () const"
Returns the Top dock area
.PP
See also bottomDock(), leftDock(), and rightDock().
@ -784,7 +784,7 @@ This property holds whether the main window right-justifies its dock windows.
.PP
If disabled (the default), stretchable dock windows are expanded, and non-stretchable dock windows are given the minimum space they need. Since most dock windows are not stretchable, this usually results in an unjustified right edge (or unjustified bottom edge for a vertical dock area). If enabled, the main window will right-justify its dock windows.
.PP
See also QDockWindow::setVerticalStretchable() and QDockWindow::setHorizontalStretchable().
See also TQDockWindow::setVerticalStretchable() and TQDockWindow::setHorizontalStretchable().
.PP
Set this property's value with setRightJustification() and get this property's value with rightJustification().
@ -132,7 +132,7 @@ TQMovie objects are explicitly shared. This means that a TQMovie copied from ano
.PP
The set of data formats supported by TQMovie is determined by the decoder factories that have been installed; the format of the input is determined as the input is decoded.
.PP
The supported formats are MNG (if TQt is configured with MNG support enabled) and GIF (if TQt is configured with GIF support enabled, see ntqgif.h).
The supported formats are MNG (if TQt is configured with MNG support enabled) and GIF (if TQt is configured with GIF support enabled, see tqgif.h).
.PP
If TQt is configured to support GIF reading, we are required to state that "The Graphics Interchange Format(c) is the Copyright property of CompuServe Incorporated. GIF(sm) is a Service Mark property of CompuServe Incorporated.
.SH "void qDrawPlainRect ( TQPainter * p, int x, int y, int w, int h, const TQColor & c, int lineWidth, const TQBrush * fill )"
\fC#include <ntqdrawutil.h>\fR
\fC#include <tqdrawutil.h>\fR
.PP
Draws the plain rectangle specified by (\fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR) using the painter \fIp\fR.
.PP
@ -1589,7 +1589,7 @@ If you want to use a TQFrame widget instead, you can make it display a plain rec
.PP
See also qDrawShadeRect() and TQStyle::drawPrimitive().
.SH "void qDrawShadeLine ( TQPainter * p, int x1, int y1, int x2, int y2, const TQColorGroup & g, bool sunken, int lineWidth, int midLineWidth )"
\fC#include <ntqdrawutil.h>\fR
\fC#include <tqdrawutil.h>\fR
.PP
Draws a horizontal (\fIy1\fR == \fIy2\fR) or vertical (\fIx1\fR == \fIx2\fR) shaded line using the painter \fIp\fR.
.PP
@ -1609,7 +1609,7 @@ If you want to use a TQFrame widget instead, you can make it display a shaded li
.PP
See also qDrawShadeRect(), qDrawShadePanel(), and TQStyle::drawPrimitive().
.SH "void qDrawShadePanel ( TQPainter * p, int x, int y, int w, int h, const TQColorGroup & g, bool sunken, int lineWidth, const TQBrush * fill )"
\fC#include <ntqdrawutil.h>\fR
\fC#include <tqdrawutil.h>\fR
.PP
Draws the shaded panel specified by (\fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR) using the painter \fIp\fR.
.PP
@ -1627,7 +1627,7 @@ If you want to use a TQFrame widget instead, you can make it display a shaded pa
.PP
See also qDrawWinPanel(), qDrawShadeLine(), qDrawShadeRect(), and TQStyle::drawPrimitive().
.SH "void qDrawShadeRect ( TQPainter * p, int x, int y, int w, int h, const TQColorGroup & g, bool sunken, int lineWidth, int midLineWidth, const TQBrush * fill )"
\fC#include <ntqdrawutil.h>\fR
\fC#include <tqdrawutil.h>\fR
.PP
Draws the shaded rectangle specified by (\fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR) using the painter \fIp\fR.
.PP
@ -1647,7 +1647,7 @@ If you want to use a TQFrame widget instead, you can make it display a shaded re
.PP
See also qDrawShadeLine(), qDrawShadePanel(), qDrawPlainRect(), TQStyle::drawItem(), TQStyle::drawControl(), and TQStyle::drawComplexControl().
.SH "void qDrawWinButton ( TQPainter * p, int x, int y, int w, int h, const TQColorGroup & g, bool sunken, const TQBrush * fill )"
\fC#include <ntqdrawutil.h>\fR
\fC#include <tqdrawutil.h>\fR
.PP
Draws the Windows-style button specified by (\fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR) using the painter \fIp\fR.
.PP
@ -1663,7 +1663,7 @@ The button's interior is filled with the \fI*fill\fR brush unless \fIfill\fR is
.PP
See also qDrawWinPanel() and TQStyle::drawControl().
.SH "void qDrawWinPanel ( TQPainter * p, int x, int y, int w, int h, const TQColorGroup & g, bool sunken, const TQBrush * fill )"
\fC#include <ntqdrawutil.h>\fR
\fC#include <tqdrawutil.h>\fR
.PP
Draws the Windows-style panel specified by (\fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR) using the painter \fIp\fR.
Returns Acceptable if \fIinput\fR is matched by the regular expression for this validator, Intermediate if it has matched partially (i.e. could be a valid match if additional valid characters are added), and Invalid if \fIinput\fR is not matched.
.PP
The \fIpos\fR parameter is set to the length of the \fIinput\fR parameter.
@ -151,7 +151,7 @@ For example, if the regular expression is \fB\w\d\d\fR (that is, wor
.PP
See also TQRegExp::match() and TQRegExp::search().
@ -212,7 +212,7 @@ The \fIparent\fR and \fIname\fR arguments are sent on to the TQWidget constructo
Destructor.
.SH "bool TQScrollBar::draggingSlider () const"
Returns TRUE if the user has clicked the mouse on the slider and is currently dragging it; otherwise returns FALSE. See the "draggingSlider" property for details.
@ -24,7 +24,7 @@ The QShowEvent class provides an event which is sent when a widget is shown.
.PP
There are two kinds of show events: show events caused by the window system (spontaneous) and internal show events. Spontaneous show events are sent just after the window system shows the window, including after a top-level window has been shown (un-iconified) by the user. Internal show events are delivered just before the widget becomes visible.
Sets the suffix of the spin box to \fItext\fR. See the "suffix" property for details.
.SH "void TQSpinBox::setValidator ( const QValidator * v )\fC [virtual]\fR"
.SH "void TQSpinBox::setValidator ( const TQValidator * v )\fC [virtual]\fR"
Sets the validator to \fIv\fR. The validator controls what keyboard input is accepted when the user is editing in the value field. The default is to use a suitable QIntValidator.
.PP
Use setValidator(0) to turn off input validation (entered input will still be kept within the spin box's range).
@ -390,10 +390,10 @@ Returns the geometry of the "up" button.
Updates the contents of the embedded TQLineEdit to reflect the current value using mapValueToText(). Also enables/disables the up/down push buttons accordingly.
@ -256,7 +256,7 @@ This enum represents a ControlElement. A ControlElement is part of a widget that
.TP
\fCTQStyle::CE_MenuBarEmptyArea\fR - the empty area of a TQMenuBar.
.TP
\fCTQStyle::CE_DockWindowEmptyArea\fR - the empty area of a QDockWindow.
\fCTQStyle::CE_DockWindowEmptyArea\fR - the empty area of a TQDockWindow.
.TP
\fCTQStyle::CE_ToolBoxTab\fR - the toolbox's tab area
.TP
@ -410,7 +410,7 @@ This enum represents the PrimitiveElements of a style. A PrimitiveElement is a c
.TP
\fCTQStyle::PE_ExclusiveIndicatorMask\fR - bitmap mask for an exclusive indicator.
.TP
\fCTQStyle::PE_DockWindowHandle\fR - tear off handle for dock windows and toolbars, for example QDockWindows and TQToolBars.
\fCTQStyle::PE_DockWindowHandle\fR - tear off handle for dock windows and toolbars, for example TQDockWindows and TQToolBars.
.TP
\fCTQStyle::PE_DockWindowSeparator\fR - item separator for dock window and toolbar contents.
.TP
@ -638,7 +638,7 @@ This enum represents a StylePixmap. A StylePixmap is a pixmap that can follow so
.TP
\fCTQStyle::SP_MessageBoxQuestion\fR - the 'question' icon.
.TP
\fCTQStyle::SP_DockWindowCloseButton\fR - close button on dock windows; see also QDockWindow.
\fCTQStyle::SP_DockWindowCloseButton\fR - close button on dock windows; see also TQDockWindow.
.TP
\fCTQStyle::SP_CustomBase\fR - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
.PP
@ -988,7 +988,7 @@ The \fIwidget\fR argument is a pointer to a TQWidget or one of its subclasses. T
@ -11,7 +11,7 @@ TQToolBar \- Movable panel containing widgets such as tool buttons
.SH SYNOPSIS
\fC#include <tqtoolbar.h>\fR
.PP
Inherits QDockWindow.
Inherits TQDockWindow.
.PP
.SS "Public Members"
.in +1c
@ -54,7 +54,7 @@ The TQToolBar class provides a movable panel containing widgets such as tool but
.PP
A toolbar is a panel that contains a set of controls, usually represented by small icons. It's purpose is to provide quick access to frequently used commands or options. Within a TQMainWindow the user can drag toolbars within and between the dock areas. Toolbars can also be dragged out of any dock area to float freely as top-level windows.
.PP
TQToolBar is a specialization of QDockWindow, and so provides all the functionality of a QDockWindow.
TQToolBar is a specialization of TQDockWindow, and so provides all the functionality of a TQDockWindow.
.PP
To use TQToolBar you simply create a TQToolBar as a child of a TQMainWindow, create a number of TQToolButton widgets (or other widgets) in left to right (or top to bottom) order and call addSeparator() when you want a separator. When a toolbar is floated the caption used is the label given in the constructor call. This can be changed with setLabel().
.PP
@ -75,13 +75,13 @@ You may use most widgets within a toolbar, with TQToolButton and TQComboBox bein
.PP
If you create a new widget on an already visible TQToolBar, this widget will automatically become visible without needing a show() call. (This differs from every other TQt widget container. We recommend calling show() anyway since we hope to fix this anomaly in a future release.)
.PP
TQToolBars, like QDockWindows, are located in QDockAreas or float as top-level windows. TQMainWindow provides four QDockAreas (top, left, right and bottom). When you create a new toolbar (as in the example above) as a child of a TQMainWindow the toolbar will be added to the top dock area. You can move it to another dock area (or float it) by calling TQMainWindow::moveDockWindow(). QDock areas lay out their windows in Lines.
TQToolBars, like TQDockWindows, are located in TQDockAreas or float as top-level windows. TQMainWindow provides four TQDockAreas (top, left, right and bottom). When you create a new toolbar (as in the example above) as a child of a TQMainWindow the toolbar will be added to the top dock area. You can move it to another dock area (or float it) by calling TQMainWindow::moveDockWindow(). TQDock areas lay out their windows in Lines.
.PP
If the main window is resized so that the area occupied by the toolbar is too small to show all its widgets a little arrow button (which looks like a right-pointing chevron, '»') will appear at the right or bottom of the toolbar depending on its orientation. Clicking this button pops up a menu that shows the 'overflowing' items. TQToolButtons are represented in the menu using their textLabel property, other TQButton subclasses are represented using their text property, and TQComboBoxes are represented as submenus, with the caption text being used in the submenu item.
.PP
Usually a toolbar will get precisely the space it needs. However, with setHorizontalStretchable(), setVerticalStretchable() or setStretchableWidget() you can tell the main window to expand the toolbar to fill all available space in the specified orientation.
.PP
The toolbar arranges its buttons either horizontally or vertically (see orientation() for details). Generally, QDockArea will set the orientation correctly for you, but you can set it yourself with setOrientation() and track any changes by connecting to the orientationChanged() signal.
The toolbar arranges its buttons either horizontally or vertically (see orientation() for details). Generally, TQDockArea will set the orientation correctly for you, but you can set it yourself with setOrientation() and track any changes by connecting to the orientationChanged() signal.
.PP
You can use the clear() method to remove all items from a toolbar.
.PP
@ -98,7 +98,7 @@ See also TQToolButton, TQMainWindow, Parts of Isys on Visual Design, GUI Design
The toolbar is called \fIname\fR and is a child of \fIparent\fR and is managed by \fImainWindow\fR. The \fIlabel\fR and \fInewLine\fR parameters are passed straight to TQMainWindow::addDockWindow(). \fIname\fR and the widget flags \fIf\fR are passed on to the QDockWindow constructor.
The toolbar is called \fIname\fR and is a child of \fIparent\fR and is managed by \fImainWindow\fR. The \fIlabel\fR and \fInewLine\fR parameters are passed straight to TQMainWindow::addDockWindow(). \fIname\fR and the widget flags \fIf\fR are passed on to the TQDockWindow constructor.
.PP
Use this constructor if you want to create torn-off (undocked, floating) toolbars or toolbars in the status bar.
@ -34,15 +34,15 @@ Inherited by QIntValidator, QDoubleValidator, and TQRegExpValidator.
.br
.in -1c
.SH DESCRIPTION
The QValidator class provides validation of input text.
The TQValidator class provides validation of input text.
.PP
The class itself is abstract. Two subclasses, QIntValidator and QDoubleValidator, provide basic numeric-range checking, and TQRegExpValidator provides general checking using a custom regular expression.
The class itself is abstract. Two subclasses, QIntValidator and TQDoubleValidator, provide basic numeric-range checking, and TQRegExpValidator provides general checking using a custom regular expression.
.PP
If the built-in validators aren't sufficient, you can subclass QValidator. The class has two virtual functions: validate() and fixup().
If the built-in validators aren't sufficient, you can subclass TQValidator. The class has two virtual functions: validate() and fixup().
.PP
validate() must be implemented by every subclass. It returns Invalid, Intermediate or Acceptable depending on whether its argument is valid (for the subclass's definition of valid).
.PP
These three states require some explanation. An Invalid string is \fIclearly\fR invalid. Intermediate is less obvious: the concept of validity is slippery when the string is incomplete (still being edited). QValidator defines Intermediate as the property of a string that is neither clearly invalid nor acceptable as a final result. Acceptable means that the string is acceptable as a final result. One might say that any string that is a plausible intermediate state during entry of an Acceptable string is Intermediate.
These three states require some explanation. An Invalid string is \fIclearly\fR invalid. Intermediate is less obvious: the concept of validity is slippery when the string is incomplete (still being edited). TQValidator defines Intermediate as the property of a string that is neither clearly invalid nor acceptable as a final result. Acceptable means that the string is acceptable as a final result. One might say that any string that is a plausible intermediate state during entry of an Acceptable string is Intermediate.
.PP
Here are some examples:
.IP
@ -58,36 +58,36 @@ For a spin box that accepts lengths, "11cm" and "1in" are Acceptable, "11" and t
.PP
fixup() is provided for validators that can repair some user errors. The default implementation does nothing. TQLineEdit, for example, will call fixup() if the user presses Enter (or Return) and the content is not currently valid. This allows the fixup() function the opportunity of performing some magic to make an Invalid string Acceptable.
.PP
QValidator is typically used with TQLineEdit, TQSpinBox and TQComboBox.
TQValidator is typically used with TQLineEdit, TQSpinBox and TQComboBox.
.PP
See also Miscellaneous Classes.
.SS "Member Type Documentation"
.SH "QValidator::State"
.SH "TQValidator::State"
This enum type defines the states in which a validated string can exist.
.TP
\fCQValidator::Invalid\fR - the string is \fIclearly\fR invalid.
\fCTQValidator::Invalid\fR - the string is \fIclearly\fR invalid.
.TP
\fCQValidator::Intermediate\fR - the string is a plausible intermediate value during editing.
\fCTQValidator::Intermediate\fR - the string is a plausible intermediate value during editing.
.TP
\fCQValidator::Acceptable\fR - the string is acceptable as a final result, i.e. it is valid.
\fCTQValidator::Acceptable\fR - the string is acceptable as a final result, i.e. it is valid.
This function attempts to change \fIinput\fR to be valid according to this validator's rules. It need not result in a valid string: callers of this function must re-test afterwards; the default does nothing.
.PP
Reimplementations of this function can change \fIinput\fR even if they do not produce a valid string. For example, an ISBN validator might want to delete every character except digits and "-", even if the result is still not a valid ISBN; a surname validator might want to remove whitespace from the start and end of the string, even if the resulting string is not in the list of accepted surnames.
.SH "State QValidator::validate ( TQString & input, int & pos ) const\fC [pure virtual]\fR"
.SH "State TQValidator::validate ( TQString & input, int & pos ) const\fC [pure virtual]\fR"
This pure virtual function returns Invalid if \fIinput\fR is invalid according to this validator's rules, Intermediate if it is likely that a little more editing will make the input acceptable (e.g. the user types '4' into a widget which accepts integers between 10 and 99) and Acceptable if the input is valid.
.PP
The function can change \fIinput\fR and \fIpos\fR (the cursor position) if it wants to.
.PP
Reimplemented in QIntValidator, QDoubleValidator, and TQRegExpValidator.
Reimplemented in QIntValidator, TQDoubleValidator, and TQRegExpValidator.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/ntqvalidator.html
.BR http://doc.trolltech.com/tqvalidator.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
@ -1390,20 +1390,20 @@ Reimplemented from TQObject.
Returns a pointer to the widget with window identifer/handle \fIid\fR.
.PP
The window identifier type depends on the underlying window system, see ntqwindowdefs.h for the actual definition. If there is no widget with this identifier, 0 is returned.
Returns the focus data for this widget's top-level widget.
.PP
Focus data always belongs to the top-level widget. The focus data list contains all the widgets in this top-level widget that can accept focus, in tab order. An iterator points to the current focus widget (focusWidget() returns a pointer to this widget).
.PP
This information is useful for implementing advanced versions of focusNextPrevChild().
This event handler can be reimplemented in a subclass to receive keyboard focus events (focus received) for the widget.
.PP
A widget normally must setFocusPolicy() to something other than NoFocus in order to receive focus events. (Note that the application programmer can call setFocus() on any widget, even those that do not normally accept focus.)
.PP
The default implementation updates the widget (except for toplevel widgets that do not specify a focusPolicy() ). It also calls setMicroFocusHint(), hinting any system-specific input tools about the focus of the user's attention.
.PP
See also focusOutEvent(), focusPolicy, keyPressEvent(), keyReleaseEvent(), event(), and QFocusEvent.
See also focusOutEvent(), focusPolicy, keyPressEvent(), keyReleaseEvent(), event(), and TQFocusEvent.
.SH "bool TQWidget::focusNextPrevChild ( bool next )\fC [virtual protected]\fR"
Finds a new widget to give the keyboard focus to, as appropriate for Tab and Shift+Tab, and returns TRUE if is can find a new widget and FALSE if it can't,
.PP
@ -1416,14 +1416,14 @@ Child widgets call focusNextPrevChild() on their parent widgets, but only the to
\fBWarning:\fR TQScrollView uses it own logic for this function, which does the right thing in most cases. But if you are using a TQScrollView and want complete control of the focus chain you'll need to override TQScrollView::focusNextPrevChild() and your top-level widgets' focusNextPrevChild() functions.
This event handler can be reimplemented in a subclass to receive keyboard focus events (focus lost) for the widget.
.PP
A widget normally must setFocusPolicy() to something other than NoFocus in order to receive focus events. (Note that the application programmer can call setFocus() on any widget, even those that do not normally accept focus.)
.PP
The default implementation updates the widget (except for toplevel widgets that do not specify a focusPolicy() ). It also calls setMicroFocusHint(), hinting any system-specific input tools about the focus of the user's attention.
.PP
See also focusInEvent(), focusPolicy, keyPressEvent(), keyReleaseEvent(), event(), and QFocusEvent.
See also focusInEvent(), focusPolicy, keyPressEvent(), keyReleaseEvent(), event(), and TQFocusEvent.
.PP
Example: qmag/qmag.cpp.
.SH "FocusPolicy TQWidget::focusPolicy () const"
@ -1526,12 +1526,12 @@ Examples:
.)l mdi/application.cpp, popup/popup.cpp, progress/progress.cpp, scrollview/scrollview.cpp, webbrowser/mainwindow.ui.h, and xform/xform.cpp.
\saTQToolButtonTQMainWindow\linkhttp://www.iarchitect.com/visual.htm Parts of Isys on Visual Design\endlink \link guibooks.html#fowler GUI Design Handbook: Tool Bar\endlink.