List of all members | Public Types | Properties | Public Member Functions | Public Slots | Signals | Static Public Attributes | Protected Attributes | Protected Member Functions | Protected Slots
XTreeWidget Class Reference

#include <xtreewidget.h>

Public Types

enum  PopulateStyle { Replace, Append }
 

Properties

QString altDragString
 
QString dragString
 
bool populateLinear
 

Public Member Functions

 XTreeWidget (QWidget *)
 
 ~XTreeWidget ()
 
Q_INVOKABLE void addTopLevelItem (XTreeWidgetItem *item)
 
Q_INVOKABLE void addTopLevelItems (const QList< XTreeWidgetItem * > &items)
 
QString altDragString () const
 
Q_INVOKABLE int altId () const
 
Q_INVOKABLE void closePersistentEditor (XTreeWidgetItem *item, int column=0)
 
virtual Q_INVOKABLE int column (const QString) const
 
Q_INVOKABLE int columnCount () const
 
Q_INVOKABLE int currentColumn () const
 
virtual Q_INVOKABLE XTreeWidgetItemcurrentItem () const
 
QString dragString () const
 
Q_INVOKABLE void editItem (XTreeWidgetItem *item, int column=0)
 
Q_INVOKABLE QList< XTreeWidgetItem * > findItems (const QString &text, Qt::MatchFlags flags, int column=0, int role=0) const
 
Q_INVOKABLE XTreeWidgetItemfindXTreeWidgetItemWithId (const XTreeWidget *ptree, const int pid)
 
Q_INVOKABLE XTreeWidgetItemfindXTreeWidgetItemWithId (const XTreeWidgetItem *ptreeitem, const int pid)
 
Q_INVOKABLE QTreeWidgetItemheaderItem () const
 
void hideColumn (const QString &)
 
Q_INVOKABLE int id () const
 
Q_INVOKABLE int id (const QString) const
 
Q_INVOKABLE int indexOfTopLevelItem (XTreeWidgetItem *item) const
 
Q_INVOKABLE void insertTopLevelItem (int index, XTreeWidgetItem *item)
 
Q_INVOKABLE void insertTopLevelItems (int index, const QList< XTreeWidgetItem * > &items)
 
Q_INVOKABLE XTreeWidgetIteminvisibleRootItem () const
 
Q_INVOKABLE bool isFirstItemColumnSpanned (const XTreeWidgetItem *item) const
 
Q_INVOKABLE XTreeWidgetItemitemAbove (const XTreeWidgetItem *item) const
 
Q_INVOKABLE QTreeWidgetItemitemAt (const QPoint &p) const
 
Q_INVOKABLE QTreeWidgetItemitemAt (int x, int y) const
 
Q_INVOKABLE QTreeWidgetItemitemBelow (const XTreeWidgetItem *item) const
 
Q_INVOKABLE QWidgetitemWidget (XTreeWidgetItem *item, int column) const
 
Q_INVOKABLE void moveColumn (int from, int to)
 
Q_INVOKABLE void openPersistentEditor (XTreeWidgetItem *item, int column=0)
 
Q_INVOKABLE void populate (XSqlQuery, bool=FALSE, PopulateStyle=Replace)
 
Q_INVOKABLE void populate (XSqlQuery, int, bool=FALSE, PopulateStyle=Replace)
 
void populate (const QString &, bool=FALSE)
 
void populate (const QString &, int, bool=FALSE)
 
bool populateLinear ()
 
Q_INVOKABLE QVariant rawValue (const QString colname) const
 
Q_INVOKABLE void removeItemWidget (XTreeWidgetItem *item, int column)
 
void sCopyCellToClipboard ()
 
void sCopyRowToClipboard ()
 
void sCopyVisibleToClipboard ()
 
Q_INVOKABLE QList< XTreeWidgetItem * > selectedItems () const
 
void setAltDragString (QString)
 
virtual Q_INVOKABLE void setColumnCount (int columns)
 
