XTreeWidget Class Reference

#include <xtreewidget.h>

List of all members.

Public Types

enum  PopulateStyle { Replace, Append }

Properties

QString altDragString
QString dragString

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
XTreeWidgetItem
currentItem () 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) const
Q_INVOKABLE XTreeWidgetItemfindXTreeWidgetItemWithId (const XTreeWidgetItem *ptreeitem, const int pid)
Q_INVOKABLE XTreeWidgetItemfindXTreeWidgetItemWithId (const XTreeWidget *ptree, const int pid)
Q_INVOKABLE QTreeWidgetItemheaderItem () const
Q_INVOKABLE int id (const QString) const
Q_INVOKABLE int id () 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 (int x, int y) const
Q_INVOKABLE QTreeWidgetItemitemAt (const QPoint &p) const
Q_INVOKABLE QTreeWidgetItemitemBelow (const XTreeWidgetItem *item) const
Q_INVOKABLE QWidgetitemWidget (XTreeWidgetItem *item, int column) const
Q_INVOKABLE void openPersistentEditor (XTreeWidgetItem *item, int column=0)
void populate (const QString &, int, bool=FALSE)
void populate (const QString &, bool=FALSE)
Q_INVOKABLE void populate (XSqlQuery, int, bool=FALSE, PopulateStyle=Replace)
Q_INVOKABLE void populate (XSqlQuery, bool=FALSE, PopulateStyle=Replace)
Q_INVOKABLE void removeItemWidget (XTreeWidgetItem *item, int column)
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, int column, QItemSelectionModel::SelectionFlags command)
Q_INVOKABLE void setCurrentItem (XTreeWidgetItem *item, int column)
Q_INVOKABLE void setCurrentItem (XTreeWidgetItem *item)
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, int)
Q_INVOKABLE void setId (int)
Q_INVOKABLE void setItemWidget (XTreeWidgetItem *item, int column, QWidget *widget)
Q_INVOKABLE int sortColumn () const
virtual Q_INVOKABLE void sortItems (int column, Qt::SortOrder order)
Q_INVOKABLE QTreeWidgetItemtakeTopLevelItem (int index)
Q_INVOKABLE QString toCsv () const
Q_INVOKABLE QString toHtml () const
virtual Q_INVOKABLE
XTreeWidgetItem
topLevelItem (int idx) const
Q_INVOKABLE int topLevelItemCount () const
Q_INVOKABLE QString toTxt () 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 (const QString &)
void hideColumn (int colnum)
void sCopyCellToClipboard ()
void sCopyRowToClipboard ()
void sCopyVisibleToClipboard ()
void sExport ()
void showColumn (const QString &)
void showColumn (int colnum)
void sSearch (const QString &)

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 *, XTreeWidgetItem *, int)
void populateMenu (QMenu *, XTreeWidgetItem *)
void populateMenu (QMenu *, QTreeWidgetItem *, int)
void populateMenu (QMenu *, QTreeWidgetItem *)
void resorted ()
void valid (bool)

Protected Attributes

QPoint dragStartPosition

Protected Member Functions

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

Protected Slots

void populateCalculatedColumns ()
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]

Reimplemented from QTreeWidget.

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]

Reimplemented from QTreeWidget.

Q_INVOKABLE int XTreeWidget::currentColumn (  )  const [inline]

Reimplemented from QTreeWidget.

XTreeWidgetItem * XTreeWidget::currentItem (  )  const [virtual]

Reimplemented from QTreeWidget.

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 
) const
XTreeWidgetItem * XTreeWidget::findXTreeWidgetItemWithId ( const XTreeWidgetItem ptreeitem,
const int  pid 
)
XTreeWidgetItem * XTreeWidget::findXTreeWidgetItemWithId ( const XTreeWidget ptree,
const int  pid 
)
Q_INVOKABLE QTreeWidgetItem* XTreeWidget::headerItem (  )  const [inline]

Reimplemented from QTreeWidget.

void XTreeWidget::hideColumn ( const QString pColumn  )  [slot]
void XTreeWidget::hideColumn ( int  colnum  )  [inline, slot]

Reimplemented from QTreeView.

int XTreeWidget::id ( const QString  p  )  const
int XTreeWidget::id (  )  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

Reimplemented from QTreeWidget.

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 ( int  x,
int  y 
) const [inline]

Reimplemented from QTreeWidget.

Q_INVOKABLE QTreeWidgetItem* XTreeWidget::itemAt ( const QPoint p  )  const [inline]

Reimplemented from QTreeWidget.

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  )  [protected, virtual]

Reimplemented from QAbstractItemView.

void XTreeWidget::mousePressEvent ( QMouseEvent event  )  [protected, virtual]

Reimplemented from QAbstractItemView.

