diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/qgridlayout.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/qgridlayout.html')
-rw-r--r-- | doc/html/qgridlayout.html | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/doc/html/qgridlayout.html b/doc/html/qgridlayout.html index 98233c487..b13b260a3 100644 --- a/doc/html/qgridlayout.html +++ b/doc/html/qgridlayout.html @@ -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">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><a href="qgridlayout-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="qlayout.html#mainWidget">mainWidget</a>()), divides it up into rows and +layout or by the <a href="ntqlayout.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,19 +98,19 @@ 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="qlayout.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="ntqlayout.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="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> This illustration shows a fragment of a dialog with a five-column, three-row grid (the grid is shown overlaid in magenta): <p> <center><img src="gridlayout.png"></center> <p> Columns 0, 2 and 4 in this dialog fragment are made up of a -<a href="qlabel.html">TQLabel</a>, a <a href="qlineedit.html">TQLineEdit</a>, and a <a href="qlistbox.html">TQListBox</a>. Columns 1 and 3 are +<a href="ntqlabel.html">TQLabel</a>, a <a href="ntqlineedit.html">TQLineEdit</a>, and a <a href="ntqlistbox.html">TQListBox</a>. Columns 1 and 3 are placeholders made with <a href="#addColSpacing">addColSpacing</a>(). Row 0 consists of three TQLabel objects, row 1 of three TQLineEdit objects and row 2 of three TQListBox objects. We used placeholder columns (1 and 3) to @@ -133,7 +133,7 @@ of the TQGridLayout's four sides. The spacing is the width of the automatically allocated spacing between neighboring boxes. <p> Both the border and the spacing are parameters of the constructor and default to 0. -<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="Corner-enum"></a>TQGridLayout::Corner</h3> @@ -147,7 +147,7 @@ layout. <li><tt>TQGridLayout::BottomRight</tt> - the bottom-right corner </ul> <hr><h2>Member Function Documentation</h2> -<h3 class=fn><a name="TQGridLayout"></a>TQGridLayout::TQGridLayout ( <a href="qwidget.html">TQWidget</a> * parent, int nRows = 1, int nCols = 1, int margin = 0, int space = -1, const char * name = 0 ) +<h3 class=fn><a name="TQGridLayout"></a>TQGridLayout::TQGridLayout ( <a href="ntqwidget.html">TQWidget</a> * parent, int nRows = 1, int nCols = 1, int margin = 0, int space = -1, const char * name = 0 ) </h3> Constructs a new TQGridLayout with <em>nRows</em> rows, <em>nCols</em> columns and parent widget, <em>parent</em>. <em>parent</em> may not be 0. The grid @@ -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="qlayout.html#spacing">spacing</a>(); otherwise <em>spacing</em> is used. The grid layout is called +<a href="ntqlayout.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="qlayout.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="ntqlayout.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="qlayout.html#spacing">spacing</a>(); otherwise <em>spacing</em> +TQGridLayout inherits its parent's <a href="ntqlayout.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. @@ -202,8 +202,8 @@ ownership of the <em>item</em>. 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="qlayout.html#addItem">TQLayout</a>. -<h3 class=fn>void <a name="addLayout"></a>TQGridLayout::addLayout ( <a href="qlayout.html">TQLayout</a> * layout, int row, int col ) +<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 ) </h3> Places the <em>layout</em> at position (<em>row</em>, <em>col</em>) in the grid. The top-left position is (0, 0). @@ -218,15 +218,15 @@ automatically added to the parent layout as it is constructed. </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="qt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a> values. The default alignment is 0, +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="qlayout.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="ntqlayout.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>. <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> A non-zero alignment indicates that the layout should not grow to fill the available space but should be sized according to @@ -234,12 +234,12 @@ fill the available space but should be sized according to <p> <em>layout</em> becomes a child of the grid layout. <p> <p>See also <a href="#addLayout">addLayout</a>(). -<h3 class=fn>void <a name="addMultiCellWidget"></a>TQGridLayout::addMultiCellWidget ( <a href="qwidget.html">TQWidget</a> * w, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 ) +<h3 class=fn>void <a name="addMultiCellWidget"></a>TQGridLayout::addMultiCellWidget ( <a href="ntqwidget.html">TQWidget</a> * w, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 ) </h3> Adds the widget <em>w</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>. <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> A non-zero alignment indicates that the widget should not grow to fill the available space but should be sized according to @@ -253,16 +253,16 @@ fill the available space but should be sized according to <p> Sets the minimum height of row <em>row</em> to <em>minsize</em> pixels. <p> Use <a href="#setRowSpacing">setRowSpacing</a>() instead. -<h3 class=fn>void <a name="addWidget"></a>TQGridLayout::addWidget ( <a href="qwidget.html">TQWidget</a> * w, int row, int col, int alignment = 0 ) +<h3 class=fn>void <a name="addWidget"></a>TQGridLayout::addWidget ( <a href="ntqwidget.html">TQWidget</a> * w, int row, int col, int alignment = 0 ) </h3> Adds the widget <em>w</em> to the cell grid at <em>row</em>, <em>col</em>. The top-left position is (0, 0) by default. <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> <ul> <li> You should not call this if you have enabled the -<a href="qlayout.html#setAutoAdd">auto-add facility of the layout</a>. +<a href="ntqlayout.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 @@ -271,14 +271,14 @@ the available space, but should be sized according to <a href="#sizeHint">sizeHi <p> <p>See also <a href="#addMultiCellWidget">addMultiCellWidget</a>(). <p>Examples: <a href="addressbook-example.html#x578">addressbook/centralwidget.cpp</a>, <a href="layout-example.html#x533">layout/layout.cpp</a>, <a href="rot-example.html#x1370">rot13/rot13.cpp</a>, <a href="sql.html#x2221">sql/overview/form1/main.cpp</a>, <a href="sql.html#x2230">sql/overview/form2/main.cpp</a>, <a href="tutorial1-14.html#x2441">t14/gamebrd.cpp</a>, and <a href="tutorial1-08.html#x2337">t8/main.cpp</a>. -<h3 class=fn><a href="qrect.html">TQRect</a> <a name="cellGeometry"></a>TQGridLayout::cellGeometry ( int row, int col ) const +<h3 class=fn><a href="ntqrect.html">TQRect</a> <a name="cellGeometry"></a>TQGridLayout::cellGeometry ( int row, int col ) const </h3> Returns the geometry of the cell with row <em>row</em> and column <em>col</em> 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="qlayout.html#mainWidget">mainWidget</a>() is visible. +after the <a href="ntqlayout.html#mainWidget">mainWidget</a>() is visible. <h3 class=fn>int <a name="colSpacing"></a>TQGridLayout::colSpacing ( int col ) const </h3> @@ -297,15 +297,15 @@ columns. Will not shrink the grid. You should not need to call this function because TQGridLayout expands automatically as new items are inserted. -<h3 class=fn><a href="qsizepolicy.html#ExpandData-enum">TQSizePolicy::ExpandData</a> <a name="expanding"></a>TQGridLayout::expanding () const<tt> [virtual]</tt> +<h3 class=fn><a href="ntqsizepolicy.html#ExpandData-enum">TQSizePolicy::ExpandData</a> <a name="expanding"></a>TQGridLayout::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>bool <a name="findWidget"></a>TQGridLayout::findWidget ( <a href="qwidget.html">TQWidget</a> * w, int * row, int * col )<tt> [protected]</tt> +<p>Reimplemented from <a href="ntqlayout.html#expanding">TQLayout</a>. +<h3 class=fn>bool <a name="findWidget"></a>TQGridLayout::findWidget ( <a href="ntqwidget.html">TQWidget</a> * w, int * row, int * col )<tt> [protected]</tt> </h3> Searches for widget <em>w</em> in this layout (not including child layouts). If <em>w</em> is found, it sets <tt><em>row</em></tt> and <tt><em>col</em></tt> to @@ -328,17 +328,17 @@ Returns the layout's preferred height when it is <em>w</em> pixels wide. </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>TQGridLayout::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>TQGridLayout::maximumSize () const<tt> [virtual]</tt> </h3> Returns the maximum size needed by this grid. -<p>Reimplemented from <a href="qlayout.html#maximumSize">TQLayout</a>. -<h3 class=fn><a href="qsize.html">TQSize</a> <a name="minimumSize"></a>TQGridLayout::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>TQGridLayout::minimumSize () const<tt> [virtual]</tt> </h3> Returns the minimum size needed by this grid. -<p>Reimplemented from <a href="qlayout.html#minimumSize">TQLayout</a>. +<p>Reimplemented from <a href="ntqlayout.html#minimumSize">TQLayout</a>. <h3 class=fn>int <a name="numCols"></a>TQGridLayout::numCols () const </h3> Returns the number of columns in this grid. @@ -380,11 +380,11 @@ grow. <p> <p>See also <a href="#colStretch">colStretch</a>(), <a href="#addColSpacing">addColSpacing</a>(), and <a href="#setRowStretch">setRowStretch</a>(). <p>Examples: <a href="layout-example.html#x534">layout/layout.cpp</a>, <a href="tutorial1-14.html#x2442">t14/gamebrd.cpp</a>, and <a href="tutorial1-08.html#x2338">t8/main.cpp</a>. -<h3 class=fn>void <a name="setGeometry"></a>TQGridLayout::setGeometry ( const <a href="qrect.html">TQRect</a> & r )<tt> [virtual]</tt> +<h3 class=fn>void <a name="setGeometry"></a>TQGridLayout::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>. +<p>Reimplemented from <a href="ntqlayout.html#setGeometry">TQLayout</a>. <h3 class=fn>void <a name="setOrigin"></a>TQGridLayout::setOrigin ( <a href="qgridlayout.html#Corner-enum">Corner</a> c ) </h3> Sets the grid's origin corner, i.e. position (0, 0), to <em>c</em>. @@ -406,7 +406,7 @@ other row in this table can grow at all, the row may still grow. <p> <p>See also <a href="#rowStretch">rowStretch</a>(), <a href="#setRowSpacing">setRowSpacing</a>(), and <a href="#setColStretch">setColStretch</a>(). <p>Examples: <a href="addressbook-example.html#x579">addressbook/centralwidget.cpp</a> and <a href="qaxcontainer-example-qutlook.html#x2722">qutlook/centralwidget.cpp</a>. -<h3 class=fn><a href="qsize.html">TQSize</a> <a name="sizeHint"></a>TQGridLayout::sizeHint () const<tt> [virtual]</tt> +<h3 class=fn><a href="ntqsize.html">TQSize</a> <a name="sizeHint"></a>TQGridLayout::sizeHint () const<tt> [virtual]</tt> </h3> Returns the preferred size of this grid. |