ICS

QicsTable Documentation Set

QicsDataModelDefault Class Reference

A fast implementation of the QicsDataModel interface. More...

#include <QicsDataModelDefault.h>

Inherits QicsDataModel.

List of all members.

Public Types

typedef QicsDataModel *(* Foundry )(int num_rows, int num_cols)
typedef QicsDataModel *(* FoundryWithKey )(int num_rows, int num_cols, void *key)
enum  QicsWideKeyAction { Del_DeleteSelected, CtrlA_SelectAll }
enum  QicsBoxBorders {
  TopBorder = 1, BottomBorder = 2, LeftBorder = 4, RightBorder = 8,
  AllBorders = 1+2+4+8
}
enum  QicsCopyPolicy {
  CopyData = 1, CopyAttributes = 2, CopyDimensions = 4, CopySpans = 8,
  CopyAll = 1+2+4+8
}
enum  QicsClearPolicy { ClearData = 1, ClearAttributes = 2, ClearSpans = 4, ClearAll = 1+2+4 }
enum  QicsSortMode { QicsStableSort = 0, QicsQuickSort }
enum  QicsCellOverflowBehavior { Clip = 0, Overflow, ToolTip }
enum  QicsCurrentCellStyle { Spreadsheet = 0, NormalSelected }
enum  QicsSelectionStyle { Normal = 0, Exclusive }
enum  QicsSelectCurrentCellPolicy { Follow = 0, Static }
enum  QicsFillHandleEventType { FillHandlePressed = 0, FillHandleReleased, FillHandleDoubleClicked, FillHandleDragged }
enum  QicsGridCellClipping { AllowPartial = 0, NoDisplayOnPartial, UseClippedSymbol }
enum  QicsGridType { TableGrid = 0, RowHeaderGrid, ColumnHeaderGrid }
enum  QicsHeaderType { RowHeader = 0, ColumnHeader }
enum  QicsIndexType { NoIndex = 0, RowIndex, ColumnIndex, RowAndColumnIndex }
enum  QicsLineStyle { None = 0, Plain, Raised, Sunken }
enum  QicsRepaintBehavior { RepaintOff = 0, RepaintOn = 1, RepaintCalcOnly = 2 }
enum  QicsScrollBarMode { Auto = 0, AlwaysOff, AlwaysOn }
enum  QicsScrollDirection {
  ScrollNone = 0, ScrollUp = 1, ScrollDown = 2, ScrollLeft = 4,
  ScrollRight = 8, ScrollToRow = 16, ScrollToColumn = 32
}
enum  QicsSelectionPolicy {
  SelectNone = 0, SelectSingle, SelectMultiple, SelectSingleRow,
  SelectMultipleRow
}
enum  QicsSelectionType {
  SelectionNone = 0, SelectionBegin, SelectionDrag, SelectionEnd,
  SelectionExtend, SelectionAdd, SelectionReplace
}
enum  QicsSortOrder { Ascending = 0, Descending }
enum  QicsTableDisplayOption { DisplayNever = 0, DisplayAlways, DisplayFirstPage }
enum  QicsTraversalKeyEditBehavior { TraverseWithinCell = 0, TraverseBetweenCells }
enum  QicsCurrentCellDraggingPolicy { DragCurrent = 0, DragSelection }
enum  QicsCellWidthMode { ChangeOnlyHeight = 0, ChangeHeightWidth }
enum  QicsCellDecorationStyle { Flat = 0, Styled = 1 }

Public Slots

virtual void setItem (int row, int col, const QicsDataItem &item)
virtual void insertColumns (int number_of_columns, int starting_position)
virtual void insertRows (int number_of_rows, int starting_position)
virtual void addColumns (int num)
virtual void addRows (int num)
virtual void clearItem (int row, int col)
virtual void clearModel (void)
virtual void deleteRow (int row)
virtual void deleteColumn (int col)
virtual void deleteRows (int num_rows, int start_row)
virtual void deleteColumns (int num_cols, int start_col)
virtual void setItem (int row, int col, int val)
virtual void setItem (int row, int col, long val)
virtual void setItem (int row, int col, qlonglong val)
virtual void setItem (int row, int col, float val)
virtual void setItem (int row, int col, double val)
virtual void setItem (int row, int col, const QString &val)
virtual void setItem (int row, int col, const char *val)
virtual void setItem (int row, int col, const QDate &val)
virtual void setItem (int row, int col, const QTime &val)
virtual void setItem (int row, int col, const QDateTime &val)
virtual void setItem (int row, int col, const bool &val)

