#include <QDS_Table.h>

Data Structures | |
| class | DeleteFilter |
Public Slots | |
| virtual void | hide () |
| virtual void | setHeaderEditable (Orientation, bool) |
Signals | |
| void | headerEdited (QHeader *, int) |
| void | headerEdited (Orientation, int) |
Public Member Functions | |
| QDS_Table (QWidget *=0, const char *=0) | |
| QDS_Table (int, int, QWidget *=0, const char *=0) | |
| virtual | ~QDS_Table () |
| QDS_Datum * | verticalHeaderEditor () const |
| QDS_Datum * | horizontalHeaderEditor () const |
| QDS_Datum * | headerEditor (const Orientation) const |
| void | setVerticalHeaderEditor (QDS_Datum *) |
| void | setHorizontalHeaderEditor (QDS_Datum *) |
| void | setHeaderEditor (QDS_Datum *) |
| virtual void | setHeaderEditor (const Orientation, QDS_Datum *) |
| QDS_Datum * | tableEditor () const |
| virtual void | setTableEditor (QDS_Datum *) |
| QDS_Datum * | rowEditor (const int) const |
| QDS_Datum * | columnEditor (const int) const |
| virtual void | setRowEditor (const int, QDS_Datum *) |
| virtual void | setColumnEditor (const int, QDS_Datum *) |
| QDS_Datum * | cellEditor (const int, const int) const |
| virtual void | setCellEditor (const int, const int, QDS_Datum *) |
| QDS_Datum * | actualCellEditor (const int, const int) const |
| virtual void | setNumRows (int) |
| virtual void | setNumCols (int) |
| virtual void | clearCellWidget (int, int) |
| bool | isKeepEditors () const |
| void | setKeepEditors (const bool) |
| bool | headerEditable (Orientation) const |
| bool | editHeader (Orientation, const int) |
| void | endEditHeader (const bool=true) |
| virtual bool | eventFilter (QObject *, QEvent *) |
Protected Member Functions | |
| virtual QWidget * | createHeaderEditor (QHeader *, const int, const bool=true) |
| virtual QWidget * | createEditor (int, int, bool) const |
| virtual void | endEdit (int, int, bool, bool) |
| virtual void | setCellContentFromEditor (int, int) |
| virtual void | setHeaderContentFromEditor (QHeader *, const int, QWidget *) |
| virtual void | resizeEvent (QResizeEvent *) |
| virtual bool | beginHeaderEdit (Orientation, const int) |
| virtual void | endHeaderEdit (const bool=true) |
| bool | isHeaderEditing () const |
| QHeader * | header (Orientation o) const |
Properties | |
| bool | KeepEditors |
Private Types | |
| typedef QVector< QDS_Datum * > | DatumVector |
| typedef QMap< int, QDS_Datum * > | DatumMap |
| typedef QMap< int, DatumMap > | CellMap |
Private Member Functions | |
| void | initEditor (QDS_Datum *) |
| QDS_Datum * | datum (const QWidget *) const |
Private Attributes | |
| QDS_Datum * | myHorEdit |
| QDS_Datum * | myVerEdit |
| DatumVector | myRowEdit |
| DatumVector | myColEdit |
| CellMap | myCellEdit |
| QDS_Datum * | myTableEdit |
| bool | myKeepEdits |
typedef QVector<QDS_Datum*> QDS_Table.DatumVector [private] |
typedef QMap<int, QDS_Datum*> QDS_Table.DatumMap [private] |
typedef QMap<int, DatumMap> QDS_Table.CellMap [private] |
| QDS_Table::QDS_Table | ( | QWidget * | parent = 0, |
| const char * | name = 0 |
||
| ) |
| QDS_Table::QDS_Table | ( | int | r, |
| int | c, | ||
| QWidget * | parent = 0, |
||
| const char * | name = 0 |
||
| ) |
| QDS_Table::~QDS_Table | ( | ) | [virtual] |
| QDS_Datum * QDS_Table::headerEditor | ( | const Orientation | o | ) | const |
References Horizontal, myHorEdit, and myVerEdit.
| void QDS_Table::setVerticalHeaderEditor | ( | QDS_Datum * | dat | ) |
References setHeaderEditor(), and Vertical.
| void QDS_Table::setHorizontalHeaderEditor | ( | QDS_Datum * | dat | ) |
References Horizontal, and setHeaderEditor().
| void QDS_Table::setHeaderEditor | ( | QDS_Datum * | dat | ) |
References Horizontal, and Vertical.
| void QDS_Table::setHeaderEditor | ( | const Orientation | o, |
| QDS_Datum * | dat | ||
| ) | [virtual] |
References QtxTable.endEditHeader(), headerEditor(), Horizontal, initEditor(), QtxTable.isHeaderEditing(), myHorEdit, and myVerEdit.
| QDS_Datum * QDS_Table::tableEditor | ( | ) | const |
References myTableEdit.
| void QDS_Table::setTableEditor | ( | QDS_Datum * | dat | ) | [virtual] |
References cellEditor(), columnEditor(), endEdit(), initEditor(), myTableEdit, rowEditor(), and tableEditor().
| void QDS_Table::setRowEditor | ( | const int | row, |
| QDS_Datum * | dat | ||
| ) | [virtual] |
References cellEditor(), endEdit(), initEditor(), myRowEdit, and rowEditor().
| void QDS_Table::setColumnEditor | ( | const int | col, |
| QDS_Datum * | dat | ||
| ) | [virtual] |
References cellEditor(), columnEditor(), endEdit(), initEditor(), and myColEdit.
| QDS_Datum * QDS_Table::cellEditor | ( | const int | row, |
| const int | col | ||
| ) | const |
References myCellEdit.
| void QDS_Table::setCellEditor | ( | const int | row, |
| const int | col, | ||
| QDS_Datum * | dat | ||
| ) | [virtual] |
References actualCellEditor(), cellEditor(), endEdit(), initEditor(), and myCellEdit.
| QDS_Datum * QDS_Table::actualCellEditor | ( | const int | row, |
| const int | col | ||
| ) | const |
References cellEditor(), columnEditor(), rowEditor(), and tableEditor().
| void QDS_Table::setNumRows | ( | int | r | ) | [virtual] |
References isKeepEditors(), myCellEdit, and myRowEdit.
| void QDS_Table::setNumCols | ( | int | c | ) | [virtual] |
References test_table.c, isKeepEditors(), myCellEdit, and myColEdit.
| void QDS_Table::clearCellWidget | ( | int | row, |
| int | col | ||
| ) | [virtual] |
References actualCellEditor(), and QDS_Datum.hide().
| bool QDS_Table::isKeepEditors | ( | ) | const |
References myKeepEdits.
| void QDS_Table::setKeepEditors | ( | const bool | on | ) |
References myKeepEdits.
| QWidget * QDS_Table::createHeaderEditor | ( | QHeader * | header, |
| const int | sect, | ||
| const bool | init = true |
||
| ) | [protected, virtual] |
Reimplemented from QtxTable.
References QDS_Datum.clear(), QDS.Control, headerEditor(), QDS_Datum.setStringValue(), and QDS_Datum.widget().
| QWidget * QDS_Table::createEditor | ( | int | row, |
| int | col, | ||
| bool | init | ||
| ) | const [protected, virtual] |
References actualCellEditor(), QDS_Datum.clear(), QDS.Control, QDS_Datum.setStringValue(), and QDS_Datum.widget().
| void QDS_Table::endEdit | ( | int | row, |
| int | col, | ||
| bool | accept, | ||
| bool | |||
| ) | [protected, virtual] |
| void QDS_Table::setCellContentFromEditor | ( | int | row, |
| int | col | ||
| ) | [protected, virtual] |
References actualCellEditor(), and QDS_Datum.stringValue().
| void QDS_Table::setHeaderContentFromEditor | ( | QHeader * | header, |
| const int | sect, | ||
| QWidget * | editor | ||
| ) | [protected, virtual] |
Reimplemented from QtxTable.
References headerEditor(), and QDS_Datum.stringValue().
| void QDS_Table::initEditor | ( | QDS_Datum * | dat | ) | [private] |
References QDS.Control, QDS_Datum.hide(), and QDS_Datum.widget().
| bool QtxTable::headerEditable | ( | Orientation | o | ) | const [inherited] |
| o | - header orientation |
References QtxTable.myHeaderEditable.
| bool QtxTable::editHeader | ( | Orientation | o, |
| const int | sec | ||
| ) | [inherited] |
Starts edition of header
| o | - header orientation |
| sec | - column/row |
References QtxTable.beginHeaderEdit().
| void QtxTable::endEditHeader | ( | const bool | accept = true | ) | [inherited] |
Finishes edition of header
| accept | - whether new value must be accepted |
References QtxTable.endHeaderEdit().
Custom event filter Starts edition of header by double click Finishes edition by escape/return/enter pressing
References QtxTable.beginHeaderEdit(), QtxTable.endHeaderEdit(), Horizontal, QtxTable.isHeaderEditing(), QtxTable.myHeaderEditor, and Vertical.
| void QtxTable.headerEdited | ( | QHeader * | , |
| int | |||
| ) | [signal, inherited] |
| void QtxTable.headerEdited | ( | Orientation | , |
| int | |||
| ) | [signal, inherited] |
| void QtxTable::hide | ( | ) | [virtual, slot, inherited] |
Finishes edition and hides table
References QtxTable.endHeaderEdit().
| void QtxTable::setHeaderEditable | ( | Orientation | o, |
| bool | on | ||
| ) | [virtual, slot, inherited] |
Changes editable state of header
| o | - header orientation |
| on | - new state |
References QtxTable.endHeaderEdit(), QtxTable.header(), QtxTable.headerEditable(), QtxTable.myEditedHeader, and QtxTable.myHeaderEditable.
| void QtxTable::resizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual, inherited] |
Custom resize event handler
References QtxTable.updateHeaderEditor().
| bool QtxTable::beginHeaderEdit | ( | Orientation | o, |
| const int | section | ||
| ) | [protected, virtual, inherited] |
Starts edition of header
| o | - header orientation |
| sec | - column/row |
References QtxTable.createHeaderEditor(), QtxTable.endHeaderEdit(), QtxTable.header(), QtxTable.headerEditable(), QtxTable.headerSectionRect(), Horizontal, QtxTable.myEditedHeader, QtxTable.myEditedSection, QtxTable.myHeaderEditor, and QtxTable.updateHeaderEditor().
| void QtxTable::endHeaderEdit | ( | const bool | accept = true | ) | [protected, virtual, inherited] |
Finishes edition of header
| accept | - whether new value must be accepted |
References QtxTable.headerEdited(), Horizontal, QtxTable.isHeaderEditing(), QtxTable.myEditedHeader, QtxTable.myEditedSection, QtxTable.myHeaderEditor, QtxTable.setHeaderContentFromEditor(), and Vertical.
| bool QtxTable::isHeaderEditing | ( | ) | const [protected, inherited] |
References QtxTable.myEditedHeader, QtxTable.myEditedSection, and QtxTable.myHeaderEditor.
| QHeader * QtxTable::header | ( | Orientation | o | ) | const [protected, inherited] |
QDS_Datum* QDS_Table.myHorEdit [private] |
QDS_Datum* QDS_Table.myVerEdit [private] |
DatumVector QDS_Table.myRowEdit [private] |
DatumVector QDS_Table.myColEdit [private] |
CellMap QDS_Table.myCellEdit [private] |
QDS_Datum* QDS_Table.myTableEdit [private] |
bool QDS_Table.myKeepEdits [private] |
bool QDS_Table.KeepEditors [read, write] |