virtual Q_INVOKABLE void setColumnLocked (int, bool)
 
virtual Q_INVOKABLE void setColumnVisible (int, bool)
 
Q_INVOKABLE void setCurrentItem (XTreeWidgetItem *item)
 
Q_INVOKABLE void setCurrentItem (XTreeWidgetItem *item, int column)
 
Q_INVOKABLE void setCurrentItem (XTreeWidgetItem *item, int column, QItemSelectionModel::SelectionFlags command)
 
void setDragString (QString)
 
Q_INVOKABLE void setFirstItemColumnSpanned (const XTreeWidgetItem *item, bool span)
 
Q_INVOKABLE void setHeaderItem (XTreeWidgetItem *item)
 
Q_INVOKABLE void setHeaderLabel (const QString &label)
 
Q_INVOKABLE void setHeaderLabels (const QStringList &labels)
 
Q_INVOKABLE void setId (int pId, bool pClear=true)
 
Q_INVOKABLE void setId (int pId, int pAltId, bool pClear=true)
 
Q_INVOKABLE void setItemWidget (XTreeWidgetItem *item, int column, QWidget *widget)
 
void setPopulateLinear (bool alwaysLinear=true)
 
void sExport ()
 
void showColumn (int colnum)
 
void showColumn (const QString &)
 
Q_INVOKABLE int sortColumn () const
 
virtual Q_INVOKABLE void sortItems (int column, Qt::SortOrder order)
 
Q_INVOKABLE Qt::SortOrder sortOrder () const
 
void sSearch (const QString &)
 
Q_INVOKABLE QTreeWidgetItemtakeTopLevelItem (int index)
 
Q_INVOKABLE QString toCsv () const
 
Q_INVOKABLE QString toHtml () const
 
virtual Q_INVOKABLE XTreeWidgetItemtopLevelItem (int idx) const
 
Q_INVOKABLE int topLevelItemCount () const
 
Q_INVOKABLE QString toTxt () const
 
Q_INVOKABLE QString toVcf () const
 
Q_INVOKABLE QRect visualItemRect (const XTreeWidgetItem *item) const
 

Public Slots

void addColumn (const QString &, int, int, bool=true, const QString=QString(), const QString=QString(), const int scale=0)
 
void clear ()
 
void hideColumn (int colnum)
 

Signals

void currentItemChanged (XTreeWidgetItem *, XTreeWidgetItem *)
 
void itemActivated (XTreeWidgetItem *item, int column)
 
void itemChanged (XTreeWidgetItem *item, int column)
 
void itemClicked (XTreeWidgetItem *item, int column)
 
void itemCollapsed (XTreeWidgetItem *item)
 
void itemDoubleClicked (XTreeWidgetItem *item, int column)
 
void itemEntered (XTreeWidgetItem *item, int column)
 
void itemExpanded (XTreeWidgetItem *item)
 
void itemPressed (XTreeWidgetItem *item, int column)
 
void itemSelected (int)
 
void newId (int)
 
void populated ()
 
void populateMenu (QMenu *, QTreeWidgetItem *)
 
void populateMenu (QMenu *, QTreeWidgetItem *, int)
 
void populateMenu (QMenu *, XTreeWidgetItem *)
 
void populateMenu (QMenu *, XTreeWidgetItem *, int)
 
void resorted ()
 
void valid (bool)
 

Static Public Attributes

static GuiClientInterface_guiClientInterface = 0
 

Protected Attributes

QPoint dragStartPosition
 

Protected Member Functions

virtual void mouseMoveEvent (QMouseEvent *)
 
virtual void mousePressEvent (QMouseEvent *)
 
virtual void resizeEvent (QResizeEvent *)
 

Protected Slots

void populateCalculatedColumns ()
 
void populateWorker ()
 
void sCurrentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous)
 
void sHeaderClicked (int)
 
void sItemActivated (QTreeWidgetItem *item, int column)
 
void sItemChanged (QTreeWidgetItem *item, int column)
 
void sItemClicked (QTreeWidgetItem *item, int column)
 
void sItemCollapsed (QTreeWidgetItem *item)
 
void sItemDoubleClicked (QTreeWidgetItem *item, int column)
 
void sItemEntered (QTreeWidgetItem *item, int column)
 
void sItemExpanded (QTreeWidgetItem *item)
 
void sItemPressed (QTreeWidgetItem *item, int column)
 

Member Enumeration Documentation

Enumerator
Replace 
Append 

Constructor & Destructor Documentation

XTreeWidget::XTreeWidget ( QWidget pParent)
XTreeWidget::~XTreeWidget ( )

Member Function Documentation

void XTreeWidget::addColumn ( const QString &  pString,
int  pWidth,
int  pAlignment,
bool  pVisible = true,
const QString  pEditColumn = QString(),
const QString  pDisplayColumn = QString(),
const int  scale = 0 
)
slot
Q_INVOKABLE void XTreeWidget::addTopLevelItem ( XTreeWidgetItem item)
inline
void XTreeWidget::addTopLevelItems ( const QList< XTreeWidgetItem * > &  items)
QString XTreeWidget::altDragString ( ) const
int XTreeWidget::altId ( ) const
void XTreeWidget::clear ( )
slot
Q_INVOKABLE void XTreeWidget::closePersistentEditor ( XTreeWidgetItem item,
int  column = 0 
)
inline
int XTreeWidget::column ( const QString  pName) const
virtual
Q_INVOKABLE int XTreeWidget::columnCount ( ) const
inline
Q_INVOKABLE int XTreeWidget::currentColumn ( ) const
inline
XTreeWidgetItem * XTreeWidget::currentItem ( ) const
virtual
void XTreeWidget::currentItemChanged ( XTreeWidgetItem ,
XTreeWidgetItem  
)
signal
QString XTreeWidget::dragString ( ) const
Q_INVOKABLE void XTreeWidget::editItem ( XTreeWidgetItem item,
int  column = 0 
)
inline
QList< XTreeWidgetItem * > XTreeWidget::findItems ( const QString &  text,
Qt::MatchFlags  flags,
int  column = 0,
int  role = 0 
) const
XTreeWidgetItem * XTreeWidget::findXTreeWidgetItemWithId ( const XTreeWidget ptree,
const int  pid 
)
XTreeWidgetItem * XTreeWidget::findXTreeWidgetItemWithId ( const XTreeWidgetItem ptreeitem,
const int  pid 
)
Q_INVOKABLE QTreeWidgetItem* XTreeWidget::headerItem ( ) const
inline
void XTreeWidget::hideColumn ( int  colnum)
inlineslot
void XTreeWidget::hideColumn ( const QString &  pColumn)
int XTreeWidget::id ( ) const
int XTreeWidget::id ( const QString  p) const
Q_INVOKABLE int XTreeWidget::indexOfTopLevelItem ( XTreeWidgetItem item) const
inline
Q_INVOKABLE void XTreeWidget::insertTopLevelItem ( int  index,
XTreeWidgetItem item 
)
inline
void XTreeWidget::insertTopLevelItems ( int  index,
const QList< XTreeWidgetItem * > &  items 
)
XTreeWidgetItem * XTreeWidget::invisibleRootItem ( ) const
Q_INVOKABLE bool XTreeWidget::isFirstItemColumnSpanned ( const XTreeWidgetItem item) const
inline
XTreeWidgetItem * XTreeWidget::itemAbove ( const XTreeWidgetItem item) const
void XTreeWidget::itemActivated ( XTreeWidgetItem item,
int  column 
)
signal
Q_INVOKABLE QTreeWidgetItem* XTreeWidget::itemAt ( const QPoint &  p) const
inline
Q_INVOKABLE QTreeWidgetItem* XTreeWidget::itemAt ( int  x,
int  y 
) const
inline
Q_INVOKABLE QTreeWidgetItem* XTreeWidget::itemBelow ( const XTreeWidgetItem item) const
inline
void XTreeWidget::itemChanged ( XTreeWidgetItem item,
int  column 
)
signal
void XTreeWidget::itemClicked ( XTreeWidgetItem item,
int  column 
)
signal
void XTreeWidget::itemCollapsed ( XTreeWidgetItem item)
signal
void XTreeWidget::itemDoubleClicked ( XTreeWidgetItem item,
int  column 
)
signal
void XTreeWidget::itemEntered ( XTreeWidgetItem item,
int  column 
)
signal
void XTreeWidget::itemExpanded ( XTreeWidgetItem item)
signal
void XTreeWidget::itemPressed ( XTreeWidgetItem item,
int  column 
)
signal
void XTreeWidget::itemSelected ( int  )
signal
Q_INVOKABLE QWidget* XTreeWidget::itemWidget ( XTreeWidgetItem item,
int  column 
) const
inline
void XTreeWidget::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual
void XTreeWidget::mousePressEvent ( QMouseEvent *  event)
protectedvirtual
Q_INVOKABLE void XTreeWidget::moveColumn ( int  from,
int  to 
)
inline
void XTreeWidget::newId ( int  )
signal
Q_INVOKABLE void XTreeWidget::openPersistentEditor ( XTreeWidgetItem item,
int  column = 0 
)
inline
void XTreeWidget::populate ( XSqlQuery  pQuery,
bool  pUseAltId = FALSE,
PopulateStyle  popstyle = Replace 
)
void XTreeWidget::populate ( XSqlQuery  pQuery,
int  pIndex,
bool  pUseAltId = FALSE,
PopulateStyle  popstyle = Replace 
)
void XTreeWidget::populate ( const QString &  pSql,
bool  pUseAltId = FALSE 
)
void XTreeWidget::populate ( const QString &  pSql,
int  pIndex,
bool  pUseAltId = FALSE 
)
void XTreeWidget::populateCalculatedColumns ( )
protectedslot
void XTreeWidget::populated ( )
signal
bool XTreeWidget::populateLinear ( )
void XTreeWidget::populateMenu ( QMenu *  ,
QTreeWidgetItem  
)
signal
void XTreeWidget::populateMenu ( QMenu *  ,
QTreeWidgetItem ,
int   
)
signal
void XTreeWidget::populateMenu ( QMenu *  ,
XTreeWidgetItem  
)
signal
void XTreeWidget::populateMenu ( QMenu *  ,
XTreeWidgetItem ,
int   
)
signal
void XTreeWidget::populateWorker ( )
protectedslot
QVariant XTreeWidget::rawValue ( const QString  colname) const