Signals

void modelChanged (QicsRegion reg)
void modelSizeChanged (int new_number_of_rows, int new_number_of_columns)
void modelSizeChanged (int position, int num_items_added_removed, Qics::QicsIndexType row_or_col)
void rowsInserted (int number_of_rows, int starting_position)
void columnsInserted (int number_of_columns, int starting_position)
void rowsDeleted (int number_of_rows, int starting_position)
void columnsDeleted (int number_of_columns, int starting_position)
void rowsAdded (int number_of_rows)
void columnsAdded (int number_of_columns)
void cellValueChanged (int row, int col)
void prepareForRowChanges (int num_rows, int start_row)
void prepareForColumnChanges (int num_cols, int start_col)

Public Member Functions

 QicsDataModelDefault (int num_rows=0, int num_cols=0, QObject *parent=0)
virtual const QicsDataItemitem (int row, int col) const
virtual QicsDataModelRow rowItems (int row, int first_col, int last_col) const
virtual QicsDataModelColumn columnItems (int col, int first_row, int last_row) const
virtual void setColumnItems (int col, const QicsDataModelColumn &v)
virtual void setRowItems (int row, const QicsDataModelRow &v)
virtual bool isRowEmpty (int row) const
virtual bool isColumnEmpty (int column) const
int numRows (void) const
int numColumns (void) const
int lastRow (void) const
int lastColumn (void) const
bool contains (int row, int col) const
virtual QString itemString (int row, int col) const
const QicsDataItemoperator() (int row, int col)
bool emitSignals (void) const
void setEmitSignals (bool b)
void notifyRegionChanged (QicsRegion reg)
void readASCII (QTextStream &stream, const char separator= ';', int start_row=0, int start_col=0, bool clear_model=false)
void writeASCII (QTextStream &stream, const char separator= ';', int start_row=0, int start_col=0, int nrows=-1, int ncols=-1)

Static Public Member Functions

static QicsDataModelcreate (int num_rows=0, int num_cols=0)

Protected Member Functions

virtual void clearRow (int rownum)
void setNumRows (int nrows)
void setNumColumns (int ncols)

Protected Attributes

QicsDataItemPVPV myVectorOfRowPointers
int myNumRows
int myNumColumns
bool myEmitSignalsFlag


Detailed Description

A fast implementation of the QicsDataModel interface.

This model implements the QicsDataModel interface with vectors. Sparse models are supported efficently, and there are no unexpected size increases for dense models.

This model implementation is row-oriented. By this we mean that certain operations are more efficient when performed on rows than when performed on columns. These operations include retrieval (rowItems() is more efficient than columnItems()), assignment (setRow() is more efficient than setColumn()), addition (addRows() is more efficient than addColumns()), insertion (insertRows() is faster than insertColumns()), and deletion (deleteRows() is faster than deleteColumns()).

Operations on a single item (item(), setItem(), clearItem()) are very efficient.

Here is an example of data model creation and usage.

QicsDataModel *data_table = new QicsDataModelDefault(100, 100);

for(int row = 0; row < 100; ++row)
{
    for(int col = 0; col < 100; ++col)
    {
        QString str("R%1C%2").arg(row)
                             .arg(col); 
        data_table->setItem(row, col, str);
    }
}

Member Typedef Documentation

typedef QicsDataModel*(* QicsDataModel::Foundry)(int num_rows, int num_cols) [inherited]

Foundry method to create new instances of a subclass of QicsDataModel. Subclasses of QicsDataModel should implement a similar method. Methods of this type can be passed to a QicsTable constructor in order to create custom data models for row and column headers.


Member Enumeration Documentation

enum Qics::QicsWideKeyAction [inherited]

Denotes global key actions available for the table grid.

enum Qics::QicsBoxBorders [inherited]

Denotes the box borders of cell region.

enum Qics::QicsCopyPolicy [inherited]

Denotes the copying policy during copy/paste and drag/drop operations.

enum Qics::QicsClearPolicy [inherited]

Denotes the clearing policy during cut and delete operations.

enum Qics::QicsSortMode [inherited]

Denotes the sort algorithm which is used.

enum Qics::QicsCellOverflowBehavior [inherited]

Denotes the behavior of grids when handling cells whose contents cannot be displayed in the boundaries of the cell.

enum Qics::QicsCurrentCellStyle [inherited]

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

