The check box state of a cell is determined by the method checkState(). The default implementation of this method works for all standard Qics data types (QicsDataInt, QicsDataString etc.). In case of using custom data type you must reimplement this method.

The text that is displayed in the cell is determined by the method textToDisplay(). The default implementation of this method returns the value of the label property for the cell. This method may be reimplemented in a subclass by the programmer.

The pixmap that is displayed in the cell is determined by the method pixmapToDisplay(). The default implementation of this method returns the value of the pixmap property for the cell. This method may be reimplemented in a subclass by the programmer.

When the check box state of a cell is changed by the user, the valueChanged() method is called. The default implementation of this method works for all standard Qics data types (QicsDataInt, QicsDataString etc.). In case of using custom data types you must reimplement this method.

Denotes the visual style that the current cell of the table will be drawn with.

Spreadsheet The current cell will be drawn with a solid border and will always use the cell's background color.

NormalSelected The current cell will be drawn the same as all other selected cells. The border will be as specified in the cell's border properties, and the background will be the cell's selected color.

Begin an edit operation in cell (row, col ). This method is intended to be used as a "preparation" for an edit operation. It will be called by the grid in response to a user action or a programmatic call. Note that this method does not specify a location in the grid widget for the edit operation to take place. The location will be specified in a subsequent call to moveEdit().

This method is called by the grid widget when the cell currently being edited has changed location in the grid. This would most commonly occur when the table is scrolled while an edit operation is underway.

Handler for mouse events that occur within cell (row, col ). The handler must return true if the event was handled by the cell displayer (and thus should not be handled by the grid), or false otherwise.

Handler for keyboard events that occur within cell (row, col ). The handler must return true if the event was handled by the cell displayer (and thus should not be handled by the grid), or false otherwise.

This method is called when the checkbox state for cell (row, col ) is changed. The new checkbox state is set.

This method works for all standard Qics data types. In case of using custom data type you must reimplement this virtual method. Possible actions could include setting a new value in the data model or performing some other action based on the state of the checkbox.

If you use this method to set a new value in the data model, it is generally preferrable to use QicsGridInfo::setCurrentCellValue() or QicsGridInfo::setCellValue(), as these methods will ensure that the valueChanged signal of QicsTable is emitted.

Returns true if cell (row, col ) is selected in grids described by info. If the grid(s) are main table grids, this method simply determines if the cell is contained in the current selection list. If the grid(s) are header grids, this method determines if all the cells in the header cell's row or column are selected.

Returns the palette to be used when drawing in cell (row, col ), using grid information from info. If for_printer is true, the palette will have a white background color substituted for any background colors that are the same as the default background color of the grid.

Returns a rectangle specifying the area of cell (row, col ) that can be used to display information. This rectangle is based on the full area of the cell (contained in cr_full ), minus the area reserved for the cell's border and margin.

This default method returns the pixmap that was set for this cell via QicsCell::setPixmap , or 0 if no such pixmap exists.

This method is intended to be reimplemented by subclasses of QicsCheckCellDisplay. The programmer should implement this method so that it returns the appropriate value for the given cell. If no pixmap should be displayed, return the null pixmap.

Parameters:

info

grid info object

row

the visual row index of the cell

col

the visual column index of the cell

itm

the data item for this cell (this value may be 0)

The documentation for this class was generated from the following file: