diff options
Diffstat (limited to 'doc/html/tqtable.html')
-rw-r--r-- | doc/html/tqtable.html | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/doc/html/tqtable.html b/doc/html/tqtable.html index 093782755..b9b891b3c 100644 --- a/doc/html/tqtable.html +++ b/doc/html/tqtable.html @@ -67,8 +67,8 @@ body { background: #ffffff; color: black; } <li class=fn>int <a href="#currentColumn"><b>currentColumn</b></a> () const</li> <li class=fn>void <a href="#ensureCellVisible"><b>ensureCellVisible</b></a> ( int row, int col )</li> <li class=fn>bool <a href="#isSelected"><b>isSelected</b></a> ( int row, int col ) const</li> -<li class=fn>bool <a href="#isRowSelected"><b>isRowSelected</b></a> ( int row, bool full = FALSE ) const</li> -<li class=fn>bool <a href="#isColumnSelected"><b>isColumnSelected</b></a> ( int col, bool full = FALSE ) const</li> +<li class=fn>bool <a href="#isRowSelected"><b>isRowSelected</b></a> ( int row, bool full = false ) const</li> +<li class=fn>bool <a href="#isColumnSelected"><b>isColumnSelected</b></a> ( int col, bool full = false ) const</li> <li class=fn>int <a href="#numSelections"><b>numSelections</b></a> () const</li> <li class=fn>TQTableSelection <a href="#selection"><b>selection</b></a> ( int num ) const</li> <li class=fn>virtual int <a href="#addSelection"><b>addSelection</b></a> ( const TQTableSelection & s )</li> @@ -81,7 +81,7 @@ body { background: #ffffff; color: black; } <li class=fn>bool <a href="#showGrid"><b>showGrid</b></a> () const</li> <li class=fn>bool <a href="#columnMovingEnabled"><b>columnMovingEnabled</b></a> () const</li> <li class=fn>bool <a href="#rowMovingEnabled"><b>rowMovingEnabled</b></a> () const</li> -<li class=fn>virtual void <a href="#sortColumn"><b>sortColumn</b></a> ( int col, bool ascending = TRUE, bool wholeRows = FALSE )</li> +<li class=fn>virtual void <a href="#sortColumn"><b>sortColumn</b></a> ( int col, bool ascending = true, bool wholeRows = false )</li> <li class=fn>bool <a href="#sorting"><b>sorting</b></a> () const</li> <li class=fn>virtual void <a href="#takeItem"><b>takeItem</b></a> ( TQTableItem * i )</li> <li class=fn>virtual void <a href="#setCellWidget"><b>setCellWidget</b></a> ( int row, int col, TQWidget * e )</li> @@ -120,13 +120,13 @@ body { background: #ffffff; color: black; } <li class=fn>bool <a href="#isColumnStretchable"><b>isColumnStretchable</b></a> ( int col ) const</li> <li class=fn>bool <a href="#isRowStretchable"><b>isRowStretchable</b></a> ( int row ) const</li> <li class=fn>virtual void <a href="#setSorting"><b>setSorting</b></a> ( bool b )</li> -<li class=fn>virtual void <a href="#swapRows"><b>swapRows</b></a> ( int row1, int row2, bool swapHeader = FALSE )</li> -<li class=fn>virtual void <a href="#swapColumns"><b>swapColumns</b></a> ( int col1, int col2, bool swapHeader = FALSE )</li> +<li class=fn>virtual void <a href="#swapRows"><b>swapRows</b></a> ( int row1, int row2, bool swapHeader = false )</li> +<li class=fn>virtual void <a href="#swapColumns"><b>swapColumns</b></a> ( int col1, int col2, bool swapHeader = false )</li> <li class=fn>virtual void <a href="#swapCells"><b>swapCells</b></a> ( int row1, int col1, int row2, int col2 )</li> <li class=fn>virtual void <a href="#setLeftMargin"><b>setLeftMargin</b></a> ( int m )</li> <li class=fn>virtual void <a href="#setTopMargin"><b>setTopMargin</b></a> ( int m )</li> <li class=fn>virtual void <a href="#setCurrentCell"><b>setCurrentCell</b></a> ( int row, int col )</li> -<li class=fn>void <a href="#clearSelection"><b>clearSelection</b></a> ( bool repaint = TRUE )</li> +<li class=fn>void <a href="#clearSelection"><b>clearSelection</b></a> ( bool repaint = true )</li> <li class=fn>virtual void <a href="#setColumnMovingEnabled"><b>setColumnMovingEnabled</b></a> ( bool b )</li> <li class=fn>virtual void <a href="#setRowMovingEnabled"><b>setRowMovingEnabled</b></a> ( bool b )</li> <li class=fn>virtual void <a href="#setReadOnly"><b>setReadOnly</b></a> ( bool b )</li> @@ -140,7 +140,7 @@ body { background: #ffffff; color: black; } <li class=fn>virtual void <a href="#removeRows"><b>removeRows</b></a> ( const TQMemArray<int> & rows )</li> <li class=fn>virtual void <a href="#removeColumn"><b>removeColumn</b></a> ( int col )</li> <li class=fn>virtual void <a href="#removeColumns"><b>removeColumns</b></a> ( const TQMemArray<int> & cols )</li> -<li class=fn>virtual void <a href="#editCell"><b>editCell</b></a> ( int row, int col, bool replace = FALSE )</li> +<li class=fn>virtual void <a href="#editCell"><b>editCell</b></a> ( int row, int col, bool replace = false )</li> <li class=fn>void <a href="#setRowLabels"><b>setRowLabels</b></a> ( const TQStringList & labels )</li> <li class=fn>void <a href="#setColumnLabels"><b>setColumnLabels</b></a> ( const TQStringList & labels )</li> </ul> @@ -232,7 +232,7 @@ By default a vertical header appears at the left of the table showing row numbers and a horizontal header appears at the top of the table showing column numbers. (The numbers displayed start at 1, although row and column numbers within TQTable begin at 0.) -<p> If you want to use mouse tracking call <a href="tqwidget.html#setMouseTracking">setMouseTracking</a>( TRUE ) on +<p> If you want to use mouse tracking call <a href="tqwidget.html#setMouseTracking">setMouseTracking</a>( true ) on the <em>viewport</em>; (see <a href="tqscrollview.html#allviews">TQScrollView</a>). <p> <center><img src="tqtableitems.png" alt="Table Items"></center> <p> <a name="headers"></a> @@ -282,7 +282,7 @@ difference between the section and the index fields in TQHeader. The TQTable TQHeader classes do not provide a mechanism for indexing independently of the user interface ordering. <p> The table can be sorted using <a href="#sortColumn">sortColumn</a>(). Users can sort a -column by clicking its header if <a href="#setSorting">setSorting</a>() is set to TRUE. Rows +column by clicking its header if <a href="#setSorting">setSorting</a>() is set to true. Rows can be swapped with <a href="#swapRows">swapRows</a>(), columns with <a href="#swapColumns">swapColumns</a>() and cells with <a href="#swapCells">swapCells</a>(). <p> For editable tables (see <a href="#setReadOnly">setReadOnly</a>()) you can set the read-only @@ -495,7 +495,7 @@ This function is called to start in-place editing of the cell at (<a href="#createEditor">createEditor</a>() is called) and setting the cell's editor with <a href="#setCellWidget">setCellWidget</a>() to the newly created editor. (After editing is complete <a href="#endEdit">endEdit</a>() will be called to replace the cell's content -with the editor's content.) If <em>replace</em> is TRUE the editor will +with the editor's content.) If <em>replace</em> is true the editor will start empty; otherwise it will be initialized with the cell's content (if any), i.e. the user will be modifying the original cell content. @@ -540,9 +540,9 @@ widget is not deleted immediately; instead <a href="tqobject.html#deleteLater">T is called on the widget to avoid problems with timing issues. <p> <p>See also <a href="#cellWidget">cellWidget</a>() and <a href="#setCellWidget">setCellWidget</a>(). -<h3 class=fn>void <a name="clearSelection"></a>TQTable::clearSelection ( bool repaint = TRUE )<tt> [slot]</tt> +<h3 class=fn>void <a name="clearSelection"></a>TQTable::clearSelection ( bool repaint = true )<tt> [slot]</tt> </h3> -Clears all selections and repaints the appropriate regions if <em>repaint</em> is TRUE. +Clears all selections and repaints the appropriate regions if <em>repaint</em> is true. <p> <p>See also <a href="#removeSelection">removeSelection</a>(). <h3 class=fn>void <a name="clicked"></a>TQTable::clicked ( int row, int col, int button, const <a href="tqpoint.html">TQPoint</a> & mousePos )<tt> [signal]</tt> @@ -563,7 +563,7 @@ given in content coordinates. <h3 class=fn>void <a name="columnClicked"></a>TQTable::columnClicked ( int col )<tt> [virtual protected slot]</tt> </h3> This function is called when the column <em>col</em> has been clicked. -The default implementation sorts this column if <a href="#sorting">sorting</a>() is TRUE. +The default implementation sorts this column if <a href="#sorting">sorting</a>() is true. <h3 class=fn>void <a name="columnIndexChanged"></a>TQTable::columnIndexChanged ( int section, int fromIndex, int toIndex )<tt> [virtual protected slot]</tt> </h3> @@ -575,7 +575,7 @@ to <em>toIndex</em>. <p> <p>See also <a href="tqheader.html#indexChange">TQHeader::indexChange</a>() and <a href="#rowIndexChanged">rowIndexChanged</a>(). <h3 class=fn>bool <a name="columnMovingEnabled"></a>TQTable::columnMovingEnabled () const -</h3><p>Returns TRUE if columns can be moved by the user; otherwise returns FALSE. +</h3><p>Returns true if columns can be moved by the user; otherwise returns false. See the <a href="tqtable.html#columnMovingEnabled-prop">"columnMovingEnabled"</a> property for details. <h3 class=fn>int <a name="columnPos"></a>TQTable::columnPos ( int col ) const<tt> [virtual]</tt> </h3> @@ -637,14 +637,14 @@ contents of the cell are disabled. </h3> This function returns the widget which should be used as an editor for the contents of the cell at <em>row</em>, <em>col</em>. -<p> If <em>initFromCell</em> is TRUE, the editor is used to edit the current +<p> If <em>initFromCell</em> is true, the editor is used to edit the current contents of the cell (so the editor widget should be initialized -with this content). If <em>initFromCell</em> is FALSE, the content of +with this content). If <em>initFromCell</em> is false, the content of the cell is replaced with the new content which the user entered into the widget created by this function. <p> The default functionality is as follows: if <em>initFromCell</em> is -TRUE or the cell has a <a href="tqtableitem.html">TQTableItem</a> and the table item's -<a href="tqtableitem.html#isReplaceable">TQTableItem::isReplaceable</a>() is FALSE then the cell is asked to +true or the cell has a <a href="tqtableitem.html">TQTableItem</a> and the table item's +<a href="tqtableitem.html#isReplaceable">TQTableItem::isReplaceable</a>() is false then the cell is asked to create an appropriate editor (using <a href="tqtableitem.html#createEditor">TQTableItem::createEditor</a>()). Otherwise a <a href="tqlineedit.html">TQLineEdit</a> is used as the editor. <p> If you want to create your own editor for certain cells, implement @@ -712,13 +712,13 @@ double-clicked. The cell where the event took place is at <em>row</em>, <h3 class=fn>bool <a name="dragEnabled"></a>TQTable::dragEnabled () const<tt> [slot]</tt> </h3> -If this function returns TRUE, the table supports dragging. +If this function returns true, the table supports dragging. <p> <p>See also <a href="#setDragEnabled">setDragEnabled</a>(). <h3 class=fn><a href="tqdragobject.html">TQDragObject</a> * <a name="dragObject"></a>TQTable::dragObject ()<tt> [virtual protected]</tt> </h3> If the user presses the mouse on a selected cell, starts moving -(i.e. dragging), and <a href="#dragEnabled">dragEnabled</a>() is TRUE, this function is +(i.e. dragging), and <a href="#dragEnabled">dragEnabled</a>() is true, this function is called to obtain a drag object. A drag using this object begins immediately unless <a href="#dragObject">dragObject</a>() returns 0. <p> By default this function returns 0. You might reimplement it and @@ -740,10 +740,10 @@ wide and <em>ch</em> pixels high clipping rectangle at position <em>cx</em>, <p> This signal is emitted when a drop event occurred on the table. <p> <em>e</em> contains information about the drop. -<h3 class=fn>void <a name="editCell"></a>TQTable::editCell ( int row, int col, bool replace = FALSE )<tt> [virtual slot]</tt> +<h3 class=fn>void <a name="editCell"></a>TQTable::editCell ( int row, int col, bool replace = false )<tt> [virtual slot]</tt> </h3> Starts editing the cell at <em>row</em>, <em>col</em>. -<p> If <em>replace</em> is TRUE the content of this cell will be replaced by +<p> If <em>replace</em> is true the content of this cell will be replaced by the content of the editor when editing is finished, i.e. the user will be entering new data; otherwise the current content of the cell (if any) will be modified in the editor. @@ -757,10 +757,10 @@ Returns the current edit mode <h3 class=fn>void <a name="endEdit"></a>TQTable::endEdit ( int row, int col, bool accept, bool replace )<tt> [virtual protected]</tt> </h3> This function is called when in-place editing of the cell at <em>row</em>, <em>col</em> is requested to stop. -<p> If the cell is not being edited or <em>accept</em> is FALSE the function +<p> If the cell is not being edited or <em>accept</em> is false the function returns and the cell's contents are left unchanged. -<p> If <em>accept</em> is TRUE the content of the editor must be transferred -to the relevant cell. If <em>replace</em> is TRUE the current content of +<p> If <em>accept</em> is true the content of the editor must be transferred +to the relevant cell. If <em>replace</em> is true the current content of this cell should be replaced by the content of the editor (this means removing the current <a href="tqtableitem.html">TQTableItem</a> of the cell and creating a new one for the cell). Otherwise (if possible) the content of the @@ -826,74 +826,74 @@ function: see the <a href="tqtable.html#notes-on-large-tables">notes on large ta <h3 class=fn>bool <a name="isColumnHidden"></a>TQTable::isColumnHidden ( int col ) const<tt> [slot]</tt> </h3> -Returns TRUE if column <em>col</em> is hidden; otherwise returns -FALSE. +Returns true if column <em>col</em> is hidden; otherwise returns +false. <p> <p>See also <a href="#hideColumn">hideColumn</a>() and <a href="#isRowHidden">isRowHidden</a>(). <h3 class=fn>bool <a name="isColumnReadOnly"></a>TQTable::isColumnReadOnly ( int col ) const </h3> -Returns TRUE if column <em>col</em> is read-only; otherwise returns -FALSE. +Returns true if column <em>col</em> is read-only; otherwise returns +false. <p> Whether a cell in this column is editable or read-only depends on the cell's EditType, and this setting: see <a href="tqtableitem.html#wheneditable">TQTableItem::EditType</a>. <p> <p>See also <a href="#setColumnReadOnly">setColumnReadOnly</a>() and <a href="#isRowReadOnly">isRowReadOnly</a>(). -<h3 class=fn>bool <a name="isColumnSelected"></a>TQTable::isColumnSelected ( int col, bool full = FALSE ) const +<h3 class=fn>bool <a name="isColumnSelected"></a>TQTable::isColumnSelected ( int col, bool full = false ) const </h3> -Returns TRUE if column <em>col</em> is selected; otherwise returns FALSE. -<p> If <em>full</em> is FALSE (the default), 'column is selected' means that -at least one cell in the column is selected. If <em>full</em> is TRUE, +Returns true if column <em>col</em> is selected; otherwise returns false. +<p> If <em>full</em> is false (the default), 'column is selected' means that +at least one cell in the column is selected. If <em>full</em> is true, then 'column is selected' means every cell in the column is selected. <p> <p>See also <a href="#isRowSelected">isRowSelected</a>() and <a href="#isSelected">isSelected</a>(). <h3 class=fn>bool <a name="isColumnStretchable"></a>TQTable::isColumnStretchable ( int col ) const<tt> [slot]</tt> </h3> -Returns TRUE if column <em>col</em> is stretchable; otherwise returns -FALSE. +Returns true if column <em>col</em> is stretchable; otherwise returns +false. <p> <p>See also <a href="#setColumnStretchable">setColumnStretchable</a>() and <a href="#isRowStretchable">isRowStretchable</a>(). <h3 class=fn>bool <a name="isEditing"></a>TQTable::isEditing () const<tt> [protected]</tt> </h3> -Returns TRUE if the <a href="#EditMode-enum">EditMode</a> is <a href="#EditMode-enum">Editing</a> or <a href="#EditMode-enum">Replacing</a>; -otherwise (i.e. the <a href="#EditMode-enum">EditMode</a> is <a href="#EditMode-enum">NotEditing</a>) returns FALSE. +Returns true if the <a href="#EditMode-enum">EditMode</a> is <a href="#EditMode-enum">Editing</a> or <a href="#EditMode-enum">Replacing</a>; +otherwise (i.e. the <a href="#EditMode-enum">EditMode</a> is <a href="#EditMode-enum">NotEditing</a>) returns false. <p> <p>See also <a href="#EditMode-enum">TQTable::EditMode</a>. <h3 class=fn>bool <a name="isReadOnly"></a>TQTable::isReadOnly () const -</h3><p>Returns TRUE if the table is read-only; otherwise returns FALSE. +</h3><p>Returns true if the table is read-only; otherwise returns false. See the <a href="tqtable.html#readOnly-prop">"readOnly"</a> property for details. <h3 class=fn>bool <a name="isRowHidden"></a>TQTable::isRowHidden ( int row ) const<tt> [slot]</tt> </h3> -Returns TRUE if row <em>row</em> is hidden; otherwise returns -FALSE. +Returns true if row <em>row</em> is hidden; otherwise returns +false. <p> <p>See also <a href="#hideRow">hideRow</a>() and <a href="#isColumnHidden">isColumnHidden</a>(). <h3 class=fn>bool <a name="isRowReadOnly"></a>TQTable::isRowReadOnly ( int row ) const </h3> -Returns TRUE if row <em>row</em> is read-only; otherwise returns FALSE. +Returns true if row <em>row</em> is read-only; otherwise returns false. <p> Whether a cell in this row is editable or read-only depends on the cell's <a href="tqtableitem.html#EditType-enum">EditType</a>, and this setting: see <a href="tqtableitem.html#wheneditable">TQTableItem::EditType</a>. <p> <p>See also <a href="#setRowReadOnly">setRowReadOnly</a>() and <a href="#isColumnReadOnly">isColumnReadOnly</a>(). -<h3 class=fn>bool <a name="isRowSelected"></a>TQTable::isRowSelected ( int row, bool full = FALSE ) const +<h3 class=fn>bool <a name="isRowSelected"></a>TQTable::isRowSelected ( int row, bool full = false ) const </h3> -Returns TRUE if row <em>row</em> is selected; otherwise returns FALSE. -<p> If <em>full</em> is FALSE (the default), 'row is selected' means that at -least one cell in the row is selected. If <em>full</em> is TRUE, then 'row +Returns true if row <em>row</em> is selected; otherwise returns false. +<p> If <em>full</em> is false (the default), 'row is selected' means that at +least one cell in the row is selected. If <em>full</em> is true, then 'row is selected' means every cell in the row is selected. <p> <p>See also <a href="#isColumnSelected">isColumnSelected</a>() and <a href="#isSelected">isSelected</a>(). <h3 class=fn>bool <a name="isRowStretchable"></a>TQTable::isRowStretchable ( int row ) const<tt> [slot]</tt> </h3> -Returns TRUE if row <em>row</em> is stretchable; otherwise returns -FALSE. +Returns true if row <em>row</em> is stretchable; otherwise returns +false. <p> <p>See also <a href="#setRowStretchable">setRowStretchable</a>() and <a href="#isColumnStretchable">isColumnStretchable</a>(). <h3 class=fn>bool <a name="isSelected"></a>TQTable::isSelected ( int row, int col ) const </h3> -Returns TRUE if the cell at <em>row</em>, <em>col</em> is selected; otherwise -returns FALSE. +Returns true if the cell at <em>row</em>, <em>col</em> is selected; otherwise +returns false. <p> <p>See also <a href="#isRowSelected">isRowSelected</a>() and <a href="#isColumnSelected">isColumnSelected</a>(). <h3 class=fn><a href="tqtableitem.html">TQTableItem</a> * <a name="item"></a>TQTable::item ( int row, int col ) const<tt> [virtual]</tt> @@ -922,7 +922,7 @@ See the <a href="tqtable.html#numSelections-prop">"numSelections"</a> property f Paints the cell at <em>row</em>, <em>col</em> on the painter <em>p</em>. The painter has already been translated to the cell's origin. <em>cr</em> describes the cell coordinates in the content coordinate system. -<p> If <em>selected</em> is TRUE the cell is highlighted. +<p> If <em>selected</em> is true the cell is highlighted. <p> <em>cg</em> is the colorgroup which should be used to draw the cell content. <p> If you want to draw custom cell content, for example right-aligned @@ -941,7 +941,7 @@ maximum efficiency. If you want clipping, use code like this: <p> <pre> p->setClipRect( <a href="#cellRect">cellRect</a>(row, col), TQPainter::CoordPainter ); //... your drawing code - p->setClipping( FALSE ); + p->setClipping( false ); </pre> @@ -1064,7 +1064,7 @@ or <a href="#swapColumns">swapColumns</a>(); <p> <p>See also <a href="tqheader.html#indexChange">TQHeader::indexChange</a>() and <a href="#columnIndexChanged">columnIndexChanged</a>(). <h3 class=fn>bool <a name="rowMovingEnabled"></a>TQTable::rowMovingEnabled () const -</h3><p>Returns TRUE if rows can be moved by the user; otherwise returns FALSE. +</h3><p>Returns true if rows can be moved by the user; otherwise returns false. See the <a href="tqtable.html#rowMovingEnabled-prop">"rowMovingEnabled"</a> property for details. <h3 class=fn>int <a name="rowPos"></a>TQTable::rowPos ( int row ) const<tt> [virtual]</tt> </h3> @@ -1134,7 +1134,7 @@ setCellWidget. See the <a href="tqtable.html#columnMovingEnabled-prop">"columnMovingEnabled"</a> property for details. <h3 class=fn>void <a name="setColumnReadOnly"></a>TQTable::setColumnReadOnly ( int col, bool ro )<tt> [virtual slot]</tt> </h3> -If <em>ro</em> is TRUE, column <em>col</em> is set to be read-only; otherwise +If <em>ro</em> is true, column <em>col</em> is set to be read-only; otherwise the column is set to be editable. <p> Whether a cell in this column is editable or read-only depends on the cell's EditType, and this setting: @@ -1145,7 +1145,7 @@ see <a href="tqtableitem.html#wheneditable">TQTableItem::EditType</a>. <p>Example: <a href="tutorial2-08.html#x2619">chart/setdataform.cpp</a>. <h3 class=fn>void <a name="setColumnStretchable"></a>TQTable::setColumnStretchable ( int col, bool stretch )<tt> [virtual slot]</tt> </h3> -If <em>stretch</em> is TRUE, column <em>col</em> is set to be stretchable; +If <em>stretch</em> is true, column <em>col</em> is set to be stretchable; otherwise column <em>col</em> is set to be unstretchable. <p> If the table widget's width decreases or increases stretchable columns will grow narrower or wider to fit the space available as @@ -1167,7 +1167,7 @@ Moves the focus to the cell at <em>row</em>, <em>col</em>. <h3 class=fn>void <a name="setDragEnabled"></a>TQTable::setDragEnabled ( bool b )<tt> [virtual slot]</tt> </h3> -If <em>b</em> is TRUE, the table starts a drag (see <a href="#dragObject">dragObject</a>()) when +If <em>b</em> is true, the table starts a drag (see <a href="#dragObject">dragObject</a>()) when the user presses and moves the mouse on a selected cell. <h3 class=fn>void <a name="setEditMode"></a>TQTable::setEditMode ( <a href="tqtable.html#EditMode-enum">EditMode</a> mode, int row, int col )<tt> [protected]</tt> @@ -1233,7 +1233,7 @@ Resizes row <em>row</em> to be <em>h</em> pixels high. See the <a href="tqtable.html#rowMovingEnabled-prop">"rowMovingEnabled"</a> property for details. <h3 class=fn>void <a name="setRowReadOnly"></a>TQTable::setRowReadOnly ( int row, bool ro )<tt> [virtual slot]</tt> </h3> -If <em>ro</em> is TRUE, row <em>row</em> is set to be read-only; otherwise the +If <em>ro</em> is true, row <em>row</em> is set to be read-only; otherwise the row is set to be editable. <p> Whether a cell in this row is editable or read-only depends on the cell's EditType, and this setting: @@ -1242,7 +1242,7 @@ see <a href="tqtableitem.html#wheneditable">TQTableItem::EditType</a>. <h3 class=fn>void <a name="setRowStretchable"></a>TQTable::setRowStretchable ( int row, bool stretch )<tt> [virtual slot]</tt> </h3> -If <em>stretch</em> is TRUE, row <em>row</em> is set to be stretchable; +If <em>stretch</em> is true, row <em>row</em> is set to be stretchable; otherwise row <em>row</em> is set to be unstretchable. <p> If the table widget's height decreases or increases stretchable rows will grow shorter or taller to fit the space available as @@ -1283,18 +1283,18 @@ Shows column <em>col</em>. <p> <p>See also <a href="#hideColumn">hideColumn</a>() and <a href="#showRow">showRow</a>(). <h3 class=fn>bool <a name="showGrid"></a>TQTable::showGrid () const -</h3><p>Returns TRUE if the table's grid is displayed; otherwise returns FALSE. +</h3><p>Returns true if the table's grid is displayed; otherwise returns false. See the <a href="tqtable.html#showGrid-prop">"showGrid"</a> property for details. <h3 class=fn>void <a name="showRow"></a>TQTable::showRow ( int row )<tt> [virtual slot]</tt> </h3> Shows row <em>row</em>. <p> <p>See also <a href="#hideRow">hideRow</a>() and <a href="#showColumn">showColumn</a>(). -<h3 class=fn>void <a name="sortColumn"></a>TQTable::sortColumn ( int col, bool ascending = TRUE, bool wholeRows = FALSE )<tt> [virtual]</tt> +<h3 class=fn>void <a name="sortColumn"></a>TQTable::sortColumn ( int col, bool ascending = true, bool wholeRows = false )<tt> [virtual]</tt> </h3> -Sorts column <em>col</em>. If <em>ascending</em> is TRUE the sort is in +Sorts column <em>col</em>. If <em>ascending</em> is true the sort is in ascending order, otherwise the sort is in descending order. -<p> If <em>wholeRows</em> is TRUE, entire rows are sorted using <a href="#swapRows">swapRows</a>(); +<p> If <em>wholeRows</em> is true, entire rows are sorted using <a href="#swapRows">swapRows</a>(); otherwise only cells in the column are sorted using <a href="#swapCells">swapCells</a>(). <p> Note that if you are not using TQTableItems you will need to reimplement swapRows() and swapCells(). (See the <a href="tqtable.html#notes-on-large-tables">notes on large tables</a>.) @@ -1303,7 +1303,7 @@ reimplement swapRows() and swapCells(). (See the <a href="tqtable.html#notes-on- <p>Example: <a href="statistics-example.html#x2784">table/statistics/statistics.cpp</a>. <p>Reimplemented in <a href="tqdatatable.html#sortColumn">TQDataTable</a>. <h3 class=fn>bool <a name="sorting"></a>TQTable::sorting () const -</h3><p>Returns TRUE if a click on the header of a column sorts that column; otherwise returns FALSE. +</h3><p>Returns true if a click on the header of a column sorts that column; otherwise returns false. See the <a href="tqtable.html#sorting-prop">"sorting"</a> property for details. <h3 class=fn>void <a name="startDrag"></a>TQTable::startDrag ()<tt> [virtual protected]</tt> </h3> @@ -1321,7 +1321,7 @@ swap cells, you will need to reimplement this function. (See the <a href="tqtable.html#notes-on-large-tables">notes on large tables</a>.) <p> <p>See also <a href="#swapColumns">swapColumns</a>() and <a href="#swapRows">swapRows</a>(). -<h3 class=fn>void <a name="swapColumns"></a>TQTable::swapColumns ( int col1, int col2, bool swapHeader = FALSE )<tt> [virtual slot]</tt> +<h3 class=fn>void <a name="swapColumns"></a>TQTable::swapColumns ( int col1, int col2, bool swapHeader = false )<tt> [virtual slot]</tt> </h3> Swaps the data in <em>col1</em> with <em>col2</em>. <p> This function is used to swap the positions of two columns. It is @@ -1330,11 +1330,11 @@ called when the user changes the order of columns (see <p> If you don't use <a href="tqtableitem.html">TQTableItem</a>s and want your users to be able to swap columns you will need to reimplement this function. (See the <a href="tqtable.html#notes-on-large-tables">notes on large tables</a>.) -<p> If <em>swapHeader</em> is TRUE, the columns' header contents is also +<p> If <em>swapHeader</em> is true, the columns' header contents is also swapped. <p> <p>See also <a href="#swapCells">swapCells</a>(). -<h3 class=fn>void <a name="swapRows"></a>TQTable::swapRows ( int row1, int row2, bool swapHeader = FALSE )<tt> [virtual slot]</tt> +<h3 class=fn>void <a name="swapRows"></a>TQTable::swapRows ( int row1, int row2, bool swapHeader = false )<tt> [virtual slot]</tt> </h3> Swaps the data in <em>row1</em> and <em>row2</em>. <p> This function is used to swap the positions of two rows. It is @@ -1343,7 +1343,7 @@ called when the user changes the order of rows (see <p> If you don't use <a href="tqtableitem.html">TQTableItem</a>s and want your users to be able to swap rows, e.g. for sorting, you will need to reimplement this function. (See the <a href="tqtable.html#notes-on-large-tables">notes on large tables</a>.) -<p> If <em>swapHeader</em> is TRUE, the rows' header contents is also +<p> If <em>swapHeader</em> is true, the rows' header contents is also swapped. <p> This function will not update the TQTable, you will have to do this manually, e.g. by calling <a href="tqscrollview.html#updateContents">updateContents</a>(). @@ -1395,7 +1395,7 @@ Returns the table's vertical <a href="tqheader.html">TQHeader</a>. <hr><h2>Property Documentation</h2> <h3 class=fn>bool <a name="columnMovingEnabled-prop"></a>columnMovingEnabled</h3> <p>This property holds whether columns can be moved by the user. -<p>The default is FALSE. Columns are moved by dragging whilst holding +<p>The default is false. Columns are moved by dragging whilst holding down the Ctrl key. <p> <b>Warning:</b> If TQTable is used to move header sections as a result of user interaction, the mapping between header indexes and section exposed by @@ -1436,7 +1436,7 @@ see <a href="tqtableitem.html#wheneditable">TQTableItem::EditType</a>. <p>Set this property's value with <a href="#setReadOnly">setReadOnly</a>() and get this property's value with <a href="#isReadOnly">isReadOnly</a>(). <h3 class=fn>bool <a name="rowMovingEnabled-prop"></a>rowMovingEnabled</h3> <p>This property holds whether rows can be moved by the user. -<p>The default is FALSE. Rows are moved by dragging whilst holding +<p>The default is false. Rows are moved by dragging whilst holding down the Ctrl key. <p> <b>Warning:</b> If TQTable is used to move header sections as a result of user interaction, the mapping between header indexes and section exposed by |