enum Qics::QicsSelectionStyle [inherited]

enum Qics::QicsSelectCurrentCellPolicy [inherited]

enum Qics::QicsGridCellClipping [inherited]

Denotes the policy for displaying text that is too long to fit in its cell.

enum Qics::QicsGridType [inherited]

Specifies a type of grid object.

enum Qics::QicsHeaderType [inherited]

Specifies the type of table header.

enum Qics::QicsIndexType [inherited]

Specifies the type of table index.

enum Qics::QicsLineStyle [inherited]

Denotes the style of lines and borders in the table widget.

enum Qics::QicsRepaintBehavior [inherited]

Specifies the recalculation and repainting behavior of tables and grids.

enum Qics::QicsScrollBarMode [inherited]

Specifies the various modes of QicsTable's scroll bars.

enum Qics::QicsScrollDirection [inherited]

Denotes a direction for scrolling operations, or that an absolute scroll should occur.

enum Qics::QicsSelectionPolicy [inherited]

Denotes the selection policy for the table.

enum Qics::QicsSortOrder [inherited]

Specifies whenever ordering should be ascending or descending.

enum Qics::QicsTableDisplayOption [inherited]

Specifies a printing display policy for elements of the table.

enum Qics::QicsTraversalKeyEditBehavior [inherited]

Specifies the behavior of the traversal keys. (left, right, up, down, etc) while editing a cell.

enum Qics::QicsCurrentCellDraggingPolicy [inherited]

Specifies the behavior of drag&drop operations when it has began from current cell.

enum Qics::QicsCellWidthMode [inherited]

Specifies the behavior of set cell font.

enum Qics::QicsCellDecorationStyle [inherited]

Specifies the cell decoration style for headers.


Constructor & Destructor Documentation

QicsDataModelDefault::QicsDataModelDefault ( int  num_rows = 0,
int  num_cols = 0,
QObject *  parent = 0 
)

Constructor


Member Function Documentation

virtual const QicsDataItem* QicsDataModelDefault::item ( int  row,
int  col 
) const [virtual]

Returns a const pointer to the QicsDataItem stored in (row, col). The object is not a copy, and must not be modified, as modifications will not be communicated to any widgets that are displaying data from this table. If there is no data item in that location, this method returns 0.

The value that is returned from this method is guaranteed to be valid only until the next call to QicsDataModel::item(). If you need to use the original item after this point, you should make a copy of the data item using QicsDataItem::clone().

A consequence of the above restriction is that if you are implementing this method in a subclass, you do not have to continually allocate new data items each time this method is called. You can allocate a single object and reuse it each time the method is called. See Example - Implementing a New Data Model for an example of this type of usage.

See also:
itemString()

Implements QicsDataModel.

virtual QicsDataModelRow QicsDataModelDefault::rowItems ( int  row,
int  first_col,
int  last_col 
) const [virtual]

Returns a new vector which contains const pointers to each item from cell (row, first_col ) to (row, last_col ). If last_col = -1, the last column will be the value of lastColumn().

Implements QicsDataModel.

virtual QicsDataModelColumn QicsDataModelDefault::columnItems ( int  col,
int  first_row,
int  last_row 
) const [virtual]

Returns a new vector which contains const pointers to each item from cell (first_row, col ) to (last_row, col ). If last_row = -1, the last row will be the value of lastRow().

Implements QicsDataModel.

virtual void QicsDataModelDefault::setColumnItems ( int  col,
const QicsDataModelColumn v 
) [virtual]

Sets the data items in column col to the values contained in the vector of QicsDataItem pointers v. A copy of each data item is made, so the original items do not need to be maintained for the life of the data model.

The nth data item in the vector is put in position (n, col). If the vector of items contains less data items than there are rows in the model, the extra cells in the column are unset. If the vector of items contains more data items than there are rows in the model, the extra data items are ignored.

Implementers are required to emit the modelChanged signal in this method.

See also:
setRowItems()

Implements QicsDataModel.

virtual void QicsDataModelDefault::setRowItems ( int  row,
const QicsDataModelRow v 
) [virtual]

Sets the data items in row row to the values contained in the vector of QicsDataItem pointers v. A copy of each data item is made, so the original items do not need to be maintained for the life of the data model.

The nth data item in the vector is put in position (row, n). If the vector of items contains less data items than there are columns in the model, the extra cells in the column are unset. If the vector of items contains more data items than there are columns in the model, the extra data items are ignored.

Implementers are required to emit the modelChanged signal in this method.

See also:
setColumnItems()

Implements QicsDataModel.

virtual bool QicsDataModelDefault::isRowEmpty ( int   )  const [virtual]

Returns true if row does not contain any data, false otherwise. Should be reimplemented in real data model.

Since:
2.2

Reimplemented from QicsDataModel.

virtual bool QicsDataModelDefault::isColumnEmpty ( int   )  const [virtual]

Returns true if column does not contain any data, false otherwise. Should be reimplemented in real data model.

Since:
2.2

Reimplemented from QicsDataModel.

static QicsDataModel* QicsDataModelDefault::create ( int  num_rows = 0,
int  num_cols = 0 
) [static]

Foundry method to create new instances of QicsDataModelDefault. Subclasses of QicsDataModelDefault should implement a similar method. Methods of this type can be passed to a QicsTable constructor in order to create custom data models for row and column headers.

virtual void QicsDataModelDefault::setItem ( int  row,
int  col,
const QicsDataItem item 
) [virtual, slot]

Sets the value of cell (row, col) to item. This method makes a new copy of item and stores it in the model, so the original item does not need to be maintained for the life of the data model.

Implementers are required to emit the modelChanged signal in this method.

Implements QicsDataModel.

virtual void QicsDataModelDefault::insertColumns ( int  number_of_columns,
int  starting_position 
) [virtual, slot]

Inserts number_of_columns columns in to the model, beginning at starting_position. Initially, the new columns have no data. To populate the new columns, the programmer should call either setItem() for each item, or setColumnItems() for entire columns.

Implementers are required to emit columnsInserted and modelSizeChanged signals.

Implements QicsDataModel.

virtual void QicsDataModelDefault::insertRows ( int  number_of_rows,
int  starting_position 
) [virtual, slot]

Inserts number_of_rows rows in to the model, beginning at starting_position. Initially, the new rows have no data. To populate the new rows, the programmer should call either setItem() for each item, or setRowItems() for entire rows.

Implementers are required to emit rowsInserted and modelSizeChanged signals.

Implements QicsDataModel.

virtual void QicsDataModelDefault::addColumns ( int  num  )  [virtual, slot]

Increases size of the model by num columns. Initially, the new columns have no data. To populate the new columns, the programmer should call either setItem() for each item, or setColumnItems() for entire columns.

Implementers are required to emit columnsAdded and modelSizeChanged signals.

Implements QicsDataModel.

virtual void QicsDataModelDefault::addRows ( int  rows  )  [virtual, slot]

Increases size of the model by num rows. Initially, the new rows have no data. To populate the new rows, the programmer should call either setItem() for each item, or setRowItems() for entire rows.

Implementers are required to emit rowsAdded and modelSizeChanged signals.

Implements QicsDataModel.

virtual void QicsDataModelDefault::clearItem ( int  row,
int  col 
) [virtual, slot]

Removes the QicsDataItem at positon ( row , col ) by destroying it. If there is no value stored at that location, the method does nothing.

Implementers are required to emit the modelChanged signal in this method.

Implements QicsDataModel.

virtual void QicsDataModelDefault::clearModel ( void   )  [virtual, slot]

Clears all of the data items in the model.

Implementers are required to emit the modelChanged and modelSizeChanged signals in this method.

Implements QicsDataModel.

virtual void QicsDataModelDefault::deleteRow ( int  row  )  [virtual, slot]

Removes row row from the model. All rows below the deleted row are moved up.

Implementers are required to emit rowsDeleted and modelSizeChanged signals.

See also:
deleteColumn()

Implements QicsDataModel.

virtual void QicsDataModelDefault::deleteColumn ( int  col  )  [virtual, slot]

Removes column col from the model. All columns below the deleted column are moved left.

Implementers are required to emit columnsDeleted and modelSizeChanged signals.

See also:
deleteRow()

Implements QicsDataModel.

virtual void QicsDataModelDefault::deleteRows ( int  num_rows,
int  start_row 
) [virtual, slot]

Removes num_rows rows from the model, beginning at row start_row. All rows below the deleted rows are moved up.

See also:
deleteColumns()
Implementers are required to emit rowsDeleted and modelSizeChanged signals.

Implements QicsDataModel.

virtual void QicsDataModelDefault::deleteColumns ( int  num_cols,
int  start_col 
) [virtual, slot]

Removes num_cols columns from the model, beginning at column start_col. All columns below the deleted columns are moved left.

