List of all members | Classes | Properties | Public Slots | Signals | Public Member Functions | Protected Member Functions
XTableView Class Reference

#include <xtableview.h>

Inheritance diagram for XTableView:
QTableView

Properties

int primaryKeyCoulmns
 
QString schemaName
 
QString tableName
 

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 (QAbstractItemModel *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)
 

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 XDataWidgetMappermapper ()
 
Q_INVOKABLE XSqlTableModelmodel ()
 
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)
 

Protected Member Functions

virtual void resizeEvent (QResizeEvent *)
 
virtual void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 

Property Documentation

◆ primaryKeyCoulmns

int XTableView::primaryKeyCoulmns
readwrite

◆ schemaName

QString XTableView::schemaName
readwrite

◆ tableName

QString XTableView::tableName
readwrite

Constructor & Destructor Documentation

◆ XTableView()

XTableView::XTableView ( QWidget parent = 0)

◆ ~XTableView()

XTableView::~XTableView ( )

Member Function Documentation

◆ columnIndex()

int XTableView::columnIndex ( const QString  column)

◆ columnNameFromLogicalIndex()

QString XTableView::columnNameFromLogicalIndex ( const int  logicalIndex) const

◆ dataChanged

void XTableView::dataChanged ( int  row,
int  col 
)
signal

◆ filter

QString XTableView::filter ( )
virtualslot

◆ insert

void XTableView::insert ( )
virtualslot

◆ isRowHidden()

Q_INVOKABLE bool XTableView::isRowHidden ( int  row)
inline

◆ itemDelegateForColumn [1/2]

QAbstractItemDelegate * XTableView::itemDelegateForColumn ( const QString  column)
virtualslot

◆ itemDelegateForColumn [2/2]

virtual QAbstractItemDelegate* XTableView::itemDelegateForColumn ( int  column)
inlinevirtualslot

◆ mapper()

Q_INVOKABLE XDataWidgetMapper* XTableView::mapper ( )
inline

◆ model()

Q_INVOKABLE XSqlTableModel* XTableView::model ( )
inline

◆ newModel

void XTableView::newModel ( XSqlTableModel model)
signal

◆ populate

void XTableView::populate ( int  p)
virtualslot

◆ populateMenu

void XTableView::populateMenu ( QMenu *  ,
QModelIndex   
)
signal

◆ primaryKeyColumns()

int XTableView::primaryKeyColumns ( ) const
inline

◆ removeSelected

void XTableView::removeSelected ( )
virtualslot

◆ resizeEvent()

void XTableView::resizeEvent ( QResizeEvent *  e)
protectedvirtual

◆ revertAll

void XTableView::revertAll ( )
virtualslot

◆ rowCount

int XTableView::rowCount ( )
virtualslot

◆ rowCountVisible

int XTableView::rowCountVisible ( )
virtualslot

◆ rowSelected

void XTableView::rowSelected ( int  )
signal

◆ save

void XTableView::save ( )
virtualslot

◆ saved

void XTableView::saved ( )
signal

◆ schemaName()

QString XTableView::schemaName ( ) const
inline

◆ select

void XTableView::select ( )
virtualslot

◆ selectedValue

QVariant XTableView::selectedValue ( int  column)
virtualslot

◆ selectionChanged()

void XTableView::selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
protectedvirtual

◆ selectRow

void XTableView::selectRow ( int  index)
virtualslot

◆ setColumn()

void XTableView::setColumn ( const QString &  label,
int  width,
int  alignment,
bool  visible,
const QString &  colname 
)

◆ setColumnEditor [1/2]

void XTableView::setColumnEditor ( const QString  column,
const QString  editor 
)
virtualslot

◆ setColumnEditor [2/2]

void XTableView::setColumnEditor ( int  column,
const QString  editor 
)
virtualslot

◆ setColumnFormat

void XTableView::setColumnFormat ( const QString  column,
int  format 
)
virtualslot

◆ setColumnLocked() [1/2]

void XTableView::setColumnLocked ( const int  pColumn,
bool  pLocked 
)
virtual

◆ setColumnLocked() [2/2]

void XTableView::setColumnLocked ( const QString &  pColname,
bool  pLocked 
)
virtual

◆ setColumnRole()

void XTableView::setColumnRole ( const QString  column,
int  role,
QVariant  value 
)
virtual

◆ setColumnTextAlignment [1/2]

void XTableView::setColumnTextAlignment ( const QString  column,
int  alignment 
)
virtualslot

◆ setColumnTextAlignment [2/2]

void XTableView::setColumnTextAlignment ( int  column,
int  alignment 
)
virtualslot

◆ setColumnVisible()

void XTableView::setColumnVisible ( int  pColumn,
bool  pVisible 
)
virtual

◆ setDataWidgetMap

void XTableView::setDataWidgetMap ( XDataWidgetMapper mapper)
virtualslot

◆ setFilter

void XTableView::setFilter ( const QString  filter)
virtualslot

◆ setForegroundColor

void XTableView::setForegroundColor ( int  row,
int  col,
QString  color 
)
virtualslot

◆ setItemDelegateForColumn [1/2]

void XTableView::setItemDelegateForColumn ( const QString  column,
QAbstractItemDelegate *  delegate 
)
virtualslot

◆ setItemDelegateForColumn [2/2]

virtual void XTableView::setItemDelegateForColumn ( int  column,
QAbstractItemDelegate *  delegate 
)
inlinevirtualslot

◆ setModel

void XTableView::setModel ( QAbstractItemModel *  model = 0)
virtualslot

◆ setPrimaryKeyColumns

virtual void XTableView::setPrimaryKeyColumns ( int  p)
inlinevirtualslot

◆ setRowForegroundColor

void XTableView::setRowForegroundColor ( int  row,
QString  color 
)
virtualslot

◆ setSchemaName

virtual void XTableView::setSchemaName ( QString  p)
inlinevirtualslot

◆ setTable()

void XTableView::setTable ( )

◆ setTableName

virtual void XTableView::setTableName ( QString  p)
inlinevirtualslot

◆ setValue

void XTableView::setValue ( int  row,
int  column,
QVariant  value 
)
virtualslot

◆ sShowMenu

void XTableView::sShowMenu ( const QPoint &  pntThis)
virtualslot

◆ tableName()

QString XTableView::tableName ( ) const
inline

◆ throwScriptException()

bool XTableView::throwScriptException ( const QString &  message)

◆ valid

void XTableView::valid ( bool  )
signal

◆ value

QVariant XTableView::value ( int  row,
int  column 
)
virtualslot

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

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 6.0.0 doxygen 1.8.17