void XTreeWidget::newId ( int   )  [signal]
Q_INVOKABLE void XTreeWidget::openPersistentEditor ( XTreeWidgetItem item,
int  column = 0 
) [inline]
void XTreeWidget::populate ( const QString pSql,
int  pIndex,
bool  pUseAltId = FALSE 
)
void XTreeWidget::populate ( const QString pSql,
bool  pUseAltId = FALSE 
)
void XTreeWidget::populate ( XSqlQuery  pQuery,
int  pIndex,
bool  pUseAltId = FALSE,
PopulateStyle  popstyle = Replace 
)
void XTreeWidget::populate ( XSqlQuery  pQuery,
bool  pUseAltId = FALSE,
PopulateStyle  popstyle = Replace 
)
void XTreeWidget::populateCalculatedColumns (  )  [protected, slot]
void XTreeWidget::populated (  )  [signal]
void XTreeWidget::populateMenu ( QMenu ,
XTreeWidgetItem ,
int   
) [signal]
void XTreeWidget::populateMenu ( QMenu ,
XTreeWidgetItem  
) [signal]
void XTreeWidget::populateMenu ( QMenu ,
QTreeWidgetItem ,
int   
) [signal]
void XTreeWidget::populateMenu ( QMenu ,
QTreeWidgetItem  
) [signal]
Q_INVOKABLE void XTreeWidget::removeItemWidget ( XTreeWidgetItem item,
int  column 
) [inline]
void XTreeWidget::resizeEvent ( QResizeEvent e  )  [protected, virtual]

Reimplemented from QAbstractItemView.

void XTreeWidget::resorted (  )  [signal]
void XTreeWidget::sCopyCellToClipboard (  )  [slot]
void XTreeWidget::sCopyRowToClipboard (  )  [slot]
void XTreeWidget::sCopyVisibleToClipboard (  )  [slot]
void XTreeWidget::sCurrentItemChanged ( QTreeWidgetItem current,
QTreeWidgetItem previous 
) [protected, slot]
QList< XTreeWidgetItem * > XTreeWidget::selectedItems (  )  const

Reimplemented from QTreeWidget.

void XTreeWidget::setAltDragString ( QString  pAltDragString  ) 
void XTreeWidget::setColumnCount ( int  columns  )  [virtual]

Reimplemented from QTreeWidget.

void XTreeWidget::setColumnLocked ( int  pColumn,
bool  pLocked 
) [virtual]
void XTreeWidget::setColumnVisible ( int  pColumn,
bool  pVisible 
) [virtual]
Q_INVOKABLE void XTreeWidget::setCurrentItem ( XTreeWidgetItem item,
int  column,
QItemSelectionModel::SelectionFlags  command 
) [inline]
Q_INVOKABLE void XTreeWidget::setCurrentItem ( XTreeWidgetItem item,
int  column 
) [inline]
Q_INVOKABLE void XTreeWidget::setCurrentItem ( XTreeWidgetItem item  )  [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]

Reimplemented from QTreeWidget.

Q_INVOKABLE void XTreeWidget::setHeaderLabels ( const QStringList labels  )  [inline]

Reimplemented from QTreeWidget.

void XTreeWidget::setId ( int  pId,
int  pAltId 
)
void XTreeWidget::setId ( int  pId  ) 
Q_INVOKABLE void XTreeWidget::setItemWidget ( XTreeWidgetItem item,
int  column,
QWidget widget 
) [inline]
void XTreeWidget::sExport (  )  [slot]
void XTreeWidget::sHeaderClicked ( int  column  )  [protected, slot]
void XTreeWidget::showColumn ( const QString pColumn  )  [slot]
void XTreeWidget::showColumn ( int  colnum  )  [inline, slot]

Reimplemented from QTreeView.

void XTreeWidget::sItemActivated ( QTreeWidgetItem item,
int  column 
) [protected, slot]
void XTreeWidget::sItemChanged ( QTreeWidgetItem item,
int  column 
) [protected, slot]
void XTreeWidget::sItemClicked ( QTreeWidgetItem item,
int  column 
) [protected, slot]
void XTreeWidget::sItemCollapsed ( QTreeWidgetItem item  )  [protected, slot]
void XTreeWidget::sItemDoubleClicked ( QTreeWidgetItem item,
int  column 
) [protected, slot]
void XTreeWidget::sItemEntered ( QTreeWidgetItem item,
int  column 
) [protected, slot]
void XTreeWidget::sItemExpanded ( QTreeWidgetItem item  )  [protected, slot]
void XTreeWidget::sItemPressed ( QTreeWidgetItem item,
int  column 
) [protected, slot]
Q_INVOKABLE int XTreeWidget::sortColumn (  )  const [inline]

Reimplemented from QTreeWidget.

void XTreeWidget::sortItems ( int  column,
Qt::SortOrder  order 
) [virtual]

Reimplemented from QTreeWidget.

void XTreeWidget::sSearch ( const QString pTarget  )  [slot]
Q_INVOKABLE QTreeWidgetItem* XTreeWidget::takeTopLevelItem ( int  index  )  [inline]

Reimplemented from QTreeWidget.

QString XTreeWidget::toCsv (  )  const
QString XTreeWidget::toHtml (  )  const
XTreeWidgetItem * XTreeWidget::topLevelItem ( int  idx  )  const [virtual]

Reimplemented from QTreeWidget.

Q_INVOKABLE int XTreeWidget::topLevelItemCount (  )  const [inline]

Reimplemented from QTreeWidget.

QString XTreeWidget::toTxt (  )  const
void XTreeWidget::valid ( bool   )  [signal]
Q_INVOKABLE QRect XTreeWidget::visualItemRect ( const XTreeWidgetItem item  )  const [inline]

Member Data Documentation


Property Documentation

QString XTreeWidget::altDragString [read, write]
QString XTreeWidget::dragString [read, write]

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

Generated on Tue Apr 20 12:03:58 2010 xTuple ERP Programmer Reference, Version 3.5.0 doxygen 1.6.1