Implementers are required to emit columnsDeleted and modelSizeChanged signals.

See also:
deleteRows()

Implements QicsDataModel.

int QicsDataModel::numRows ( void   )  const [inline, inherited]

Returns the number of rows in the model.

int QicsDataModel::numColumns ( void   )  const [inline, inherited]

Returns the number of columns in the model.

int QicsDataModel::lastRow ( void   )  const [inline, inherited]

Returns the index of the last row in the data model.

See also:
lastColumn()

int QicsDataModel::lastColumn ( void   )  const [inline, inherited]

Returns the index of the last column in the data model.

See also:
lastRow()

bool QicsDataModel::contains ( int  row,
int  col 
) const [inline, inherited]

Returns true if the position (row, col ) is a valid position in the data model. Returns false if the position is not valid in this model.

virtual QString QicsDataModel::itemString ( int  row,
int  col 
) const [virtual, inherited]

Returns the string representation of the data item stored in (row, col), or the empty string if there is no data item at that location.

See also:
item()

const QicsDataItem* QicsDataModel::operator() ( int  row,
int  col 
) [inline, inherited]

This operator is equivalent to item(). It is included for the convenience of the programmer.

See also:
itemString()

bool QicsDataModel::emitSignals ( void   )  const [inline, inherited]

Returns the current value of the emitsSignals flag. If true, the model will emit modelChanged() signals when the model data is modified, and modelSizeChanged() signals when the size of the data model is changed. if false, no signals will be emitted.

void QicsDataModel::setEmitSignals ( bool  b  )  [inline, inherited]

Controls the output of QicsDataModel signals. If b is true, the model will emit modelChanged() signals when the model data is modified, and modelSizeChanged() signals when the size of the data model is changed.if b is false, no signals will be emitted.

void QicsDataModel::notifyRegionChanged ( QicsRegion  reg  )  [inline, inherited]

Forces model to emit modelChanged(reg) signal. It is intended for notifying about changes after complex updates rather than emit a bunch of signals for each cell being changed (which is too slow).

Since:
2.3

void QicsDataModel::readASCII ( QTextStream &  stream,
const char  separator = ';',
int  start_row = 0,
int  start_col = 0,
bool  clear_model = false 
) [inherited]

Reads delimited ASCII data from a stream into the model. The data must be in the format of one line per row, with each column in the row separated by a delimiter character.

void QicsDataModel::writeASCII ( QTextStream &  stream,
const char  separator = ';',
int  start_row = 0,
int  start_col = 0,
int  nrows = -1,
int  ncols = -1 
) [inherited]

Writes delimited ASCII data from a data model to a stream. The data is output one line per row, with each column in the row separated by a configurable delimiter character.

virtual void QicsDataModel::setItem ( int  row,
int  col,
int  val 
) [inline, virtual, slot, inherited]

This method is essentially equivalent to the previous method. val is used to create a new QicsDataItem of the appropriate type, and that data item is placed in cell (row, col ).

If this method is reimplemented, implementers are required to emit the modelChanged signal.

virtual void QicsDataModel::setItem ( int  row,
int  col,
long  val 
) [inline, virtual, slot, inherited]

This method is essentially equivalent to the previous method. val is used to create a new QicsDataItem of the appropriate type, and that data item is placed in cell (row, col ).

If this method is reimplemented, implementers are required to emit the modelChanged signal.

virtual void QicsDataModel::setItem ( int  row,
int  col,
qlonglong  val 
) [inline, virtual, slot, inherited]

This method is essentially equivalent to the previous method. val is used to create a new QicsDataItem of the appropriate type, and that data item is placed in cell (row, col ).

If this method is reimplemented, implementers are required to emit the modelChanged signal.

virtual void QicsDataModel::setItem ( int  row,
int  col,
float  val 
) [inline, virtual, slot, inherited]

This method is essentially equivalent to the previous method. val is used to create a new QicsDataItem of the appropriate type, and that data item is placed in cell (row, col ).

If this method is reimplemented, implementers are required to emit the modelChanged signal.

virtual void QicsDataModel::setItem ( int  row,
int  col,
double  val 
) [inline, virtual, slot, inherited]

This method is essentially equivalent to the previous method. val is used to create a new QicsDataItem of the appropriate type, and that data item is placed in cell (row, col ).

If this method is reimplemented, implementers are required to emit the modelChanged signal.

virtual void QicsDataModel::setItem ( int  row,
int  col,
const QString &  val 
) [inline, virtual, slot, inherited]

