# tablewidget class

Tablewidget widget.

Inherits
object widget
Description
This widget provides a table.
Functions

`$setText(<row:uint>,<col:uint>,[<text:string>])`
Sets the contents of the cell pointeid by row and col to text.
`$setTooltip(<row:uint>,<col:uint>,[<text:string>])`
Sets the tooltip of the cell pointeid by row and col to text.
`$setNumber(<row:uint>,<col:uint>,[<number:integer>]).`
Sets the contents of the cell pointeid by row and col to number.
`<string> $text(<row:integer>,<col:integer>)`
Returns the text of the cell pointed by row and col.
`$setHorizontalHeaderLabels(<string array>)`
Sets the horizontal header labels using labels.
`$showHorizontalHeader()`
Shows the horizontal header.
`$hideHorizontalHeader()`
Hides the horizontal header.
`$setVerticalHeaderLabels(<string array>)`
Sets the vertical header labels using labels.
`$showVerticalHeader()`
Shows the vertical header.
`$hideVerticalHeader()`
Hides the vertical header.
`$setRowCount(<integer>)`
Sets the number of rows in the table.
`<integer> $rowCount()`
Returns the number of rows in the table.
`<integer> $currentRow()`
Returns the current row. Useful in the [classfnc]customContextMenuRequestedEvent[/classfnc].
`$setColumnCount(<integer>)`
Sets the number of columns in the table.
`<integer> $columnCount()`
Returns the number of columns in the table.
`<integer> $currentRow()`
Returns the current column. Useful in the [classfnc]customContextMenuRequestedEvent[/classfnc]
`$setFlag(<row:uint>,<col:uint>,<flag1:string>, <flag2:string>, ...)`

Sets the flags for the cell pointed by row and col to the given flags. These determine whether the cell can be selected or modified. Supported flags are: - noitemflag : no flag sets; - selectable : cell is selecatble; - editable : cell is editable; - dragEnabled : cell can dragged; - dropEnabled : cell can used as drop target; - userCheckable : cell is checkable; - enabled :cell is enabled; - tristate : cell is checkable with three separate states.

`$setCellWidget(<row:uint>,<column:uint>,<widget:hobject>)`
Sets the given widget to be displayed in the cell in the given row and column, passing the ownership of the widget to the table.
`$setIcon(<row:uint>,<column:uint>,<icon:imageid or hobject>)`
Sets the cell icon pointed by <row>,<column>. Icon parameter can be a standard KVIrc image identifier icon or a KVS pixmap's object.
`$hideRow(<row:uint>)`
Hides the row <row>.
`$showRow(<row:uint>)`
Shows the row <row>.
`$hideColumn(<col:uint>)`
Hides the column <col>.
`$showColumn(<col:uint>)`
Shows the column <col>.
`$clear()`
Clears the table.
`<row,col> $itemEnteredEvent()`
This event is triggered when the mouse cursor enters an cell.
`<row,col> $cellActivatedEvent()`
This event is triggered when the cell specified by row and column has been activated
`<row,col> $cellDoubleClickedEvent()`
This event is triggered whenever a cell in the table is double clicked.
`$paintCellEvent(<painter:hobject>,<row,uint>,<col:uint>)`
This event handler can be reimplemented to repaint cells. The framework will pass the row/col coordinates and, as parameter, a painterobject. You don't need to begin/end/delete the painter.
`$sizeHintCellRequestEvent()`
!fn; $resizeRowsToContents()

Signals

`$clicked()`
This signal is emitted by the default implementation of $clickEvent().

Index, Object Classes

KVIrc 4.0.4.5646 Documentation
Generated by ports-powerpc at Thu Jul 19 01:30:35 2012