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

#include <xtreeview.h>

Properties

int primaryKeyCoulmns
 
QString schemaName
 
QString tableName
 

Public Member Functions

 XTreeView (QWidget *parent=0)
 
 ~XTreeView ()
 
Q_INVOKABLE int columnIndex (const QString column)
 
Q_INVOKABLE QString columnNameFromLogicalIndex (const int logicalIndex) const
 
virtual bool ignoreGeometrySizing ()
 
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 QString &pColname, bool pLocked)
 
virtual Q_INVOKABLE void setColumnLocked (const int pColumn, bool pLocked)
 
virtual Q_INVOKABLE void setColumnRole (const QString column, int role, QVariant value)
 
virtual Q_INVOKABLE void setColumnVisible (int, bool)
 
virtual void setGeometry (int x, int y, int w, int h)
 
virtual void setIgnoreGeometrySizing (bool ignore)
 
Q_INVOKABLE void setTable ()
 
QString tableName () const
 
bool throwScriptException (const QString &message)
 

Public Slots

virtual int currentIndex ()
 
virtual QString filter ()
 
virtual void insert ()
 
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 (int column, const QString editor)
 
virtual void setColumnEditor (const QString column, const QString editor)
 
virtual void setColumnFormat (const QString column, int format)
 
virtual void setColumnTextAlignment (int column, int alignment)
 
virtual void setColumnTextAlignment (const QString 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 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)
 

Constructor & Destructor Documentation

XTreeView::XTreeView ( QWidget parent = 0)
XTreeView::~XTreeView ( )

Member Function Documentation

int XTreeView::columnIndex ( const QString  column)
QString XTreeView::columnNameFromLogicalIndex ( const int  logicalIndex) const
int XTreeView::currentIndex ( )
virtualslot
void XTreeView::dataChanged ( int  row,
int  col 
)
signal
QString XTreeView::filter ( )
virtualslot
virtual bool XTreeView::ignoreGeometrySizing ( )
inlinevirtual
void XTreeView::insert ( )
virtualslot
bool XTreeView::isRowHidden ( int  row)
Q_INVOKABLE XDataWidgetMapper* XTreeView::mapper ( )
inline
Q_INVOKABLE XSqlTableModel* XTreeView::model ( )
inline
void XTreeView::newModel ( XSqlTableModel model)
signal
void XTreeView::populate ( int  p)
virtualslot
void XTreeView::populateMenu ( QMenu *  ,
QModelIndex   
)
signal
int XTreeView::primaryKeyColumns ( ) const
inline
void XTreeView::removeSelected ( )
virtualslot
void XTreeView::resizeEvent ( QResizeEvent *  e)
protectedvirtual
void XTreeView::revertAll ( )
virtualslot
int XTreeView::rowCount ( )
virtualslot
int XTreeView::rowCountVisible ( )
virtualslot
void XTreeView::rowSelected ( int  )
signal
void XTreeView::save ( )
virtualslot
void XTreeView::saved ( )
signal
QString XTreeView::schemaName ( ) const
inline
void XTreeView::select ( )
virtualslot
QVariant XTreeView::selectedValue ( int  column)
virtualslot
void XTreeView::selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
protectedvirtual
void XTreeView::selectRow ( int  index)
virtualslot
void XTreeView::setColumn ( const QString &  label,
int  width,
int  alignment,
bool  visible,
const QString &  colname 
)
void XTreeView::setColumnEditor ( int  column,
const QString  editor 
)
virtualslot
void XTreeView::setColumnEditor ( const QString  column,
const QString  editor 
)
virtualslot
void XTreeView::setColumnFormat ( const QString  column,
int  format 
)
virtualslot
void XTreeView::setColumnLocked ( const QString &  pColname,
bool  pLocked 
)
virtual
void XTreeView::setColumnLocked ( const int  pColumn,
bool  pLocked 
)
virtual
void XTreeView::setColumnRole ( const QString  column,
int  role,
QVariant  value 
)
virtual
void XTreeView::setColumnTextAlignment ( int  column,
int  alignment 
)
virtualslot
void XTreeView::setColumnTextAlignment ( const QString  column,
int  alignment 
)
virtualslot
void XTreeView::setColumnVisible ( int  pColumn,
bool  pVisible 
)
virtual
void XTreeView::setDataWidgetMap ( XDataWidgetMapper mapper)
virtualslot
void XTreeView::setFilter ( const QString  filter)
virtualslot
void XTreeView::setForegroundColor ( int  row,
int  col,
QString  color 
)
virtualslot
void XTreeView::setGeometry ( int  x,
int  y,
int  w,
int  h 
)
virtual
virtual void XTreeView::setIgnoreGeometrySizing ( bool  ignore)
inlinevirtual
void XTreeView::setModel ( XSqlTableModel model = 0)
virtualslot
virtual void XTreeView::setPrimaryKeyColumns ( int  p)
inlinevirtualslot
void XTreeView::setRowForegroundColor ( int  row,
QString  color 
)
virtualslot
virtual void XTreeView::setSchemaName ( QString  p)
inlinevirtualslot
void XTreeView::setTable ( )
virtual void XTreeView::setTableName ( QString  p)
inlinevirtualslot
void XTreeView::setValue ( int  row,
int  column,
QVariant  value 
)
virtualslot
void XTreeView::sShowMenu ( const QPoint &  pntThis)
virtualslot
QString XTreeView::tableName ( ) const
inline
bool XTreeView::throwScriptException ( const QString &  message)
void XTreeView::valid ( bool  )
signal
QVariant XTreeView::value ( int  row,
int  column 
)
virtualslot

Property Documentation

int XTreeView::primaryKeyCoulmns
readwrite
QString XTreeView::schemaName
readwrite
QString XTreeView::tableName
readwrite

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

Generated on Fri Oct 7 2016 14:23:35 xTuple ERP Programmer Reference, Version 4.2.0 doxygen 1.8.10