Returns the Raw Value of the first selected row on colname

Q_INVOKABLE void XTreeWidget::removeItemWidget ( XTreeWidgetItem item,
int  column 
)
inline
void XTreeWidget::resizeEvent ( QResizeEvent *  e)
protectedvirtual
void XTreeWidget::resorted ( )
signal
void XTreeWidget::sCopyCellToClipboard ( )
void XTreeWidget::sCopyRowToClipboard ( )
void XTreeWidget::sCopyVisibleToClipboard ( )
void XTreeWidget::sCurrentItemChanged ( QTreeWidgetItem current,
QTreeWidgetItem previous 
)
protectedslot
QList< XTreeWidgetItem * > XTreeWidget::selectedItems ( ) const
void XTreeWidget::setAltDragString ( QString  pAltDragString)
void XTreeWidget::setColumnCount ( int  columns)
virtual
void XTreeWidget::setColumnLocked ( int  pColumn,
bool  pLocked 
)
virtual
void XTreeWidget::setColumnVisible ( int  pColumn,
bool  pVisible 
)
virtual
Q_INVOKABLE void XTreeWidget::setCurrentItem ( XTreeWidgetItem item)
inline
Q_INVOKABLE void XTreeWidget::setCurrentItem ( XTreeWidgetItem item,
int  column 
)
inline
Q_INVOKABLE void XTreeWidget::setCurrentItem ( XTreeWidgetItem item,
int  column,
QItemSelectionModel::SelectionFlags  command 
)
inline
void XTreeWidget::setDragString ( QString  pDragString)
Q_INVOKABLE void XTreeWidget::setFirstItemColumnSpanned ( const XTreeWidgetItem item,
bool  span 
)
inline
Q_INVOKABLE void XTreeWidget::setHeaderItem ( XTreeWidgetItem item)
inline
Q_INVOKABLE void XTreeWidget::setHeaderLabel ( const QString &  label)
inline
Q_INVOKABLE void XTreeWidget::setHeaderLabels ( const QStringList &  labels)
inline
void XTreeWidget::setId ( int  pId,
bool  pClear = true 
)

