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

#include <xtreeview.h>

Inheritance diagram for XTreeView:
QTreeView

Properties

int primaryKeyCoulmns
 
QString schemaName
 
QString tableName
 

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 (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 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

 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 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)
 
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)
 

Protected Member Functions

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

Property Documentation

◆ primaryKeyCoulmns

int XTreeView::primaryKeyCoulmns
readwrite

◆ schemaName

QString XTreeView::schemaName
readwrite

◆ tableName

QString XTreeView::tableName
readwrite

Constructor & Destructor Documentation

◆ XTreeView()

XTreeView::XTreeView ( QWidget parent = 0)

◆ ~XTreeView()

XTreeView::~XTreeView ( )

Member Function Documentation

◆ columnIndex()

int XTreeView::columnIndex ( const QString  column)

◆ columnNameFromLogicalIndex()

QString XTreeView::columnNameFromLogicalIndex ( const int  logicalIndex) const

◆ currentIndex

int XTreeView::currentIndex ( )
virtualslot

◆ dataChanged

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

◆ filter

QString XTreeView::filter ( )
virtualslot

◆ ignoreGeometrySizing()

virtual bool XTreeView::ignoreGeometrySizing ( )
inlinevirtual

◆ insert

void XTreeView::insert ( )
virtualslot

◆ isRowHidden()

bool XTreeView::isRowHidden ( int  row)

◆ mapper()

Q_INVOKABLE XDataWidgetMapper* XTreeView::mapper ( )
inline

◆ model()

Q_INVOKABLE XSqlTableModel* XTreeView::model ( )
inline

◆ newModel

void XTreeView::newModel ( XSqlTableModel model)
signal

◆ populate

void XTreeView::populate ( int  p)
virtualslot

◆ populateMenu

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

◆ primaryKeyColumns()

int XTreeView::primaryKeyColumns ( ) const
inline

◆ removeSelected

void XTreeView::removeSelected ( )
virtualslot

◆ resizeEvent()

void XTreeView::resizeEvent ( QResizeEvent *  e)
protectedvirtual

◆ revertAll

void XTreeView::revertAll ( )
virtualslot

◆ rowCount

int XTreeView::rowCount ( )
virtualslot

◆ rowCountVisible

int XTreeView::rowCountVisible ( )
virtualslot

◆ rowSelected

void XTreeView::rowSelected ( int  )
signal

◆ save

void XTreeView::save ( )
virtualslot

◆ saved

void XTreeView::saved ( )
signal

◆ schemaName()

QString XTreeView::schemaName ( ) const
inline

◆ select

void XTreeView::select ( )
virtualslot

◆ selectedValue

QVariant XTreeView::selectedValue ( int  column)
virtualslot

◆ selectionChanged()

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

◆ selectRow

void XTreeView::selectRow ( int  index)
virtualslot

◆ setColumn()

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

◆ setColumnEditor [1/2]

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

◆ setColumnEditor [2/2]

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

◆ setColumnFormat

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

◆ setColumnLocked() [1/2]

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

◆ setColumnLocked() [2/2]

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

◆ setColumnRole()

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

◆ setColumnTextAlignment [1/2]

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

◆ setColumnTextAlignment [2/2]

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

◆ setColumnVisible()

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

◆ setDataWidgetMap

void XTreeView::setDataWidgetMap ( XDataWidgetMapper mapper)
virtualslot

◆ setFilter

void XTreeView::setFilter ( const QString  filter)
virtualslot

◆ setForegroundColor

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

◆ setGeometry()

void XTreeView::setGeometry ( int  x,
int  y,
int  w,
int  h 
)
virtual

◆ setIgnoreGeometrySizing()

virtual void XTreeView::setIgnoreGeometrySizing ( bool  ignore)
inlinevirtual

◆ setModel

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

◆ setPrimaryKeyColumns

virtual void XTreeView::setPrimaryKeyColumns ( int  p)
inlinevirtualslot

◆ setRowForegroundColor

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

◆ setSchemaName

virtual void XTreeView::setSchemaName ( QString  p)
inlinevirtualslot

◆ setTable()

void XTreeView::setTable ( )

◆ setTableName

virtual void XTreeView::setTableName ( QString  p)
inlinevirtualslot

◆ setValue

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

◆ sShowMenu

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

◆ tableName()

QString XTreeView::tableName ( ) const
inline

◆ throwScriptException()

bool XTreeView::throwScriptException ( const QString &  message)

◆ valid

void XTreeView::valid ( bool  )
signal

◆ value

QVariant XTreeView::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 5.1.0 doxygen 1.8.17