#include <xtableview.h>
Classes | |
struct | ColumnProps |
Properties | |
int | primaryKeyCoulmns |
QString | schemaName |
QString | tableName |
Public Member Functions | |
XTableView (QWidget *parent=0) | |
~XTableView () | |
Q_INVOKABLE int | columnIndex (const QString column) |
Q_INVOKABLE QString | columnNameFromLogicalIndex (const int logicalIndex) const |
Q_INVOKABLE bool | isRowHidden (int row) |
Q_INVOKABLE XDataWidgetMapper * | mapper () |
Q_INVOKABLE XSqlTableModel * | model () |
int | primaryKeyColumns () const |
QString | schemaName () const |
Q_INVOKABLE void | setColumn (const QString &label, int width, int alignment, bool visible, const QString &colname) |
virtual Q_INVOKABLE void | setColumnLocked (const int pColumn, bool pLocked) |
virtual Q_INVOKABLE void | setColumnLocked (const QString &pColname, bool pLocked) |
virtual Q_INVOKABLE void | setColumnRole (const QString column, int role, QVariant value) |
virtual Q_INVOKABLE void | setColumnVisible (int, bool) |
Q_INVOKABLE void | setTable () |
QString | tableName () const |
bool | throwScriptException (const QString &message) |
Public Slots | |
virtual QString | filter () |
virtual void | insert () |
virtual QAbstractItemDelegate * | itemDelegateForColumn (const QString column) |
virtual QAbstractItemDelegate * | itemDelegateForColumn (int column) |
virtual void | populate (int p) |
virtual void | removeSelected () |
virtual void | revertAll () |
virtual int | rowCount () |
virtual int | rowCountVisible () |
virtual void | save () |
virtual void | select () |
virtual QVariant | selectedValue (int column) |
virtual void | selectRow (int index) |
virtual void | setColumnEditor (const QString column, const QString editor) |
virtual void | setColumnEditor (int column, const QString editor) |
virtual void | setColumnFormat (const QString column, int format) |
virtual void | setColumnTextAlignment (const QString column, int alignment) |
virtual void | setColumnTextAlignment (int column, int alignment) |
virtual void | setDataWidgetMap (XDataWidgetMapper *mapper) |
virtual void | setFilter (const QString filter) |
virtual void | setForegroundColor (int row, int col, QString color) |
virtual void | setItemDelegateForColumn (const QString column, QAbstractItemDelegate *delegate) |
virtual void | setItemDelegateForColumn (int column, QAbstractItemDelegate *delegate) |
virtual void | setModel (XSqlTableModel *model=0) |
virtual void | setPrimaryKeyColumns (int p) |
virtual void | setRowForegroundColor (int row, QString color) |
virtual void | setSchemaName (QString p) |
virtual void | setTableName (QString p) |
virtual void | setValue (int row, int column, QVariant value) |
virtual void | sShowMenu (const QPoint &) |
virtual QVariant | value (int row, int column) |
Signals | |
void | dataChanged (int row, int col) |
void | newModel (XSqlTableModel *model) |
void | populateMenu (QMenu *, QModelIndex) |
void | rowSelected (int) |
void | saved () |
void | valid (bool) |
Protected Member Functions | |
virtual void | resizeEvent (QResizeEvent *) |
virtual void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
XTableView::XTableView | ( | QWidget * | parent = 0 |
) |
XTableView::~XTableView | ( | ) |
int XTableView::columnIndex | ( | const QString | column | ) |
QString XTableView::columnNameFromLogicalIndex | ( | const int | logicalIndex | ) | const |
void XTableView::dataChanged | ( | int | row, | |
int | col | |||
) | [signal] |
QString XTableView::filter | ( | ) | [virtual, slot] |
void XTableView::insert | ( | ) | [virtual, slot] |
Q_INVOKABLE bool XTableView::isRowHidden | ( | int | row | ) | [inline] |
QAbstractItemDelegate * XTableView::itemDelegateForColumn | ( | const QString | column | ) | [virtual, slot] |
virtual QAbstractItemDelegate* XTableView::itemDelegateForColumn | ( | int | column | ) | [inline, virtual, slot] |
Q_INVOKABLE XDataWidgetMapper* XTableView::mapper | ( | ) | [inline] |
Q_INVOKABLE XSqlTableModel* XTableView::model | ( | ) | [inline] |
void XTableView::newModel | ( | XSqlTableModel * | model | ) | [signal] |
void XTableView::populate | ( | int | p | ) | [virtual, slot] |
void XTableView::populateMenu | ( | QMenu * | , | |
QModelIndex | ||||
) | [signal] |
int XTableView::primaryKeyColumns | ( | ) | const [inline] |
void XTableView::removeSelected | ( | ) | [virtual, slot] |
void XTableView::resizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
void XTableView::revertAll | ( | ) | [virtual, slot] |
int XTableView::rowCount | ( | ) | [virtual, slot] |
int XTableView::rowCountVisible | ( | ) | [virtual, slot] |
void XTableView::rowSelected | ( | int | ) | [signal] |
void XTableView::save | ( | ) | [virtual, slot] |
void XTableView::saved | ( | ) | [signal] |
QString XTableView::schemaName | ( | ) | const [inline] |
void XTableView::select | ( | ) | [virtual, slot] |
QVariant XTableView::selectedValue | ( | int | column | ) | [virtual, slot] |
void XTableView::selectionChanged | ( | const QItemSelection & | selected, | |
const QItemSelection & | deselected | |||
) | [protected, virtual] |
Reimplemented from QAbstractItemView.
void XTableView::selectRow | ( | int | index | ) | [virtual, slot] |
Reimplemented from QTableView.
void XTableView::setColumn | ( | const QString & | label, | |
int | width, | |||
int | alignment, | |||
bool | visible, | |||
const QString & | colname | |||
) |
void XTableView::setColumnEditor | ( | int | column, | |
const QString | editor | |||
) | [virtual, slot] |
void XTableView::setColumnFormat | ( | const QString | column, | |
int | format | |||
) | [virtual, slot] |
void XTableView::setColumnLocked | ( | const int | pColumn, | |
bool | pLocked | |||
) | [virtual] |
void XTableView::setColumnLocked | ( | const QString & | pColname, | |
bool | pLocked | |||
) | [virtual] |
void XTableView::setColumnTextAlignment | ( | const QString | column, | |
int | alignment | |||
) | [virtual, slot] |
void XTableView::setColumnTextAlignment | ( | int | column, | |
int | alignment | |||
) | [virtual, slot] |
void XTableView::setColumnVisible | ( | int | pColumn, | |
bool | pVisible | |||
) | [virtual] |
void XTableView::setDataWidgetMap | ( | XDataWidgetMapper * | mapper | ) | [virtual, slot] |
void XTableView::setFilter | ( | const QString | filter | ) | [virtual, slot] |
void XTableView::setForegroundColor | ( | int | row, | |
int | col, | |||
QString | color | |||
) | [virtual, slot] |
void XTableView::setItemDelegateForColumn | ( | const QString | column, | |
QAbstractItemDelegate * | delegate | |||
) | [virtual, slot] |
virtual void XTableView::setItemDelegateForColumn | ( | int | column, | |
QAbstractItemDelegate * | delegate | |||
) | [inline, virtual, slot] |
Reimplemented from QAbstractItemView.
void XTableView::setModel | ( | XSqlTableModel * | model = 0 |
) | [virtual, slot] |
virtual void XTableView::setPrimaryKeyColumns | ( | int | p | ) | [inline, virtual, slot] |
void XTableView::setRowForegroundColor | ( | int | row, | |
QString | color | |||
) | [virtual, slot] |
virtual void XTableView::setSchemaName | ( | QString | p | ) | [inline, virtual, slot] |
void XTableView::setTable | ( | ) |
virtual void XTableView::setTableName | ( | QString | p | ) | [inline, virtual, slot] |
void XTableView::setValue | ( | int | row, | |
int | column, | |||
QVariant | value | |||
) | [virtual, slot] |
void XTableView::sShowMenu | ( | const QPoint & | pntThis | ) | [virtual, slot] |
QString XTableView::tableName | ( | ) | const [inline] |
bool XTableView::throwScriptException | ( | const QString & | message | ) |
void XTableView::valid | ( | bool | ) | [signal] |
QVariant XTableView::value | ( | int | row, | |
int | column | |||
) | [virtual, slot] |
int XTableView::primaryKeyCoulmns [read, write] |
QString XTableView::schemaName [read, write] |
QString XTableView::tableName [read, write] |
Generated on Tue Apr 20 12:03:57 2010 | xTuple ERP Programmer Reference, Version 3.5.0 | 1.6.1 |