This method is essentially equivalent to the previous method. val is used to create a new QicsDataItem of the appropriate type, and that data item is placed in cell (row, col ).

If this method is reimplemented, implementers are required to emit the modelChanged signal.

virtual void QicsDataModel::setItem ( int  row,
int  col,
const char *  val 
) [inline, virtual, slot, inherited]

This method is essentially equivalent to the previous method. val is used to create a new QicsDataItem of the appropriate type, and that data item is placed in cell (row, col ).

If this method is reimplemented, implementers are required to emit the modelChanged signal.

virtual void QicsDataModel::setItem ( int  row,
int  col,
const QDate &  val 
) [inline, virtual, slot, inherited]

This method is essentially equivalent to the previous method. val is used to create a new QicsDataItem of the appropriate type, and that data item is placed in cell (row, col ).

If this method is reimplemented, implementers are required to emit the modelChanged signal.

virtual void QicsDataModel::setItem ( int  row,
int  col,
const QTime &  val 
) [inline, virtual, slot, inherited]

This method is essentially equivalent to the previous method. val is used to create a new QicsDataItem of the appropriate type, and that data item is placed in cell (row, col ).

If this method is reimplemented, implementers are required to emit the modelChanged signal.

virtual void QicsDataModel::setItem ( int  row,
int  col,
const QDateTime &  val 
) [inline, virtual, slot, inherited]

This method is essentially equivalent to the previous method. val is used to create a new QicsDataItem of the appropriate type, and that data item is placed in cell (row, col ).

If this method is reimplemented, implementers are required to emit the modelChanged signal.

virtual void QicsDataModel::setItem ( int  row,
int  col,
const bool &  val 
) [inline, virtual, slot, inherited]

This method is essentially equivalent to the previous method. val is used to create a new QicsDataItem of the appropriate type, and that data item is placed in cell (row, col ).

If this method is reimplemented, implementers are required to emit the modelChanged signal.

void QicsDataModel::modelChanged ( QicsRegion  reg  )  [signal, inherited]

This signal is emitted when any data item in the model changes value. it is not emitted on creation or destruction of the model. It is not emitted if the model changes size. The argument is the region of the data model that changed value.

See also:
modelSizeChanged

void QicsDataModel::modelSizeChanged ( int  new_number_of_rows,
int  new_number_of_columns 
) [signal, inherited]

This signal is emitted when the data model changes size.

void QicsDataModel::modelSizeChanged ( int  position,
int  num_items_added_removed,
Qics::QicsIndexType  row_or_col 
) [signal, inherited]

This signal is emitted when the data model changes size. Cause smart redraw.

void QicsDataModel::rowsInserted ( int  number_of_rows,
int  starting_position 
) [signal, inherited]

This signal is emitted when rows are inserted into the model.

void QicsDataModel::columnsInserted ( int  number_of_columns,
int  starting_position 
) [signal, inherited]

This signal is emitted when columns are inserted into the model.

void QicsDataModel::rowsDeleted ( int  number_of_rows,
int  starting_position 
) [signal, inherited]

This signal is emitted when rows are deleted from the model.

void QicsDataModel::columnsDeleted ( int  number_of_columns,
int  starting_position 
) [signal, inherited]

This signal is emitted when columns are deleted from the model.

void QicsDataModel::rowsAdded ( int  number_of_rows  )  [signal, inherited]

This signal is emitted when rows are added to the end of the model.

void QicsDataModel::columnsAdded ( int  number_of_columns  )  [signal, inherited]

This signal is emitted when rows are added to the end of the model.

void QicsDataModel::cellValueChanged ( int  row,
int  col 
) [signal, inherited]

This signal is emitted when value of the particular cell is changed.

void QicsDataModel::prepareForRowChanges ( int  num_rows,
int  start_row 
) [signal, inherited]

This signal is emitted when data in the model start to change rows size. it is not emitted on creation or destruction of the model. If num_rows < 0 rows ere preparing for deletion, otherwise inserting.

void QicsDataModel::prepareForColumnChanges ( int  num_cols,
int  start_col 
) [signal, inherited]

This signal is emitted when data in the model start to change columns size. it is not emitted on creation or destruction of the model. If num_cols < 0 columns are preparing for deletion, otherwise inserting.


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

All trademarks and copyrights on this page are properties of their respective owners.
The rest is copyright 1999-2006 Integrated Computer Solutions, Inc.