diff options
Diffstat (limited to 'doc/html/tqgridlayout.html')
-rw-r--r-- | doc/html/tqgridlayout.html | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/doc/html/tqgridlayout.html b/doc/html/tqgridlayout.html index 094e71b22..1d9fb5fd5 100644 --- a/doc/html/tqgridlayout.html +++ b/doc/html/tqgridlayout.html @@ -1,5 +1,5 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/qlayout.cpp:884 --> +<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/tqlayout.cpp:884 --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> @@ -33,8 +33,8 @@ body { background: #ffffff; color: black; } <p>The TQGridLayout class lays out widgets in a grid. <a href="#details">More...</a> -<p><tt>#include <<a href="qlayout-h.html">ntqlayout.h</a>></tt> -<p>Inherits <a href="ntqlayout.html">TQLayout</a>. +<p><tt>#include <<a href="tqlayout-h.html">tqlayout.h</a>></tt> +<p>Inherits <a href="tqlayout.html">TQLayout</a>. <p><a href="tqgridlayout-members.html">List of all member functions.</a> <h2>Public Members</h2> <ul> @@ -88,7 +88,7 @@ body { background: #ffffff; color: black; } <p> TQGridLayout takes the space made available to it (by its parent -layout or by the <a href="ntqlayout.html#mainWidget">mainWidget</a>()), divides it up into rows and +layout or by the <a href="tqlayout.html#mainWidget">mainWidget</a>()), divides it up into rows and columns, and puts each widget it manages into the correct cell. <p> Columns and rows behave identically; we will discuss columns, but there are equivalent functions for rows. @@ -98,12 +98,12 @@ minimum width of each widget in that column. The stretch factor is set using <a href="#setColStretch">setColStretch</a>() and determines how much of the available space the column will get over and above its necessary minimum. <p> Normally, each managed widget or layout is put into a cell of its -own using <a href="#addWidget">addWidget</a>(), <a href="#addLayout">addLayout</a>() or by the <a href="ntqlayout.html#setAutoAdd">auto-add facility</a>. It is also +own using <a href="#addWidget">addWidget</a>(), <a href="#addLayout">addLayout</a>() or by the <a href="tqlayout.html#setAutoAdd">auto-add facility</a>. It is also possible for a widget to occupy multiple cells using <a href="#addMultiCellWidget">addMultiCellWidget</a>(). If you do this, TQGridLayout will guess how to distribute the size over the columns/rows (based on the stretch factors). -<p> To remove a widget from a layout, call <a href="ntqlayout.html#remove">remove</a>(). Calling +<p> To remove a widget from a layout, call <a href="tqlayout.html#remove">remove</a>(). Calling <a href="tqwidget.html#hide">TQWidget::hide</a>() on a widget also effectively removes the widget from the layout until <a href="tqwidget.html#show">TQWidget::show</a>() is called. <p> This illustration shows a fragment of a dialog with a five-column, @@ -160,17 +160,17 @@ between cells. If <em>space</em> is -1, the value of <em>margin</em> is used. </h3> Constructs a new grid with <em>nRows</em> rows and <em>nCols</em> columns. If <em>spacing</em> is -1, this TQGridLayout inherits its parent's -<a href="ntqlayout.html#spacing">spacing</a>(); otherwise <em>spacing</em> is used. The grid layout is called +<a href="tqlayout.html#spacing">spacing</a>(); otherwise <em>spacing</em> is used. The grid layout is called <em>name</em>. <p> You must insert this grid into another layout. You can insert widgets and layouts into this layout at any time, but laying out will not be performed before this is inserted into another layout. -<h3 class=fn><a name="TQGridLayout-3"></a>TQGridLayout::TQGridLayout ( <a href="ntqlayout.html">TQLayout</a> * parentLayout, int nRows = 1, int nCols = 1, int spacing = -1, const char * name = 0 ) +<h3 class=fn><a name="TQGridLayout-3"></a>TQGridLayout::TQGridLayout ( <a href="tqlayout.html">TQLayout</a> * parentLayout, int nRows = 1, int nCols = 1, int spacing = -1, const char * name = 0 ) </h3> Constructs a new grid that is placed inside <em>parentLayout</em> with <em>nRows</em> rows and <em>nCols</em> columns. If <em>spacing</em> is -1, this -TQGridLayout inherits its parent's <a href="ntqlayout.html#spacing">spacing</a>(); otherwise <em>spacing</em> +TQGridLayout inherits its parent's <a href="tqlayout.html#spacing">spacing</a>(); otherwise <em>spacing</em> is used. The grid layout is called <em>name</em>. <p> This grid is placed according to <em>parentLayout</em>'s default placement rules. @@ -181,7 +181,7 @@ Destroys the grid layout. Geometry management is terminated if this is a top-level grid. <p> The layout's widgets aren't destroyed. -<h3 class=fn>void <a name="add"></a>TQGridLayout::add ( <a href="qlayoutitem.html">TQLayoutItem</a> * item, int row, int col )<tt> [protected]</tt> +<h3 class=fn>void <a name="add"></a>TQGridLayout::add ( <a href="tqlayoutitem.html">TQLayoutItem</a> * item, int row, int col )<tt> [protected]</tt> </h3> Adds <em>item</em> at position <em>row</em>, <em>col</em>. The layout takes ownership of the <em>item</em>. @@ -192,18 +192,18 @@ ownership of the <em>item</em>. <p> Sets the minimum width of column <em>col</em> to <em>minsize</em> pixels. <p> Use <a href="#setColSpacing">setColSpacing</a>() instead. -<h3 class=fn>void <a name="addItem"></a>TQGridLayout::addItem ( <a href="qlayoutitem.html">TQLayoutItem</a> * item, int row, int col ) +<h3 class=fn>void <a name="addItem"></a>TQGridLayout::addItem ( <a href="tqlayoutitem.html">TQLayoutItem</a> * item, int row, int col ) </h3> Adds <em>item</em> at position <em>row</em>, <em>col</em>. The layout takes ownership of the <em>item</em>. -<h3 class=fn>void <a name="addItem-2"></a>TQGridLayout::addItem ( <a href="qlayoutitem.html">TQLayoutItem</a> * item )<tt> [virtual]</tt> +<h3 class=fn>void <a name="addItem-2"></a>TQGridLayout::addItem ( <a href="tqlayoutitem.html">TQLayoutItem</a> * item )<tt> [virtual]</tt> </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Adds <em>item</em> to the next free position of this layout. -<p>Reimplemented from <a href="ntqlayout.html#addItem">TQLayout</a>. -<h3 class=fn>void <a name="addLayout"></a>TQGridLayout::addLayout ( <a href="ntqlayout.html">TQLayout</a> * layout, int row, int col ) +<p>Reimplemented from <a href="tqlayout.html#addItem">TQLayout</a>. +<h3 class=fn>void <a name="addLayout"></a>TQGridLayout::addLayout ( <a href="tqlayout.html">TQLayout</a> * layout, int row, int col ) </h3> Places the <em>layout</em> at position (<em>row</em>, <em>col</em>) in the grid. The top-left position is (0, 0). @@ -214,14 +214,14 @@ automatically added to the parent layout as it is constructed. <p> <p>See also <a href="#addMultiCellLayout">addMultiCellLayout</a>(). <p>Examples: <a href="listbox-example.html#x1430">listbox/listbox.cpp</a>, <a href="progressbar-example.html#x964">progressbar/progressbar.cpp</a>, <a href="tutorial1-10.html#x2365">t10/main.cpp</a>, and <a href="tutorial1-13.html#x2413">t13/gamebrd.cpp</a>. -<h3 class=fn>void <a name="addMultiCell"></a>TQGridLayout::addMultiCell ( <a href="qlayoutitem.html">TQLayoutItem</a> * item, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 ) +<h3 class=fn>void <a name="addMultiCell"></a>TQGridLayout::addMultiCell ( <a href="tqlayoutitem.html">TQLayoutItem</a> * item, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 ) </h3> Adds the <em>item</em> to the cell grid, spanning multiple rows/columns. <p> The cell will span from <em>fromRow</em>, <em>fromCol</em> to <em>toRow</em>, <em>toCol</em>. 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. -<h3 class=fn>void <a name="addMultiCellLayout"></a>TQGridLayout::addMultiCellLayout ( <a href="ntqlayout.html">TQLayout</a> * layout, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 ) +<h3 class=fn>void <a name="addMultiCellLayout"></a>TQGridLayout::addMultiCellLayout ( <a href="tqlayout.html">TQLayout</a> * layout, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 ) </h3> Adds the layout <em>layout</em> to the cell grid, spanning multiple rows/columns. The cell will span from <em>fromRow</em>, <em>fromCol</em> to <em>toRow</em>, <em>toCol</em>. @@ -262,7 +262,7 @@ top-left position is (0, 0) by default. means that the widget fills the entire cell. <p> <ul> <li> You should not call this if you have enabled the -<a href="ntqlayout.html#setAutoAdd">auto-add facility of the layout</a>. +<a href="tqlayout.html#setAutoAdd">auto-add facility of the layout</a>. <p> <li> 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 @@ -278,7 +278,7 @@ in the grid. Returns an invalid rectangle if <em>row</em> or <em>col</em> is outside the grid. <p> <b>Warning:</b> in the current version of TQt this function does not return valid results until <a href="#setGeometry">setGeometry</a>() has been called, i.e. -after the <a href="ntqlayout.html#mainWidget">mainWidget</a>() is visible. +after the <a href="tqlayout.html#mainWidget">mainWidget</a>() is visible. <h3 class=fn>int <a name="colSpacing"></a>TQGridLayout::colSpacing ( int col ) const </h3> @@ -304,7 +304,7 @@ Returns whether this layout can make use of more space than to grow in only one dimension, whereas <tt>BothDirections</tt> means that it wants to grow in both dimensions. -<p>Reimplemented from <a href="ntqlayout.html#expanding">TQLayout</a>. +<p>Reimplemented from <a href="tqlayout.html#expanding">TQLayout</a>. <h3 class=fn>bool <a name="findWidget"></a>TQGridLayout::findWidget ( <a href="tqwidget.html">TQWidget</a> * w, int * row, int * col )<tt> [protected]</tt> </h3> Searches for widget <em>w</em> in this layout (not including child @@ -318,27 +318,27 @@ is returned. Returns TRUE if this layout's preferred height depends on its width; otherwise returns FALSE. -<p>Reimplemented from <a href="qlayoutitem.html#hasHeightForWidth">TQLayoutItem</a>. +<p>Reimplemented from <a href="tqlayoutitem.html#hasHeightForWidth">TQLayoutItem</a>. <h3 class=fn>int <a name="heightForWidth"></a>TQGridLayout::heightForWidth ( int w ) const<tt> [virtual]</tt> </h3> Returns the layout's preferred height when it is <em>w</em> pixels wide. -<p>Reimplemented from <a href="qlayoutitem.html#heightForWidth">TQLayoutItem</a>. +<p>Reimplemented from <a href="tqlayoutitem.html#heightForWidth">TQLayoutItem</a>. <h3 class=fn>void <a name="invalidate"></a>TQGridLayout::invalidate ()<tt> [virtual]</tt> </h3> Resets cached information. -<p>Reimplemented from <a href="ntqlayout.html#invalidate">TQLayout</a>. +<p>Reimplemented from <a href="tqlayout.html#invalidate">TQLayout</a>. <h3 class=fn><a href="tqsize.html">TQSize</a> <a name="maximumSize"></a>TQGridLayout::maximumSize () const<tt> [virtual]</tt> </h3> Returns the maximum size needed by this grid. -<p>Reimplemented from <a href="ntqlayout.html#maximumSize">TQLayout</a>. +<p>Reimplemented from <a href="tqlayout.html#maximumSize">TQLayout</a>. <h3 class=fn><a href="tqsize.html">TQSize</a> <a name="minimumSize"></a>TQGridLayout::minimumSize () const<tt> [virtual]</tt> </h3> Returns the minimum size needed by this grid. -<p>Reimplemented from <a href="ntqlayout.html#minimumSize">TQLayout</a>. +<p>Reimplemented from <a href="tqlayout.html#minimumSize">TQLayout</a>. <h3 class=fn>int <a name="numCols"></a>TQGridLayout::numCols () const </h3> Returns the number of columns in this grid. @@ -384,7 +384,7 @@ grow. </h3> Resizes managed widgets within the rectangle <em>r</em>. -<p>Reimplemented from <a href="ntqlayout.html#setGeometry">TQLayout</a>. +<p>Reimplemented from <a href="tqlayout.html#setGeometry">TQLayout</a>. <h3 class=fn>void <a name="setOrigin"></a>TQGridLayout::setOrigin ( <a href="tqgridlayout.html#Corner-enum">Corner</a> c ) </h3> Sets the grid's origin corner, i.e. position (0, 0), to <em>c</em>. @@ -410,7 +410,7 @@ other row in this table can grow at all, the row may still grow. </h3> Returns the preferred size of this grid. -<p>Reimplemented from <a href="qlayoutitem.html#sizeHint">TQLayoutItem</a>. +<p>Reimplemented from <a href="tqlayoutitem.html#sizeHint">TQLayoutItem</a>. <!-- eof --> <hr><p> This file is part of the <a href="index.html">TQt toolkit</a>. |