diff options
Diffstat (limited to 'doc/html/qboxlayout.html')
-rw-r--r-- | doc/html/qboxlayout.html | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/doc/html/qboxlayout.html b/doc/html/qboxlayout.html index 4eb2d65d2..6702397e7 100644 --- a/doc/html/qboxlayout.html +++ b/doc/html/qboxlayout.html @@ -34,8 +34,8 @@ body { background: #ffffff; color: black; } <p>The TQBoxLayout class lines up child widgets horizontally or vertically. <a href="#details">More...</a> -<p><tt>#include <<a href="qlayout-h.html">qlayout.h</a>></tt> -<p>Inherits <a href="qlayout.html">TQLayout</a>. +<p><tt>#include <<a href="qlayout-h.html">ntqlayout.h</a>></tt> +<p>Inherits <a href="ntqlayout.html">TQLayout</a>. <p>Inherited by <a href="qhboxlayout.html">TQHBoxLayout</a> and <a href="qvboxlayout.html">TQVBoxLayout</a>. <p><a href="qboxlayout-members.html">List of all member functions.</a> <h2>Public Members</h2> @@ -81,20 +81,20 @@ vertically. <p> <p> TQBoxLayout takes the space it gets (from its parent layout or from -the <a href="qlayout.html#mainWidget">mainWidget</a>()), divides it up into a row of boxes, and makes +the <a href="ntqlayout.html#mainWidget">mainWidget</a>()), divides it up into a row of boxes, and makes each managed widget fill one box. <p> <center><img src="qhbox-m.png" alt="Horizontal box with five child widgets"></center> -<p> If the TQBoxLayout's orientation is <a href="qt.html#Orientation-enum">Horizontal</a> the boxes are +<p> If the TQBoxLayout's orientation is <a href="ntqt.html#Orientation-enum">Horizontal</a> the boxes are placed in a row, with suitable sizes. Each widget (or other box) will get at least its minimum size and at most its maximum size. Any excess space is shared according to the stretch factors (more about that below). <p> <center><img src="qvbox-m.png" alt="Vertical box with five child widgets"></center> -<p> If the TQBoxLayout's orientation is <a href="qt.html#Orientation-enum">Vertical</a>, the boxes are +<p> If the TQBoxLayout's orientation is <a href="ntqt.html#Orientation-enum">Vertical</a>, the boxes are placed in a column, again with suitable sizes. <p> The easiest way to create a TQBoxLayout is to use one of the -convenience classes, e.g. <a href="qhboxlayout.html">TQHBoxLayout</a> (for <a href="qt.html#Orientation-enum">Horizontal</a> boxes) or -<a href="qvboxlayout.html">TQVBoxLayout</a> (for <a href="qt.html#Orientation-enum">Vertical</a> boxes). You can also use the +convenience classes, e.g. <a href="qhboxlayout.html">TQHBoxLayout</a> (for <a href="ntqt.html#Orientation-enum">Horizontal</a> boxes) or +<a href="qvboxlayout.html">TQVBoxLayout</a> (for <a href="ntqt.html#Orientation-enum">Vertical</a> boxes). You can also use the TQBoxLayout constructor directly, specifying its direction as <a href="#Direction-enum">LeftToRight</a>, <a href="#Direction-enum">Down</a>, <a href="#Direction-enum">RightToLeft</a> or <a href="#Direction-enum">Up</a>. <p> If the TQBoxLayout is not the top-level layout (i.e. it is not managing all of the widget's area and children), you must add it @@ -111,7 +111,7 @@ boxes.) functions you use to create nice and spacious dialogs. See below for ways to set margins. <p> <li> <a href="#addStretch">addStretch</a>() to create an empty, stretchable box. -<p> <li> <a href="#addLayout">addLayout</a>() to add a box containing another <a href="qlayout.html">TQLayout</a> to the row +<p> <li> <a href="#addLayout">addLayout</a>() to add a box containing another <a href="ntqlayout.html">TQLayout</a> to the row and set that layout's stretch factor. </ul> <p> Use <a href="#insertWidget">insertWidget</a>(), <a href="#insertSpacing">insertSpacing</a>(), <a href="#insertStretch">insertStretch</a>() or @@ -119,20 +119,20 @@ and set that layout's stretch factor. layout. <p> TQBoxLayout also includes two margin widths: <p> <ul> -<li> <a href="qlayout.html#setMargin">setMargin</a>() sets the width of the outer border. This is the width +<li> <a href="ntqlayout.html#setMargin">setMargin</a>() sets the width of the outer border. This is the width of the reserved space along each of the TQBoxLayout's four sides. -<li> <a href="qlayout.html#setSpacing">setSpacing</a>() sets the width between neighboring boxes. (You +<li> <a href="ntqlayout.html#setSpacing">setSpacing</a>() sets the width between neighboring boxes. (You can use <a href="#addSpacing">addSpacing</a>() to get more space at a particular spot.) </ul> <p> The margin defaults to 0. The spacing defaults to the same as the margin width for a top-level layout, or to the same as the parent layout. Both are parameters to the constructor. -<p> To remove a widget from a layout, call <a href="qlayout.html#remove">remove</a>(). Calling -<a href="qwidget.html#hide">TQWidget::hide</a>() on a widget also effectively removes the widget -from the layout until <a href="qwidget.html#show">TQWidget::show</a>() is called. +<p> To remove a widget from a layout, call <a href="ntqlayout.html#remove">remove</a>(). Calling +<a href="ntqwidget.html#hide">TQWidget::hide</a>() on a widget also effectively removes the widget +from the layout until <a href="ntqwidget.html#show">TQWidget::show</a>() is called. <p> You will almost always want to use <a href="qvboxlayout.html">TQVBoxLayout</a> and <a href="qhboxlayout.html">TQHBoxLayout</a> rather than TQBoxLayout because of their convenient constructors. -<p> <p>See also <a href="qgrid.html">TQGrid</a>, <a href="layout.html">Layout Overview</a>, <a href="appearance.html">Widget Appearance and Style</a>, and <a href="geomanagement.html">Layout Management</a>. +<p> <p>See also <a href="ntqgrid.html">TQGrid</a>, <a href="layout.html">Layout Overview</a>, <a href="appearance.html">Widget Appearance and Style</a>, and <a href="geomanagement.html">Layout Management</a>. <hr><h2>Member Type Documentation</h2> <h3 class=fn><a name="Direction-enum"></a>TQBoxLayout::Direction</h3> @@ -147,7 +147,7 @@ rather than TQBoxLayout because of their convenient constructors. <li><tt>TQBoxLayout::Up</tt> - The same as <a href="#Direction-enum">BottomToTop</a> </ul> <hr><h2>Member Function Documentation</h2> -<h3 class=fn><a name="TQBoxLayout"></a>TQBoxLayout::TQBoxLayout ( <a href="qwidget.html">TQWidget</a> * parent, <a href="qboxlayout.html#Direction-enum">Direction</a> d, int margin = 0, int spacing = -1, const char * name = 0 ) +<h3 class=fn><a name="TQBoxLayout"></a>TQBoxLayout::TQBoxLayout ( <a href="ntqwidget.html">TQWidget</a> * parent, <a href="qboxlayout.html#Direction-enum">Direction</a> d, int margin = 0, int spacing = -1, const char * name = 0 ) </h3> Constructs a new TQBoxLayout with direction <em>d</em> and main widget <em>parent</em>. <em>parent</em> may not be 0. <p> The <em>margin</em> is the number of pixels between the edge of the @@ -157,19 +157,19 @@ the value of <em>margin</em> is used for <em>spacing</em>. <p> <em>name</em> is the internal object name. <p> <p>See also <a href="#direction">direction</a>(). -<h3 class=fn><a name="TQBoxLayout-2"></a>TQBoxLayout::TQBoxLayout ( <a href="qlayout.html">TQLayout</a> * parentLayout, <a href="qboxlayout.html#Direction-enum">Direction</a> d, int spacing = -1, const char * name = 0 ) +<h3 class=fn><a name="TQBoxLayout-2"></a>TQBoxLayout::TQBoxLayout ( <a href="ntqlayout.html">TQLayout</a> * parentLayout, <a href="qboxlayout.html#Direction-enum">Direction</a> d, int spacing = -1, const char * name = 0 ) </h3> Constructs a new TQBoxLayout called <em>name</em>, with direction <em>d</em>, and inserts it into <em>parentLayout</em>. <p> The <em>spacing</em> is the default number of pixels between neighboring children. If <em>spacing</em> is -1, the layout will inherit its -parent's <a href="qlayout.html#spacing">spacing</a>(). +parent's <a href="ntqlayout.html#spacing">spacing</a>(). <h3 class=fn><a name="TQBoxLayout-3"></a>TQBoxLayout::TQBoxLayout ( <a href="qboxlayout.html#Direction-enum">Direction</a> d, int spacing = -1, const char * name = 0 ) </h3> Constructs a new TQBoxLayout called <em>name</em>, with direction <em>d</em>. <p> If <em>spacing</em> is -1, the layout will inherit its parent's -<a href="qlayout.html#spacing">spacing</a>(); otherwise <em>spacing</em> is used. +<a href="ntqlayout.html#spacing">spacing</a>(); otherwise <em>spacing</em> is used. <p> You must insert this box into another layout. <h3 class=fn><a name="~TQBoxLayout"></a>TQBoxLayout::~TQBoxLayout () @@ -182,15 +182,15 @@ Destroys this box layout. Adds <em>item</em> to the end of this box layout. <p>Examples: <a href="tutorial2-09.html#x2629">chart/optionsform.cpp</a> and <a href="tutorial2-08.html#x2593">chart/setdataform.cpp</a>. -<p>Reimplemented from <a href="qlayout.html#addItem">TQLayout</a>. -<h3 class=fn>void <a name="addLayout"></a>TQBoxLayout::addLayout ( <a href="qlayout.html">TQLayout</a> * layout, int stretch = 0 ) +<p>Reimplemented from <a href="ntqlayout.html#addItem">TQLayout</a>. +<h3 class=fn>void <a name="addLayout"></a>TQBoxLayout::addLayout ( <a href="ntqlayout.html">TQLayout</a> * layout, int stretch = 0 ) </h3> Adds <em>layout</em> to the end of the box, with serial <a href="layout.html#stretch-factor">stretch factor</a> <em>stretch</em>. <p> When a layout is constructed with another layout as its parent, you don't need to call <a href="#addLayout">addLayout</a>(); the child layout is automatically added to the parent layout as it is constructed. -<p> <p>See also <a href="#insertLayout">insertLayout</a>(), <a href="qlayout.html#setAutoAdd">setAutoAdd</a>(), <a href="#addWidget">addWidget</a>(), and <a href="#addSpacing">addSpacing</a>(). +<p> <p>See also <a href="#insertLayout">insertLayout</a>(), <a href="ntqlayout.html#setAutoAdd">setAutoAdd</a>(), <a href="#addWidget">addWidget</a>(), and <a href="#addSpacing">addSpacing</a>(). <p>Examples: <a href="tutorial2-09.html#x2630">chart/optionsform.cpp</a>, <a href="tutorial2-08.html#x2594">chart/setdataform.cpp</a>, <a href="simple-font-demo-example.html#x2835">fonts/simple-qfont-demo/viewer.cpp</a>, <a href="listbox-example.html#x1422">listbox/listbox.cpp</a>, <a href="regexptester-example.html#x2469">regexptester/regexptester.cpp</a>, and <a href="tictac-example.html#x19">tictac/tictac.cpp</a>. <h3 class=fn>void <a name="addSpacing"></a>TQBoxLayout::addSpacing ( int size ) @@ -214,7 +214,7 @@ Limits the perpendicular dimension of the box (e.g. height if the box is LeftToRight) to a minimum of <em>size</em>. Other constraints may increase the limit. -<h3 class=fn>void <a name="addWidget"></a>TQBoxLayout::addWidget ( <a href="qwidget.html">TQWidget</a> * widget, int stretch = 0, int alignment = 0 ) +<h3 class=fn>void <a name="addWidget"></a>TQBoxLayout::addWidget ( <a href="ntqwidget.html">TQWidget</a> * widget, int stretch = 0, int alignment = 0 ) </h3> Adds <em>widget</em> to the end of this box layout, with a <a href="layout.html#stretch-factor">stretch factor</a> of <em>stretch</em> and alignment <em>alignment</em>. <p> The stretch factor applies only in the <a href="#direction">direction</a> of the TQBoxLayout, and is relative to the other boxes and @@ -224,13 +224,13 @@ factors grow more. a stretch factor greater than zero, the space is distributed according to the TQWidget:sizePolicy() of each widget that's involved. -<p> Alignment is specified by <em>alignment</em> which is a bitwise OR of <a href="qt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a> values. The default alignment is 0, which means +<p> Alignment is specified by <em>alignment</em> which is a bitwise OR of <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a> values. The default alignment is 0, which means that the widget fills the entire cell. <p> From TQt 3.0, the <em>alignment</em> parameter is interpreted more aggressively than in previous versions of TQt. A non-default alignment now indicates that the widget should not grow to fill the available space, but should be sized according to <a href="#sizeHint">sizeHint</a>(). -<p> <p>See also <a href="#insertWidget">insertWidget</a>(), <a href="qlayout.html#setAutoAdd">setAutoAdd</a>(), <a href="#addLayout">addLayout</a>(), and <a href="#addSpacing">addSpacing</a>(). +<p> <p>See also <a href="#insertWidget">insertWidget</a>(), <a href="ntqlayout.html#setAutoAdd">setAutoAdd</a>(), <a href="#addLayout">addLayout</a>(), and <a href="#addSpacing">addSpacing</a>(). <p>Examples: <a href="tutorial2-09.html#x2631">chart/optionsform.cpp</a>, <a href="checklists-example.html#x423">checklists/checklists.cpp</a>, <a href="layout-example.html#x529">layout/layout.cpp</a>, <a href="lineedits-example.html#x169">lineedits/lineedits.cpp</a>, <a href="listbox-example.html#x1425">listbox/listbox.cpp</a>, <a href="tutorial1-13.html#x2411">t13/gamebrd.cpp</a>, and <a href="tutorial1-13.html#x2401">t13/lcdrange.cpp</a>. <h3 class=fn><a href="qboxlayout.html#Direction-enum">Direction</a> <a name="direction"></a>TQBoxLayout::direction () const @@ -240,15 +240,15 @@ the available space, but should be sized according to <a href="#sizeHint">sizeHi work in this direction; the stretch stretches in this direction. <p> <p>See also <a href="#Direction-enum">TQBoxLayout::Direction</a>, <a href="#addWidget">addWidget</a>(), and <a href="#addSpacing">addSpacing</a>(). -<h3 class=fn><a href="qsizepolicy.html#ExpandData-enum">TQSizePolicy::ExpandData</a> <a name="expanding"></a>TQBoxLayout::expanding () const<tt> [virtual]</tt> +<h3 class=fn><a href="ntqsizepolicy.html#ExpandData-enum">TQSizePolicy::ExpandData</a> <a name="expanding"></a>TQBoxLayout::expanding () const<tt> [virtual]</tt> </h3> Returns whether this layout can make use of more space than -<a href="#sizeHint">sizeHint</a>(). A value of <a href="qt.html#Orientation-enum">Vertical</a> or <a href="qt.html#Orientation-enum">Horizontal</a> means that it wants +<a href="#sizeHint">sizeHint</a>(). A value of <a href="ntqt.html#Orientation-enum">Vertical</a> or <a href="ntqt.html#Orientation-enum">Horizontal</a> means that it wants to grow in only one dimension, whereas <tt>BothDirections</tt> means that it wants to grow in both dimensions. -<p>Reimplemented from <a href="qlayout.html#expanding">TQLayout</a>. -<h3 class=fn>int <a name="findWidget"></a>TQBoxLayout::findWidget ( <a href="qwidget.html">TQWidget</a> * w ) +<p>Reimplemented from <a href="ntqlayout.html#expanding">TQLayout</a>. +<h3 class=fn>int <a name="findWidget"></a>TQBoxLayout::findWidget ( <a href="ntqwidget.html">TQWidget</a> * w ) </h3> Searches for widget <em>w</em> in this layout (not including child layouts). @@ -269,14 +269,14 @@ Returns the layout's preferred height when it is <em>w</em> pixels wide. </h3> Inserts <em>item</em> into this box layout at position <em>index</em>. If <em>index</em> is negative, the item is added at the end. <p> <b>Warning:</b> Does not call TQLayout::insertChildLayout() if <em>item</em> is -a <a href="qlayout.html">TQLayout</a>. +a <a href="ntqlayout.html">TQLayout</a>. <p> <p>See also <a href="#addItem">addItem</a>() and <a href="#findWidget">findWidget</a>(). -<h3 class=fn>void <a name="insertLayout"></a>TQBoxLayout::insertLayout ( int index, <a href="qlayout.html">TQLayout</a> * layout, int stretch = 0 ) +<h3 class=fn>void <a name="insertLayout"></a>TQBoxLayout::insertLayout ( int index, <a href="ntqlayout.html">TQLayout</a> * layout, int stretch = 0 ) </h3> Inserts <em>layout</em> at position <em>index</em>, with <a href="layout.html#stretch-factor">stretch factor</a> <em>stretch</em>. If <em>index</em> is negative, the layout is added at the end. <p> <em>layout</em> becomes a child of the box layout. -<p> <p>See also <a href="qlayout.html#setAutoAdd">setAutoAdd</a>(), <a href="#insertWidget">insertWidget</a>(), and <a href="#insertSpacing">insertSpacing</a>(). +<p> <p>See also <a href="ntqlayout.html#setAutoAdd">setAutoAdd</a>(), <a href="#insertWidget">insertWidget</a>(), and <a href="#insertSpacing">insertSpacing</a>(). <h3 class=fn>void <a name="insertSpacing"></a>TQBoxLayout::insertSpacing ( int index, int size ) </h3> @@ -292,7 +292,7 @@ minimum size and <a href="layout.html#stretch-factor">stretch factor</a> <em>str negative the space is added at the end. <p> <p>See also <a href="#insertSpacing">insertSpacing</a>(). -<h3 class=fn>void <a name="insertWidget"></a>TQBoxLayout::insertWidget ( int index, <a href="qwidget.html">TQWidget</a> * widget, int stretch = 0, int alignment = 0 ) +<h3 class=fn>void <a name="insertWidget"></a>TQBoxLayout::insertWidget ( int index, <a href="ntqwidget.html">TQWidget</a> * widget, int stretch = 0, int alignment = 0 ) </h3> Inserts <em>widget</em> at position <em>index</em>, with <a href="layout.html#stretch-factor">stretch factor</a> <em>stretch</em> and alignment <em>alignment</em>. If <em>index</em> is negative, the widget is added at the end. @@ -304,52 +304,52 @@ a stretch factor greater than zero, the space is distributed according to the TQWidget:sizePolicy() of each widget that's involved. <p> Alignment is specified by <em>alignment</em>, which is a bitwise OR of -<a href="qt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a> values. The default alignment is 0, which +<a href="ntqt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a> values. The default alignment is 0, which means that the widget fills the entire cell. <p> From TQt 3.0, the <em>alignment</em> parameter is interpreted more aggressively than in previous versions of TQt. A non-default alignment now indicates that the widget should not grow to fill the available space, but should be sized according to <a href="#sizeHint">sizeHint</a>(). -<p> <p>See also <a href="qlayout.html#setAutoAdd">setAutoAdd</a>(), <a href="#insertLayout">insertLayout</a>(), and <a href="#insertSpacing">insertSpacing</a>(). +<p> <p>See also <a href="ntqlayout.html#setAutoAdd">setAutoAdd</a>(), <a href="#insertLayout">insertLayout</a>(), and <a href="#insertSpacing">insertSpacing</a>(). <h3 class=fn>void <a name="invalidate"></a>TQBoxLayout::invalidate ()<tt> [virtual]</tt> </h3> Resets cached information. -<p>Reimplemented from <a href="qlayout.html#invalidate">TQLayout</a>. -<h3 class=fn><a href="qsize.html">TQSize</a> <a name="maximumSize"></a>TQBoxLayout::maximumSize () const<tt> [virtual]</tt> +<p>Reimplemented from <a href="ntqlayout.html#invalidate">TQLayout</a>. +<h3 class=fn><a href="ntqsize.html">TQSize</a> <a name="maximumSize"></a>TQBoxLayout::maximumSize () const<tt> [virtual]</tt> </h3> Returns the maximum size needed by this box layout. -<p>Reimplemented from <a href="qlayout.html#maximumSize">TQLayout</a>. -<h3 class=fn><a href="qsize.html">TQSize</a> <a name="minimumSize"></a>TQBoxLayout::minimumSize () const<tt> [virtual]</tt> +<p>Reimplemented from <a href="ntqlayout.html#maximumSize">TQLayout</a>. +<h3 class=fn><a href="ntqsize.html">TQSize</a> <a name="minimumSize"></a>TQBoxLayout::minimumSize () const<tt> [virtual]</tt> </h3> Returns the minimum size needed by this box layout. -<p>Reimplemented from <a href="qlayout.html#minimumSize">TQLayout</a>. +<p>Reimplemented from <a href="ntqlayout.html#minimumSize">TQLayout</a>. <h3 class=fn>void <a name="setDirection"></a>TQBoxLayout::setDirection ( <a href="qboxlayout.html#Direction-enum">Direction</a> direction ) </h3> Sets the direction of this layout to <em>direction</em>. -<h3 class=fn>void <a name="setGeometry"></a>TQBoxLayout::setGeometry ( const <a href="qrect.html">TQRect</a> & r )<tt> [virtual]</tt> +<h3 class=fn>void <a name="setGeometry"></a>TQBoxLayout::setGeometry ( const <a href="ntqrect.html">TQRect</a> & r )<tt> [virtual]</tt> </h3> Resizes managed widgets within the rectangle <em>r</em>. -<p>Reimplemented from <a href="qlayout.html#setGeometry">TQLayout</a>. -<h3 class=fn>bool <a name="setStretchFactor"></a>TQBoxLayout::setStretchFactor ( <a href="qwidget.html">TQWidget</a> * w, int stretch ) +<p>Reimplemented from <a href="ntqlayout.html#setGeometry">TQLayout</a>. +<h3 class=fn>bool <a name="setStretchFactor"></a>TQBoxLayout::setStretchFactor ( <a href="ntqwidget.html">TQWidget</a> * w, int stretch ) </h3> Sets the <a href="layout.html#stretch-factor">stretch factor</a> for widget <em>w</em> to <em>stretch</em> and returns TRUE if <em>w</em> is found in this layout (not including child layouts); otherwise returns FALSE. -<h3 class=fn>bool <a name="setStretchFactor-2"></a>TQBoxLayout::setStretchFactor ( <a href="qlayout.html">TQLayout</a> * l, int stretch ) +<h3 class=fn>bool <a name="setStretchFactor-2"></a>TQBoxLayout::setStretchFactor ( <a href="ntqlayout.html">TQLayout</a> * l, int stretch ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Sets the <a href="layout.html#stretch-factor">stretch factor</a> for the layout <em>l</em> to <em>stretch</em> and returns TRUE if <em>l</em> is found in this layout (not including child layouts); otherwise returns FALSE. -<h3 class=fn><a href="qsize.html">TQSize</a> <a name="sizeHint"></a>TQBoxLayout::sizeHint () const<tt> [virtual]</tt> +<h3 class=fn><a href="ntqsize.html">TQSize</a> <a name="sizeHint"></a>TQBoxLayout::sizeHint () const<tt> [virtual]</tt> </h3> Returns the preferred size of this box layout. |