Selects a row with a matching value pId on the first column in the result set. If pClear is true then any previous selections are cleared.

void XTreeWidget::setId ( int  pId,
int  pAltId,
bool  pClear = true 
)

Selects a row with a matching values pId and pAltId on the first and second columns respectively in the result set. If pClear is true then any previous selections are cleared.

Q_INVOKABLE void XTreeWidget::setItemWidget ( XTreeWidgetItem item,
int  column,
QWidget widget 
)
inline
void XTreeWidget::setPopulateLinear ( bool  alwaysLinear = true)
void XTreeWidget::sExport ( )
void XTreeWidget::sHeaderClicked ( int  column)
protectedslot
void XTreeWidget::showColumn ( int  colnum)
inline
void XTreeWidget::showColumn ( const QString &  pColumn)
void XTreeWidget::sItemActivated ( QTreeWidgetItem item,
int  column 
)
protectedslot
void XTreeWidget::sItemChanged ( QTreeWidgetItem item,
int  column 
)
protectedslot
void XTreeWidget::sItemClicked ( QTreeWidgetItem item,
int  column 
)
protectedslot
void XTreeWidget::sItemCollapsed ( QTreeWidgetItem item)
protectedslot
void XTreeWidget::sItemDoubleClicked ( QTreeWidgetItem item,
int  column 
)
protectedslot
void XTreeWidget::sItemEntered ( QTreeWidgetItem item,
int  column 
)
protectedslot
void XTreeWidget::sItemExpanded ( QTreeWidgetItem item)
protectedslot
void XTreeWidget::sItemPressed ( QTreeWidgetItem item,
int  column 
)
protectedslot
Q_INVOKABLE int XTreeWidget::sortColumn ( ) const
inline
void XTreeWidget::sortItems ( int  column,
Qt::SortOrder  order 
)
virtual
Q_INVOKABLE Qt::SortOrder XTreeWidget::sortOrder ( ) const
inline
void XTreeWidget::sSearch ( const QString &  pTarget)
Q_INVOKABLE QTreeWidgetItem* XTreeWidget::takeTopLevelItem ( int  index)
inline
QString XTreeWidget::toCsv ( ) const
QString XTreeWidget::toHtml ( ) const
XTreeWidgetItem * XTreeWidget::topLevelItem ( int  idx) const
virtual
Q_INVOKABLE int XTreeWidget::topLevelItemCount ( ) const
inline
QString XTreeWidget::toTxt ( ) const
QString XTreeWidget::toVcf ( ) const
void XTreeWidget::valid ( bool  )
signal
Q_INVOKABLE QRect XTreeWidget::visualItemRect ( const XTreeWidgetItem item) const
inline

Member Data Documentation

GuiClientInterface * XTreeWidget::_guiClientInterface = 0
static
QPoint XTreeWidget::dragStartPosition
protected

Property Documentation

QString XTreeWidget::altDragString
readwrite
QString XTreeWidget::dragString
readwrite
bool XTreeWidget::populateLinear
readwrite

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

Generated on Fri Oct 7 2016 15:41:44 xTuple ERP Programmer Reference, Version 4.6.0 doxygen 1.8.10